/* Theme: Iridescent - Day 9, letter I: Inspired by soap bubbles, oil slicks, holographic surfaces, prismatic light, color-shifting materials, pearlescent finishes, aurora borealis, opal gemstones, metallic sheens, rainbow reflections */

@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@300;400;500;600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 16.2px;
    line-height: 1.72;
    color: #1a1625;
    background: linear-gradient(172deg, #fefeff 0%, #fbfbfd 12%, #f9f8fc 24%, #f6f5fa 36%, #f8f7fb 48%, #faf9fc 60%, #fcfbfd 72%, #fdfcfe 84%, #fefeff 96%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse at 18% 12%, rgba(147, 51, 234, 0.038) 0%, transparent 48%),
        radial-gradient(ellipse at 82% 88%, rgba(59, 130, 246, 0.042) 0%, transparent 52%),
        radial-gradient(ellipse at 46% 54%, rgba(168, 85, 247, 0.034) 0%, transparent 46%),
        radial-gradient(ellipse at 64% 28%, rgba(99, 102, 241, 0.036) 0%, transparent 44%);
    pointer-events: none;
    z-index: 0;
    animation: shimmer 38s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.62;
        transform: translate(0, 0) scale(1);
    }
    33% {
        opacity: 0.78;
        transform: translate(12px, -14px) scale(1.04);
    }
    66% {
        opacity: 0.72;
        transform: translate(-8px, 18px) scale(0.98);
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(72deg, transparent 0px, rgba(147, 51, 234, 0.011) 1px, transparent 1.8px, transparent 128px),
        repeating-linear-gradient(-18deg, transparent 0px, rgba(59, 130, 246, 0.009) 1px, transparent 1.6px, transparent 134px);
    background-size: 130px 136px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.36;
}

#topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 254, 255, 0.88);
    backdrop-filter: blur(26px) saturate(162%);
    border-bottom: 1.4px solid rgba(147, 51, 234, 0.18);
    box-shadow: 0 4px 32px rgba(26, 22, 37, 0.05);
    transition: all 0.42s cubic-bezier(0.25, 0.62, 0.38, 0.92);
}

#topnav.scrolled {
    background: rgba(254, 254, 255, 0.94);
    box-shadow: 0 8px 42px rgba(26, 22, 37, 0.09);
    border-bottom-width: 2.2px;
}

.nav-container {
    max-width: 1460px;
    margin: 0 auto;
    padding: 0 4.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 88px;
}

.logo h1 {
    font-family: 'Urbanist', sans-serif;
    font-size: 1.54rem;
    font-weight: 700;
    color: #1a1625;
    margin: 0;
    letter-spacing: -0.28px;
    position: relative;
    background: linear-gradient(124deg, #9333ea 0%, #3b82f6 48%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 42px;
    height: 2.2px;
    background: linear-gradient(90deg, #9333ea 0%, #3b82f6 100%);
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.4rem;
}

.nav-menu li a {
    display: block;
    padding: 0.78rem 1.48rem;
    color: #1a1625;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.36s cubic-bezier(0.25, 0.62, 0.38, 0.92);
    position: relative;
    letter-spacing: 0.32px;
    border-radius: 12px;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #9333ea 0%, #3b82f6 100%);
    transition: width 0.36s ease;
    border-radius: 2px;
}

.nav-menu li a:hover::before,
.nav-menu li a.active::before {
    width: 58%;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #9333ea;
    background: rgba(147, 51, 234, 0.06);
}

.mobile-toggle {
    display: none;
    background: linear-gradient(124deg, #9333ea 0%, #3b82f6 100%);
    border: none;
    color: #fefeff;
    font-size: 1.68rem;
    width: 58px;
    height: 58px;
    cursor: pointer;
    transition: all 0.36s ease;
    box-shadow: 0 8px 32px rgba(147, 51, 234, 0.32);
    border-radius: 14px;
}

.mobile-toggle:hover {
    transform: translateY(-3px) rotate(-2deg);
    box-shadow: 0 12px 42px rgba(147, 51, 234, 0.42);
}

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 152px 0 124px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -14%;
    right: -18%;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.12) 0%, transparent 68%);
    border-radius: 50%;
    animation: prismFloat 48s ease-in-out infinite;
    filter: blur(84px);
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -16%;
    left: -22%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 68%);
    border-radius: 50%;
    animation: prismFloat 58s ease-in-out infinite reverse;
    filter: blur(84px);
}

@keyframes prismFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.68;
    }
    32% {
        transform: translate(64px, -78px) scale(1.18);
        opacity: 0.82;
    }
    68% {
        transform: translate(-58px, 68px) scale(0.88);
        opacity: 0.74;
    }
}

.hero-content {
    max-width: 1460px;
    margin: 0 auto;
    padding: 0 4.2rem;
    display: grid;
    grid-template-columns: 1.24fr 1fr;
    gap: 6.8rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeSlide 1.42s cubic-bezier(0.25, 0.62, 0.38, 0.92);
}

@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateY(58px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-text h1 {
    font-family: 'Urbanist', sans-serif;
    font-size: 4.48rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 2.88rem;
    color: #1a1625;
    letter-spacing: -0.68px;
}

.hero-text h1 br {
    display: block;
}

.hero-subtitle {
    font-size: 1.58rem;
    color: #38324a;
    margin-bottom: 4.12rem;
    line-height: 1.68;
    font-weight: 500;
    letter-spacing: 0.18px;
}

.hero-buttons {
    display: flex;
    gap: 2.28rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1.38rem 3.48rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.44s cubic-bezier(0.25, 0.62, 0.38, 0.92);
    font-size: 0.96rem;
    letter-spacing: 0.42px;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    transition: left 0.62s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(124deg, #9333ea 0%, #3b82f6 100%);
    color: #fefeff;
    box-shadow: 0 14px 52px rgba(147, 51, 234, 0.38);
    border: 2.2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 64px rgba(147, 51, 234, 0.48);
}

.btn-secondary {
    background: rgba(254, 254, 255, 0.98);
    color: #38324a;
    border: 2.2px solid #9333ea;
    box-shadow: 0 10px 38px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    background: rgba(147, 51, 234, 0.12);
    color: #9333ea;
    border-color: #3b82f6;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px rgba(147, 51, 234, 0.28);
}

.hero-image {
    animation: fadeSlide 1.42s cubic-bezier(0.25, 0.62, 0.38, 0.92) 0.28s both;
}

.profile-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(32px);
    padding: 3.88rem;
    box-shadow: 
        0 24px 78px rgba(26, 22, 37, 0.16),
        inset 0 2.2px 0 rgba(255, 255, 255, 0.96);
    transition: all 0.48s cubic-bezier(0.25, 0.62, 0.38, 0.92);
    position: relative;
    border: 2.2px solid rgba(147, 51, 234, 0.22);
    border-radius: 22px;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6.2px;
    background: linear-gradient(90deg, #9333ea 0%, #3b82f6 32%, #a855f7 64%, #3b82f6 100%);
    border-radius: 22px 22px 0 0;
}

.profile-card:hover {
    transform: translateY(-14px) scale(1.03);
    box-shadow: 
        0 34px 102px rgba(26, 22, 37, 0.24),
        inset 0 2.2px 0 rgba(255, 255, 255, 1);
}

.profile-card img {
    width: 100%;
    margin-bottom: 2.88rem;
    box-shadow: 0 18px 62px rgba(26, 22, 37, 0.18);
    border: 2.2px solid rgba(168, 85, 247, 0.24);
    border-radius: 18px;
}

.profile-details h3 {
    font-family: 'Urbanist', sans-serif;
    font-size: 2.68rem;
    margin-bottom: 0.88rem;
    color: #1a1625;
    font-weight: 800;
    letter-spacing: -0.32px;
}

.profile-details p {
    color: #38324a;
    margin-bottom: 2.88rem;
    line-height: 1.68;
    font-weight: 500;
}

.social-links a {
    display: inline-block;
    padding: 1.28rem 3.32rem;
    background: linear-gradient(124deg, #9333ea 0%, #3b82f6 100%);
    color: #fefeff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.42px;
    transition: all 0.44s cubic-bezier(0.25, 0.62, 0.38, 0.92);
    box-shadow: 0 14px 52px rgba(147, 51, 234, 0.38);
    border-radius: 24px;
}

.social-links a:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 64px rgba(147, 51, 234, 0.48);
}

section {
    padding: 118px 0;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1460px;
    margin: 0 auto;
    padding: 0 4.2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 6.84rem;
    position: relative;
}

.section-header::before {
    content: '◇';
    position: absolute;
    top: -78px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    font-size: 3.72rem;
    color: #9333ea;
    opacity: 0.58;
    animation: refract 22s ease-in-out infinite;
}

@keyframes refract {
    0%, 100% { 
        transform: translateX(-50%) scale(1) rotate(0deg); 
        opacity: 0.58; 
    }
    50% { 
        transform: translateX(-50%) scale(1.32) rotate(45deg); 
        opacity: 0.78; 
    }
}

.section-header h2 {
    font-family: 'Urbanist', sans-serif;
    font-size: 4.28rem;
    font-weight: 800;
    line-height: 1.16;
    color: #1a1625;
    letter-spacing: -0.48px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -34px;
    left: 50%;
    transform: translateX(-50%);
    width: 124px;
    height: 3.8px;
    background: linear-gradient(90deg, transparent 0%, #9333ea 22%, #3b82f6 50%, #a855f7 78%, transparent 100%);
    border-radius: 3px;
}

#experience {
    background: rgba(255, 255, 255, 0.64);
    backdrop-filter: blur(36px);
}

.timeline {
    position: relative;
    max-width: 1360px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 198px;
    top: 0;
    bottom: 0;
    width: 3.8px;
    background: linear-gradient(180deg, #9333ea 0%, #3b82f6 50%, #a855f7 100%);
    opacity: 0.64;
    border-radius: 3px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 378px 1fr;
    gap: 6.42rem;
    margin-bottom: 6.42rem;
    position: relative;
}

.timeline-year {
    font-family: 'Urbanist', sans-serif;
    font-size: 4.12rem;
    font-weight: 800;
    color: #38324a;
    position: relative;
    z-index: 2;
    text-align: right;
    padding-right: 4.28rem;
    letter-spacing: -0.42px;
}

.timeline-year::after {
    content: '';
    position: absolute;
    right: -78px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: linear-gradient(124deg, #9333ea 0%, #3b82f6 100%);
    border-radius: 50%;
    border: 6.4px solid rgba(254, 254, 255, 0.98);
    box-shadow: 
        0 0 0 14px rgba(147, 51, 234, 0.22),
        0 12px 42px rgba(147, 51, 234, 0.48);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(32px);
    padding: 4.48rem;
    transition: all 0.44s cubic-bezier(0.25, 0.62, 0.38, 0.92);
    box-shadow: 0 22px 68px rgba(26, 22, 37, 0.14);
    border: 2.2px solid rgba(147, 51, 234, 0.18);
    border-radius: 20px;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5.8px;
    background: linear-gradient(180deg, #9333ea 0%, #3b82f6 100%);
    border-radius: 20px 0 0 20px;
}

.timeline-content:hover {
    transform: translateX(22px);
    box-shadow: 0 30px 88px rgba(26, 22, 37, 0.22);
}

.timeline-content h3 {
    font-family: 'Urbanist', sans-serif;
    font-size: 2.68rem;
    margin-bottom: 0.88rem;
    color: #1a1625;
    font-weight: 800;
    letter-spacing: -0.32px;
}

.timeline-content h4 {
    color: #38324a;
    font-size: 1.58rem;
    margin-bottom: 2.18rem;
    font-weight: 600;
    letter-spacing: 0.12px;
}

.timeline-content p {
    color: #38324a;
    line-height: 1.72;
    margin: 0;
}

.timeline-content a {
    color: #38324a;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2.2px solid transparent;
    transition: all 0.36s ease;
}

.timeline-content a:hover {
    border-bottom-color: #3b82f6;
    color: #9333ea;
}

#ai {
    background: linear-gradient(180deg, rgba(249, 248, 252, 0.64) 0%, rgba(254, 254, 255, 0.64) 100%);
    backdrop-filter: blur(36px);
}

.ai-projects {
    display: grid;
    gap: 6.24rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(32px);
    padding: 5.68rem;
    transition: all 0.44s cubic-bezier(0.25, 0.62, 0.38, 0.92);
    position: relative;
    box-shadow: 0 24px 72px rgba(26, 22, 37, 0.16);
    border: 2.2px solid rgba(147, 51, 234, 0.22);
    border-radius: 22px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6.2px;
    background: linear-gradient(90deg, #9333ea 0%, #3b82f6 24%, #a855f7 48%, #3b82f6 72%, #9333ea 100%);
    border-radius: 22px 22px 0 0;
}

.project-card:hover {
    transform: translateY(-14px);
    box-shadow: 0 34px 96px rgba(26, 22, 37, 0.24);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 3.28rem;
    margin-bottom: 2.18rem;
}

.project-header h3 {
    font-family: 'Urbanist', sans-serif;
    font-size: 3.52rem;
    color: #1a1625;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.38px;
}

.project-client {
    color: #38324a;
    font-weight: 600;
    font-size: 1.58rem;
    margin-bottom: 3.48rem;
    letter-spacing: 0.12px;
}

.project-card > p {
    color: #38324a;
    line-height: 1.72;
    margin-bottom: 4.08rem;
}

.project-impact {
    background: linear-gradient(124deg, rgba(147, 51, 234, 0.1) 0%, rgba(59, 130, 246, 0.07) 100%);
    padding: 3.28rem;
    color: #1a1625;
    line-height: 1.72;
    border-radius: 16px;
    border-left: 5.8px solid #9333ea;
}

.project-impact strong {
    color: #38324a;
    font-weight: 700;
}

#speaking {
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(36px);
}

.speaking-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6.24rem;
}

.year-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(32px);
    padding: 4.48rem;
    transition: all 0.44s cubic-bezier(0.25, 0.62, 0.38, 0.92);
    box-shadow: 0 24px 72px rgba(26, 22, 37, 0.14);
    border: 2.2px solid rgba(147, 51, 234, 0.22);
    border-radius: 20px;
}

.year-section:hover {
    transform: translateY(-14px);
    box-shadow: 0 32px 92px rgba(26, 22, 37, 0.22);
}

.year-section h3 {
    font-family: 'Urbanist', sans-serif;
    font-size: 4.08rem;
    margin-bottom: 4.08rem;
    color: #38324a;
    text-align: center;
    padding-bottom: 3.28rem;
    border-bottom: 2.2px solid rgba(147, 51, 234, 0.24);
    font-weight: 800;
    letter-spacing: -0.42px;
}

.year-section.books {
    grid-column: span 2;
    background: linear-gradient(124deg, #9333ea 0%, #3b82f6 100%);
    border: none;
    box-shadow: 0 32px 92px rgba(147, 51, 234, 0.54);
}

.year-section.books h3 {
    color: #fefeff;
    border-bottom-color: rgba(254, 254, 255, 0.32);
}

.achievements {
    list-style: none;
}

.achievements li {
    padding: 2.08rem 0;
    color: #38324a;
    border-bottom: 2.2px solid rgba(147, 51, 234, 0.18);
    line-height: 1.72;
    position: relative;
    padding-left: 4.28rem;
}

.achievements li::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 2.08rem;
    color: #9333ea;
    font-size: 2.28rem;
    font-weight: 400;
}

.year-section.books .achievements li {
    color: rgba(254, 254, 255, 0.98);
    border-bottom-color: rgba(254, 254, 255, 0.28);
}

.year-section.books .achievements li::before {
    color: #fefeff;
}

.achievements li:last-child {
    border-bottom: none;
}

.achievements strong {
    color: #1a1625;
    font-weight: 700;
}

.year-section.books .achievements strong {
    color: #fefeff;
}

#personal {
    background: linear-gradient(180deg, rgba(254, 254, 255, 0.64) 0%, rgba(249, 248, 252, 0.76) 100%);
    backdrop-filter: blur(36px);
}

#contact {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(36px);
}

.contact-card {
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(38px);
    padding: 9.28rem 8.88rem;
    text-align: center;
    box-shadow: 0 42px 118px rgba(26, 22, 37, 0.22);
    max-width: 1400px;
    margin: 0 auto;
    border: 2.8px solid rgba(147, 51, 234, 0.28);
    position: relative;
    border-radius: 30px;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8.8px;
    background: linear-gradient(90deg, transparent 0%, #9333ea 18%, #3b82f6 34%, #a855f7 50%, #3b82f6 66%, #9333ea 82%, transparent 100%);
    border-radius: 30px 30px 0 0;
}

.contact-card h2 {
    font-family: 'Urbanist', sans-serif;
    font-size: 5.88rem;
    margin-bottom: 4.28rem;
    color: #1a1625;
    font-weight: 800;
    letter-spacing: -0.68px;
}

.contact-card > p {
    font-size: 1.58rem;
    color: #38324a;
    line-height: 1.72;
    margin-bottom: 6.48rem;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 4.08rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 2.18rem;
    padding: 2.68rem 5.88rem;
    background: linear-gradient(124deg, #9333ea 0%, #3b82f6 100%);
    color: #fefeff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.42px;
    transition: all 0.44s cubic-bezier(0.25, 0.62, 0.38, 0.92);
    box-shadow: 0 24px 72px rgba(147, 51, 234, 0.48);
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    transition: left 0.62s ease;
}

.contact-link:hover::before {
    left: 100%;
}

.contact-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 34px 102px rgba(147, 51, 234, 0.62);
}

.contact-link .icon {
    font-size: 2.68rem;
}

#footer {
    background: linear-gradient(124deg, #1a1625 0%, #38324a 100%);
    backdrop-filter: blur(32px);
    padding: 6.48rem 0;
    text-align: center;
    color: rgba(254, 254, 255, 0.88);
    border-top: 2.8px solid rgba(147, 51, 234, 0.38);
}

#footer a {
    color: #a855f7;
    text-decoration: none;
    transition: color 0.36s ease;
    font-weight: 600;
}

#footer a:hover {
    color: #fefeff;
}

@media screen and (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 7.28rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 620px;
        margin: 0 auto;
    }

    .speaking-grid {
        grid-template-columns: 1fr;
    }

    .year-section.books {
        grid-column: span 1;
    }
}

@media screen and (max-width: 900px) {
    .nav-container {
        padding: 0 3.2rem;
        height: 84px;
    }

    html {
        scroll-padding-top: 84px;
    }

    .nav-menu {
        position: fixed;
        top: 84px;
        left: 0;
        right: 0;
        background: rgba(254, 254, 255, 0.99);
        backdrop-filter: blur(38px);
        flex-direction: column;
        padding: 6.48rem;
        gap: 0;
        box-shadow: 0 32px 92px rgba(26, 22, 37, 0.38);
        transform: translateY(-150%);
        transition: transform 0.44s cubic-bezier(0.25, 0.62, 0.38, 0.92);
        border-bottom: 2.8px solid rgba(147, 51, 234, 0.32);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        width: 100%;
        text-align: center;
        padding: 1.88rem;
        border-bottom: 2.2px solid rgba(147, 51, 234, 0.18);
    }

    .mobile-toggle {
        display: block;
    }

    .hero-text h1 {
        font-size: 3.92rem;
    }

    .section-header h2 {
        font-size: 3.72rem;
    }

    .timeline::before {
        left: 48px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 4.28rem;
        margin-bottom: 7.28rem;
        padding-left: 9.28rem;
    }

    .timeline-year {
        text-align: left;
        padding-right: 0;
    }

    .timeline-year::after {
        left: -78px;
        right: auto;
    }

    .contact-card {
        padding: 8.88rem 6.48rem;
    }
}

@media screen and (max-width: 600px) {
    .container {
        padding: 0 2.88rem;
    }

    .nav-container {
        padding: 0 2.88rem;
        height: 78px;
    }

    html {
        scroll-padding-top: 78px;
    }

    #hero {
        padding: 128px 0 96px;
    }

    .hero-text h1 {
        font-size: 3.28rem;
    }

    .hero-subtitle {
        font-size: 1.32rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 92px 0;
    }

    .section-header {
        margin-bottom: 6.48rem;
    }

    .section-header h2 {
        font-size: 3.28rem;
    }

    .profile-card {
        padding: 3.88rem;
    }

    .timeline-item {
        padding-left: 6.48rem;
    }

    .timeline-content {
        padding: 3.88rem;
    }

    .project-card {
        padding: 4.88rem 3.88rem;
    }

    .contact-card {
        padding: 7.28rem 3.88rem;
    }

    .contact-card h2 {
        font-size: 3.92rem;
    }

    .contact-info {
        flex-direction: column;
    }

    .contact-link {
        justify-content: center;
        padding: 1.88rem 3.88rem;
        font-size: 0.88rem;
    }
}