/* Theme: Galaxy - Day 7, letter G: Inspired by cosmic nebulae, stellar nurseries, spiral arms, interstellar dust, star clusters, cosmic radiation, deep space voids, gravitational lensing, celestial phenomena, astronomical wonders */

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

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

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

body {
    font-family: 'Exo 2', sans-serif;
    font-size: 17.4px;
    line-height: 1.78;
    color: #0a0e27;
    background: linear-gradient(168deg, #fdfcfb 0%, #faf9f7 14%, #f5f3ee 28%, #ede9e1 42%, #f0ede4 56%, #f7f5f0 70%, #fcfbf9 84%, #fefefd 100%);
    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(circle at 14% 24%, rgba(88, 86, 214, 0.058) 0%, transparent 62%),
        radial-gradient(circle at 86% 76%, rgba(138, 43, 226, 0.052) 0%, transparent 58%),
        radial-gradient(circle at 52% 48%, rgba(147, 51, 234, 0.048) 0%, transparent 54%);
    pointer-events: none;
    z-index: 0;
    animation: cosmicDrift 42s ease-in-out infinite;
}

@keyframes cosmicDrift {
    0%, 100% {
        opacity: 0.68;
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        opacity: 0.86;
        transform: translateY(-22px) rotate(2deg) scale(1.12);
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(62deg, transparent 0px, rgba(88, 86, 214, 0.014) 1px, transparent 2.8px, transparent 152px),
        repeating-linear-gradient(-28deg, transparent 0px, rgba(138, 43, 226, 0.011) 1px, transparent 2.4px, transparent 158px);
    background-size: 156px 162px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.42;
}

#topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 252, 251, 0.91);
    backdrop-filter: blur(38px) saturate(178%);
    border-bottom: 1.8px solid rgba(88, 86, 214, 0.26);
    box-shadow: 0 8px 42px rgba(10, 14, 39, 0.07);
    transition: all 0.52s cubic-bezier(0.19, 0.72, 0.38, 0.94);
}

#topnav.scrolled {
    background: rgba(253, 252, 251, 0.96);
    box-shadow: 0 12px 54px rgba(10, 14, 39, 0.11);
    border-bottom-width: 2.4px;
}

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

.logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.84rem;
    font-weight: 800;
    color: #1e1b4b;
    margin: 0;
    letter-spacing: 3.2px;
    position: relative;
    text-transform: uppercase;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 72px;
    height: 3.2px;
    background: linear-gradient(90deg, #5856d6 0%, #8a2be2 100%);
    border-radius: 2px;
}

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

.nav-menu li a {
    display: block;
    padding: 1.08rem 2.04rem;
    color: #1e1b4b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.96rem;
    transition: all 0.48s cubic-bezier(0.19, 0.72, 0.38, 0.94);
    position: relative;
    letter-spacing: 1.4px;
    border-radius: 14px;
    text-transform: uppercase;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2.4px;
    background: linear-gradient(90deg, #5856d6 0%, #8a2be2 100%);
    transition: width 0.48s ease;
    border-radius: 2px;
}

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

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #5b21b6;
    background: rgba(88, 86, 214, 0.08);
}

.mobile-toggle {
    display: none;
    background: linear-gradient(148deg, #5856d6 0%, #8a2be2 100%);
    border: none;
    color: #fdfcfb;
    font-size: 1.92rem;
    width: 68px;
    height: 68px;
    cursor: pointer;
    transition: all 0.48s ease;
    box-shadow: 0 14px 48px rgba(88, 86, 214, 0.44);
    border-radius: 16px;
}

.mobile-toggle:hover {
    transform: translateY(-5px) rotate(4deg);
    box-shadow: 0 20px 62px rgba(88, 86, 214, 0.56);
}

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

#hero::before {
    content: '';
    position: absolute;
    top: -12%;
    right: -16%;
    width: 820px;
    height: 820px;
    background: radial-gradient(circle, rgba(88, 86, 214, 0.16) 0%, transparent 74%);
    border-radius: 50%;
    animation: stellarPulse 64s ease-in-out infinite;
    filter: blur(108px);
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -18%;
    left: -20%;
    width: 780px;
    height: 780px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.14) 0%, transparent 74%);
    border-radius: 50%;
    animation: stellarPulse 74s ease-in-out infinite reverse;
    filter: blur(108px);
}

@keyframes stellarPulse {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.74;
    }
    38% {
        transform: translate(94px, -108px) scale(1.32);
        opacity: 0.92;
    }
    76% {
        transform: translate(-86px, 98px) scale(0.88);
        opacity: 0.82;
    }
}

.hero-content {
    max-width: 1580px;
    margin: 0 auto;
    padding: 0 6.2rem;
    display: grid;
    grid-template-columns: 1.48fr 1fr;
    gap: 9.6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: nebulaForm 1.84s cubic-bezier(0.19, 0.72, 0.38, 0.94);
}

@keyframes nebulaForm {
    0% {
        opacity: 0;
        transform: translateY(82px) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 6.08rem;
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 4.08rem;
    color: #0a0e27;
    letter-spacing: -1.2px;
}

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

.hero-subtitle {
    font-size: 2.04rem;
    color: #1e1b4b;
    margin-bottom: 5.84rem;
    line-height: 1.68;
    font-weight: 400;
    letter-spacing: 0.28px;
}

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

.btn {
    display: inline-block;
    padding: 1.88rem 5.04rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.58s cubic-bezier(0.19, 0.72, 0.38, 0.94);
    font-size: 1.08rem;
    letter-spacing: 2.4px;
    position: relative;
    overflow: hidden;
    border-radius: 38px;
    text-transform: uppercase;
}

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

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

.btn-primary {
    background: linear-gradient(148deg, #5856d6 0%, #8a2be2 100%);
    color: #fdfcfb;
    box-shadow: 0 22px 74px rgba(88, 86, 214, 0.54);
    border: 3.2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 32px 92px rgba(88, 86, 214, 0.68);
}

.btn-secondary {
    background: rgba(253, 252, 251, 0.98);
    color: #1e1b4b;
    border: 3.2px solid #5856d6;
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.14);
}

.btn-secondary:hover {
    background: rgba(88, 86, 214, 0.14);
    color: #5b21b6;
    border-color: #8a2be2;
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 28px 72px rgba(88, 86, 214, 0.42);
}

.hero-image {
    animation: nebulaForm 1.84s cubic-bezier(0.19, 0.72, 0.38, 0.94) 0.42s both;
}

.profile-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(44px);
    padding: 5.48rem;
    box-shadow: 
        0 42px 118px rgba(10, 14, 39, 0.26),
        inset 0 3.2px 0 rgba(255, 255, 255, 0.98);
    transition: all 0.64s cubic-bezier(0.19, 0.72, 0.38, 0.94);
    position: relative;
    border: 3.2px solid rgba(88, 86, 214, 0.34);
    border-radius: 34px;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 9.6px;
    background: linear-gradient(90deg, #5856d6 0%, #8a2be2 42%, #9333ea 58%, #8a2be2 100%);
    border-radius: 34px 34px 0 0;
}

.profile-card:hover {
    transform: translateY(-26px) scale(1.06);
    box-shadow: 
        0 58px 158px rgba(10, 14, 39, 0.38),
        inset 0 3.2px 0 rgba(255, 255, 255, 1);
}

.profile-card img {
    width: 100%;
    margin-bottom: 4.28rem;
    box-shadow: 0 32px 96px rgba(10, 14, 39, 0.28);
    border: 3.2px solid rgba(138, 43, 226, 0.32);
    border-radius: 26px;
}

.profile-details h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.84rem;
    margin-bottom: 1.32rem;
    color: #0a0e27;
    font-weight: 800;
    letter-spacing: 0.64px;
}

.profile-details p {
    color: #1e1b4b;
    margin-bottom: 4.28rem;
    line-height: 1.68;
    font-weight: 400;
}

.social-links a {
    display: inline-block;
    padding: 1.78rem 4.88rem;
    background: linear-gradient(148deg, #5856d6 0%, #8a2be2 100%);
    color: #fdfcfb;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2.4px;
    transition: all 0.58s cubic-bezier(0.19, 0.72, 0.38, 0.94);
    box-shadow: 0 22px 74px rgba(88, 86, 214, 0.54);
    border-radius: 38px;
    text-transform: uppercase;
}

.social-links a:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 32px 92px rgba(88, 86, 214, 0.68);
}

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

.container {
    max-width: 1580px;
    margin: 0 auto;
    padding: 0 6.2rem;
}

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

.section-header::before {
    content: '✦';
    position: absolute;
    top: -118px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    font-size: 5.28rem;
    color: #5856d6;
    opacity: 0.62;
    animation: starRotate 28s linear infinite;
}

@keyframes starRotate {
    0% { 
        transform: translateX(-50%) scale(1) rotate(0deg); 
        opacity: 0.62; 
    }
    50% { 
        transform: translateX(-50%) scale(1.58) rotate(180deg); 
        opacity: 0.88; 
    }
    100% { 
        transform: translateX(-50%) scale(1) rotate(360deg); 
        opacity: 0.62; 
    }
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 5.88rem;
    font-weight: 900;
    line-height: 1.14;
    color: #0a0e27;
    letter-spacing: 1.8px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -52px;
    left: 50%;
    transform: translateX(-50%);
    width: 168px;
    height: 5.2px;
    background: linear-gradient(90deg, transparent 0%, #5856d6 32%, #8a2be2 50%, #9333ea 68%, transparent 100%);
    border-radius: 4px;
}

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

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

.timeline::before {
    content: '';
    position: absolute;
    left: 248px;
    top: 0;
    bottom: 0;
    width: 5.2px;
    background: linear-gradient(180deg, #5856d6 0%, #8a2be2 50%, #9333ea 100%);
    opacity: 0.72;
    border-radius: 4px;
}

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

.timeline-year {
    font-family: 'Orbitron', sans-serif;
    font-size: 6.08rem;
    font-weight: 900;
    color: #1e1b4b;
    position: relative;
    z-index: 2;
    text-align: right;
    padding-right: 6.08rem;
    letter-spacing: 1.2px;
}

.timeline-year::after {
    content: '';
    position: absolute;
    right: -108px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: linear-gradient(148deg, #5856d6 0%, #8a2be2 100%);
    border-radius: 50%;
    border: 9.6px solid rgba(253, 252, 251, 0.99);
    box-shadow: 
        0 0 0 22px rgba(88, 86, 214, 0.32),
        0 16px 58px rgba(88, 86, 214, 0.62);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(44px);
    padding: 6.48rem;
    transition: all 0.58s cubic-bezier(0.19, 0.72, 0.38, 0.94);
    box-shadow: 0 38px 108px rgba(10, 14, 39, 0.22);
    border: 3.2px solid rgba(88, 86, 214, 0.28);
    border-radius: 30px;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8.4px;
    background: linear-gradient(180deg, #5856d6 0%, #8a2be2 100%);
    border-radius: 30px 0 0 30px;
}

.timeline-content:hover {
    transform: translateX(36px);
    box-shadow: 0 52px 138px rgba(10, 14, 39, 0.34);
}

.timeline-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.84rem;
    margin-bottom: 1.32rem;
    color: #0a0e27;
    font-weight: 800;
    letter-spacing: 0.64px;
}

.timeline-content h4 {
    color: #1e1b4b;
    font-size: 2.04rem;
    margin-bottom: 3.28rem;
    font-weight: 600;
    letter-spacing: 0.48px;
}

.timeline-content p {
    color: #1e1b4b;
    line-height: 1.78;
    margin: 0;
}

.timeline-content a {
    color: #1e1b4b;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3.2px solid transparent;
    transition: all 0.48s ease;
}

.timeline-content a:hover {
    border-bottom-color: #8a2be2;
}

#ai {
    background: linear-gradient(180deg, rgba(245, 243, 238, 0.72) 0%, rgba(253, 252, 251, 0.72) 100%);
    backdrop-filter: blur(48px);
}

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

.project-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(44px);
    padding: 8.08rem;
    transition: all 0.58s cubic-bezier(0.19, 0.72, 0.38, 0.94);
    position: relative;
    box-shadow: 0 42px 118px rgba(10, 14, 39, 0.24);
    border: 3.2px solid rgba(88, 86, 214, 0.32);
    border-radius: 34px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 9.6px;
    background: linear-gradient(90deg, #5856d6 0%, #8a2be2 32%, #9333ea 52%, #8a2be2 72%, #5856d6 100%);
    border-radius: 34px 34px 0 0;
}

.project-card:hover {
    transform: translateY(-26px);
    box-shadow: 0 58px 148px rgba(10, 14, 39, 0.36);
}

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

.project-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 5.08rem;
    color: #0a0e27;
    margin: 0;
    font-weight: 900;
    letter-spacing: 0.88px;
}

.project-client {
    color: #1e1b4b;
    font-weight: 600;
    font-size: 2.04rem;
    margin-bottom: 4.88rem;
    letter-spacing: 0.48px;
}

.project-card > p {
    color: #1e1b4b;
    line-height: 1.78;
    margin-bottom: 5.84rem;
}

.project-impact {
    background: linear-gradient(148deg, rgba(88, 86, 214, 0.12) 0%, rgba(138, 43, 226, 0.09) 100%);
    padding: 4.88rem;
    color: #0a0e27;
    line-height: 1.78;
    border-radius: 26px;
    border-left: 8.4px solid #5856d6;
}

.project-impact strong {
    color: #1e1b4b;
    font-weight: 700;
}

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

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

.year-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(44px);
    padding: 6.48rem;
    transition: all 0.58s cubic-bezier(0.19, 0.72, 0.38, 0.94);
    box-shadow: 0 42px 118px rgba(10, 14, 39, 0.22);
    border: 3.2px solid rgba(88, 86, 214, 0.32);
    border-radius: 30px;
}

.year-section:hover {
    transform: translateY(-26px);
    box-shadow: 0 56px 142px rgba(10, 14, 39, 0.34);
}

.year-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 5.68rem;
    margin-bottom: 5.84rem;
    color: #1e1b4b;
    text-align: center;
    padding-bottom: 4.88rem;
    border-bottom: 3.2px solid rgba(88, 86, 214, 0.36);
    font-weight: 900;
    letter-spacing: 1.2px;
}

.year-section.books {
    grid-column: span 2;
    background: linear-gradient(148deg, #5856d6 0%, #8a2be2 100%);
    border: none;
    box-shadow: 0 56px 142px rgba(88, 86, 214, 0.72);
}

.year-section.books h3 {
    color: #fdfcfb;
    border-bottom-color: rgba(253, 252, 251, 0.44);
}

.achievements {
    list-style: none;
}

.achievements li {
    padding: 3.08rem 0;
    color: #1e1b4b;
    border-bottom: 3.2px solid rgba(88, 86, 214, 0.26);
    line-height: 1.78;
    position: relative;
    padding-left: 6.08rem;
}

.achievements li::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 3.08rem;
    color: #5856d6;
    font-size: 3.28rem;
    font-weight: 400;
}

.year-section.books .achievements li {
    color: rgba(253, 252, 251, 0.98);
    border-bottom-color: rgba(253, 252, 251, 0.38);
}

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

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

.achievements strong {
    color: #0a0e27;
    font-weight: 700;
}

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

#personal {
    background: linear-gradient(180deg, rgba(253, 252, 251, 0.72) 0%, rgba(245, 243, 238, 0.84) 100%);
    backdrop-filter: blur(48px);
}

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

.contact-card {
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(52px);
    padding: 13.08rem 12.48rem;
    text-align: center;
    box-shadow: 0 64px 172px rgba(10, 14, 39, 0.36);
    max-width: 1520px;
    margin: 0 auto;
    border: 3.8px solid rgba(88, 86, 214, 0.42);
    position: relative;
    border-radius: 42px;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 13.6px;
    background: linear-gradient(90deg, transparent 0%, #5856d6 22%, #8a2be2 38%, #9333ea 50%, #8a2be2 62%, #5856d6 78%, transparent 100%);
    border-radius: 42px 42px 0 0;
}

.contact-card h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 8.28rem;
    margin-bottom: 6.08rem;
    color: #0a0e27;
    font-weight: 900;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.contact-card > p {
    font-size: 2.04rem;
    color: #1e1b4b;
    line-height: 1.78;
    margin-bottom: 9.24rem;
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 3.28rem;
    padding: 3.88rem 8.48rem;
    background: linear-gradient(148deg, #5856d6 0%, #8a2be2 100%);
    color: #fdfcfb;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2.4px;
    transition: all 0.58s cubic-bezier(0.19, 0.72, 0.38, 0.94);
    box-shadow: 0 42px 118px rgba(88, 86, 214, 0.68);
    position: relative;
    overflow: hidden;
    border-radius: 38px;
    text-transform: uppercase;
}

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

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

.contact-link:hover {
    transform: translateY(-14px);
    box-shadow: 0 58px 158px rgba(88, 86, 214, 0.84);
}

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

#footer {
    background: linear-gradient(148deg, #0a0e27 0%, #1e1b4b 100%);
    backdrop-filter: blur(44px);
    padding: 9.24rem 0;
    text-align: center;
    color: rgba(253, 252, 251, 0.92);
    border-top: 3.8px solid rgba(88, 86, 214, 0.48);
}

#footer a {
    color: #9333ea;
    text-decoration: none;
    transition: color 0.48s ease;
    font-weight: 600;
}

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

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

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

    .hero-image {
        max-width: 760px;
        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 4.4rem;
        height: 92px;
    }

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

    .nav-menu {
        position: fixed;
        top: 92px;
        left: 0;
        right: 0;
        background: rgba(253, 252, 251, 0.99);
        backdrop-filter: blur(52px);
        flex-direction: column;
        padding: 9.24rem;
        gap: 0;
        box-shadow: 0 52px 138px rgba(10, 14, 39, 0.48);
        transform: translateY(-150%);
        transition: transform 0.62s cubic-bezier(0.19, 0.72, 0.38, 0.94);
        border-bottom: 3.8px solid rgba(88, 86, 214, 0.42);
    }

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

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

    .nav-menu li a {
        width: 100%;
        text-align: center;
        padding: 2.64rem;
        border-bottom: 3.2px solid rgba(88, 86, 214, 0.26);
    }

    .mobile-toggle {
        display: block;
    }

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

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

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

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 6.08rem;
        margin-bottom: 10.28rem;
        padding-left: 13.08rem;
    }

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

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

    .contact-card {
        padding: 12.48rem 9.24rem;
    }
}

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

    .nav-container {
        padding: 0 3.88rem;
        height: 86px;
    }

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

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

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

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

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

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

    section {
        padding: 128px 0;
    }

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

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

    .profile-card {
        padding: 5.48rem;
    }

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

    .timeline-content {
        padding: 5.48rem;
    }

    .project-card {
        padding: 6.88rem 5.48rem;
    }

    .contact-card {
        padding: 10.28rem 5.48rem;
    }

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

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

    .contact-link {
        justify-content: center;
        padding: 2.64rem 5.48rem;
        font-size: 0.96rem;
    }
}