/*
  MixTape Music Festival - Redesigned Stylesheet
  Version: 1.5 (Cleaned & Final)
*/

:root {
    --primary: #E81B25;
    --primary-glow: rgba(232, 27, 37, 0.4);
    --dark: #0B0B0F;
    --dark-alt: #121218;
    --light: #F8F9FA;
    --gray: #6c757d;
    --text-color: rgba(255, 255, 255, 0.85);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-family: 'Work Sans', sans-serif;
    --section-padding: 100px 0;
}

/* === BASE STYLES === */
body {
    background-color: var(--dark);
    color: var(--text-color);
    font-family: var(--font-family);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--light);
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--light);
}

.section-padding {
    padding: var(--section-padding);
}

.section-header {
    margin-bottom: 4rem;
}

.section-tagline {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* === BUTTONS === */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.btn-glow {
    box-shadow: 0 5px 20px var(--primary-glow);
}

.btn-primary:hover.btn-glow {
    box-shadow: 0 8px 30px var(--primary-glow);
}

/* === NAVBAR === */
.navbar {
    padding: 1rem 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(11, 11, 15, 0.85);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand img {
    height: 50px;
    transition: height 0.4s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

.navbar-toggler {
    border: none;
    font-size: 1.5rem;
    color: var(--light);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    margin: 0 0.75rem;
    padding: 0.5rem 0 !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--light) !important;
}

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

/* === HERO BANNER === */
.hero-banner-section {
    margin-top: 82px;
    line-height: 0;
}

.hero-banner-section img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 991px) {
    .hero-banner-section {
        margin-top: 70px;
    }
}

/* === ABOUT SECTION === */
.about-image-stack {
    position: relative;
    height: 450px;
}

.about-img-1, .about-img-2 {
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: absolute;
    object-fit: cover;
}

.about-img-1 {
    width: 70%;
    height: 80%;
    top: 0;
    left: 0;
}

.about-img-2 {
    width: 60%;
    height: 70%;
    bottom: 0;
    right: 0;
    border: 5px solid var(--dark);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

@media (max-width: 991px) {
    .about-image-stack {
        margin-bottom: 3rem;
    }
}

/* === GALLERY SECTION === */
.gallery-section {
    background-color: var(--dark-alt);
}

.gallery-image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    height: 100%;
    background-color: var(--dark-alt);
}

.gallery-image-wrapper:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-image-wrapper:hover img {
    transform: scale(1.08);
}

.gallery-image-wrapper::after {
    content: '\eb03'; /* Unicons expand icon Unicode */
    font-family: 'unicons-line';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 3rem;
    color: #fff;
    opacity: 0;
    transition: all 0.4s ease;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.gallery-image-wrapper:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(11, 11, 15, 0.7) 0%, transparent 100%);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-image-wrapper:hover::before {
    opacity: 1;
}

.aspect-ratio-4-5 {
    aspect-ratio: 4 / 5;
}

@media (max-width: 991px) {
    .aspect-ratio-4-5 {
        height: 350px;
    }
}

/* === VIDEO SECTION === */
.video-thumb-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.video-thumb-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(232, 27, 37, 0.3);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.video-thumb-card:hover .video-thumbnail {
    transform: scale(1.1);
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(11, 11, 15, 0.5);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--light);
    transition: all 0.4s ease;
    pointer-events: none;
}

.video-thumb-card:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary);
    border-color: var(--primary);
}

.video-thumb-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light);
    background: linear-gradient(0deg, rgba(11, 11, 15, 0.8) 0%, transparent 100%);
    text-align: center;
    transition: all 0.4s ease;
}

/* === OTHER SECTIONS (News, Venue, CTA, Footer) === */
.news-section {
    background-color: var(--dark-alt);
}

.news-card-large, .news-card-social {
    display: block;
    border-radius: 15px;
    padding: 2rem;
    background: var(--dark);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    color: var(--text-color);
}

.news-card-large:hover, .news-card-social:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.venue-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.venue-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.venue-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--dark-alt);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}

.cta-section {
    padding: 100px 0;
    background: var(--primary) url('/frontend/mixtape/lights.jpg') center/cover no-repeat;
    background-blend-mode: multiply;
    position: relative;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--light);
    margin-bottom: 1rem;
}

.footer {
    background-color: var(--dark-alt);
    padding: 80px 0 0;
    font-size: 0.95rem;
}

.copyright {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    color: var(--gray);
}

/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 15, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content video, .lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 2001;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.lightbox-content video::-webkit-media-controls-panel, .lightbox-content video::-webkit-media-controls {
    display: flex !important;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }
}


/* === LIGHTBOX (Corrected) === */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 15, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 2rem; /* Adds margin around the content */
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content-wrapper {
    position: relative;
    width: 100%;
    /* Sets a maximum size for the popup, making it smaller */
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content video, .lightbox-content img {
    width: 100%; /* Make content fill the new smaller wrapper */
    height: auto;
    max-height: 85vh; /* Ensure it doesn't get too tall */
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* This is the specific fix to force video controls to show */
.lightbox-content video::-webkit-media-controls-panel,
.lightbox-content video::-webkit-media-controls {
    display: flex !important;
    opacity: 1 !important;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 2001;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .lightbox {
        padding: 1rem;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }
}

.video-card-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* center always */
    z-index: 2;
    font-size: 36px; /* prominent */
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.video-card-play-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1); /* hover scale effect */
}

/* === HERO SLIDER (BANNER STYLE) === */
.hero-slider-section {
    margin-top: 82px; /* Position below navbar */
    line-height: 0;
}

.hero-slider {
    width: 100%;
    aspect-ratio: 21 / 9; /* Widescreen banner aspect ratio */
    background-color: var(--dark-alt); /* Placeholder color */
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Styling for Navigation and Pagination */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: #fff;
    background-color: rgba(11, 11, 15, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background-color: var(--primary);
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

.hero-slider .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7);
    width: 10px;
    height: 10px;
    opacity: 1;
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--primary);
    transform: scale(1.2);
}

@media (max-width: 991px) {
    .hero-slider-section {
        margin-top: 70px;
    }

    .hero-slider {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        aspect-ratio: 4 / 3;
    }

    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
}

/* Ensure old fullscreen hero styles are removed or overridden */
.hero-section {
    height: auto;
    min-height: initial;
}

/* === New Style for "View More" Text Button === */
.btn-text-reveal {
    display: inline-block;
    position: relative;
    font-weight: 600;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 5px; /* Creates space for the underline */
    text-decoration: none;
}

.btn-text-reveal i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* The animated underline */
.btn-text-reveal::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.4s ease;
}

.btn-text-reveal:hover {
    color: var(--light); /* Keep text color the same on hover */
}

/* The hover effects */
.btn-text-reveal:hover::after {
    width: 100%;
}

.btn-text-reveal:hover i {
    transform: translateX(5px);
}
/* === Polished Footer Styles === */

.footer {
    background-color: var(--dark-alt);
    padding: 80px 0 0;
    font-size: 0.95rem;
    color: var(--gray);
    position: relative;
    border-top: 2px solid transparent;
    /* Adds a sleek gradient border at the top */
    border-image: linear-gradient(90deg, transparent, var(--primary), transparent) 1;
}

.footer-logo {
    max-width: 150px; /* Controls size better than inline width */
    height: auto;
    margin-bottom: 1.5rem;
}

.footer-about {
    line-height: 1.7;
    padding-right: 1rem; /* Prevents text from touching the edge on small screens */
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Adds a small accent line below titles */
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-top: 4px; /* Better vertical alignment */
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--light);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 15px var(--primary-glow);
}

.copyright {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    color: var(--gray);
}

.copyright p {
    margin: 0;
    font-size: 0.9rem;
}
/* === HERO BANNER === */
.hero-banner-section {
    margin-top: 82px;
    line-height: 0;
}

.hero-banner-section img {
    width: 100%;
    height: auto; /* <-- This is the key issue */
    object-fit: cover;
}
