/* ==========================================================================
   BHUKKAD SQUAD SMP - CINEMATIC VISUAL ENGINE v4.0
   ========================================================================== 
   AUTHOR: Gemini Dev
   LICENSE: MIT
   DESCRIPTION: Global stylesheet handling physics animations, lighting, 
                glassmorphism, and responsive typography.
   ========================================================================== */

/* ==========================================================================
   1. ROOT VARIABLES & CONFIGURATION
   ========================================================================== */
:root {
    /* --- COLOR PALETTE: NEON ABYSS --- */
    --c-void: #02040a;       /* Darkest black-blue */
    --c-deep: #050a14;       /* Deep ocean */
    --c-surface: #0f172a;    /* Surface water */
    
    --c-cyan-100: #ccf9ff;
    --c-cyan-500: #00d2ff;   /* Primary Brand Color */
    --c-cyan-900: #004a5c;
    
    --c-purple-500: #7000ff; /* Secondary Brand Color */
    --c-pink-500: #ff00e6;   /* Accent */

    /* --- GLASSMORPHISM LAYERS --- */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --glass-shadow: rgba(0, 0, 0, 0.5);
    --glass-blur: 16px;

    /* --- ANIMATION TIMINGS --- */
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* --- DIMENSIONS --- */
    --nav-height: 80px;
    --container-width: 1400px;
}

/* ==========================================================================
   2. GLOBAL RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--c-void);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ==========================================================================
   3. THE DEEP SEA ENGINE (BACKGROUND SYSTEM)
   ========================================================================== */

/* Layer 1: The Deep Gradient */
.ocean-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -5;
    background: radial-gradient(circle at 50% -20%, #1a2c4e 0%, #050a14 55%, #000000 100%);
    overflow: hidden;
    pointer-events: none;
}

/* Layer 2: Caustics (Light Refraction) */
/* This creates the moving light patterns you see on the ocean floor */
.ocean-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: 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");
    opacity: 0.15;
    animation: drift 60s linear infinite;
    mix-blend-mode: overlay;
}

/* Layer 3: God Rays (Light shafts from above) */
.god-rays {
    position: absolute;
    top: -20%;
    left: 50%;
    width: 200%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(0, 210, 255, 0.1) 0%, transparent 70%);
    transform: translateX(-50%) rotate(20deg);
    filter: blur(80px);
    animation: pulse-light 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -4;
}

/* Layer 4: Floating Particles (Dust/Plankton) */
.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: rise var(--duration) linear infinite;
    bottom: -10px;
}

/* ==========================================================================
   4. JELLYFISH ENTITY SYSTEM
   ========================================================================== */
.jellyfish {
    position: absolute;
    width: var(--size, 100px);
    height: var(--size, 120px);
    z-index: -3;
    filter: blur(2px);
    opacity: 0.6;
    animation: floatUp var(--speed) linear infinite, sway 6s ease-in-out infinite alternate;
}

/* The Head (Bell) */
.jellyfish-head {
    width: 100%;
    height: 60%;
    background: radial-gradient(circle at 50% 20%, rgba(0, 210, 255, 0.4), rgba(0, 210, 255, 0.05) 80%);
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-left-radius: 10%;
    border-bottom-right-radius: 10%;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Bio-luminescence inside head */
.jellyfish-head::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 40%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(10px);
    animation: bio-pulse 4s infinite;
}

/* Tentacles Container */
.jellyfish-tentacles {
    width: 80%;
    margin: 0 auto;
    height: 100%;
    position: relative;
    top: -10px;
}

/* Individual Tentacles */
.tentacle {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 210, 255, 0.5), transparent);
    transform-origin: top center;
    animation: tentacle-sway 2s ease-in-out infinite alternate;
}
.tentacle:nth-child(1) { left: 20%; height: 80%; animation-delay: 0s; }
.tentacle:nth-child(2) { left: 40%; height: 100%; animation-delay: 0.5s; }
.tentacle:nth-child(3) { left: 60%; height: 90%; animation-delay: 1s; }
.tentacle:nth-child(4) { left: 80%; height: 70%; animation-delay: 1.5s; }

/* ==========================================================================
   5. ADVANCED GLASSMORPHISM UTILITIES
   ========================================================================== */

/* Level 1: Subtle (Navbar) */
.glass {
    background: rgba(5, 10, 20, 0.6);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}

/* Level 2: Cards (Interactive) */
.glass-card {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

/* Hover Effect: 3D Lift & Glow */
.glass-card:hover {
    transform: translateY(-8px) scale(1.01);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.15);
}

/* Shimmer Effect on Hover */
.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}
.glass-card:hover::before {
    left: 150%;
    transition: 0.7s;
}

/* Level 3: Heavy Frost (Modals/Overlays) */
.glass-heavy {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ==========================================================================
   6. TYPOGRAPHY & TEXT EFFECTS
   ========================================================================== */

/* Gradient Text - Updated to fix the warning */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--c-cyan-500) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback */
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fffcdb 0%, #ffaa00 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Neon Text Glow */
.text-glow {
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5), 
                 0 0 20px rgba(0, 210, 255, 0.3), 
                 0 0 40px rgba(0, 210, 255, 0.1);
}

/* Stroke Text (Outline) */
.text-stroke {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
}

/* Glitch Effect on Hover (Use .glitch class) */
.glitch-hover:hover {
    animation: glitch-anim 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--c-cyan-500);
}

/* ==========================================================================
   7. UI COMPONENT UTILITIES
   ========================================================================== */

/* --- BUTTONS --- */
.btn-primary {
    position: relative;
    background: var(--c-cyan-500);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: #ffffff;
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::after {
    height: 100%;
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s var(--ease-smooth) forwards;
}

/* ==========================================================================
   8. KEYFRAME ANIMATION LIBRARY
   ========================================================================== */

@keyframes floatUp {
    0% { transform: translateY(120vh) scale(0.8); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-20vh) scale(1.1); opacity: 0; }
}

@keyframes sway {
    0% { transform: translateX(-20px) rotate(-5deg); }
    100% { transform: translateX(20px) rotate(5deg); }
}

@keyframes tentacle-sway {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

@keyframes bio-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, -50px); }
}

@keyframes pulse-light {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glitch-anim {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

@keyframes spin-slow {
    to { transform: rotate(360deg); }
}

@keyframes card-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes float-bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0,210,255,0.5); }
    50% { box-shadow: 0 0 40px rgba(0,210,255,0.8); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   9. RESPONSIVE UTILITIES
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }
    
    .glass-card:hover {
        transform: none; /* Disable 3D tilt on mobile for performance */
    }
    
    .text-stroke {
        -webkit-text-stroke: 0px;
        color: rgba(255, 255, 255, 0.5);
    }
}

/* ==========================================================================
   END OF STYLESHEET
   ========================================================================== */