:root {
    /* Premium Color Palette */
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-glow: rgba(16, 185, 129, 0.15);
    --secondary: #0F172A;
    --accent: #F59E0B;
    --bg-main: #FDFDFD;
    --bg-soft: #F8FAFC;

    /* Glassmorphism Tokens */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: blur(20px);

    /* Typography */
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Spacing & Radii */
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.06);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: #1E293B;
    line-height: 1.6;
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
    /* Smoother transition for all properties */
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1280px;
    /* Slightly wider container */
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s var(--transition);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--secondary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.5s var(--transition);
    border-bottom: 1px solid var(--glass-border);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
}


.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}


.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    /* Darker text for better contrast */
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-primary-nav {
    background-color: var(--primary);
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
}

.btn-primary-nav:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../images/hero-modern.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: -80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, var(--bg-main), transparent);
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1.1;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Service Times Grid */
.services-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Slightly wider cards */
    gap: 2.5rem;
    /* Increased gap */
    margin-top: -60px;
    /* Deeper overlap */
    position: relative;
    z-index: 10;
    margin-bottom: var(--spacing-lg);
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.5s var(--transition);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    display: inline-block;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.service-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(16, 185, 129, 0.1);
}

.service-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.8rem;
    color: var(--secondary);
    font-size: 1.35rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    margin-top: auto;
    /* Push to bottom if height varies */
}

.btn-link:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
}

/* About Section */
.about-section {
    padding: 6rem 0;
    /* More spacing */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sub-heading {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--primary-glow);
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.about-text h2 {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    line-height: 1.1;
    font-weight: 800;
}

.about-text p {
    margin-bottom: 2rem;
    color: #475569;
    font-size: 1.1rem;
    font-weight: 400;
}

.btn-text {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: gap 0.3s ease;
}

.btn-text:hover {
    gap: 1.25rem;
    color: var(--primary-dark);
}

.image-box {
    width: 100%;
    height: 550px;
    border-radius: var(--radius-xl);
    background: url('../images/about-community.png') center/cover no-repeat;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.image-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
}

/* Ministries */
.ministries-section {
    padding: 8rem 0;
    background-color: var(--bg-soft);
}

.section-header h2 {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 800;
}

.ministries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.ministry-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.5s var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.ministry-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 240px;
    /* Taller images */
    background-color: #ddd;
    transition: transform 0.5s ease;
}

.ministry-card:hover .card-image {
    transform: scale(1.05);
    /* Zoom effect */
}

.kids-bg {
    background: url('../images/ministry-kids.png') center/cover no-repeat;
}

.youth-bg {
    background: url('../images/youth.png') center/cover no-repeat;
}

.outreach-bg {
    background: url('../images/ministry-outreach.png') center/cover no-repeat;
}

.card-content {
    padding: 2rem;
    background: white;
    position: relative;
}

.card-content h3 {
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
    font-size: 1.4rem;
    font-family: var(--font-heading);
}

/* Sermons */
.sermons-section {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.sermons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.sermon-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.5s var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.sermon-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.sermon-thumbnail {
    height: 220px;
    background-color: #ddd;
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sermon-card:hover .sermon-thumbnail {
    transform: scale(1.05);
}



.play-overlay {
    background: rgba(255, 255, 255, 0.9);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Added shadow for better visibility */
    border: 2px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
}

.play-icon {
    color: var(--primary-color);
    /* Primary color icon */
    font-size: 1.5rem;
    margin-left: 4px;
}

.sermon-card:hover .play-overlay {
    background: var(--primary-color);
}

.sermon-card:hover .play-icon {
    color: white;
}

.sermon-content {
    padding: 1.5rem 2rem;
}

.sermon-date {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sermon-content h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.sermon-actions {
    display: flex;
    gap: 1rem;
    border-top: 1px solid #efefef;
    padding-top: 1rem;
    margin-top: 1rem;
}

.sermon-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.2s ease;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.sermon-actions button:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

.btn-view-all {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
}

.btn-view-all:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 10px 20px var(--primary-glow);
}

/* Activities */
.activities-section {
    padding: 6rem 0;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.activity-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.activity-thumbnail {
    height: 200px;
    background-color: #f3f4f6;
    background-position: center;
    background-size: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .activity-thumbnail {
    transform: scale(1.05);
}

.activity-content {
    padding: 1.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.activity-date {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.activity-content h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.activity-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
}

.loading-activities {
    padding: 4rem;
    grid-column: 1 / -1;
}

/* Admin Controls */
#admin-login-link.logged-in {
    color: var(--primary-color);
    font-weight: 700;
}

.admin-post-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: flex;
    gap: 0.5rem;
}

.btn-edit {
    background: rgba(255, 255, 255, 0.9);
    color: var(--secondary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-edit:hover {
    background: var(--primary-color);
    color: white;
}

/* Events */
.events-section {
    padding: 6rem 0;
}

.events-list {
    max-width: 800px;
    margin: 0 auto;
}

.event-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s var(--transition);
}

.event-item:hover {
    transform: translateX(12px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 2rem;
    min-width: 80px;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.event-date .month {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
}

.event-details {
    flex: 1;
}

.event-details h3 {
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.event-details p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.btn-sm {
    padding: 0.5rem 1rem;
    background-color: var(--bg-light);
    color: var(--secondary-color);
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-sm:hover {
    background-color: #eaeaea;
}

/* Events Loading */
.loading-events {
    padding: 3rem;
    grid-column: 1 / -1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.loading-events p {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: #94A3B8;
    padding: 6rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 35px;
    /* Reduced logo size */
    width: auto;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a i {
    font-size: 1.1rem;
    width: 20px;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 3rem;
    margin-top: 4rem;
    font-size: 0.85rem;
    text-align: center;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s var(--transition);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.mt-3 {
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 85px;
        /* Matched to new navbar height (~82px) */
        flex-direction: column;
        background: white;
        width: 100%;
        height: calc(100vh - 85px);
        padding: 2rem;
        transition: 0.3s ease;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        /* Ensure it's above the main navbar content */
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-grid,
    .about-section {
        grid-template-columns: 1fr;
        padding: 4rem 0;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }

    .event-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .event-date {
        padding-right: 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 0.5rem;
        width: 100%;
        margin-bottom: 0.5rem;
        min-width: unset;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-form {
        min-width: unset;
        width: 100%;
        padding: 2rem;
    }

    .contact-info h2 {
        font-size: 2.5rem;
    }

    .modal-content {
        padding: 2rem;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .hero {
        padding: 0 1rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .ministries-grid,
    .sermons-grid,
    .activities-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        gap: 2rem;
        text-align: center;
    }

    .footer-links a {
        justify-content: center;
    }
}

/* Contact Section */
.contact-section {
    padding: 10rem 0;
    background-color: var(--bg-main);
}

.contact-info h2 {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    font-weight: 800;
}

.contact-info p {
    color: #64748B;
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.info-item .icon {
    font-size: 1.5rem;
}

.contact-form {
    flex: 1;
    min-width: 400px;
    background: white;
    padding: 4rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #F1F5F9;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s var(--transition);
    background: #F8FAFC;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--transition);
}

.modal-content {
    background: white;
    padding: 4rem;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: scale(0.9) translateY(40px);
    transition: all 0.5s var(--transition);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.video-modal-content {
    max-width: 800px;
    width: 95%;
    padding: 0;
    /* Remove padding for video */
    background: black;
    overflow: hidden;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-modal-content .modal-close {
    color: white;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 10px;
    right: 10px;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--secondary);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-family: var(--font-heading);
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.full-width {
    width: 100%;
}