/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(26, 15, 15, 0.7), rgba(26, 15, 15, 0.7)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><radialGradient id="fire" cx="50%" cy="80%" r="60%"><stop offset="0%" stop-color="%23ff4444"/><stop offset="50%" stop-color="%23ff6b35"/><stop offset="100%" stop-color="%23f7931e"/></radialGradient></defs><rect width="1200" height="800" fill="%23000"/><circle cx="600" cy="600" r="300" fill="url(%23fire)" opacity="0.8"/><circle cx="200" cy="400" r="150" fill="%23ff4444" opacity="0.4"/><circle cx="1000" cy="300" r="200" fill="%23f7931e" opacity="0.3"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center bottom, transparent 0%, rgba(26, 15, 15, 0.8) 70%);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.presents {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--text-orange);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 4.5rem;
    font-weight: 700;
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
    text-shadow: 0 0 30px var(--shadow-fire);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUp 1s ease 1.1s forwards;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 1.4s forwards;
}

.hero-date {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease 1.7s forwards;
}

.hero-date span {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-orange);
}

.cta-btn {
    display: inline-block;
    background: var(--gradient-fire);
    color: white;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease 2s forwards;
    box-shadow: 0 10px 30px var(--shadow-fire);
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-fire);
}

.flame-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--primary-fire), transparent);
    opacity: 0.1;
    animation: flicker 2s infinite;
}

/* Travel Info and Bar Show Sections */
.travel-info {
    background: var(--gradient-dark);
    color: var(--text-orange);
    text-align: center;
    padding: 20px 0;
    font-weight: 600;
    font-size: 1.2rem;
    font-family: 'Cinzel', serif;
    border-top: 2px solid var(--primary-fire);
    border-bottom: 2px solid var(--primary-fire);
}

.bar-show {
    background: var(--gradient-fire);
    color: white;
    text-align: center;
    padding: 80px 0;
    font-family: 'Cinzel', serif;
    box-shadow: 0 0 50px var(--shadow-fire);
    position: relative;
    overflow: hidden;
}

.bar-show::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.3) 70%);
}

.bar-show h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: flicker 2s infinite alternate;
    position: relative;
    z-index: 1;
}

.bar-show p {
    font-size: 1.4rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--gradient-dark);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    animation: popIn 0.6s ease forwards;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-fire);
    box-shadow: 0 20px 40px var(--shadow-fire);
}

.feature-card:nth-child(even) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(odd) {
    animation-delay: 0.4s;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--text-orange);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Carousel Styles - Updated with proper image sizing */
.carousel-section {
    background: var(--darker-bg);
    color: var(--text-orange);
    padding: 80px 0;
    font-family: 'Cinzel', serif;
    text-align: center;
}

.carousel-section h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.carousel {
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    animation: scrollCarousel 30s linear infinite;
    gap: 30px;
}

.carousel-item {
    flex: 0 0 400px;
    height: 250px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-orange);
    box-shadow: 0 0 30px var(--shadow-fire);
    border: 2px solid var(--primary-fire);
    user-select: none;
    transition: transform 0.3s ease;
    overflow: hidden;
    /* Important: prevents image overflow */
    position: relative;
}

/* Image styling - This is the key addition */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* This makes images cover the entire container */
    object-position: center;
    /* Centers the image */
    border-radius: 13px;
    /* Slightly smaller radius to fit inside the border */
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: scale(1.05);
}

.carousel-item:hover img {
    transform: scale(1.1);
    /* Slight zoom on hover for extra effect */
}

/* Fallback text styling for broken images */
.carousel-item {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-280px * 6));
    }

    /* Updated calculation to account for gap */
}

/* Pause animation on hover */
.carousel:hover .carousel-track {
    animation-play-state: paused;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .carousel-section {
        padding: 60px 0;
    }

    .carousel-section h2 {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .carousel-item {
        flex: 0 0 200px;
        height: 130px;
    }

    .carousel-track {
        gap: 20px;
    }

    @keyframes scrollCarousel {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-220px * 6));
        }
    }
}

@media (max-width: 480px) {
    .carousel-section h2 {
        font-size: 2rem;
    }

    .carousel-item {
        flex: 0 0 180px;
        height: 120px;
        font-size: 1rem;
    }

    .carousel-track {
        gap: 15px;
    }

    @keyframes scrollCarousel {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-195px * 6));
        }
    }
}


/* Countdown */
.countdown {
    padding: 80px 0;
    background: var(--darker-bg);
    text-align: center;
}

.countdown h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--text-orange);
    margin-bottom: 40px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.time-unit {
    background: var(--gradient-fire);
    padding: 30px;
    border-radius: 20px;
    min-width: 120px;
    box-shadow: 0 10px 30px var(--shadow-fire);
}

.time-unit span {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.time-unit label {
    font-size: 0.9rem;
    color: white;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Home Page Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-date {
        flex-direction: column;
        gap: 10px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .countdown-timer {
        gap: 20px;
    }

    .time-unit {
        min-width: 100px;
        padding: 20px;
    }

    .time-unit span {
        font-size: 2rem;
    }

    .carousel-item {
        flex: 0 0 200px;
        height: 120px;
    }

    @keyframes scrollCarousel {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-220px * 6));
        }
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-content {
        padding: 0 15px;
    }
}