/* Core Variables for a Magical Theme */
:root {
    --bg-dark: #050510;
    --bg-mid: #0a0a1f;
    --bg-light: #12122a;
    --text-main: #e0e0ff;
    --accent-glow: #a87ffb;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

html {
    background-color: var(--bg-dark);
}

/* Apply the gradient to the body so it covers the entire viewport including the header area */
body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top right, var(--bg-mid), var(--bg-dark));
    background-color: var(--bg-dark); /* Fallback */
    background-attachment: fixed; /* Keep background steady during scroll */
    min-height: 100vh;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Fix for mobile/tablet where background-attachment: fixed is buggy */
@media (max-width: 1024px) {
    body {
        background-attachment: scroll;
        background: var(--bg-dark); /* Use solid color on mobile if gradient causes issues */
        background: radial-gradient(circle at top right, var(--bg-mid), var(--bg-dark));
    }
}

/* Cinematic Grain Background Effect - DISABLED as requested */
.noise-overlay {
    display: none;
}

/* Floating Magical Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    filter: blur(100px); /* Slightly more blur for soft brightness */
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-glow);
    opacity: 0.35; /* Increased opacity for brighter blobs */
    animation: drift 15s infinite ease-in-out;
}

.blob-1 {
    width: 450px;
    height: 450px;
    top: -100px;
    left: -100px;
    background: #4b0082;
    animation-duration: 12s; /* Faster movement */
}

.blob-2 {
    width: 600px;
    height: 600px;
    bottom: -150px;
    right: -100px;
    background: #2b005e;
    animation-duration: 18s;
    animation-delay: -5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    top: 40%;
    left: 30%;
    background: #8b5cf6;
    animation-duration: 10s;
    animation-delay: -3s;
}

.blob-4 {
    width: 400px;
    height: 400px;
    top: 20%;
    right: 20%;
    background: #06b6d4;
    animation-duration: 14s;
    animation-delay: -7s;
    opacity: 0.25;
}

@keyframes drift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40vw, 25vh) scale(1.2); /* Increased movement range for all views */
    }
    66% {
        transform: translate(-30vw, 40vh) scale(0.85); /* Increased movement range for all views */
    }
}

.magic-container {
    margin: 0;
    padding: 2rem 5%;
    box-sizing: border-box;
    /* Background removed here, now handled by body */
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
.magic-container h1,
.magic-container h2,
.magic-container h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-align: center;
    padding: 10px; /* Added padding to prevent glow clipping */
    box-sizing: border-box;
}

.magic-container h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.magic-container h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    color: #fff;
}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 4rem;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 2.5rem;
    margin: 0 auto 3rem auto;
    max-width: 850px;
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    line-height: 1.8;
    font-size: 1.1rem;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(168, 127, 251, 0.2);
}

.glass-card ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.glass-card li {
    margin-bottom: 1rem;
}

.card-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    color: var(--accent-glow);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-subtitle:first-of-type {
    margin-top: 0;
}

/* Grid for the Artists Section */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.small-card {
    flex: 1 1 300px;
    margin: 0;
    /* Override auto margin for grid */
}

/* New Image Styles */
.card-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.glass-card:hover .card-image {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(168, 127, 251, 0.2);
}

.small-card-image {
    max-height: 200px;
}

/* Magic Glowing Orb Effect - REMOVED as requested */

/* Animation Classes for JavaScript Observer */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .glass-card {
        padding: 1.5rem;
        font-size: 1rem;
    }
}