/* Theme: Galaxy - Day 7 (Letter G): Inspired by spiral galaxies, nebula clouds, starlight, cosmic dust, interstellar space, astronomical phenomena, celestial bodies, deep space exploration, cosmic wonder, stellar formations */

@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: 85px;
}

body {
    font-family: 'Exo 2', sans-serif;
    font-size: 17.2px;
    line-height: 1.78;
    color: #0d0d2b;
    background: linear-gradient(168deg, #fefeff 0%, #f6f8fd 22%, #eef3fc 45%, #e8f0fb 68%, #f4f7fd 88%, #fcfdff 100%);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 18% 25%, rgba(79, 108, 221, 0.082) 0%, transparent 45%),
        radial-gradient(circle at 82% 75%, rgba(123, 97, 255, 0.068) 0%, transparent 52%),
        radial-gradient(circle at 45% 50%, rgba(52, 82, 178, 0.055) 0%, transparent 58%);
    pointer-events: none;
    z-index: 0;
    animation: galaxyPulse 48s ease-in-out infinite alternate;
}

@keyframes galaxyPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.72;
        transform: scale(1.22) rotate(-12deg);
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(79, 108, 221, 0.022) 1.5px, transparent 1.5px);
    background-size: 58px 58px;
    pointer-events: none;
    z-index: 0;
    animation: starField 120s linear infinite;
}

@keyframes starField {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(58px);
    }
}

#topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 254, 255, 0.88);
    backdrop-filter: blur(35px);
    border-bottom: 2.5px solid rgba(79, 108, 221, 0.18);
    box-shadow: 0 6px 35px rgba(13, 13, 43, 0.082);
    transition: all 0.48s ease;
}

#topnav.scrolled {
    background: rgba(254, 254, 255, 0.95);
    box-shadow: 0 10px 52px rgba(13, 13, 43, 0.125);
    border-bottom-color: rgba(79, 108, 221, 0.32);
}

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

.logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.92rem;
    font-weight: 800;
    color: #0d0d2b;
    margin: 0;
    letter-spacing: 3.25px;
    position: relative;
    padding-left: 4.05rem;
    text-transform: uppercase;
}

.logo h1::before {
    content: '⭐';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.75rem;
    animation: starSpin 18s linear infinite;
}

@keyframes starSpin {
    0% {
        transform: translateY(-50%) rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-50%) rotate(180deg) scale(1.15);
        opacity: 0.78;
    }
    100% {
        transform: translateY(-50%) rotate(360deg) scale(1);
        opacity: 1;
    }
}

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

.nav-menu li a {
    display: block;
    padding: 1.08rem 2.35rem;
    color: #0d0d2b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.42s ease;
    position: relative;
    letter-spacing: 2.15px;
    text-transform: uppercase;
    border-radius: 2px;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 108, 221, 0.095) 0%, rgba(123, 97, 255, 0.095) 100%);
    opacity: 0;
    transition: opacity 0.42s ease;
    border-radius: 2px;
    border: 2.5px solid transparent;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: linear-gradient(90deg, #4f6cdd 0%, #7b61ff 100%);
    transform: scaleX(0);
    transition: transform 0.42s ease;
    transform-origin: center;
}

.nav-menu li a:hover::before,
.nav-menu li a.active::before {
    opacity: 1;
    border-color: rgba(79, 108, 221, 0.22);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    transform: scaleX(1);
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #4f6cdd;
}

.mobile-toggle {
    display: none;
    background: linear-gradient(135deg, #4f6cdd 0%, #7b61ff 100%);
    border: none;
    color: #fefeff;
    font-size: 2.05rem;
    width: 65px;
    height: 65px;
    cursor: pointer;
    transition: all 0.42s ease;
    border-radius: 2px;
    box-shadow: 0 10px 42px rgba(79, 108, 221, 0.45);
}

.mobile-toggle:hover {
    background: linear-gradient(135deg, #3452b2 0%, #4f6cdd 100%);
    box-shadow: 0 16px 58px rgba(79, 108, 221, 0.62);
    transform: scale(1.1) rotate(90deg);
}

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

#hero::before {
    content: '🌌';
    position: absolute;
    top: 9%;
    right: 6%;
    font-size: 19.5rem;
    opacity: 0.042;
    animation: nebulaFloat 38s ease-in-out infinite;
}

#hero::after {
    content: '🪐';
    position: absolute;
    bottom: 14%;
    left: 4%;
    font-size: 21.5rem;
    opacity: 0.035;
    animation: planetOrbit 52s ease-in-out infinite;
}

@keyframes nebulaFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.042;
    }
    50% {
        transform: translate(62px, -78px) rotate(-18deg);
        opacity: 0.078;
    }
}

@keyframes planetOrbit {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.035;
    }
    50% {
        transform: translate(-72px, 58px) scale(1.12);
        opacity: 0.068;
    }
}

.hero-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 4.45rem;
    display: grid;
    grid-template-columns: 1.58fr 1fr;
    gap: 9.25rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: cosmicEntry 1.65s ease-out;
}

@keyframes cosmicEntry {
    0% {
        opacity: 0;
        transform: translateY(92px) scale(0.88);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 6.45rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 4.05rem;
    color: #0d0d2b;
    letter-spacing: -2.15px;
    text-transform: uppercase;
}

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

.hero-subtitle {
    font-size: 1.85rem;
    color: #2d2f5e;
    margin-bottom: 5.55rem;
    line-height: 1.68;
    font-weight: 400;
    letter-spacing: 0.62px;
}

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

.btn {
    display: inline-block;
    padding: 1.85rem 5.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.55s ease;
    font-size: 1.05rem;
    letter-spacing: 2.55px;
    font-family: 'Exo 2', sans-serif;
    position: relative;
    overflow: hidden;
    border: 2.5px solid transparent;
    text-transform: uppercase;
    border-radius: 2px;
}

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

.btn:hover::after {
    width: 500px;
    height: 500px;
}

.btn-primary {
    background: linear-gradient(135deg, #4f6cdd 0%, #7b61ff 100%);
    color: #fefeff;
    box-shadow: 0 20px 68px rgba(79, 108, 221, 0.48);
}

.btn-primary:hover {
    transform: translateY(-7px);
    box-shadow: 0 30px 92px rgba(79, 108, 221, 0.65);
    background: linear-gradient(135deg, #3452b2 0%, #4f6cdd 100%);
}

.btn-secondary {
    background: rgba(254, 254, 255, 0.98);
    color: #4f6cdd;
    border: 2.5px solid #4f6cdd;
    box-shadow: 0 16px 52px rgba(79, 108, 221, 0.35);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4f6cdd 0%, #7b61ff 100%);
    color: #fefeff;
    border-color: transparent;
    transform: translateY(-7px);
    box-shadow: 0 26px 75px rgba(79, 108, 221, 0.58);
}

.hero-image {
    animation: cosmicEntry 1.65s ease-out 0.38s both;
}

.profile-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(35px);
    padding: 4.05rem;
    box-shadow: 
        0 0 0 2.5px rgba(79, 108, 221, 0.15),
        0 35px 115px rgba(13, 13, 43, 0.25);
    transition: all 0.65s ease;
    position: relative;
    border-radius: 2px;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -2.5px;
    left: -2.5px;
    right: -2.5px;
    bottom: -2.5px;
    background: linear-gradient(135deg, #4f6cdd 0%, #7b61ff 50%, #3452b2 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.65s ease;
    border-radius: 2px;
}

.profile-card::after {
    content: '✨';
    position: absolute;
    bottom: 58px;
    right: 58px;
    font-size: 9.25rem;
    opacity: 0.028;
}

.profile-card:hover {
    transform: translateY(-25px) scale(1.032);
    box-shadow: 
        0 0 0 2.5px rgba(79, 108, 221, 0.38),
        0 55px 155px rgba(13, 13, 43, 0.35);
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-card img {
    width: 100%;
    margin-bottom: 3.65rem;
    box-shadow: 0 30px 88px rgba(13, 13, 43, 0.28);
    border-radius: 2px;
}

.profile-details h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.65rem;
    margin-bottom: 1.35rem;
    color: #0d0d2b;
    font-weight: 900;
    letter-spacing: -0.75px;
}

.profile-details p {
    color: #2d2f5e;
    margin-bottom: 3.85rem;
    line-height: 1.68;
    font-weight: 400;
}

.social-links a {
    display: inline-block;
    padding: 1.85rem 4.65rem;
    background: linear-gradient(135deg, #7b61ff 0%, #9d8aff 100%);
    color: #fefeff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2.55px;
    transition: all 0.55s ease;
    border-radius: 2px;
    box-shadow: 0 20px 68px rgba(123, 97, 255, 0.48);
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
}

.social-links a:hover {
    background: linear-gradient(135deg, #4f6cdd 0%, #7b61ff 100%);
    transform: translateY(-7px);
    box-shadow: 0 30px 92px rgba(79, 108, 221, 0.65);
}

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

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 4.45rem;
}

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

.section-header::before {
    content: '◇';
    position: absolute;
    top: -88px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3.65rem;
    opacity: 0.25;
    color: #4f6cdd;
}

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

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%);
    width: 155px;
    height: 5px;
    background: linear-gradient(90deg, transparent 0%, #4f6cdd 20%, #7b61ff 50%, #4f6cdd 80%, transparent 100%);
}

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

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

.timeline::before {
    content: '';
    position: absolute;
    left: 405px;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #4f6cdd 0%, #7b61ff 50%, #3452b2 100%);
    opacity: 0.25;
}

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

.timeline-year {
    font-family: 'Orbitron', sans-serif;
    font-size: 9.85rem;
    font-weight: 900;
    color: rgba(79, 108, 221, 0.092);
    position: relative;
    z-index: 2;
    text-align: right;
    padding-right: 8.85rem;
    letter-spacing: -4.55px;
}

.timeline-year::after {
    content: '';
    position: absolute;
    right: -165px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #4f6cdd 0%, #7b61ff 100%);
    clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);
    box-shadow: 
        0 0 0 11.5px rgba(254, 254, 255, 1),
        0 0 0 16.5px rgba(79, 108, 221, 0.15);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(32px);
    padding: 5.05rem;
    transition: all 0.58s ease;
    box-shadow: 
        0 0 0 2.5px rgba(79, 108, 221, 0.08),
        0 32px 102px rgba(13, 13, 43, 0.16);
    position: relative;
    border-radius: 2px;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 7px;
    background: linear-gradient(180deg, #4f6cdd 0%, #7b61ff 100%);
    opacity: 0;
    transition: opacity 0.58s ease;
    border-radius: 2px 0 0 2px;
}

.timeline-content:hover {
    transform: translateX(32px);
    box-shadow: 
        0 0 0 2.5px rgba(79, 108, 221, 0.25),
        0 45px 138px rgba(13, 13, 43, 0.26);
    background: rgba(255, 255, 255, 0.96);
}

.timeline-content:hover::before {
    opacity: 1;
}

.timeline-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.65rem;
    margin-bottom: 1.28rem;
    color: #0d0d2b;
    font-weight: 900;
    letter-spacing: -0.62px;
}

.timeline-content h4 {
    color: #4f6cdd;
    font-size: 1.78rem;
    margin-bottom: 3.05rem;
    font-weight: 700;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

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

.timeline-content a {
    color: #7b61ff;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2.5px solid transparent;
    transition: all 0.42s ease;
}

.timeline-content a:hover {
    border-bottom-color: #7b61ff;
    color: #4f6cdd;
}

#ai {
    background: rgba(244, 245, 253, 0.65);
    backdrop-filter: blur(25px);
}

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

.project-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(32px);
    padding: 7.45rem;
    transition: all 0.58s ease;
    position: relative;
    box-shadow: 
        0 0 0 2.5px rgba(79, 108, 221, 0.08),
        0 35px 112px rgba(13, 13, 43, 0.2);
    border-radius: 2px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 9px;
    background: linear-gradient(90deg, #4f6cdd 0%, #7b61ff 50%, #3452b2 100%);
    border-radius: 2px 2px 0 0;
}

.project-card::after {
    content: '🚀';
    position: absolute;
    top: 78px;
    right: 78px;
    font-size: 11.25rem;
    opacity: 0.025;
}

.project-card:hover {
    transform: translateY(-20px);
    box-shadow: 
        0 0 0 2.5px rgba(79, 108, 221, 0.25),
        0 55px 158px rgba(13, 13, 43, 0.3);
    background: rgba(255, 255, 255, 0.96);
}

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

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

.project-client {
    color: #4f6cdd;
    font-weight: 700;
    font-size: 1.78rem;
    margin-bottom: 4.05rem;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.project-card > p {
    color: #2d2f5e;
    line-height: 1.78;
    margin-bottom: 5.05rem;
}

.project-impact {
    background: rgba(79, 108, 221, 0.055);
    padding: 3.85rem;
    color: #0d0d2b;
    line-height: 1.78;
    border-radius: 2px;
    border-left: 9px solid #4f6cdd;
}

.project-impact strong {
    color: #3452b2;
    font-weight: 700;
}

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

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

.year-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(32px);
    padding: 5.95rem;
    transition: all 0.58s ease;
    box-shadow: 
        0 0 0 2.5px rgba(79, 108, 221, 0.08),
        0 32px 102px rgba(13, 13, 43, 0.16);
    border-radius: 2px;
    position: relative;
}

.year-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #4f6cdd 0%, #7b61ff 100%);
    opacity: 0.25;
    transition: opacity 0.58s ease;
    border-radius: 2px 2px 0 0;
}

.year-section:hover {
    transform: translateY(-20px);
    box-shadow: 
        0 0 0 2.5px rgba(79, 108, 221, 0.25),
        0 45px 138px rgba(13, 13, 43, 0.26);
    background: rgba(255, 255, 255, 0.96);
}

.year-section:hover::before {
    opacity: 1;
}

.year-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 5.85rem;
    margin-bottom: 5.05rem;
    color: #0d0d2b;
    text-align: center;
    padding-bottom: 3.85rem;
    border-bottom: 2.5px solid rgba(79, 108, 221, 0.15);
    font-weight: 900;
    letter-spacing: -1.45px;
}

.year-section.books {
    grid-column: span 2;
    background: linear-gradient(135deg, #4f6cdd 0%, #7b61ff 100%);
}

.year-section.books::before {
    background: rgba(254, 254, 255, 0.3);
}

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

.achievements {
    list-style: none;
}

.achievements li {
    padding: 2.45rem 0;
    color: #2d2f5e;
    border-bottom: 2.5px solid rgba(13, 13, 43, 0.052);
    line-height: 1.78;
    position: relative;
    padding-left: 4.45rem;
}

.achievements li::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 2.45rem;
    font-size: 1.85rem;
    color: #4f6cdd;
}

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

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

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

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

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

#personal {
    background: rgba(244, 245, 253, 0.65);
    backdrop-filter: blur(25px);
}

#contact {
    background: linear-gradient(135deg, rgba(79, 108, 221, 0.028) 0%, rgba(123, 97, 255, 0.035) 100%);
    backdrop-filter: blur(25px);
}

.contact-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(45px);
    padding: 11.25rem 9.85rem;
    text-align: center;
    box-shadow: 
        0 0 0 2.5px rgba(79, 108, 221, 0.15),
        0 55px 168px rgba(13, 13, 43, 0.26);
    max-width: 1450px;
    margin: 0 auto;
    border-radius: 2px;
}

.contact-card h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 8.45rem;
    margin-bottom: 5.05rem;
    color: #0d0d2b;
    font-weight: 900;
    letter-spacing: -2.05px;
    text-transform: uppercase;
}

.contact-card > p {
    font-size: 2.05rem;
    color: #2d2f5e;
    line-height: 1.78;
    margin-bottom: 8.65rem;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 3.05rem;
    padding: 3.05rem 7.45rem;
    background: linear-gradient(135deg, #4f6cdd 0%, #7b61ff 100%);
    color: #fefeff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2.55px;
    transition: all 0.55s ease;
    border-radius: 2px;
    box-shadow: 0 35px 112px rgba(79, 108, 221, 0.48);
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
}

.contact-link:hover {
    background: linear-gradient(135deg, #3452b2 0%, #4f6cdd 100%);
    transform: translateY(-11px);
    box-shadow: 0 50px 148px rgba(79, 108, 221, 0.65);
}

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

#footer {
    background: #0d0d2b;
    padding: 8.45rem 0;
    text-align: center;
    color: rgba(254, 254, 255, 0.7);
    border-top: 2.5px solid rgba(79, 108, 221, 0.25);
}

#footer a {
    color: #9d8aff;
    text-decoration: none;
    transition: color 0.42s ease;
    font-weight: 700;
}

#footer a:hover {
    color: #7b61ff;
}

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

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

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

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

    .nav-menu {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        background: rgba(254, 254, 255, 0.98);
        backdrop-filter: blur(35px);
        flex-direction: column;
        padding: 5.95rem;
        gap: 0;
        box-shadow: 0 42px 112px rgba(13, 13, 43, 0.2);
        transform: translateY(-150%);
        transition: transform 0.65s ease;
        border-bottom: 2.5px solid rgba(79, 108, 221, 0.32);
    }

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

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

    .nav-menu li a {
        width: 100%;
        text-align: center;
        padding: 1.85rem;
        border-bottom: 2.5px solid rgba(13, 13, 43, 0.052);
        border-radius: 0;
    }

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

    .mobile-toggle {
        display: block;
    }

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

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

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

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 5.95rem;
        margin-bottom: 8.85rem;
        padding-left: 13.25rem;
    }

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

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

    .contact-card {
        padding: 9.45rem 7.45rem;
    }
}

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

    .nav-container {
        padding: 0 3.45rem;
        height: 72px;
    }

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

    #hero {
        padding: 155px 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: 8.45rem;
    }

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

    .profile-card {
        padding: 3.45rem;
    }

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

    .timeline-content {
        padding: 4.05rem;
    }

    .project-card {
        padding: 5.95rem 4.05rem;
    }

    .contact-card {
        padding: 7.85rem 4.05rem;
    }

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

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

    .contact-link {
        justify-content: center;
        padding: 2.05rem 4.05rem;
        font-size: 0.98rem;
    }
}