/* Theme: Sandstorm - Desert dunes, warm terracotta, sand textures, oasis blues, ancient earthen architecture */

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

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

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

body {
    font-family: 'Karla', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #3d2817;
    background: linear-gradient(165deg, #e8d5c4 0%, #d4b5a0 25%, #c9a68a 50%, #b8956f 75%, #a67f5d 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 20% 30%, rgba(210, 144, 82, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(188, 120, 72, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(184, 149, 111, 0.03) 3px, rgba(184, 149, 111, 0.03) 6px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

#topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(232, 213, 196, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 3px solid rgba(166, 127, 93, 0.4);
    box-shadow: 0 4px 25px rgba(61, 40, 23, 0.15);
    transition: all 0.4s ease;
}

#topnav.scrolled {
    background: rgba(232, 213, 196, 0.96);
    box-shadow: 0 8px 35px rgba(61, 40, 23, 0.22);
    border-bottom-color: rgba(166, 127, 93, 0.6);
}

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

.logo h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #6b4423;
    margin: 0;
    letter-spacing: 1px;
    position: relative;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, #d29052 0%, transparent 100%);
}

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

.nav-menu li a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #5d3a1f;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.35s ease;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #d29052;
    transition: width 0.35s ease;
}

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

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

.mobile-toggle {
    display: none;
    background: #d29052;
    border: 2px solid #bc7848;
    color: #fff;
    font-size: 1.5rem;
    width: 54px;
    height: 54px;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 5px 18px rgba(210, 144, 82, 0.35);
}

.mobile-toggle:hover {
    background: #bc7848;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(210, 144, 82, 0.45);
}

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

#hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -12%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(210, 144, 82, 0.18) 0%, transparent 65%);
    border-radius: 47% 53% 44% 56%;
    animation: duneShift 28s ease-in-out infinite;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -22%;
    left: -8%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(188, 120, 72, 0.14) 0%, transparent 65%);
    border-radius: 53% 47% 56% 44%;
    animation: duneShift 34s ease-in-out infinite reverse;
}

@keyframes duneShift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translate(35px, -45px) rotate(8deg);
        opacity: 0.9;
    }
}

.hero-content {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: sandFadeIn 1.3s ease-out;
}

@keyframes sandFadeIn {
    0% {
        opacity: 0;
        transform: translateY(45px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 2.2rem;
    color: #3d2817;
    letter-spacing: -0.5px;
}

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

.hero-subtitle {
    font-size: 1.45rem;
    color: #6b4423;
    margin-bottom: 3.2rem;
    line-height: 1.7;
    font-weight: 500;
    letter-spacing: 0.5px;
}

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

.btn {
    display: inline-block;
    padding: 1.3rem 3rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s ease;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    border: 2px solid;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.btn:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.btn-primary {
    background: #d29052;
    color: #fff;
    border-color: #bc7848;
    box-shadow: 0 12px 32px rgba(210, 144, 82, 0.35);
}

.btn-primary:hover {
    background: #bc7848;
    transform: translateY(-3px);
    box-shadow: 0 16px 42px rgba(210, 144, 82, 0.45);
}

.btn-secondary {
    background: transparent;
    color: #d29052;
    border-color: #d29052;
    box-shadow: 0 8px 22px rgba(210, 144, 82, 0.2);
}

.btn-secondary:hover {
    background: #d29052;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(210, 144, 82, 0.35);
}

.hero-image {
    animation: sandFadeIn 1.3s ease-out 0.2s both;
}

.profile-card {
    background: rgba(244, 236, 227, 0.85);
    backdrop-filter: blur(18px);
    padding: 2.8rem;
    box-shadow: 
        0 22px 65px rgba(61, 40, 23, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.5s ease;
    position: relative;
    border: 1px solid rgba(166, 127, 93, 0.3);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d29052 0%, #bc7848 50%, #d29052 100%);
}

.profile-card:hover {
    transform: translateY(-12px) scale(1.015);
    box-shadow: 
        0 32px 85px rgba(61, 40, 23, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.profile-card img {
    width: 100%;
    margin-bottom: 2.2rem;
    box-shadow: 0 14px 42px rgba(61, 40, 23, 0.25);
    border: 3px solid rgba(166, 127, 93, 0.25);
}

.profile-details h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.1rem;
    margin-bottom: 0.7rem;
    color: #3d2817;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.profile-details p {
    color: #5d3a1f;
    margin-bottom: 2.2rem;
    line-height: 1.7;
    font-weight: 500;
}

.social-links a {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    background: #d29052;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    box-shadow: 0 10px 28px rgba(210, 144, 82, 0.35);
    border: 2px solid #bc7848;
}

.social-links a:hover {
    background: #bc7848;
    transform: translateY(-3px);
    box-shadow: 0 14px 38px rgba(210, 144, 82, 0.45);
}

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

.container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 3rem;
}

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

.section-header::before {
    content: '◈';
    position: absolute;
    top: -52px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.8rem;
    color: #d29052;
    opacity: 0.4;
}

.section-header h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    color: #3d2817;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #d29052 50%, transparent 100%);
}

#experience {
    background: rgba(244, 236, 227, 0.5);
    backdrop-filter: blur(25px);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #d29052 0%, #bc7848 50%, #d29052 100%);
}

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

.timeline-year {
    font-family: 'Libre Baskerville', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #bc7848;
    position: relative;
    z-index: 2;
    text-align: right;
    padding-right: 2.5rem;
    letter-spacing: 1px;
}

.timeline-year::after {
    content: '';
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #d29052;
    border: 4px solid rgba(232, 213, 196, 0.95);
    box-shadow: 0 0 0 7px rgba(210, 144, 82, 0.2);
}

.timeline-content {
    background: rgba(244, 236, 227, 0.85);
    backdrop-filter: blur(15px);
    padding: 2.8rem;
    border-left: 4px solid #d29052;
    transition: all 0.4s ease;
    box-shadow: 0 10px 35px rgba(61, 40, 23, 0.15);
    border-top: 1px solid rgba(166, 127, 93, 0.2);
    border-right: 1px solid rgba(166, 127, 93, 0.2);
    border-bottom: 1px solid rgba(166, 127, 93, 0.2);
}

.timeline-content:hover {
    transform: translateX(14px);
    box-shadow: 0 18px 55px rgba(61, 40, 23, 0.25);
    border-left-width: 6px;
}

.timeline-content h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    margin-bottom: 0.6rem;
    color: #3d2817;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.timeline-content h4 {
    color: #bc7848;
    font-size: 1.2rem;
    margin-bottom: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.timeline-content p {
    color: #5d3a1f;
    line-height: 1.8;
    margin: 0;
}

.timeline-content a {
    color: #d29052;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

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

#ai {
    background: linear-gradient(180deg, rgba(232, 213, 196, 0.6) 0%, rgba(212, 181, 160, 0.6) 100%);
    backdrop-filter: blur(25px);
}

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

.project-card {
    background: rgba(244, 236, 227, 0.85);
    backdrop-filter: blur(15px);
    padding: 3.2rem;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 14px 48px rgba(61, 40, 23, 0.18);
    border: 1px solid rgba(166, 127, 93, 0.25);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #d29052 0%, #bc7848 50%, #d29052 100%);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 68px rgba(61, 40, 23, 0.28);
}

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

.project-header h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.4rem;
    color: #3d2817;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.project-client {
    color: #bc7848;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-card > p {
    color: #5d3a1f;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.project-impact {
    background: rgba(210, 144, 82, 0.12);
    padding: 2rem;
    border-left: 4px solid #d29052;
    color: #3d2817;
    line-height: 1.8;
    border-top: 1px solid rgba(166, 127, 93, 0.15);
    border-right: 1px solid rgba(166, 127, 93, 0.15);
    border-bottom: 1px solid rgba(166, 127, 93, 0.15);
}

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

#speaking {
    background: rgba(244, 236, 227, 0.6);
    backdrop-filter: blur(25px);
}

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

.year-section {
    background: rgba(244, 236, 227, 0.85);
    backdrop-filter: blur(15px);
    padding: 3rem;
    transition: all 0.4s ease;
    box-shadow: 0 12px 38px rgba(61, 40, 23, 0.15);
    border: 1px solid rgba(166, 127, 93, 0.25);
}

.year-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 58px rgba(61, 40, 23, 0.25);
}

.year-section h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.6rem;
    margin-bottom: 2.2rem;
    color: #bc7848;
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(166, 127, 93, 0.3);
    font-weight: 700;
    letter-spacing: 1px;
}

.year-section.books {
    grid-column: span 2;
    background: linear-gradient(135deg, #d29052 0%, #bc7848 100%);
    border: none;
    box-shadow: 0 18px 58px rgba(210, 144, 82, 0.35);
}

.year-section.books h3 {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.35);
}

.achievements {
    list-style: none;
}

.achievements li {
    padding: 1.2rem 0;
    color: #5d3a1f;
    border-bottom: 1px solid rgba(166, 127, 93, 0.15);
    line-height: 1.8;
    position: relative;
    padding-left: 2.5rem;
}

.achievements li::before {
    content: '◇';
    position: absolute;
    left: 0;
    color: #d29052;
    font-size: 1.3rem;
}

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

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

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

.achievements strong {
    color: #3d2817;
    font-weight: 700;
}

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

#personal {
    background: linear-gradient(180deg, rgba(212, 181, 160, 0.5) 0%, rgba(232, 213, 196, 0.7) 100%);
    backdrop-filter: blur(25px);
}

#contact {
    background: rgba(244, 236, 227, 0.65);
    backdrop-filter: blur(25px);
}

.contact-card {
    background: rgba(244, 236, 227, 0.9);
    backdrop-filter: blur(20px);
    padding: 6rem 5rem;
    text-align: center;
    box-shadow: 0 28px 75px rgba(61, 40, 23, 0.25);
    max-width: 1050px;
    margin: 0 auto;
    border: 1px solid rgba(166, 127, 93, 0.3);
    position: relative;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent 0%, #d29052 20%, #bc7848 50%, #d29052 80%, transparent 100%);
}

.contact-card h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 4.2rem;
    margin-bottom: 2.2rem;
    color: #3d2817;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.contact-card > p {
    font-size: 1.3rem;
    color: #5d3a1f;
    line-height: 1.8;
    margin-bottom: 3.8rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.5rem 3.5rem;
    background: #d29052;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    box-shadow: 0 12px 38px rgba(210, 144, 82, 0.35);
    border: 2px solid #bc7848;
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.contact-link:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.contact-link:hover {
    background: #bc7848;
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(210, 144, 82, 0.45);
}

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

#footer {
    background: linear-gradient(135deg, #3d2817 0%, #5d3a1f 100%);
    backdrop-filter: blur(15px);
    padding: 3.8rem 0;
    text-align: center;
    color: rgba(232, 213, 196, 0.8);
    border-top: 2px solid rgba(210, 144, 82, 0.4);
}

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

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

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

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

    .hero-image {
        max-width: 560px;
        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 2.5rem;
        height: 84px;
    }

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

    .nav-menu {
        position: fixed;
        top: 84px;
        left: 0;
        right: 0;
        background: rgba(232, 213, 196, 0.98);
        backdrop-filter: blur(18px);
        flex-direction: column;
        padding: 3rem;
        gap: 0;
        box-shadow: 0 22px 55px rgba(61, 40, 23, 0.25);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        border-bottom: 3px solid rgba(166, 127, 93, 0.4);
    }

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

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

    .nav-menu li a {
        width: 100%;
        text-align: center;
        padding: 1.3rem;
        border-bottom: 1px solid rgba(166, 127, 93, 0.15);
    }

    .mobile-toggle {
        display: block;
    }

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

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

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

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 2.2rem;
        margin-bottom: 4.5rem;
        padding-left: 5rem;
    }

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

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

    .contact-card {
        padding: 5rem 3.5rem;
    }
}

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

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

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

    #hero {
        padding: 115px 0 85px;
    }

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

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

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

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

    section {
        padding: 85px 0;
    }

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

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

    .profile-card {
        padding: 2.2rem;
    }

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

    .timeline-content {
        padding: 2.4rem;
    }

    .project-card {
        padding: 2.8rem 2.2rem;
    }

    .contact-card {
        padding: 4.5rem 2.2rem;
    }

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

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

    .contact-link {
        justify-content: center;
        padding: 1.3rem 2.5rem;
        font-size: 0.95rem;
    }
}