/* Theme: Yucatan (Ancient Mayan) - Day 25, letter Y: Inspired by Mayan pyramids, jungle temples, jade carvings, glyphs, ceremonial gold, turquoise waters, limestone architecture, tropical vegetation, astronomical calendars, sacred cenotes */

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

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

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

body {
    font-family: 'Lora', serif;
    font-size: 17px;
    line-height: 1.8;
    color: #1a3a2e;
    background: #f8f6f0;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(52, 152, 219, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(197, 151, 80, 0.07) 0%, transparent 50%);
    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='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40h80M40 0v80' stroke='%23c59750' stroke-width='0.5' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

#topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 58, 46, 0.96);
    backdrop-filter: blur(15px);
    border-bottom: 3px solid #c59750;
    box-shadow: 0 4px 25px rgba(26, 58, 46, 0.3);
    transition: all 0.3s ease;
}

#topnav.scrolled {
    box-shadow: 0 6px 35px rgba(26, 58, 46, 0.4);
    background: rgba(26, 58, 46, 0.98);
}

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

.logo h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #c59750;
    margin: 0;
    letter-spacing: 3px;
    position: relative;
    text-transform: uppercase;
}

.logo h1::before {
    content: '◆';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db;
    font-size: 0.8rem;
}

.logo h1::after {
    content: '◆';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db;
    font-size: 0.8rem;
}

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

.nav-menu li a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #f8f6f0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db 0%, #c59750 100%);
    transition: width 0.3s ease;
}

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

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

.mobile-toggle {
    display: none;
    background: #c59750;
    border: 2px solid #f8f6f0;
    color: #1a3a2e;
    font-size: 1.6rem;
    width: 55px;
    height: 55px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.mobile-toggle:hover {
    background: #3498db;
    color: #f8f6f0;
}

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

#hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: ancientFloat 30s ease-in-out infinite;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(197, 151, 80, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: ancientFloat 35s ease-in-out infinite reverse;
}

@keyframes ancientFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translate(40px, -50px) rotate(180deg);
        opacity: 0.7;
    }
}

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

.hero-text {
    animation: glyphReveal 1s ease-out;
}

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

.hero-text h1 {
    font-family: 'Cinzel', serif;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 2.5rem;
    color: #1a3a2e;
    letter-spacing: 1px;
    position: relative;
}

.hero-text h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #c59750 0%, #3498db 100%);
}

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

.hero-subtitle {
    font-size: 1.35rem;
    color: #2c5f4b;
    margin-bottom: 3.5rem;
    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 3.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 1px;
    border-radius: 2px;
    position: relative;
    font-family: 'Cinzel', serif;
}

.btn-primary {
    background: #c59750;
    color: #1a3a2e;
    border: 2px solid #c59750;
    box-shadow: 0 6px 20px rgba(197, 151, 80, 0.3);
}

.btn-primary:hover {
    background: transparent;
    color: #c59750;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(197, 151, 80, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-secondary:hover {
    background: #3498db;
    color: #f8f6f0;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.hero-image {
    animation: glyphReveal 1s ease-out 0.2s both;
}

.profile-card {
    background: #ffffff;
    padding: 2.5rem;
    box-shadow: 
        0 0 0 3px #c59750,
        0 15px 45px rgba(26, 58, 46, 0.2);
    transition: all 0.4s ease;
    position: relative;
    border-radius: 2px;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: 
        linear-gradient(45deg, transparent 48%, #3498db 48%, #3498db 52%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, #3498db 48%, #3498db 52%, transparent 52%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 0 0 3px #c59750,
        0 20px 55px rgba(26, 58, 46, 0.25);
}

.profile-card img {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 2px;
    box-shadow: 0 8px 25px rgba(26, 58, 46, 0.15);
    border: 2px solid #c59750;
}

.profile-details h3 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    color: #1a3a2e;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.social-links a {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #3498db;
    color: #f8f6f0;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 2px;
    font-family: 'Cinzel', serif;
    border: 2px solid #3498db;
}

.social-links a:hover {
    background: transparent;
    color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

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

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

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

.section-header::before {
    content: '◆◆◆';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: #3498db;
    font-size: 1.2rem;
    letter-spacing: 1.5rem;
}

.section-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a3a2e;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

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

#experience {
    background: rgba(52, 152, 219, 0.03);
}

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

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

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

.timeline-year {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 700;
    color: rgba(197, 151, 80, 0.4);
    position: relative;
    z-index: 2;
    text-align: right;
    padding-right: 5rem;
    letter-spacing: 2px;
}

.timeline-year::after {
    content: '';
    position: absolute;
    right: -86px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #c59750;
    border-radius: 0;
    box-shadow: 0 0 0 4px #f8f6f0, 0 0 0 8px rgba(197, 151, 80, 0.2);
    transform: translateY(-50%) rotate(45deg);
}

.timeline-content {
    background: #ffffff;
    padding: 3rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(26, 58, 46, 0.1);
    position: relative;
    border-radius: 2px;
    border-left: 4px solid transparent;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db 0%, #c59750 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.timeline-content:hover {
    transform: translateX(12px);
    box-shadow: 0 12px 40px rgba(26, 58, 46, 0.15);
    border-left-color: #c59750;
}

.timeline-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    margin-bottom: 0.7rem;
    color: #1a3a2e;
    font-weight: 700;
    letter-spacing: 1px;
}

.timeline-content h4 {
    color: #3498db;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

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

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

#ai {
    background: rgba(197, 151, 80, 0.03);
}

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

.project-card {
    background: #ffffff;
    padding: 4rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 10px 35px rgba(26, 58, 46, 0.1);
    border-radius: 2px;
    border-top: 4px solid #c59750;
}

.project-card::before {
    content: '◆';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: rgba(52, 152, 219, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(26, 58, 46, 0.15);
}

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

.project-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    color: #1a3a2e;
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.project-client {
    color: #3498db;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 2.2rem;
    letter-spacing: 0.5px;
}

.project-card > p {
    color: #2c5f4b;
    line-height: 1.8;
    margin-bottom: 2.8rem;
}

.project-impact {
    background: rgba(52, 152, 219, 0.05);
    padding: 2rem;
    color: #1a3a2e;
    line-height: 1.8;
    border-radius: 2px;
    border-left: 4px solid #3498db;
}

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

#speaking {
    background: rgba(52, 152, 219, 0.03);
}

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

.year-section {
    background: #ffffff;
    padding: 3.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(26, 58, 46, 0.1);
    border-radius: 2px;
    position: relative;
    border-top: 3px solid transparent;
}

.year-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3498db 0%, #c59750 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.year-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(26, 58, 46, 0.15);
}

.year-section h3 {
    font-family: 'Cinzel', serif;
    font-size: 3.2rem;
    margin-bottom: 2.8rem;
    color: #1a3a2e;
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(52, 152, 219, 0.15);
    font-weight: 700;
    letter-spacing: 2px;
}

.year-section.books {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(26, 58, 46, 0.95) 0%, rgba(26, 58, 46, 0.98) 100%);
    border-top-color: #c59750;
}

.year-section.books h3 {
    color: #c59750;
    border-bottom-color: rgba(197, 151, 80, 0.3);
}

.achievements {
    list-style: none;
}

.achievements li {
    padding: 1.4rem 0;
    color: #2c5f4b;
    border-bottom: 1px solid rgba(26, 58, 46, 0.08);
    line-height: 1.8;
    position: relative;
    padding-left: 2.2rem;
}

.achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    top: 1.4rem;
    color: #3498db;
    font-weight: 700;
}

.year-section.books .achievements li {
    color: rgba(248, 246, 240, 0.9);
    border-bottom-color: rgba(248, 246, 240, 0.15);
}

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

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

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

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

#personal {
    background: rgba(197, 151, 80, 0.03);
}

#contact {
    background: rgba(52, 152, 219, 0.05);
}

.contact-card {
    background: #ffffff;
    padding: 6.5rem 5.5rem;
    text-align: center;
    box-shadow: 
        0 0 0 4px #c59750,
        0 20px 60px rgba(26, 58, 46, 0.15);
    max-width: 1300px;
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #3498db 0%, #c59750 50%, #3498db 100%);
}

.contact-card h2 {
    font-family: 'Cinzel', serif;
    font-size: 4.5rem;
    margin-bottom: 2.8rem;
    color: #1a3a2e;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-card > p {
    font-size: 1.3rem;
    color: #2c5f4b;
    line-height: 1.8;
    margin-bottom: 4.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.6rem 4rem;
    background: #c59750;
    color: #1a3a2e;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 2px;
    font-family: 'Cinzel', serif;
    box-shadow: 0 8px 25px rgba(197, 151, 80, 0.3);
    border: 2px solid #c59750;
}

.contact-link:hover {
    background: transparent;
    color: #c59750;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(197, 151, 80, 0.4);
}

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

#footer {
    background: linear-gradient(135deg, rgba(26, 58, 46, 0.95) 0%, rgba(26, 58, 46, 0.98) 100%);
    padding: 4.5rem 0;
    text-align: center;
    color: rgba(248, 246, 240, 0.75);
    border-top: 3px solid #c59750;
}

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

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

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

    .hero-text h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

    .hero-image {
        max-width: 540px;
        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: 85px;
    }

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

    .nav-menu {
        position: fixed;
        top: 85px;
        left: 0;
        right: 0;
        background: rgba(26, 58, 46, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 3.5rem;
        gap: 0;
        box-shadow: 0 15px 40px rgba(26, 58, 46, 0.4);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        border-bottom: 3px solid #c59750;
    }

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

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

    .nav-menu li a {
        width: 100%;
        text-align: center;
        padding: 1.2rem;
        border-bottom: 1px solid rgba(248, 246, 240, 0.1);
    }

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

    .mobile-toggle {
        display: block;
    }

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

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

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

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

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

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

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

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

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

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

    #hero {
        padding: 120px 0 90px;
    }

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

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

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

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

    section {
        padding: 85px 0;
    }

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

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

    .profile-card {
        padding: 2rem;
    }

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

    .timeline-content {
        padding: 2.5rem;
    }

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

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

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

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

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