* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000;
    min-height: 100vh;
    overflow-x: hidden;
    color: #f5f5f7;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 87, 108, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 90%, rgba(67, 233, 123, 0.15) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.8; transform: scale(1.1) rotate(5deg); }
}

.hero-section {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, #000 0%, #1d1d1f 100%);
}

.hero-section h1 {
    font-size: 4em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -2px;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.6), 0 0 60px rgba(118, 75, 162, 0.4);
    -webkit-text-fill-color: #ffffff;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.subtitle {
    font-size: 1.3em;
    color: #86868b;
    font-weight: 400;
}

.fade-in {
    animation: fadeInUp 1s ease forwards;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-fade {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #f5f5f7;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #a1a1a6;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95em;
}

.nav-link:hover,
.nav-link.active {
    color: #f5f5f7;
}

#langSelector {
    padding: 0;
    border: none;
    background: transparent;
    color: #a1a1a6;
    cursor: pointer;
    font-size: 0.95em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: color 0.3s;
    outline: none;
}

#langSelector:hover {
    color: #f5f5f7;
}

#langSelector option {
    background: #000;
    color: #a1a1a6;
}

.hero-section {
    padding-top: 100px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.quote-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    text-align: center;
    font-style: italic;
    font-size: 1.4em;
    color: #f5f5f7;
    border-left: none;
    background: transparent;
    border-radius: 0;
    position: relative;
}

.quote-section::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 8em;
    color: rgba(102, 126, 234, 0.2);
    font-family: Georgia, serif;
}

.quote-section p {
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin: 80px 0 40px;
}

.section-title h2 {
    font-size: 3em;
    color: #f5f5f7;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    animation: lineGrow 1s ease forwards;
}

@keyframes lineGrow {
    to { transform: scaleX(1); }
}

.section-subtitle {
    font-size: 1.1em;
    color: #a1a1a6;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

.devotion-grid,
.skills-grid,
.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.devotion-card,
.skill-card,
.learning-card {
    background: rgba(29, 29, 31, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.devotion-card::before,
.skill-card::before,
.learning-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s;
}

.devotion-card:hover::before,
.skill-card:hover::before,
.learning-card:hover::before {
    opacity: 1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.card-header {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5em;
    margin: -1px -1px 0 -1px;
    border-radius: 30px 30px 0 0;
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.card-header::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.devotion-card:hover .card-header::after,
.skill-card:hover .card-header::after,
.learning-card:hover .card-header::after {
    width: 300px;
    height: 300px;
}

.devotion-card h3,
.skill-card h3,
.learning-card h3 {
    font-size: 1.5em;
    margin: 20px 40px 15px;
    color: #f5f5f7;
}

.devotion-card p,
.skill-card p,
.learning-card p {
    color: #a1a1a6;
    line-height: 1.7;
    padding: 0 40px 40px;
}

.devotion-card:hover,
.skill-card:hover,
.learning-card:hover {
    transform: translateY(-15px) rotate(2deg);
    background: rgba(29, 29, 31, 0.8);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.3);
}

.devotion-card:hover .card-header,
.skill-card:hover .card-header,
.learning-card:hover .card-header {
    transform: scale(1.1);
}

.skill-icon {
    font-size: 3em;
}

.github-section {
    text-align: center;
    margin: 60px 0;
    font-size: 1.2em;
}

.github-section a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 2px solid #667eea;
    transition: all 0.3s;
}

.github-section a:hover {
    color: #764ba2;
    border-color: #764ba2;
}

.portfolio-card {
    background: rgba(29, 29, 31, 0.6);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: #f5f5f7;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    background: rgba(29, 29, 31, 0.8);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.card-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.portfolio-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #f5f5f7;
}

.portfolio-card p {
    color: #a1a1a6;
    line-height: 1.6;
}

.content-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: rgba(29, 29, 31, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section h2 {
    color: #f5f5f7;
    margin-bottom: 20px;
    font-size: 2em;
}

.content-section p {
    color: #a1a1a6;
    line-height: 1.8;
    font-size: 1.1em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background: transparent;
    position: relative;
    z-index: 1;
}

h1 {
    text-align: center;
    color: #f5f5f7;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.mandala-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 100px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px;
    background: rgba(29, 29, 31, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cell .icon {
    font-size: 2.5em;
    margin-bottom: 10px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cell:hover .icon {
    transform: scale(1.2) rotate(5deg);
}

.cell:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.cell.empty {
    background: transparent;
    cursor: default;
}

.cell.empty:hover {
    transform: none;
    box-shadow: none;
}

.cell.center {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.3em;
    font-weight: bold;
    cursor: default;
}

.cell.center:hover {
    transform: none;
}

.cell.main {
    color: white;
}

.cell.main small {
    display: block;
    font-size: 0.65em;
    margin-top: 8px;
    opacity: 0.95;
}

.subgoals-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.subgoals-panel.active {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    pointer-events: auto;
}

.subgoals-content {
    background: rgba(29, 29, 31, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    padding: 50px;
    border-radius: 30px;
    max-width: 750px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.subgoals-content::-webkit-scrollbar {
    width: 8px;
}

.subgoals-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.subgoals-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.subgoals-content h3 {
    color: #f5f5f7;
}

.subgoals-panel.active .subgoals-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.subgoals-content h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    color: #f5f5f7;
}

.subgoals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.subgoal-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 18px;
    text-align: center;
    font-size: 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #f5f5f7;
}

.subgoal-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.cell.academics {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.cell.career {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.cell.projects {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.cell.finance {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.cell.health {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.cell.routine {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.timeline {
    margin-top: 100px;
    padding: 60px 0;
}

.timeline h2 {
    text-align: center;
    color: #f5f5f7;
    margin-bottom: 50px;
    font-size: 2.5em;
    font-weight: 700;
}

.scroll-reveal {
    opacity: 0;
}

.scroll-reveal.visible {
    opacity: 1;
}

.scroll-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-item:nth-child(1) { transition-delay: 0.05s; }
.scroll-item:nth-child(2) { transition-delay: 0.1s; }
.scroll-item:nth-child(3) { transition-delay: 0.15s; }
.scroll-item:nth-child(4) { transition-delay: 0.2s; }

.milestone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.milestone {
    background: rgba(29, 29, 31, 0.6);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 24px;
    border-left: 4px solid #667eea;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.milestone:hover {
    transform: translateY(-8px);
    background: rgba(29, 29, 31, 0.8);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.milestone h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 600;
}

.milestone li {
    color: #a1a1a6;
}

.milestone ul {
    list-style: none;
}

.milestone li {
    padding: 10px 0;
    color: #a1a1a6;
    position: relative;
    padding-left: 25px;
    font-size: 0.95em;
}

.milestone li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #43e97b;
    font-weight: bold;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .mandala-grid {
        gap: 5px;
    }
    
    .cell {
        padding: 8px;
        font-size: 0.7em;
    }
    
    .cell.main {
        font-size: 0.85em;
    }
    
    .cell.center {
        font-size: 1em;
    }
}
