/* Theme: Xerophyte (Desert Botanical) - Day 24, letter X: Inspired by desert succulents, terracotta pottery, sand dunes, adobe architecture, warm earth tones, cactus gardens, sun-baked clay, natural textures, minimalist desert flora, sustainable xeriscaping */

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

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

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

body {
    font-family: 'Karla', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #3d2e1f;
    background: #f7f3ed;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 20%, rgba(204, 132, 89, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 75% 80%, rgba(139, 94, 60, 0.05) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23cc8459' stroke-width='0.5' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

#topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(247, 243, 237, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(204, 132, 89, 0.2);
    box-shadow: 0 2px 20px rgba(61, 46, 31, 0.04);
    transition: all 0.3s ease;
}

#topnav.scrolled {
    box-shadow: 0 4px 30px rgba(61, 46, 31, 0.08);
    background: rgba(247, 243, 237, 0.98);
}

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

.logo h1 {
    font-family: 'Cardo', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #8b5e3c;
    margin: 0;
    letter-spacing: 0.5px;
    position: relative;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 35px;
    height: 2px;
    background: #cc8459;
}

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

.nav-menu li a {
    display: block;
    padding: 0.7rem 1.4rem;
    color: #3d2e1f;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #cc8459;
    transition: width 0.3s ease;
}

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

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

.mobile-toggle {
    display: none;
    background: #cc8459;
    border: none;
    color: #f7f3ed;
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.mobile-toggle:hover {
    background: #8b5e3c;
}

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

#hero::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(204, 132, 89, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: desertBreeze 20s ease-in-out infinite;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -8%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(139, 94, 60, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: desertBreeze 25s ease-in-out infinite reverse;
}

@keyframes desertBreeze {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.6;
    }
    50% {
        transform: translate(20px, -30px);
        opacity: 0.8;
    }
}

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

.hero-text {
    animation: fadeInUp 0.9s ease-out;
}

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

.hero-text h1 {
    font-family: 'Cardo', serif;
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #3d2e1f;
    letter-spacing: -0.5px;
}

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

.hero-subtitle {
    font-size: 1.3rem;
    color: #6b5647;
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 400;
}

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

.btn {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border-radius: 4px;
}

.btn-primary {
    background: #cc8459;
    color: #f7f3ed;
    border: 1px solid #cc8459;
}

.btn-primary:hover {
    background: #8b5e3c;
    border-color: #8b5e3c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 132, 89, 0.25);
}

.btn-secondary {
    background: transparent;
    color: #8b5e3c;
    border: 1px solid #8b5e3c;
}

.btn-secondary:hover {
    background: #8b5e3c;
    color: #f7f3ed;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 94, 60, 0.2);
}

.hero-image {
    animation: fadeInUp 0.9s ease-out 0.15s both;
}

.profile-card {
    background: #ffffff;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(61, 46, 31, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border-radius: 3px;
    border-top: 3px solid #cc8459;
}

.profile-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: 
        linear-gradient(45deg, transparent 49%, #cc8459 49%, #cc8459 51%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, #cc8459 49%, #cc8459 51%, transparent 51%);
    opacity: 0.05;
    pointer-events: none;
}

.profile-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 50px rgba(61, 46, 31, 0.12);
}

.profile-card img {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(61, 46, 31, 0.1);
}

.profile-details h3 {
    font-family: 'Cardo', serif;
    font-size: 2rem;
    margin-bottom: 0.6rem;
    color: #3d2e1f;
    font-weight: 700;
}

.profile-details p {
    color: #6b5647;
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.social-links a {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background: #cc8459;
    color: #f7f3ed;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.social-links a:hover {
    background: #8b5e3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(204, 132, 89, 0.3);
}

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

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

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

.section-header::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #cc8459;
}

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

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #cc8459;
}

#experience {
    background: #fcfaf7;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 220px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(204, 132, 89, 0.3);
}

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

.timeline-year {
    font-family: 'Cardo', serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: rgba(204, 132, 89, 0.4);
    position: relative;
    z-index: 2;
    text-align: right;
    padding-right: 4.5rem;
    letter-spacing: -1px;
}

.timeline-year::after {
    content: '';
    position: absolute;
    right: -81px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #cc8459;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(247, 243, 237, 1);
}

.timeline-content {
    background: #ffffff;
    padding: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(61, 46, 31, 0.06);
    position: relative;
    border-radius: 3px;
    border-left: 3px solid #e8dfd5;
}

.timeline-content:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(61, 46, 31, 0.1);
    border-left-color: #cc8459;
}

.timeline-content h3 {
    font-family: 'Cardo', serif;
    font-size: 2rem;
    margin-bottom: 0.6rem;
    color: #3d2e1f;
    font-weight: 700;
}

.timeline-content h4 {
    color: #cc8459;
    font-size: 1.2rem;
    margin-bottom: 1.3rem;
    font-weight: 600;
}

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

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

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

#ai {
    background: #f7f3ed;
}

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

.project-card {
    background: #ffffff;
    padding: 3.5rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 6px 25px rgba(61, 46, 31, 0.07);
    border-radius: 3px;
    border-top: 3px solid #cc8459;
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    background: 
        radial-gradient(circle, rgba(204, 132, 89, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 35px rgba(61, 46, 31, 0.12);
}

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

.project-header h3 {
    font-family: 'Cardo', serif;
    font-size: 2.5rem;
    color: #3d2e1f;
    margin: 0;
    font-weight: 700;
}

.project-client {
    color: #cc8459;
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

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

.project-impact {
    background: #fcfaf7;
    padding: 1.8rem;
    color: #3d2e1f;
    line-height: 1.8;
    border-radius: 3px;
    border-left: 3px solid #cc8459;
}

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

#speaking {
    background: #fcfaf7;
}

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

.year-section {
    background: #ffffff;
    padding: 2.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(61, 46, 31, 0.06);
    border-radius: 3px;
    position: relative;
    border-top: 3px solid #e8dfd5;
}

.year-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(61, 46, 31, 0.1);
    border-top-color: #cc8459;
}

.year-section h3 {
    font-family: 'Cardo', serif;
    font-size: 3rem;
    margin-bottom: 2.5rem;
    color: #3d2e1f;
    text-align: center;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid rgba(204, 132, 89, 0.2);
    font-weight: 700;
}

.year-section.books {
    grid-column: span 2;
    background: #8b5e3c;
    border-top-color: #cc8459;
}

.year-section.books h3 {
    color: #f7f3ed;
    border-bottom-color: rgba(247, 243, 237, 0.2);
}

.achievements {
    list-style: none;
}

.achievements li {
    padding: 1.2rem 0;
    color: #6b5647;
    border-bottom: 1px solid rgba(61, 46, 31, 0.08);
    line-height: 1.8;
    position: relative;
    padding-left: 2rem;
}

.achievements li::before {
    content: '—';
    position: absolute;
    left: 0;
    top: 1.2rem;
    color: #cc8459;
    font-weight: 600;
}

.year-section.books .achievements li {
    color: rgba(247, 243, 237, 0.9);
    border-bottom-color: rgba(247, 243, 237, 0.15);
}

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

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

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

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

#personal {
    background: #f7f3ed;
}

#contact {
    background: #fcfaf7;
}

.contact-card {
    background: #ffffff;
    padding: 5.5rem 5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(61, 46, 31, 0.08);
    max-width: 1250px;
    margin: 0 auto;
    border-radius: 3px;
    border-top: 4px solid #cc8459;
}

.contact-card h2 {
    font-family: 'Cardo', serif;
    font-size: 4rem;
    margin-bottom: 2.5rem;
    color: #3d2e1f;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.contact-card > p {
    font-size: 1.25rem;
    color: #6b5647;
    line-height: 1.8;
    margin-bottom: 4rem;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.3rem 3.5rem;
    background: #cc8459;
    color: #f7f3ed;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(204, 132, 89, 0.2);
}

.contact-link:hover {
    background: #8b5e3c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 94, 60, 0.3);
}

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

#footer {
    background: #3d2e1f;
    padding: 4rem 0;
    text-align: center;
    color: rgba(247, 243, 237, 0.7);
}

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

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

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

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

    .hero-image {
        max-width: 500px;
        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 2rem;
        height: 70px;
    }

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

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(247, 243, 237, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 3rem;
        gap: 0;
        box-shadow: 0 10px 30px rgba(61, 46, 31, 0.1);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        border-bottom: 1px solid rgba(204, 132, 89, 0.2);
    }

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

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

    .nav-menu li a {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid rgba(61, 46, 31, 0.06);
    }

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

    .mobile-toggle {
        display: block;
    }

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

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

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

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

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

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

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

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

    .nav-container {
        padding: 0 1.8rem;
        height: 65px;
    }

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

    #hero {
        padding: 110px 0 80px;
    }

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

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

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

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

    section {
        padding: 75px 0;
    }

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

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

    .profile-card {
        padding: 1.6rem;
    }

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

    .timeline-content {
        padding: 2rem;
    }

    .project-card {
        padding: 2.5rem 2rem;
    }

    .contact-card {
        padding: 4rem 2rem;
    }

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

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

    .contact-link {
        justify-content: center;
        padding: 1.1rem 2rem;
        font-size: 0.9rem;
    }
}