/* ============================================================
   BLOOPSI — Premium CSS Overhaul
   ============================================================ */

/* --- VARIABLES --- */
:root {
    /* Hero Colors */
    --clr-hero-lime:    #a3e635;
    --clr-hero-green:   #4ade80;
    --clr-hero-cyan:    #3fc1f3;
    --clr-hero-sky:     #89D9FF;

    /* Villain Colors */
    --clr-villain-orange: #f97316;
    --clr-villain-fire:   #ea580c;
    --clr-villain-yellow: #facc15;
    --clr-villain-dark:   #0f172a;
    --clr-villain-navy:   #1e1b4b;

    /* Fonts */
    --font-primary:   'Outfit', sans-serif;
    --font-secondary: 'Balsamiq Sans', cursive;
    --font-title:     'Luckiest Guy', cursive;

    /* Scroll */
    --scroll-progress: 0%;
}

/* --- RESET & BASE --- */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a1a; }
::-webkit-scrollbar-thumb {
    background: var(--clr-hero-cyan);
    border-radius: 99px;
    box-shadow: 0 0 8px var(--clr-hero-cyan);
}

body {
    font-family: var(--font-primary);
    overflow-x: hidden;
    background-color: var(--clr-hero-sky);
    color: #fff;
}

/* Grain noise overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* --- SCROLL PROGRESS --- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: var(--scroll-progress);
    background: linear-gradient(90deg, var(--clr-hero-cyan), var(--clr-hero-lime), var(--clr-villain-yellow), var(--clr-villain-orange));
    z-index: 10000;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--clr-hero-cyan);
}

/* --- LOADING SCREEN --- */
#loading-screen {
    position: fixed;
    inset: 0;
    background: #0d1117;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    gap: 2rem;
}

#loading-logo {
    width: min(70vw, 320px);
    opacity: 0;
    transform: scale(0.5) rotateY(180deg);
    filter: drop-shadow(0 0 30px rgba(250,204,21,0.7));
}

.loading-bubbles {
    display: flex;
    gap: 0.75rem;
}

.loading-bubbles span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--clr-hero-cyan);
    animation: bubble-bounce 0.9s ease-in-out infinite;
}
.loading-bubbles span:nth-child(2) {
    animation-delay: 0.15s;
    background: var(--clr-hero-lime);
}
.loading-bubbles span:nth-child(3) {
    animation-delay: 0.3s;
    background: var(--clr-villain-yellow);
}

@keyframes bubble-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-16px) scale(0.8); }
}

/* --- SECTIONS --- */
.section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ============================================================
   TITLE SECTION
   ============================================================ */
.title-section {
    background-color: transparent;
    flex-direction: column;
    z-index: 10;
}

.title-section .logo {
    width: 80%;
    max-width: 580px;
    filter: drop-shadow(0 0 20px rgba(250, 204, 21, 0.7));
    z-index: 2;
    /* Initial state for GSAP entrance */
    opacity: 0;
    transform: scale(0.5) rotateY(180deg);
    position: relative;
}

@keyframes floating {
    0%   { transform: translateY(0px) rotate(0deg); }
    50%  { transform: translateY(-18px) rotate(2deg); filter: drop-shadow(0 0 30px rgba(250,204,21,0.95)); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    background-color: transparent;
    flex-direction: column;
    z-index: 9;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.hero-character-container {
    width: 90%;
    max-width: 600px;
    display: flex;
    justify-content: center;
}

.character {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,0.25));
}

/* Hero character subtle sway + glow pulse on top of jelly */
#hero-character {
    animation: jelly-breathe 4s infinite ease-in-out, hero-sway 6s infinite ease-in-out;
    filter: drop-shadow(0 0 0px rgba(74,222,128,0)) drop-shadow(0 12px 28px rgba(0,0,0,0.2));
}

@keyframes hero-sway {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(74,222,128,0.15)) drop-shadow(0 12px 28px rgba(0,0,0,0.2)); }
    50%       { filter: drop-shadow(0 0 22px rgba(74,222,128,0.55)) drop-shadow(0 12px 28px rgba(0,0,0,0.2)); }
}

/* Jelly/Slime Animation */
@keyframes jelly-breathe {
    0%   { transform: scale(1, 1) translateY(0); }
    25%  { transform: scale(1.05, 0.95) translateY(5px); }
    50%  { transform: scale(0.95, 1.05) translateY(-5px); }
    75%  { transform: scale(1.02, 0.98) translateY(2px); }
    100% { transform: scale(1, 1) translateY(0); }
}

.jelly-anim {
    animation: jelly-breathe 4s infinite ease-in-out, hero-sway 6s infinite ease-in-out;
    transform-origin: bottom center;
}

/* ============================================================
   TRANSITION SECTION
   ============================================================ */
.transition-section {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9;
}

.transition-container {
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.typewriter {
    font-family: var(--font-secondary);
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: #fff;
    text-shadow:
        2px 2px 0px rgba(0,0,0,0.6),
        0 0 30px rgba(249,115,22,0.6);
    min-height: 4rem;
    line-height: 1.5;
}

/* Neon shimmer underline after typewriter */
.typewriter::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--clr-villain-yellow);
    margin: 1rem auto 0;
    border-radius: 99px;
    box-shadow: 0 0 12px var(--clr-villain-yellow), 0 0 30px var(--clr-villain-orange);
    animation: shimmer-bar 1.8s ease-in-out infinite alternate;
}

@keyframes shimmer-bar {
    from { width: 60px; opacity: 0.7; }
    to   { width: 160px; opacity: 1; }
}

/* ============================================================
   VILLAIN SECTION
   ============================================================ */
.villain-section {
    background-color: transparent;
    z-index: 8;
}

/* Morphing blob behind villain */
.villain-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55vmin;
    height: 55vmin;
    background: radial-gradient(circle at 40% 40%,
        rgba(234,88,12,0.55) 0%,
        rgba(249,115,22,0.3) 45%,
        transparent 75%);
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    animation: blob-morph 6s ease-in-out infinite;
    z-index: 0;
    filter: blur(18px);
}

@keyframes blob-morph {
    0%   { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; transform: translate(-50%,-50%) scale(1) rotate(0deg); }
    25%  { border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%; transform: translate(-50%,-50%) scale(1.08) rotate(10deg); }
    50%  { border-radius: 70% 30% 60% 40% / 40% 70% 30% 60%; transform: translate(-50%,-50%) scale(0.95) rotate(-5deg); }
    75%  { border-radius: 30% 70% 40% 60% / 70% 30% 60% 40%; transform: translate(-50%,-50%) scale(1.05) rotate(8deg); }
    100% { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; transform: translate(-50%,-50%) scale(1) rotate(0deg); }
}

.villain-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.villain-character-container {
    position: relative;
    width: 90%;
    max-width: 600px;
}

/* Villain Glow Effect */
.villain-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55%;
    height: 55%;
    background: radial-gradient(circle, rgba(234,88,12,0.7) 0%, transparent 70%);
    z-index: -1;
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    0%   { transform: translate(-50%,-50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%,-50%) scale(1.6); opacity: 1;
           filter: drop-shadow(0 0 25px var(--clr-villain-yellow)); }
}

/* Screen shake keyframe */
@keyframes screen-shake {
    0%   { transform: translate(0, 0); }
    10%  { transform: translate(-8px, -4px); }
    20%  { transform: translate(8px, 4px); }
    30%  { transform: translate(-6px, 6px); }
    40%  { transform: translate(6px, -6px); }
    50%  { transform: translate(-4px, 2px); }
    60%  { transform: translate(4px, -2px); }
    70%  { transform: translate(-3px, 5px); }
    80%  { transform: translate(3px, -3px); }
    90%  { transform: translate(-2px, 2px); }
    100% { transform: translate(0, 0); }
}

/* ============================================================
   COMING SOON SECTION
   ============================================================ */
.coming-soon-section {
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.coming-soon-content {
    z-index: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
}

/* Badge */
.coming-soon-badge {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--clr-villain-yellow);
    background: rgba(250,204,21,0.12);
    border: 1px solid rgba(250,204,21,0.35);
    border-radius: 99px;
    padding: 0.35rem 1.2rem;
    text-transform: uppercase;
    animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0px rgba(250,204,21,0); }
    50%       { box-shadow: 0 0 14px rgba(250,204,21,0.5); }
}

/* Title: RGB neon shift */
.coming-soon-title {
    font-family: var(--font-title);
    font-size: clamp(2.8rem, 10vw, 8rem);
    color: #fff;
    letter-spacing: 6px;
    line-height: 1;
    animation: rgb-shift 5s linear infinite;
    padding: 10px 20px;
}

@keyframes rgb-shift {
    0%   { text-shadow: 4px 4px 0px #0f172a, 0 0 30px var(--clr-hero-cyan); color: #fff; }
    25%  { text-shadow: 4px 4px 0px #0f172a, 0 0 40px var(--clr-hero-lime); color: #e9ffe0; }
    50%  { text-shadow: 4px 4px 0px #0f172a, 0 0 40px var(--clr-villain-yellow); color: #fff9d6; }
    75%  { text-shadow: 4px 4px 0px #0f172a, 0 0 40px var(--clr-villain-orange); color: #fff0e0; }
    100% { text-shadow: 4px 4px 0px #0f172a, 0 0 30px var(--clr-hero-cyan); color: #fff; }
}

/* Individual letter split styling */
.letter-split {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) scale(0.5);
    /* GSAP will animate this */
}

.coming-soon-subtitle {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    color: rgba(255,255,255,0.75);
    max-width: 700px;
    font-weight: 300;
    line-height: 1.6;
}

/* Email CTA */
.email-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 600px;
}

.email-input {
    flex: 1;
    min-width: 220px;
    padding: 1rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.email-input::placeholder { color: rgba(255,255,255,0.4); }

.email-input:focus {
    border-color: var(--clr-hero-cyan);
    box-shadow: 0 0 0 3px rgba(63,193,243,0.2), 0 0 20px rgba(63,193,243,0.15);
    background: rgba(255,255,255,0.12);
}

.email-hint {
    font-size: 0.9rem;
    color: var(--clr-hero-lime);
    min-height: 1.2em;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(163,230,53,0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.email-hint.visible { opacity: 1; }

/* Slime Buttons */
.slime-btn {
    padding: 1rem 2.2rem;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    border: none;
    cursor: pointer;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), inset 0px 5px 10px rgba(255,255,255,0.35);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.hero-btn {
    background: linear-gradient(135deg, var(--clr-hero-green), var(--clr-hero-cyan));
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.villain-btn {
    background: linear-gradient(135deg, var(--clr-villain-fire), var(--clr-villain-orange));
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slime-btn:hover {
    border-radius: 40px 60px 40px 60px;
    transform: translateY(-5px) scale(1.06);
}

.hero-btn:hover {
    background: linear-gradient(135deg, var(--clr-hero-lime), var(--clr-hero-cyan));
    box-shadow: 0 15px 30px rgba(63,193,243,0.45), inset 0px 5px 15px rgba(255,255,255,0.55);
}

.villain-btn:hover {
    background: linear-gradient(135deg, var(--clr-villain-yellow), var(--clr-villain-orange));
    box-shadow: 0 15px 30px rgba(234,88,12,0.4), inset 0px 5px 15px rgba(255,255,255,0.55);
    color: var(--clr-villain-dark);
}

.slime-btn:active {
    transform: translateY(2px) scale(0.96);
    border-radius: 60px 40px 60px 40px;
}

/* Slime ripple on click */
.slime-btn::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    width: 120%;
    aspect-ratio: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
    transition: transform 0.5s ease, opacity 0.5s ease;
    pointer-events: none;
}
.slime-btn:active::after {
    transform: translate(-50%,-50%) scale(1.2);
    opacity: 0;
}

/* Icon row */
.cs-deco {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
    font-size: 2.5rem;
    animation: floating 4s ease-in-out infinite;
}

.cs-icon { display: inline-block; }
.cs-icon:first-child { animation: icon-float 3.2s ease-in-out infinite; }
.cs-icon:last-child  { animation: icon-float 3.2s ease-in-out 1.6s infinite; }

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.cs-divider {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 3px;
    animation: pulse-fade 2s ease-in-out infinite;
}

@keyframes pulse-fade {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .coming-soon-title { letter-spacing: 2px; }
    .email-cta { flex-direction: column; }
    .email-input { min-width: 100%; }
    .slime-btn { width: 100%; justify-content: center; }
    .cs-deco { font-size: 2rem; gap: 1rem; }
}

/* ============================================================
   COPYRIGHT FOOTER
   ============================================================ */
.copyright-footer {
    position: fixed;
    bottom: 12px;
    right: 18px;
    font-size: 0.8rem;
    font-family: var(--font-primary);
    color: rgba(255, 255, 255, 0.6);
    z-index: 10000;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6);
}