/* Theme: Seafaring - Day 19 (Letter S): Inspired by maritime adventures, ocean waves, nautical instruments, sailing vessels, coastal harbors, navigational charts, sea breezes, lighthouse beacons, ship voyages, maritime heritage */

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

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

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

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 18.2px;
    line-height: 1.82;
    color: #1c3a52;
    background: linear-gradient(168deg, #fdfeff 0%, #f7fcff 20%, #eef7fc 45%, #f2f9fd 70%, #fcfeff 100%);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 18%, rgba(37, 99, 145, 0.052) 0%, transparent 62%),
        radial-gradient(circle at 75% 82%, rgba(64, 142, 181, 0.045) 0%, transparent 58%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 110px, rgba(37, 99, 145, 0.015) 110px, rgba(37, 99, 145, 0.015) 112px),
        repeating-linear-gradient(90deg, transparent, transparent 110px, rgba(37, 99, 145, 0.015) 110px, rgba(37, 99, 145, 0.015) 112px);
    pointer-events: none;
    z-index: 0;
}

#topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 254, 255, 0.91);
    backdrop-filter: blur(22px);
    border-bottom: 3px solid rgba(37, 99, 145, 0.18);
    box-shadow: 0 6px 32px rgba(28, 58, 82, 0.09);
    transition: all 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#topnav.scrolled {
    background: rgba(253, 254, 255, 0.96);
    box-shadow: 0 10px 42px rgba(28, 58, 82, 0.16);
    border-bottom-color: rgba(37, 99, 145, 0.32);
}

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

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.12rem;
    font-weight: 800;
    color: #1c3a52;
    margin: 0;
    letter-spacing: 0.85px;
    position: relative;
    padding-left: 4.05rem;
}

.logo h1::before {
    content: '⚓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 2.55rem;
    color: #256391;
    animation: seafaringSway 7.5s ease-in-out infinite;
}

@keyframes seafaringSway {
    0%, 100% {
        transform: translateY(-50%) rotate(-12deg);
        opacity: 0.88;
    }
    25% {
        transform: translateY(-50%) rotate(8deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-50%) rotate(-10deg);
        opacity: 0.92;
    }
    75% {
        transform: translateY(-50%) rotate(6deg);
        opacity: 1;
    }
}

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

.nav-menu li a {
    display: block;
    padding: 1.18rem 2.55rem;
    color: #1c3a52;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.96rem;
    transition: all 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    letter-spacing: 1.12px;
    text-transform: uppercase;
    border: 2px solid transparent;
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 145, 0.095);
    opacity: 0;
    transition: opacity 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #256391 0%, #408eb5 100%);
    transition: width 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-menu li a:hover::before,
.nav-menu li a.active::before {
    opacity: 1;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #256391;
    border-color: rgba(37, 99, 145, 0.28);
}

.mobile-toggle {
    display: none;
    background: linear-gradient(135deg, #256391 0%, #408eb5 100%);
    border: none;
    color: #fdfeff;
    font-size: 1.92rem;
    width: 62px;
    height: 62px;
    cursor: pointer;
    transition: all 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
    box-shadow: 0 12px 38px rgba(37, 99, 145, 0.38);
}

.mobile-toggle:hover {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 16px 48px rgba(37, 99, 145, 0.5);
}

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

#hero::before {
    content: '';
    position: absolute;
    top: -55%;
    right: -42%;
    width: 1120px;
    height: 1120px;
    background: radial-gradient(circle, rgba(37, 99, 145, 0.13) 0%, transparent 70%);
    animation: seafaringWaves 58s ease-in-out infinite;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -52%;
    left: -38%;
    width: 1050px;
    height: 1050px;
    background: radial-gradient(circle, rgba(64, 142, 181, 0.11) 0%, transparent 70%);
    animation: seafaringWaves 68s ease-in-out infinite reverse;
}

@keyframes seafaringWaves {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.72;
    }
    35% {
        transform: translate(92px, -82px) rotate(8deg) scale(1.15);
        opacity: 0.98;
    }
    70% {
        transform: translate(-82px, 92px) rotate(-8deg) scale(0.95);
        opacity: 0.85;
    }
}

.hero-content {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 4.65rem;
    display: grid;
    grid-template-columns: 1.52fr 1fr;
    gap: 9.2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: seafaringRise 1.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s both;
}

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

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 6.85rem;
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 3.65rem;
    color: #1c3a52;
    letter-spacing: -2.05px;
}

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

.hero-subtitle {
    font-size: 1.85rem;
    color: #3a5f7a;
    margin-bottom: 5.05rem;
    line-height: 1.72;
    font-weight: 500;
    letter-spacing: 0.45px;
}

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

.btn {
    display: inline-block;
    padding: 1.78rem 4.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.48s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 1.15rem;
    letter-spacing: 1.85px;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    border: 3px solid transparent;
    clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.28);
    transform: translate(-50%, -50%);
    transition: width 0.95s, height 0.95s;
    border-radius: 50%;
}

.btn:hover::before {
    width: 580px;
    height: 580px;
}

.btn-primary {
    background: linear-gradient(135deg, #256391 0%, #408eb5 100%);
    color: #fdfeff;
    box-shadow: 0 18px 62px rgba(37, 99, 145, 0.42);
}

.btn-primary:hover {
    transform: translateY(-7px);
    box-shadow: 0 26px 78px rgba(37, 99, 145, 0.56);
    background: linear-gradient(135deg, #1e4e74 0%, #35789a 100%);
}

.btn-secondary {
    background: rgba(253, 254, 255, 0.96);
    color: #256391;
    border: 3px solid #256391;
    box-shadow: 0 16px 52px rgba(37, 99, 145, 0.28);
}

.btn-secondary:hover {
    background: #256391;
    color: #fdfeff;
    border-color: #256391;
    transform: translateY(-7px);
    box-shadow: 0 22px 65px rgba(37, 99, 145, 0.42);
}

.hero-image {
    animation: seafaringRise 1.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.38s both;
}

.profile-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(32px);
    padding: 3.75rem;
    box-shadow: 
        0 0 0 4px rgba(37, 99, 145, 0.2),
        0 32px 98px rgba(28, 58, 82, 0.19);
    transition: all 0.58s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    clip-path: polygon(4% 0%, 100% 0%, 96% 100%, 0% 100%);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, #256391 0%, #408eb5 30%, #256391 60%, #408eb5 100%);
}

.profile-card::after {
    content: '⚓';
    position: absolute;
    bottom: 52px;
    right: 52px;
    font-size: 8.5rem;
    color: rgba(37, 99, 145, 0.055);
}

.profile-card:hover {
    transform: translateY(-20px) scale(1.028);
    box-shadow: 
        0 0 0 4px rgba(37, 99, 145, 0.38),
        0 48px 128px rgba(28, 58, 82, 0.28);
}

.profile-card img {
    width: 100%;
    margin-bottom: 3.05rem;
    box-shadow: 0 28px 78px rgba(28, 58, 82, 0.22);
    clip-path: polygon(3% 0%, 100% 0%, 97% 100%, 0% 100%);
}

.profile-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 3.45rem;
    margin-bottom: 1.22rem;
    color: #1c3a52;
    font-weight: 800;
    letter-spacing: -0.62px;
}

.profile-details p {
    color: #3a5f7a;
    margin-bottom: 3.15rem;
    line-height: 1.72;
    font-weight: 500;
}

.social-links a {
    display: inline-block;
    padding: 1.65rem 4.05rem;
    background: linear-gradient(135deg, #408eb5 0%, #256391 100%);
    color: #fdfeff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1.85px;
    transition: all 0.48s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
    box-shadow: 0 18px 62px rgba(64, 142, 181, 0.42);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.social-links a:hover {
    background: linear-gradient(135deg, #35789a 0%, #1e4e74 100%);
    transform: translateY(-6px);
    box-shadow: 0 26px 78px rgba(64, 142, 181, 0.56);
}

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

.container {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 4.65rem;
}

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

.section-header::before {
    content: '⚓ ⚓ ⚓';
    position: absolute;
    top: -75px;
    left: 50%;
    transform: translateX(-50%);
    color: #256391;
    font-size: 1.52rem;
    letter-spacing: 3.75rem;
    opacity: 0.65;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 6.15rem;
    font-weight: 900;
    line-height: 1.18;
    color: #1c3a52;
    letter-spacing: -1.38px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    width: 172px;
    height: 4px;
    background: linear-gradient(90deg, #256391 0%, #408eb5 50%, #256391 100%);
}

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

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

.timeline::before {
    content: '';
    position: absolute;
    left: 355px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #256391 0%, #408eb5 50%, #256391 100%);
}

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

.timeline-year {
    font-family: 'Playfair Display', serif;
    font-size: 8.65rem;
    font-weight: 900;
    color: rgba(37, 99, 145, 0.2);
    position: relative;
    z-index: 2;
    text-align: right;
    padding-right: 7.65rem;
    letter-spacing: -4.05px;
}

.timeline-year::after {
    content: '';
    position: absolute;
    right: -145px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: #256391;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    box-shadow: 
        0 0 0 12px rgba(253, 254, 255, 1),
        0 0 0 16px rgba(37, 99, 145, 0.32);
    animation: seafaringBeacon 6s ease-in-out infinite;
}

@keyframes seafaringBeacon {
    0%, 100% {
        box-shadow: 
            0 0 0 12px rgba(253, 254, 255, 1),
            0 0 0 16px rgba(37, 99, 145, 0.32);
        transform: translateY(-50%) scale(1);
    }
    50% {
        box-shadow: 
            0 0 0 12px rgba(253, 254, 255, 1),
            0 0 0 34px rgba(37, 99, 145, 0.48);
        transform: translateY(-50%) scale(1.38);
    }
}

.timeline-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(26px);
    padding: 4.25rem;
    transition: all 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 26px 82px rgba(28, 58, 82, 0.15);
    position: relative;
    clip-path: polygon(3% 0%, 100% 0%, 97% 100%, 0% 100%);
    border-left: 4px solid rgba(37, 99, 145, 0.32);
}

.timeline-content:hover {
    transform: translateX(20px);
    box-shadow: 0 38px 105px rgba(28, 58, 82, 0.23);
    border-left-color: #256391;
    background: rgba(255, 255, 255, 0.98);
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 3.15rem;
    margin-bottom: 1.05rem;
    color: #1c3a52;
    font-weight: 800;
    letter-spacing: -0.55px;
}

.timeline-content h4 {
    color: #256391;
    font-size: 1.55rem;
    margin-bottom: 2.45rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.05px;
}

.timeline-content p {
    color: #3a5f7a;
    line-height: 1.82;
    margin: 0;
}

.timeline-content a {
    color: #408eb5;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 3px solid transparent;
    transition: all 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-content a:hover {
    border-bottom-color: #408eb5;
    color: #256391;
}

#ai {
    background: rgba(247, 252, 255, 0.65);
    backdrop-filter: blur(20px);
}

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

.project-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(26px);
    padding: 5.55rem;
    transition: all 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: 0 28px 88px rgba(28, 58, 82, 0.16);
    clip-path: polygon(2% 0%, 100% 0%, 98% 100%, 0% 100%);
    border-top: 7px solid #256391;
}

.project-card::after {
    content: '⚓';
    position: absolute;
    top: 62px;
    right: 62px;
    font-size: 8.65rem;
    color: rgba(37, 99, 145, 0.048);
}

.project-card:hover {
    transform: translateY(-16px);
    box-shadow: 0 42px 118px rgba(28, 58, 82, 0.23);
    background: rgba(255, 255, 255, 0.98);
}

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

.project-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 4.25rem;
    color: #1c3a52;
    margin: 0;
    font-weight: 900;
    letter-spacing: -0.82px;
}

.project-client {
    color: #256391;
    font-weight: 700;
    font-size: 1.52rem;
    margin-bottom: 3.45rem;
    text-transform: uppercase;
    letter-spacing: 1.18px;
}

.project-card > p {
    color: #3a5f7a;
    line-height: 1.82;
    margin-bottom: 4.05rem;
}

.project-impact {
    background: rgba(37, 99, 145, 0.082);
    padding: 3.05rem;
    color: #1c3a52;
    line-height: 1.82;
    clip-path: polygon(2% 0%, 100% 0%, 98% 100%, 0% 100%);
    border-left: 7px solid #408eb5;
}

.project-impact strong {
    color: #408eb5;
    font-weight: 700;
}

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

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

.year-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(26px);
    padding: 4.65rem;
    transition: all 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 26px 82px rgba(28, 58, 82, 0.15);
    clip-path: polygon(3% 0%, 100% 0%, 97% 100%, 0% 100%);
    position: relative;
    border-top: 4px solid rgba(37, 99, 145, 0.32);
}

.year-section:hover {
    transform: translateY(-16px);
    box-shadow: 0 38px 105px rgba(28, 58, 82, 0.23);
    border-top-color: #256391;
    background: rgba(255, 255, 255, 0.98);
}

.year-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 5.55rem;
    margin-bottom: 4.05rem;
    color: #1c3a52;
    text-align: center;
    padding-bottom: 3.05rem;
    border-bottom: 4px solid rgba(37, 99, 145, 0.22);
    font-weight: 900;
    letter-spacing: -0.98px;
}

.year-section.books {
    grid-column: span 2;
    background: linear-gradient(135deg, #256391 0%, #408eb5 100%);
    border-top-color: #1e4e74;
}

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

.achievements {
    list-style: none;
}

.achievements li {
    padding: 2.08rem 0;
    color: #3a5f7a;
    border-bottom: 3px solid rgba(28, 58, 82, 0.085);
    line-height: 1.82;
    position: relative;
    padding-left: 3.75rem;
}

.achievements li::before {
    content: '⚓';
    position: absolute;
    left: 0;
    top: 2.08rem;
    color: #256391;
    font-size: 1.52rem;
}

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

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

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

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

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

#personal {
    background: rgba(247, 252, 255, 0.65);
    backdrop-filter: blur(20px);
}

#contact {
    background: rgba(37, 99, 145, 0.068);
    backdrop-filter: blur(20px);
}

.contact-card {
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(38px);
    padding: 8.95rem 8.05rem;
    text-align: center;
    box-shadow: 0 45px 132px rgba(28, 58, 82, 0.19);
    max-width: 1460px;
    margin: 0 auto;
    clip-path: polygon(2% 0%, 100% 0%, 98% 100%, 0% 100%);
    border: 4px solid rgba(37, 99, 145, 0.26);
}

.contact-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 6.85rem;
    margin-bottom: 4.05rem;
    color: #1c3a52;
    font-weight: 900;
    letter-spacing: -1.38px;
}

.contact-card > p {
    font-size: 1.78rem;
    color: #3a5f7a;
    line-height: 1.82;
    margin-bottom: 6.75rem;
    max-width: 1260px;
    margin-left: auto;
    margin-right: auto;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 2.42rem;
    padding: 2.42rem 5.55rem;
    background: linear-gradient(135deg, #256391 0%, #408eb5 100%);
    color: #fdfeff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1.85px;
    transition: all 0.48s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
    box-shadow: 0 26px 82px rgba(37, 99, 145, 0.42);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.contact-link:hover {
    background: linear-gradient(135deg, #1e4e74 0%, #35789a 100%);
    transform: translateY(-7px);
    box-shadow: 0 35px 102px rgba(37, 99, 145, 0.56);
}

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

#footer {
    background: #1c3a52;
    padding: 6.75rem 0;
    text-align: center;
    color: rgba(253, 254, 255, 0.75);
    border-top: 4px solid rgba(37, 99, 145, 0.42);
}

#footer a {
    color: #408eb5;
    text-decoration: none;
    transition: color 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 700;
}

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

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

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

    .hero-image {
        max-width: 698px;
        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.35rem;
        height: 85px;
    }

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

    .nav-menu {
        position: fixed;
        top: 85px;
        left: 0;
        right: 0;
        background: rgba(253, 254, 255, 0.98);
        backdrop-filter: blur(26px);
        flex-direction: column;
        padding: 4.65rem;
        gap: 0;
        box-shadow: 0 35px 88px rgba(28, 58, 82, 0.19);
        transform: translateY(-150%);
        transition: transform 0.58s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-bottom: 3px solid rgba(37, 99, 145, 0.28);
    }

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

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

    .nav-menu li a {
        width: 100%;
        text-align: center;
        padding: 1.78rem;
        border-bottom: 1px solid rgba(28, 58, 82, 0.085);
    }

    .nav-menu li a::after {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

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

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

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

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 4.65rem;
        margin-bottom: 7.55rem;
        padding-left: 9.65rem;
    }

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

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

    .contact-card {
        padding: 7.15rem 5.75rem;
    }
}

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

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

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

    #hero {
        padding: 152px 0 118px;
    }

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

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

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

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

    section {
        padding: 118px 0;
    }

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

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

    .profile-card {
        padding: 2.95rem;
    }

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

    .timeline-content {
        padding: 3.45rem;
    }

    .project-card {
        padding: 4.65rem 3.45rem;
    }

    .contact-card {
        padding: 6.35rem 3.45rem;
    }

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

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

    .contact-link {
        justify-content: center;
        padding: 1.78rem 3.45rem;
        font-size: 1.08rem;
    }
}