/* CSS Design Tokens & Variables */
:root {
    --bg-dark: #0b0813;
    --bg-card: rgba(20, 17, 37, 0.7);
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --secondary: #ec4899;
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --font-display: 'Syne', sans-serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
}

/* Global Resets & Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Beautiful Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #2d264d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Header / Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 40;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-box {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.logo-svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #fff, #c084fc, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links a {
    transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 5rem;
    overflow: hidden;
}

.ambient-1 {
    position: absolute;
    top: -10rem;
    left: -10rem;
    width: 24rem;
    height: 24rem;
    background: rgba(124, 58, 237, 0.2);
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.ambient-2 {
    position: absolute;
    top: 50%;
    right: 2.5rem;
    width: 30rem;
    height: 30rem;
    background: rgba(219, 39, 119, 0.1);
    border-radius: 50%;
    filter: blur(180px);
    pointer-events: none;
}

#dynamic-ambient-glow {
    position: absolute;
    bottom: 2.5rem;
    left: 33%;
    width: 20rem;
    height: 20rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    transition: background-color 1s ease, filter 1s ease;
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, #141125 1px, transparent 1px),
        linear-gradient(to bottom, #141125 1px, transparent 1px);
    background-size: 4rem 4rem;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 70%, transparent 100%);
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #d8b4fe;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #db2777;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.hero-title span {
    display: block;
}

.gradient-text {
    background: linear-gradient(90deg, #a78bfa, #f472b6, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    max-width: 42rem;
    margin: 0 auto 3rem auto;
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    color: var(--text-muted);
    font-weight: 300;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.25rem;
    border-radius: 9999px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    background: #6d28d9;
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

/* Sound Equalizer Decorator */
.eq-decorator {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0.375rem;
    height: 4rem;
    opacity: 0.3;
    pointer-events: none;
}

.eq-bar {
    width: 4px;
    background: var(--accent);
    border-radius: 9999px;
}

.eq-bar:nth-child(1) {
    height: 50%;
    animation: bounce 1s infinite alternate;
}

.eq-bar:nth-child(2) {
    height: 75%;
    animation: bounce 1.4s infinite alternate;
    background: #c084fc;
}

.eq-bar:nth-child(3) {
    height: 100%;
    animation: bounce 1.2s infinite alternate;
    background: var(--secondary);
}

.eq-bar:nth-child(4) {
    height: 60%;
    animation: bounce 1.5s infinite alternate;
    background: #f472b6;
}

.eq-bar:nth-child(5) {
    height: 80%;
    animation: bounce 0.8s infinite alternate;
}

@keyframes bounce {
    0% {
        transform: scaleY(0.3);
    }

    100% {
        transform: scaleY(1.1);
    }
}

/* About Section */
.about-section {
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, var(--bg-dark), rgba(20, 17, 37, 0.3));
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 5fr 7fr;
    }
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-text {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .about-features {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon.purple {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.feature-icon.pink {
    background: rgba(236, 72, 153, 0.2);
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: #f472b6;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Roster Sections (Core Members & Featured Artists) */
.team-section {
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-dark);
}

.featured-section {
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, var(--bg-dark), rgba(20, 17, 37, 0.15));
}

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

.section-header p {
    color: var(--text-muted);
    max-width: 36rem;
    margin: 1rem auto 0 auto;
}

.team-grid,
.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {

    .team-grid,
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

.member-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.member-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
}

.member-visual {
    height: 12rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Responsive image fit styles */
.member-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Fitting image gracefully instead of cropping/filling */
    padding: 0.75rem;
    /* Creates clean breathing space inside card gradients */
    display: block;
    border-radius: 0.75rem;
    transition: transform 0.4s ease;
}

.member-card:hover .member-img {
    transform: scale(1.05);
}

/* Flexible Dynamic Gradient Visualizers */
.visual-purple {
    background: linear-gradient(135deg, #3b0764, #1e1b4b);
}

.visual-pink {
    background: linear-gradient(135deg, #500724, #4c0519);
}

.visual-amber {
    background: linear-gradient(135deg, #451a03, #422006);
}

.visual-emerald {
    background: linear-gradient(135deg, #064e3b, #022c22);
}

.visual-blue {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

.member-placeholder-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    background: rgba(0, 0, 0, 0.2);
}

.member-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.member-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.member-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
}

.member-role {
    font-size: 0.725rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Flexible Dynamic Role Badges */
.role-purple {
    background: rgba(139, 92, 246, 0.2);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.role-pink {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.role-amber {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.role-emerald {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.role-blue {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.member-bio {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Music / Release Section */
.music-section {
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(20, 17, 37, 0.3), var(--bg-dark));
}

/* Responsive itch.io Embed Container */
.itch-embed-wrapper {
    max-width: 600px;
    margin: 2rem auto 0 auto;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
}

.itch-frame-container {
    position: relative;
    width: 100%;
    height: 167px;
    /* Standard itch.io embed height */
    border-radius: 0.75rem;
    overflow: hidden;
    background: #1c1830;
}

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

.embed-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.4;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-dark);
    text-align: center;
}

footer p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4b5563;
}

/* Dynamic Notifications Toast */
#toast {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 50;
    background: rgba(20, 17, 37, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: translateY(2.5rem);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

#toast.active {
    transform: translateY(0);
    opacity: 1;
}

.toast-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.5s infinite;
}

#toast-text {
    font-size: 0.875rem;
    font-weight: 600;
}

.copyleft {
    display: inline-block;
    transform: scaleX(-1);
  }