:root {
    --primary-blue: #2c5f8d;
    --deep-blue: #1a3a52;
    --light-blue: #4a7ba7;
    --accent-blue: #5a9bd4;
    --soft-gray: #f5f7fa;
    --warm-white: #fdfefe;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
}

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

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--warm-white);
    padding-top: 80px;
}

h1, h2, h3 {
    font-family: 'Crimson Pro', serif;
    font-weight: 700;
    line-height: 1.2;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(44, 95, 141, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 2px 30px rgba(44, 95, 141, 0.15);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    font-family: 'Crimson Pro', serif;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a.active {
    color: var(--primary-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--primary-blue) 50%, var(--light-blue) 100%);
    color: white;
    padding: 0;
    height: 56.25vw;
    min-height: 400px;
    max-height: 700px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

/* Hero Carousel */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: none;
}

.hero-slide.active {
    opacity: 1;
    display: block;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.6);
}

.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 0.75rem;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot:hover,
.dot.active {
    background-color: rgba(255, 255, 255, 1);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 100%;
    padding: 2rem;
    opacity: 0;
    animation: fadeIn 0.5s ease-in 0.3s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Content Sections */
.content-section {
    padding: 1rem 2rem 5rem 2rem;
}

.content-section h2 {
    font-size: 2.8rem;
    color: var(--deep-blue);
    margin-bottom: 3rem;
    text-align: center;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-medium);
    line-height: 1.8;
}

/* Mission Statement */
.mission-statement {
    background: var(--soft-gray);
    padding: 3rem;
    border-radius: 16px;
    margin-bottom: 4rem;
    border-left: 5px solid var(--primary-blue);
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.sponsors {
    text-align: center;
    margin-top: 2rem;
    font-style: italic;
    color: var(--text-medium);
}

/* Home Grid */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.home-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(44, 95, 141, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.home-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(44, 95, 141, 0.2);
}

.home-card .card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.home-card h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.home-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Leadership Team */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.leader-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(44, 95, 141, 0.1);
    transition: all 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(44, 95, 141, 0.2);
}

.leader-image {
    width: 100%;
    height: 400px;
    background: var(--soft-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    font-weight: 700;
}

.leader-photo-single {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.leader-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 100%;
    background: var(--soft-gray);
    padding: 1rem;
}

.leader-photo {
    width: 100%;
    height: 300px;
    object-fit: contain;
}

.leader-info {
    padding: 2rem;
}

.leader-info h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.leader-info p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Connect Section */
.connect-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.social-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(44, 95, 141, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(44, 95, 141, 0.2);
}

.social-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.social-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.social-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* Events Section */
.events-placeholder {
    background: var(--soft-gray);
    padding: 4rem;
    border-radius: 16px;
    text-align: center;
    border: 3px dashed var(--light-blue);
}

.events-placeholder p {
    color: var(--text-medium);
    font-size: 1.2rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(44, 95, 141, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(44, 95, 141, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--soft-gray), #e8eef5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    font-size: 1.1rem;
    border: 2px dashed var(--light-blue);
}

/* Events Grid */
.events-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 3rem;
    justify-content: center;
}

.event-card {
    max-width: 400px;
}

.event-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(44, 95, 141, 0.1);
}

/* Tim's Story Section */
.story-container {
    max-width: 1000px;
    margin: 0 auto;
}

.story-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.story-photo,
.story-flyer {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(44, 95, 141, 0.2);
}

.story-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--light-blue), var(--accent-blue));
    border-radius: 16px;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 20px 60px rgba(44, 95, 141, 0.2);
}

.story-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(44, 95, 141, 0.1);
    line-height: 1.8;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .story-images {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background: var(--deep-blue);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

footer p {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

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

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

    .page-header h1 {
        font-size: 2rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .leadership-grid,
    .connect-grid,
    .home-grid {
        grid-template-columns: 1fr;
    }
}