/* CSS Reset & Variables */
:root {
    --ted-red: #E62B1E;
    --black: #000000;
    --white: #FFFFFF;
    --dark-gray: #1a1a1a;
    --light-gray: #f2f2f2;

    /* Baluran "Savannah" Palette Accents */
    --savannah-gold: #D4AF37;
    --savannah-grass: #C0C080;
    --sky-blue: #87CEEB;

    --font-primary: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-primary);
    color: var(--black);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    display: flex;
    align-items: baseline;
}

.logo .ted {
    color: var(--ted-red);
}

.logo .x {
    color: var(--ted-red);
    font-size: 0.8em;
    /* Slightly smaller superscript */
    vertical-align: super;
}

.logo .location {
    color: var(--black);
    margin-left: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--black);
    position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--ted-red);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--black);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Fallback gradient until image is generated */
    background: radial-gradient(circle at center, #FFD700 0%, #D2691E 50%, #8B4513 100%);
    color: var(--white);
    padding-top: 60px;
    /* Offset for fixed nav */
    overflow: hidden;
}

/* Simulate landscape elements with CSS layers */
.hero-bg-drape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 10px;
    opacity: 0.9;
}

.date-location {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--savannah-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--ted-red);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(230, 43, 30, 0.4);
    border: none;
    /* For form buttons */
    cursor: pointer;
    /* For form buttons */
    font-size: 1rem;
    /* For form buttons */
}

.cta-button:hover {
    background-color: #c41e12;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 43, 30, 0.5);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(230, 43, 30, 0.3);
}

/* Loading state for buttons */
.cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}


/* General Sections */
.section {
    padding: 100px 0;
    /* Increased padding and Restored! */
}

/* Team Grid - 3 Column Layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 5px;
}

.team-member {
    background: var(--white);
    padding: 40px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-top: 3px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-top-color: var(--ted-red);
}

.team-member:active {
    transform: translateY(-8px) scale(1.01);
}


.team-photo {
    width: 120px;
    /* Match speaker-img-placeholder */
    height: 120px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 auto 20px;
    overflow: hidden;
    position: relative;
    /* Removed border: 3px solid var(--savannah-gold); */
}

.team-member h3 {
    margin-bottom: 5px;
    color: var(--ted-red);
    font-size: 1.2rem;
}

.team-role {
    font-weight: 300;
    font-style: italic;
    color: #666;
    margin-bottom: 15px;
}

.team-bio {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    /* Space for separator */
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 15px;
}

.section-header .underline {
    width: 60px;
    height: 4px;
    background-color: var(--ted-red);
    margin: 10px auto 0;
    /* Centered with top margin */
}

/* Page Header Section (For subpages) */
.page-header-section {
    background-color: var(--black);
    color: var(--white);
    padding: 120px 0 60px;
    /* More top padding for nav */
    text-align: center;
}

.page-header-section h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.page-header-section .underline {
    background-color: var(--ted-red);
    width: 60px;
    height: 4px;
    margin: 0 auto 20px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
}

.about-visual {
    height: 400px;
    background-color: var(--savannah-grass);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    /* Placeholder pattern */
    background-image: repeating-linear-gradient(45deg, var(--savannah-grass) 25%, transparent 25%, transparent 75%, var(--savannah-grass) 75%, var(--savannah-grass)), repeating-linear-gradient(45deg, var(--savannah-grass) 25%, #f0f0f0 25%, #f0f0f0 75%, var(--savannah-grass) 75%, var(--savannah-grass));
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

.savannah-card {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(0, 0, 0, 0.5);
    font-weight: bold;
    font-size: 1.5rem;
}

/* Speakers Section */
.speakers-section {
    background-color: var(--light-gray);
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.speaker-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.speaker-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.speaker-img-placeholder {
    width: 120px;
    height: 120px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.speaker-card h3 {
    margin-bottom: 5px;
    color: var(--ted-red);
}

.speaker-role {
    font-weight: 300;
    font-style: italic;
    color: #666;
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.partner-logo {
    height: 100px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-weight: 700;
}

/* Forms (Contact/Nominate) */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--black);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ted-red);
    box-shadow: 0 0 0 3px rgba(230, 43, 30, 0.1);
}

/* Accessibility - Focus States */
a:focus,
button:focus,
.cta-button:focus,
.nav-links a:focus,
.menu-toggle:focus {
    outline: 2px solid var(--ted-red);
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--ted-red);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}


/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.event-card {
    display: block;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--ted-red);
}

.event-year {
    background-color: var(--black);
    color: var(--white);
    padding: 15px;
    font-size: 1.5rem;
    font-weight: 900;
    text-align: center;
}

.event-card:hover .event-year {
    background-color: var(--ted-red);
}

.event-info {
    padding: 25px;
    text-align: center;
}

.event-info h3 {
    margin-bottom: 10px;
    color: var(--black);
}

.view-details {
    display: inline-block;
    margin-top: 15px;
    color: var(--ted-red);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    margin-top: auto;
    /* Push to bottom if content is short */
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.footer-brand .ted {
    color: var(--ted-red);
}

.footer-brand .x {
    color: var(--ted-red);
    vertical-align: super;
    font-size: 0.8em;
}

.disclaimer {
    font-size: 0.9rem;
    color: #999;
    /* Improved from #888 for better contrast */
    margin-bottom: 20px;
}

.social-links {
    margin-bottom: 30px;
}

.social-links a {
    color: var(--white);
    margin: 0 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.copyright {
    color: #777;
    /* Improved from #555 for better contrast on black */
    font-size: 0.8rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for loading states */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}


/* Tablet Responsive (iPad, medium screens) */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 30px;
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 60px;
        height: calc(100vh - 60px);
        background: var(--white);
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding-top: 50px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Event Rundown */
.rundown-list {
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid var(--ted-red);
    padding-left: 20px;
}

.rundown-item {
    margin-bottom: 30px;
    position: relative;
}

.rundown-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 10px;
    height: 10px;
    background-color: var(--black);
    border-radius: 50%;
    border: 2px solid var(--white);
}

.rundown-time {
    font-weight: 700;
    color: var(--ted-red);
    margin-bottom: 5px;
}

.rundown-title {
    font-weight: 900;
    font-size: 1.2rem;
}

.rundown-desc {
    color: #666;
    font-size: 0.95rem;
}

/* Media Partners */
.media-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* More columns for smaller logos */
    gap: 15px;
    text-align: center;
    margin-top: 30px;
}

.media-partner-logo {
    height: 80px;
    background-color: #fff;
    border: 1px solid #eee;
    /* Lighter border */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 0.8rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .media-partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }


    /* Show 1 column on mobile */
    .team-grid {
        grid-template-columns: 1fr;
    }
}