:root {
    --bg-color: #050505;
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.05);
    --primary-color: #ff0055;
    --secondary-color: #00f2ff;
    --accent-glow: rgba(255, 0, 85, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, #1a0b12 0%, #050505 60%);
}

/* Noise Texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition);
}

#main-header.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid var(--surface-border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(255, 0, 85, 0.5));
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.desktop-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
    opacity: 0.8;
    padding: 5px 0;
    /* Add padding to increase hit area stability */
    display: inline-block;
    /* Ensure padding works */
}

/* Navbar Fix: Removed width transition on ::after to prevent layout shift/flicker */
.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    /* Only animate width */
    pointer-events: none;
}

.desktop-nav a:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.cta-button {
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid rgba(255, 0, 85, 0.3);
    padding: 12px 30px;
    border-radius: 4px;
    color: var(--primary-color) !important;
    opacity: 1 !important;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 85, 0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

/* CTA Button Hover Effect */
.cta-button:hover {
    background: rgba(255, 0, 85, 0.2);
    box-shadow: 0 0 30px var(--accent-glow);
    border-color: var(--primary-color);
}

/* Reduced size for Navbar CTA as requested */
nav .cta-button {
    font-size: 0.85rem;
    padding: 8px 20px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    animation: zoomIn 30s infinite alternate;
    filter: brightness(0.6) contrast(1.2);
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1.25);
    }
}

.hero-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(5, 5, 5, 0.2) 0%, rgba(5, 5, 5, 1) 90%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 7rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: -3px;
    line-height: 0.9;
    mix-blend-mode: overlay;
}

/* Glitch Effect Refined */
.glitch-text {
    position: relative;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    mix-blend-mode: hard-light;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #ff0055;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 4s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #00f2ff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 4s infinite linear alternate-reverse;
}

/* Reusing previous glitch keyframes but keeping them here for completeness */
@keyframes glitch-anim-1 {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 40px, 0);
    }

    40% {
        clip: rect(60px, 9999px, 10px, 0);
    }

    60% {
        clip: rect(50px, 9999px, 90px, 0);
    }

    80% {
        clip: rect(30px, 9999px, 70px, 0);
    }

    100% {
        clip: rect(70px, 9999px, 90px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    20% {
        clip: rect(70px, 9999px, 50px, 0);
    }

    40% {
        clip: rect(80px, 9999px, 20px, 0);
    }

    60% {
        clip: rect(70px, 9999px, 90px, 0);
    }

    80% {
        clip: rect(50px, 9999px, 30px, 0);
    }

    100% {
        clip: rect(20px, 9999px, 90px, 0);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.primary-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 18px 50px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.primary-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff0055, #ff5e00);
    z-index: -1;
    transition: var(--transition);
}

.primary-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 0, 85, 0.6);
}

/* About Section */
.about-section {
    padding: 150px 0;
    background: var(--bg-color);
    position: relative;
}

/* Ambient Light Blob */
.about-section::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.separator {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0 auto;
}

.story-grid {
    display: grid;
    gap: 80px;
    position: relative;
    z-index: 2;
}

/* Glassmorphism Card */
.story-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid var(--surface-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.story-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.story-card:hover::before {
    opacity: 1;
}

.story-card.partnership {
    grid-template-columns: 1fr;
    text-align: center;
    background: linear-gradient(180deg, var(--surface-color), rgba(10, 10, 10, 0.8));
}

.image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
    filter: grayscale(20%);
}

.story-card:hover .image-wrapper img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.story-card h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.role {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

.story-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Portfolio Section */
.portfolio-section {
    padding: 150px 0;
    background: #080808;
    position: relative;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    bottom: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 0, 85, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.portfolio-item {
    background: var(--surface-color);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--surface-border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 300px;
}

.portfolio-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-15px);
    border-color: var(--secondary-color);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
}

.disc-icon {
    width: 80px;
    height: 80px;
    background: conic-gradient(from 0deg, #333, #111, #333);
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: spin 10s linear infinite;
    animation-play-state: paused;
    transition: all 0.5s ease;
}

.portfolio-item:hover .disc-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    animation-play-state: running;
    border-color: var(--secondary-color);
}

.disc-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    background: #080808;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.portfolio-item h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
    transition: all 0.5s ease;
}

.portfolio-item:hover h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Artist List Reveal (Spotify Style) */
.artist-list {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    width: 100%;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.portfolio-item:hover .artist-list {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.artist {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: var(--transition);
    gap: 15px;
}

.artist:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.artist-img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
}

.artist-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.artist-name {
    font-size: 0.9rem;
    color: white;
    font-weight: 700;
}

.song-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.play-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    padding-left: 3px;
    flex-shrink: 0;
}

.play-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 10px var(--primary-color);
    transform: scale(1.1);
}

/* Contact Section */
.contact-section {
    padding: 150px 0;
    text-align: center;
    background: linear-gradient(to top, #000000, #080808);
    position: relative;
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    padding: 80px;
    border-radius: 40px;
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(10px);
}

.contact-wrapper h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #25D366;
    color: white;
    padding: 20px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 40px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.2);
}

.whatsapp-button:hover {
    background: #128C7E;
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

/* Footer */
footer {
    padding: 50px 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--surface-border);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 70%;
        height: 100vh;
        background: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
        padding: 20px;
        z-index: 1000;
        border-left: 1px solid #333;
    }

    .desktop-nav.active {
        right: 0;
        display: flex;
        /* Ensure it switches to flex display when active if hidden */
    }

    .desktop-nav ul {
        flex-direction: column;
        gap: 30px;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
        /* Above menu */
    }

    /* Hamburger Animation */
    .mobile-menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .mobile-menu-toggle span {
        transition: all 0.3s ease;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .story-card {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        padding: 40px 20px;
    }
}

/* Spotify Player */
.spotify-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #181818;
    border-top: 1px solid #282828;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    transition: transform 0.5s ease;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.spotify-player.hidden {
    transform: translateY(100%);
}

.player-left {
    display: flex;
    align-items: center;
    width: 30%;
    min-width: 180px;
}

#player-art {
    width: 56px;
    height: 56px;
    object-fit: cover;
    margin-right: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.player-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#player-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 3px;
}

#player-artist {
    color: #b3b3b3;
    font-size: 0.75rem;
}

.player-center {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 722px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
}

.control-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: #fff;
}

.play-circle {
    width: 35px;
    height: 35px;
    background-color: #fff;
    border-radius: 50%;
    color: #000;
    font-size: 1rem;
    padding-left: 0;
    /* Removed manual offset for emoji */
}

.play-circle:hover {
    transform: scale(1.05);
    background-color: #fff;
    color: #000;
}

/* Ensure play circle icon stays black on hover */
.play-circle:hover svg {
    color: #000 !important;
}

.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b3b3b3;
    font-size: 0.7rem;
    font-weight: 400;
}

/* Range Input Styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #fff;
    margin-top: -4px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    display: none;
    /* hide by default, show on hover group */
}

.progress-container:hover input[type="range"]::-webkit-slider-thumb,
.player-right:hover input[type="range"]::-webkit-slider-thumb {
    display: block;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #4f4f4f;
    border-radius: 2px;
}

/* Progress bar fill trick requires JS or complex CSS, 
   simplest is linear-gradient background update in JS. 
   Defaulting to a neutral look for now. */

/* Player Right (Volume) */
.player-right {
    width: 30%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 180px;
}

.volume-icon {
    color: #b3b3b3;
    margin-right: 10px;
    font-size: 1.1rem;
}

#volume-bar {
    width: 100px;
}

/* Artist Active State */
.artist {
    cursor: pointer;
    /* Make draggable look clickable */
}

.artist.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #1DB954;
    /* Spotify Green */
}

.artist.active .artist-name {
    color: #1DB954;
}

.artist.active .play-btn {
    background-color: #1DB954;
    color: #000;
    border-color: #1DB954;
}

/* Responsive Player */
@media (max-width: 768px) {
    .spotify-player {
        padding: 10px 15px;
        flex-direction: row;
        /* Keep row but maybe condense */
        height: 80px;
    }

    .player-left {
        width: 50%;
    }

    .player-center {
        position: absolute;
        top: 15px;
        right: 15px;
        width: auto;
    }

    .progress-container {
        display: none;
        /* simple mobile view */
    }

    .player-right {
        display: none;
    }

    /* Fix header overlap padding */
    body {
        padding-bottom: 90px;
    }
}

/* Fix horizontal scroll on mobile */
html,
body {
    overflow-x: hidden;
}

/* Close Player Button */
#close-player-btn {
    position: absolute;
    top: -15px;
    right: 15px;
    background: #121212;
    border: 1px solid #282828;
    color: #b3b3b3;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2001;
    /* Above player content */
}

#close-player-btn:hover {
    background: #ff4444;
    /* Red on hover */
    color: white;
    border-color: #ff4444;
}

/* Player Icons (SVG) */
.control-btn svg {
    display: block;
    /* Removes baseline space */
}

.control-btn:hover svg {
    color: white;
}

/* "Agendar Horário" Text Size Adjustment */
.cta-button {
    font-size: 0.9rem;
    /* Smaller text */
    padding: 12px 30px;
    /* Maintain button size padding */
}

/* Hidden YouTube Iframe (Can be removed if desired, but harmless to keep css) */
#youtube-player-container {
    display: none;
}