:root {
    --primary-color: #ec2400; /* Rock band logo red/orange */
    --text-light: #ffffff;
    --text-muted: #b3b3b3;
    --bg-dark: #0a0a0a;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background setup */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100lvh; /* Evita o pulo no mobile */
    background-image: url('images/fundo.webp');
    background-size: cover;
    background-position: top center;
    z-index: 0;
    transform: scale(1);
    animation: slowZoom 20s infinite alternate;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100lvh; /* Evita o pulo no mobile */
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

/* Ensure content stays above background */
nav, main, footer {
    position: relative;
    z-index: 2;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.03); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: transparent;
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    padding: 15px 50px;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-link {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

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

/* Main Sections */
section {
    min-height: 100vh;
    padding: 100px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Hero Section */
.hero {
    text-align: center;
}

.logo-container {
    position: relative;
    display: inline-block;
    max-width: 600px;
    width: 90%;
    margin-bottom: 20px;
    animation: float 6s ease-in-out infinite;
}

.hero-logo {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.8));
}

.logo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        105deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 47%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 0) 53%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: shine-logo 7s infinite;
    -webkit-mask-image: url('images/Madame%20Loud%20logo%20vermelho%20RGB.png');
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-image: url('images/Madame%20Loud%20logo%20vermelho%20RGB.png');
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    pointer-events: none;
    z-index: 10;
}

@keyframes shine-logo {
    0% { background-position: 200% 0; }
    20% { background-position: -100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    color: var(--text-light);
    font-size: 20px;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 51, 51, 0.3);
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    animation: sound-vibrate 4s infinite;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transition: width 0.3s ease;
}

.cta-btn:hover::before {
    width: 100%;
}

.cta-btn:hover {
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.5);
    animation-play-state: paused;
}

@keyframes sound-vibrate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.7);
    }
    3% {
        transform: scale(1.05) rotate(-3deg);
        box-shadow: 0 0 0 10px rgba(255, 51, 51, 0.5);
    }
    6% {
        transform: scale(1.05) rotate(3deg);
        box-shadow: 0 0 0 25px rgba(255, 51, 51, 0.2);
    }
    9% {
        transform: scale(1.05) rotate(-3deg);
        box-shadow: 0 0 0 40px rgba(255, 51, 51, 0);
    }
    12% {
        transform: scale(1.05) rotate(3deg);
        box-shadow: 0 0 0 0 rgba(255, 51, 51, 0);
    }
    15% {
        transform: scale(1) rotate(0deg);
    }
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 50px;
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.glass-card h2 {
    font-family: 'Anton', sans-serif;
    font-size: 2.8rem;
    font-weight: normal;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    
    /* Efeito Rust (Ferrugem) via SVG Mask - Meio termo */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.12' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 16 -4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.12' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 16 -4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-light);
}

.members {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.member {
    padding: 20px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
    min-width: 200px;
}

.member:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.member .member-icon {
    width: 65px;
    height: auto;
    margin-bottom: 15px;
    display: inline-block;
}

.member h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.member span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Spotify Container */
.spotify-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Videos Section */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.video-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
}

/* Carousel Section */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 30px auto 10px;
    display: flex;
    align-items: center;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #0d0d0d;
    padding-bottom: 20px;
}

.carousel-track {
    list-style: none;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-slide img:hover {
    transform: scale(1.02);
}

.carousel-cta {
    margin-top: 15px;
    margin-bottom: 5px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: #fff;
    padding: 10px 40px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.carousel-cta:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.5);
}

.carousel-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.4);
}

.carousel-btn:hover {
    background: white;
    color: var(--primary-color);
}

.prev-btn { left: -20px; }
.next-btn { right: -20px; }

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-indicator.current-indicator {
    background: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background: #000;
    border-top: 1px solid #222;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-break { display: block; }
    
    .logo-container { 
        max-width: 280px; 
        margin-top: 20px;
    }
    .hero .subtitle { 
        font-size: 1rem; 
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .navbar { 
        padding: 15px; 
        flex-direction: column; 
        gap: 10px; 
    }
    .navbar.scrolled { 
        padding: 10px; 
    }
    
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links a {
        font-size: 12px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    .prev-btn { left: -10px; }
    .next-btn { right: -10px; }
    
    section { 
        padding: 120px 15px 50px; 
        min-height: auto;
    }
    
    .glass-card { 
        padding: 25px 15px; 
        border-radius: 15px;
    }
    
    .glass-card h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .about-content p {
        font-size: 0.95rem;
    }
    
    .member {
        width: 100%;
        min-width: unset;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .cta-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}
