/* Custom CSS for Event Management Website */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --purple-color: #6f42c1;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Navigation - solid dark bar, little smaller height (as before) */
.navbar {
    transition: all 0.3s ease;
    padding: 0.35rem 0;
}

.navbar.scrolled {
    background-color: rgba(33, 37, 41, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
    text-decoration: none !important;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.navbar-brand:hover {
    opacity: 0.92;
    transform: scale(1.02);
}

/* Logo in navbar */
.navbar-brand img {
    height: 80px;
    width: auto;
    max-width: 280px;
    min-height: 44px;
    object-fit: contain;
    object-position: left center;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.15));
}

/* Logo in footer - same asset, bigger */
.footer-logo {
    height: 88px;
    width: auto;
    max-width: 380px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.12));
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--warning-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: #000;
    overflow: hidden;
}

.carousel,
.carousel-inner,
.carousel-item,
.hero-slide-bg {
    height: 100%;
}

.carousel,
.carousel-fade .carousel-item {
    transition-duration: 3s;
    /* Ultra-smooth slow fade */
}

.hero-slide-bg {
    background-size: cover;
    background-position: center;
    transition: transform 8s ease;
}

.carousel-item.active .hero-slide-bg {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Premium Gradient: Dark Start -> Transparent Center -> Dark End + Subtle Gold Tint */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.9) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    z-index: -1;
}

/* Static Content Overlay - Sits on top of carousel */
.fixed-overlay {
    position: absolute;
    /* Ensures overlay sits on top */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Higher than .hero-overlay */
    pointer-events: none;
    /* Allow clicks to pass through to unused areas if needed */
}

/* Make inner content interactive again */
.fixed-overlay .container {
    pointer-events: auto;
}

/* Section common */
section {
    padding: 80px 0;
    overflow: hidden;
    /* Prevent horizontal scroll from animations */
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--warning-color);
    margin: 1rem auto;
}

/* Services */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--warning-color);
    margin-bottom: 1.5rem;
}

/* Features */
.feature-box {
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon-wrapper i {
    font-size: 2rem;
    color: var(--warning-color);
}

/* Gallery High Effects */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle border */
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 193, 7, 0.3);
    /* Gold Glow */
    z-index: 5;
}

/* Feature/Service Card High Effects */
.service-card,
.feature-box,
.stats-card,
.card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    overflow: hidden;
    position: relative;
}

/* Hover - Lift & Subtle Gradient Border */
.service-card:hover,
.feature-box:hover,
.stats-card:hover,
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #ffc107;
}

/* Text Color Effects on Hover */
.service-card:hover .card-title,
.feature-box:hover h3,
.stats-card:hover h3 {
    color: #ffc107 !important;
    /* Turn Gold */
    transition: color 0.3s ease;
}

.card-title,
.feature-box h3,
.stats-card h3 {
    transition: color 0.3s ease;
}

/* Image Zoom on Box Hover */
.service-card:hover img,
.card:hover img {
    transform: scale(1.05);
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Testimonials */
.testimonial-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--warning-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2px solid var(--warning-color);
}

/* Contact */
.contact-info-item {
    display: flex;
    margin-bottom: 2rem;
}

.contact-icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: var(--warning-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

/* Footer */
footer a {
    text-decoration: none;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--warning-color);
    color: #fff !important;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #fff;
    transform: scale(1.1);
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    /* moved to left to avoid clash with whatsapp */
    display: none;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--dark-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
}

#back-to-top:hover {
    background-color: var(--warning-color);
}

/* Admin Panel */
.sidebar {
    min-height: 100vh;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link.active {
    background-color: #e9ecef;
    color: var(--bs-primary);
    font-weight: 600;
}

.img-thumbnail {
    object-fit: cover;
}

/* Login Page */
.login-container {
    max-width: 400px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: #fff;
}

/* Hero Carousel Controls Customization */
.hero-section .carousel-indicators {
    bottom: 30px;
    z-index: 3;
}

.hero-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.hero-section .carousel-indicators button.active {
    background-color: #ffc107;
    border-color: #ffc107;
    transform: scale(1.2);
}

.hero-section .carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Ensure carousel controls are visible on mobile */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 50px;
    opacity: 0.8;
    z-index: 15;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-section .carousel-indicators {
        bottom: 20px;
    }

    .hero-section .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }

    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        width: 40px;
    }
}

/* Stats Section Styles */
.stats-card {
    background-color: #fff;
    border: 1px solid #ffc107;
    /* Gold border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 180px;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.stats-card h3 {
    color: #333;
    font-family: 'Playfair Display', serif;
    /* Optional for premium look check if loaded */
}

.spacing-2 {
    letter-spacing: 2px;
}

/* Mobile Optimizations for Hero Overlap */
@media (max-width: 991px) {
    .fixed-overlay {
        padding-top: 100px;
        /* Moved up closer to logo */
        align-items: flex-start !important;
        /* Start from top + padding */
    }

    #hero-title.display-3 {
        font-size: 2.4rem;
        /* Larger for impact */
        line-height: 1.1;
        letter-spacing: -1px;
    }

    #hero-subtitle {
        display: none !important;
        /* Hide on mobile */
    }

    h2.display-2 {
        font-size: 2rem;
        /* Keep animated text prominent but fitting */
        margin-bottom: 3rem !important;
        /* More space before buttons */
    }

    #hero-stats .glass-effect {
        padding: 0.5rem !important;
    }

    #hero-stats h3 {
        font-size: 1.5rem;
    }

    /* Stats Mobile Grid */
    .stats-card {
        min-height: 140px;
        /* Reduced height */
        padding: 1rem !important;
    }

    /* Push buttons to bottom on mobile */
    .fixed-overlay .container,
    .fixed-overlay .row,
    .hero-content-fade-in {
        height: 100%;
    }

    .hero-content-fade-in {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        /* Center text */
    }

    .hero-content-fade-in .d-flex {
        margin-top: 0;
        /* Reset */
        margin-bottom: 80px;
        /* Just above dots */
        width: 100%;
        justify-content: center;
        /* Center buttons */
        gap: 15px;
    }

    #hero-title.display-3 {
        font-family: 'Playfair Display', serif;
        font-size: 2.2rem;
        line-height: 1.2;
        letter-spacing: 1px;
        text-transform: uppercase;
        margin-bottom: 1rem;
        /* Cinematic Animation */
        opacity: 0;
        animation: cinematicSlideUp 1.2s ease-out forwards;
        animation-delay: 0.2s;
        /* Text Glow & Gradient */
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
        background: linear-gradient(90deg, #ffffff, #ffe082, #ffffff);
        background-size: 200% auto;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: gradientText 3s linear infinite, cinematicSlideUp 1.2s ease-out forwards;
    }

    /* Primary Button Shimmer */
    .hero-content-fade-in .btn:first-child {
        background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
        background-size: 200% 100%;
        animation: buttonShimmer 3s infinite linear;
        border-color: #fff !important;
    }

    /* Secondary Button Color Pulse */
    .hero-content-fade-in .btn:last-child {
        animation: float 6s ease-in-out infinite;
    }

    /* Mobile Buttons - Momenza Style */
    .hero-content-fade-in .btn {
        background: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.6) !important;
        color: #fff !important;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 2px;
        padding: 12px 25px;
        border-radius: 0;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1) !important;
        width: auto !important;
        backdrop-filter: blur(5px);
        /* Glass effect */
    }

    h2.display-2 {
        font-family: 'Playfair Display', serif;
        font-size: 2.2rem;
        text-transform: uppercase;
        margin-bottom: 2rem !important;
        min-height: auto !important;
        /* Fix spacing */
    }

    /* Mobile Buttons - Momenza Style */
    .hero-content-fade-in .btn {
        background: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.8) !important;
        color: #fff !important;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 2px;
        padding: 12px 25px;
        border-radius: 0;
        /* Square/Rectangular */
        box-shadow: none !important;
        width: auto !important;
    }

    .stats-card h3 {
        font-size: 2rem;
        /* Smaller numbers */
    }

    .stats-card small {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .hero-section {
        min-height: 600px;
        /* Ensure full height on mobile too */
        height: 100vh;
    }
}