/* CSS Reset & Variables */
:root {
    --bg-dark: #050505;
    --bg-panel: #0f0f0f;
    --text-main: #b1b29d;
    --text-muted: #b2b774;
    --accent: #D4AF37;
    /* Red pulse */
    --accent-glow: rgba(255, 62, 62, 0.4);

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Rajdhani', sans-serif;

    --section-gap: 100px;
}



body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

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

/* Navbar */
.navbar {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent) !important;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted) !important;
    position: relative;
    padding: 0.5rem 1rem;
}

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

/* Sections */
.section-padding {
    padding: var(--section-gap) 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Hero Section */
#hero {
    height: 100vh;
    background: url('../img/WallPaper.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.4), rgba(5, 5, 5, 1));
    pointer-events: none;
    z-index: 1;
}

.hero-logo {
    max-width: 90%;
    max-height: 40vh;
    /* Darker Gold: brightness 70%, higher contrast, slight hue shift to orange */
    filter: drop-shadow(0 0 15px rgba(184, 134, 11, 0.5)) sepia(100%) saturate(300%) hue-rotate(0deg) brightness(70%) contrast(130%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Random Glitch Effect for Logo */
.glitch-img {
    position: relative;
    /* Combine float and glitch animations */
    animation: float 6s ease-in-out infinite, glitch-random 4s infinite linear alternate-reverse;
}

@keyframes glitch-random {
    0% {
        transform: translate(0);
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(184, 134, 11, 0.5)) sepia(100%) saturate(300%) hue-rotate(0deg) brightness(70%) contrast(130%);
    }

    92% {
        transform: translate(0);
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(184, 134, 11, 0.5)) sepia(100%) saturate(300%) hue-rotate(0deg) brightness(70%) contrast(130%);
    }

    /* Pause for 92% of time */
    93% {
        transform: translate(-2px, 2px);
        opacity: 0.8;
        /* Glitch to Red/Copper instead of Blue */
        filter: drop-shadow(0 0 20px rgba(255, 69, 0, 0.8)) sepia(100%) saturate(500%) hue-rotate(-30deg) brightness(150%) contrast(200%);
    }

    94% {
        transform: translate(2px, -2px);
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(184, 134, 11, 0.5)) sepia(100%) saturate(300%) hue-rotate(0deg) brightness(70%) contrast(130%);
    }

    96% {
        transform: translate(-2px, 2px);
        opacity: 0.8;
        /* Glitch to Bright White/Gold */
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) invert(0.2) sepia(100%) saturate(100%) brightness(180%) contrast(150%);
    }

    97% {
        transform: translate(2px, -2px);
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(184, 134, 11, 0.5)) sepia(100%) saturate(300%) hue-rotate(0deg) brightness(70%) contrast(130%);
    }

    100% {
        transform: translate(0);
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(184, 134, 11, 0.5)) sepia(100%) saturate(300%) hue-rotate(0deg) brightness(70%) contrast(130%);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    letter-spacing: 8px;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
    margin-top: 2rem;
}

.presentation-text {
    text-align: center;
    margin: auto;
    width: 100%;
    max-width: 800px;
}

/* Audio Section */
.audio-glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

#visualizer {
    width: 100%;
    height: 150px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.btn-play-pulse {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent);
    border: none;
    box-shadow: 0 0 0 0 var(--accent-glow);
    animation: pulse-red 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--bg-dark);
}

.btn-play-pulse:hover {
    background-color: var(--accent-glow);
    box-shadow: 0 0 0 10px rgba(255, 62, 62, 0);
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 var(--accent-glow);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 62, 62, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 62, 62, 0);
    }
}

/* Members - Glitch Cyber Cards */
.member-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 130px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.member-card:hover {
    border-color: var(--role-color, var(--accent));
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--role-color, var(--accent-glow));
}

.card-content {
    margin-left: 2rem;
}

.card-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-content .role {
    color: var(--role-color, var(--accent));
    font-weight: 700;
    letter-spacing: 2px;
}

/* Helpers */
.text-accent {
    color: var(--accent);
}

.btn-outline-accent {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-accent:hover {
    background-color: var(--accent);
    color: white;
}

/* Glitch Effect Simple */
.glitch-text {
    position: relative;
}

.glitch-text:hover::before,
.glitch-text:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

.glitch-text:hover::before {
    left: 2px;
    text-shadow: -1px 0 #786874;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text:hover::after {
    left: -2px;
    text-shadow: -1px 0 #ff1900;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

/* Constant Glitch for Hero */
.glitch-text-constant {
    position: relative;
    display: inline-block;
}

.glitch-text-constant::before,
.glitch-text-constant::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    /* Transparent for hero over image */
}

.glitch-text-constant::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
    opacity: 0.8;
}

.glitch-text-constant::after {
    left: -2px;
    text-shadow: -1px 0 #aaff00;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 3s infinite linear alternate-reverse;
    opacity: 0.8;
}

@keyframes glitch-anim {
    0% {
        clip: rect(13px, 9999px, 81px, 0);
    }

    10% {
        clip: rect(76px, 9999px, 7px, 0);
    }

    /* ... shortened for brevity, browser will interpolate ... */
    100% {
        clip: rect(43px, 9999px, 14px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 10px, 0);
    }

    100% {
        clip: rect(3px, 9999px, 92px, 0);
    }
}

/* Audio & Live Playlists Styling */
.track-list, .live-track-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.15);
    padding: 0;
}

.playlist-item, .live-playlist-item {
    cursor: pointer;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    list-style: none;
    border-left: 3px solid transparent;
}

.playlist-item:last-child, .live-playlist-item:last-child {
    border-bottom: none;
}

.playlist-item:hover, .live-playlist-item:hover {
    background: rgba(212, 175, 55, 0.05);
    border-left-color: rgba(212, 175, 55, 0.5);
    color: #fff;
    padding-left: 1.8rem; /* Smooth indentation on hover */
}

/* Active States */
.playlist-item.active-track, .live-playlist-item.active {
    background: rgba(212, 175, 55, 0.1) !important;
    border-left-color: var(--accent) !important;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.track-row, .live-track-row {
    font-family: var(--font-body);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.track-idx, .live-track-idx {
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 300;
}

/* Live Video Container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.live-glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

/* Custom Scrollbar for Playlists */
.track-list::-webkit-scrollbar, .live-track-list::-webkit-scrollbar {
    width: 6px;
}

.track-list::-webkit-scrollbar-track, .live-track-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.track-list::-webkit-scrollbar-thumb, .live-track-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.track-list::-webkit-scrollbar-thumb:hover, .live-track-list::-webkit-scrollbar-thumb:hover {
    background: #fff;
}