/* Import Cinzel Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&display=swap');

/* Old Glory Color Palette */
:root {
    --old-glory-red: #B22234;
    --old-glory-white: #FFFFFF;
    --old-glory-blue: #002868;
    --dark-text: #1a1a1a;
    --light-gray: #f5f5f5;
    --accent-gray: #efefef;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--old-glory-white);
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #000000;
    max-width: 800px;
    padding: 0 20px;
    font-family: 'Cinzel', serif;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    font-family: 'Cinzel', serif;
}

.hero-content p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    letter-spacing: 0.5px;
    font-family: 'Cinzel', serif;
}

/* Event Details Section */
.event-details-section {
    padding: 80px 20px;
    background: var(--old-glory-white);
}

.event-details-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.event-details-content h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--old-glory-blue);
}

.event-detail {
    margin-bottom: 30px;
}

.event-detail h3 {
    font-size: 1.1rem;
    color: var(--old-glory-red);
    margin-bottom: 8px;
    font-weight: 600;
}

.event-detail p {
    font-size: 1rem;
    color: var(--dark-text);
    line-height: 1.6;
}

.event-details-image {
    width: 100%;
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border: 2px solid var(--old-glory-red);
    border-radius: 8px;
}

/* Listserv Section */
.listserv-section {
    padding: 60px 20px;
    background: linear-gradient(to right, #c62b38 0%, var(--old-glory-red) 100%);
    text-align: center;
}

.listserv-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: stretch;
}

.listserv-form {
    display: flex;
    gap: 0;
}

.listserv-form input {
    min-width: 250px;
    padding: 14px 20px;
    font-size: 1rem;
    border: 2px solid var(--old-glory-blue);
    border-radius: 4px 0 0 4px;
    background: var(--old-glory-white);
    color: var(--dark-text);
    transition: border-color 0.3s ease;
}

.listserv-form input:focus {
    outline: none;
    border-color: var(--old-glory-red);
}

.btn-primary {
    padding: 14px 28px;
    background: var(--old-glory-white);
    color: var(--dark-text);
    border: 2px solid #c0c0c0;
    border-radius: 0 4px 4px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #f5f5f5;
}

.btn-secondary {
    padding: 14px 28px;
    background: var(--old-glory-white);
    color: var(--dark-text);
    border: 2px solid #c0c0c0;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

/* Speakers Section */
.speakers-section {
    padding: 80px 20px;
    background: var(--old-glory-white);
}

.speakers-section h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    color: var(--old-glory-blue);
}

.speakers-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.speakers-carousel-wrapper {
    flex: 1;
    overflow: hidden;
}

.speakers-carousel {
    display: flex;
    gap: 40px;
    will-change: transform;
}

.speakers-section:hover .speakers-carousel {
    animation-play-state: paused;
}

@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - 40px));
    }
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(0, 40, 104, 0.3);
    color: var(--old-glory-white);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(0, 40, 104, 0.6);
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
}

.carousel-nav-left {
    left: 0;
}

.carousel-nav-right {
    right: 0;
}

.speaker-card {
    text-align: center;
    flex-shrink: 0;
    min-width: 280px;
}

.speaker-image-container {
    perspective: 1000px;
    margin-bottom: 15px;
}

.speaker-image-front,
.speaker-image-back {
    position: relative;
    backface-visibility: hidden;
}

.speaker-image-container:hover .speaker-image-front {
    transform: rotateY(180deg);
}

.speaker-image-container:hover .speaker-image-back {
    transform: rotateY(0deg);
}

.speaker-image-front {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.speaker-image-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1;
    background: var(--old-glory-blue);
    color: var(--old-glory-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
    transform: rotateY(180deg);
    transition: transform 0.6s;
}

.speaker-image-back p {
    font-size: 0.95rem;
    text-align: center;
}

.speaker-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border: 3px solid var(--old-glory-red);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.speaker-name {
    margin-top: 10px;
}

.speaker-card h3 {
    font-size: 1.2rem;
    color: var(--dark-text);
}

/* Quote Section */
.quote-section {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.quote-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.quote-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.95) contrast(1.05);
}

.quote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 104, 0.55);
    z-index: 2;
}

.quote-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--old-glory-white);
    max-width: 900px;
    padding: 0 20px;
}

.quote-content h2 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

/* Footer */
.footer {
    position: relative;
    background: var(--old-glory-blue);
    color: var(--old-glory-white);
    padding: 60px 20px 30px;
    overflow: hidden;
}

.footer-star {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    opacity: 0.1;
    pointer-events: none;
}

.footer-star svg {
    width: 100%;
    height: 100%;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--old-glory-white);
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--old-glory-white);
}

.footer-section a {
    color: var(--old-glory-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--old-glory-red);
}

.footer-link {
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--old-glory-white);
    transition: border-color 0.3s ease;
}

.footer-link:hover {
    border-bottom-color: var(--old-glory-red);
}

.footer-bottom {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: var(--old-glory-white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .event-details-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .listserv-form {
        width: 100%;
    }

    .listserv-form input {
        min-width: 100%;
        border-radius: 4px 4px 0 0;
    }

    .listserv-ctas {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary {
        width: 100%;
        border-radius: 0 0 4px 4px;
    }

    .btn-secondary {
        width: 100%;
    }

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

    .quote-content h2 {
        font-size: 1.8rem;
    }

    .footer-star {
        right: -120px;
        width: 300px;
        height: 300px;
    }
}
