/* CSS RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.logo img {
    max-width: 100%;
    height: 50px;
    margin-right: 20px;
}

/* HEADER & NAVIGATION */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    height: 80px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 2040px;
    margin: 0 auto;
    padding: 1rem 2rem;
    height: 80px;
    background-color: #ffffff;
}


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

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    font-size: larger;
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #7C3AED;
}

/* .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7C3AED;
    transition: width 0.3s ease;
}

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

.nav-links a.active {
    color: #7C3AED;
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
    background: #7C3AED;
    transition: width 0.3s ease;
}

.mobile-menu a.active {
    color: #7C3AED;
    font-weight: 600;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #000000;
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 300px;
    height: 400px;
    background: rgba(248, 250, 252, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transform: translateX(0);
    transition: right 0.3s ease;
    z-index: 999;
    opacity: 1;
    visibility: visible;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 0 15px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 2rem;
    margin: 0;
    text-align: center;
}

.mobile-menu li {
    margin: 1.5rem 0;
    list-style: none;
}

.mobile-menu a {
    font-family: 'Montserrat', sans-serif;
    color: #000000;
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 1rem 0;
    transition: color 0.3s ease;
    font-weight: 500;
}

.mobile-menu a:hover {
    color: #7C3AED;
}


/* HERO SECTION */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 300;
    letter-spacing: 2px;
}


/* EVENTS SECTION */

.events-section {
    padding: 5rem 0;
    background: #0a0a0a;
}

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

.events-grid {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

.event-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.event-card.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* Featured Event (First Card) */
.event-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    min-height: 400px;
}

.event-media {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
}

.featured .event-media {
    height: 100%;
}

.event-media img,
.event-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-media img,
.event-card:hover .event-media video {
    transform: scale(1.05);
}


/* Make SweetAlert inputs take more width */
.swal2-popup .swal2-input {
    width: 90% !important;
    max-width: 500px;   
    margin: 10px auto;
    padding: 12px 15px;    
    font-size: 1rem;     
    border-radius: 8px;   
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Modernize confirm & cancel buttons */
.swal2-popup .swal2-confirm,
.swal2-popup .swal2-cancel {
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 6px;
}

.swal2-popup .swal2-confirm {
    background-color: #7C3AED; /* New Breed Church Purple */
    color: #fff;
}

.swal2-popup .swal2-cancel {
    background-color: #e0e0e0;
    color: #333;
}


.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.play-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #333;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 3px;
}

.event-content {
    padding: 2rem;
}

.event-date {
    color: #7C3AED;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.thanksgivingDate, .worshipDate{
    color: #7C3AED;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.event-description {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.register-btn {
    display: inline-block;
    background: linear-gradient(45deg, #7C3AED, #8b5cf6);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.register-btn:hover::before {
    left: 100%;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}


/* Footer */
footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: white;
    padding: 4rem 0 2rem;
}

/* .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
} */

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo h2 span {
    color: #6b46c1;
}

.footer-links h3,
.footer-ministries h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #6b46c1;
}

.footer {
    background-color: #1c2533;
    color: #eee;
    padding: 4rem 1rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-section p,
.footer-section li {
    color: #cbd5e0;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.3rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e0;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #6b46c1;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #a0aec0;
    font-size: 0.9rem;
}

.center-button {
    text-align: center;
}


/* ANIMATIONS */

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

.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}


/* RESPONSIVE DESIGN */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    nav {
        padding: 0 1rem;
    }

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

    .event-card.featured {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .event-media {
        height: 250px;
    }

    .event-content {
        padding: 1.5rem;
    }

    .event-title {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 0 1rem;
    }

    .event-card {
        margin: 0 0.5rem;
    }

    .play-button {
        width: 60px;
        height: 60px;
    }

    .play-button::before {
        border-left: 15px solid #333;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
    }

    nav {
        padding: 0 0.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Force visibility for debugging */
.nav-links,
.hamburger,
.logo {
    visibility: visible !important;
    opacity: 1 !important;
}


/* LOADING STATES */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Custom SweetAlert2 Styling */
.swal2-popup {
    background: rgba(10, 10, 10, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.swal2-title {
    color: #ffffff !important;
}

.swal2-content {
    color: #b0b0b0 !important;
}

.swal2-confirm {
    background: linear-gradient(45deg, #6366f1, #8b5cf6) !important;
    border: none !important;
}

.swal2-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.swal2-input::placeholder {
    color: #b0b0b0 !important;
}