* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #f5f7fb;
}

nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    color: #2563eb;
    cursor: pointer;
    text-decoration: none;
}

.logo img {
    height: 46px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.nav-links a:hover {
    background: #eef4ff;
    color: #2563eb;
}

.nav-links .nav-cta {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
}

.nav-links .nav-cta:hover {
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
    color: white;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    nav {
        padding: 14px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-links {
        justify-content: center;
        width: 100%;
    }
}

.profile {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #0a84ff;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 8%;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 60px;
    color: #222;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 20px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.btn {
    padding: 15px 35px;
    background: #0a84ff;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
}

.hero img {
    width: 500px;
    max-width: 100%;
    border-radius: 30px;
}

.section-title {
    text-align: center;
    margin: 50px 0 30px;
    font-size: 40px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 0 8% 60px;
}

.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: .3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    color: #666;
    margin-bottom: 15px;
}

.read-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
}

.stats {
    background: white;
    padding: 60px 8%;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat h2 {
    color: #0a84ff;
    font-size: 45px;
}

footer {
    background: #0a84ff;
    color: white;
    text-align: center;
    padding: 25px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #f5f7fb;
}

.container {
    max-width: 1400px;
    margin: 20px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid #eee;
}

.logo {
    display: flex;
    align-items: center;
    min-height: 52px;
    gap: 12px;
    font-size: 35px;
    font-weight: 700;
    background: linear-gradient(90deg, #ff007f, #ff7f00, #ff00ff, #0077b6, #00b4d8, #ff007f);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowShift 8s ease infinite;
    text-decoration: none;
}

.logo img {
    flex: 0 0 auto;
    animation: logoFloat 4s ease-in-out infinite;
}

.logo span {
    line-height: 1;
}

@keyframes rainbowShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-3px) rotate(-2deg);
    }
}



.right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: url("https://cdn.pixabay.com/photo/2021/02/18/16/01/boy-6028250_1280.png");
    background-size: cover;
    background-position: center;
}

/* CONTENT */
.content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.story-image-card {
    background: white;
    border-radius: 25px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.tag {
    position: absolute;
    top: 20px;
    left: 25px;
    background: #2ecc71;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.story-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 20px;
}

.page-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
}

.progress {

    background: #dceeff;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    width: 35%;
    height: 100%;
    background: #2ecc71;
    border-radius: 50px;
}

.story-card {
    background: white;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    min-height: 340px;
}

.story-card h1 {
    margin-bottom: 20px;
    font-size: 42px;
}

.story-card p {
    font-size: 22px;
    line-height: 1.8;
    color: #444;
}

.buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    border: none;
    padding: 18px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
}

.read-btn {
    background: #0077b6;
    color: white;
}

.translate-btn {
    background: #ffd93d;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    font-size: 30px;
    cursor: pointer;
}

.prev {
    background: #ececec;
}

.next {
    background: #29b6f6;
    color: white;
}

.dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d6d6d6;
}

.active {
    width: 30px;
    border-radius: 20px;
    background: #0088cc;
}

@media(max-width:1000px) {

    .content {
        grid-template-columns: 1fr;
    }

    .story-image {
        height: 400px;
    }

    .story-card h1 {
        font-size: 32px;
    }

    .story-card p {
        font-size: 18px;
    }
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    width: 250px;
}

/* ==========================================================================
   1. GLOBAL STYLES & NEO-GEMINI VARIABLES (SEASON 10000)
   ========================================================================== */
:root {
    --bg-color: #f6f8ff;
    /* Luminous, ultra-clean digital canvas */
    --text-color: #030712;
    /* Deep space black for crisp readability */
    --gemini-cyber: #00d2ff;
    /* Laser cyan */
    --gemini-deep: #4a00e0;
    /* Hyper indigo */
    --gemini-matrix: #8e2de2;
    /* Plasma purple */
    --gemini-bright: #ff007f;
    /* Neon fusion pink */
    --card-bg: rgba(255, 255, 255, 0.75);
    --border-glow: linear-gradient(135deg, var(--gemini-cyber), var(--gemini-matrix));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================================================
   2. HERO SECTION (Holographic Light Warp)
   ========================================================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 10% 5rem 10%;
    gap: 4rem;
    min-height: 85vh;
    /* Immersive, multi-angle future solar flares */
    background:
        radial-gradient(circle at 10% 10%, rgba(0, 210, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(255, 0, 127, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(142, 45, 226, 0.05) 0%, transparent 60%);
}

.hero-text h1 {
    font-size: 4.2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    /* Season 10000 shifting hyper-gradient */
    background: linear-gradient(135deg, var(--gemini-deep) 0%, var(--gemini-matrix) 35%, var(--gemini-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(74, 0, 224, 0.15));
}

.hero-text p {
    font-size: 1.3rem;
    color: #4b5563;
    margin-bottom: 2.5rem;
    max-width: 540px;
    font-weight: 400;
}

.hero img {
    width: 45%;
    max-width: 500px;
    border-radius: 40px;
    box-shadow: 0 30px 70px rgba(74, 0, 224, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    /* Dimension tilt */
    transform: perspective(1500px) rotateY(-8deg) rotateX(6deg) scale(0.98);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s ease;
}

.hero img:hover {
    transform: perspective(1500px) rotateY(0deg) rotateX(0deg) scale(1.04);
    box-shadow: 0 40px 90px rgba(0, 210, 255, 0.25), 0 0 0 4px rgba(0, 210, 255, 0.1);
}

/* ==========================================================================
   3. BUTTONS (Plasma Fluid Pulse)
   ========================================================================== */
.btn {
    position: relative;
    padding: 1.1rem 3rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(45deg, var(--gemini-deep), var(--gemini-matrix), var(--gemini-cyber));
    background-size: 200% auto;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(74, 0, 224, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
    transform: translateY(-4px) scale(1.03);
    background-position: right center;
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.4);
}

/* ==========================================================================
   4. FEATURED STORIES (Holographic Glass Cards)
   ========================================================================== */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    margin: 6rem 0 3rem 0;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--gemini-deep), var(--gemini-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 0 10% 7rem 10%;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(3, 7, 18, 0.02);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color
}


/* ==========================================================================
   1. GLOBAL MATRIX & INFINITE HYPER-NEON VARIABLES
   ========================================================================== */
:root {
    --bg-color: #ffffff;
    --text-color: #05050a;
    /* Deep midnight ink for sharper text contrast */

    /* Pure Light-Energy Spectrums */
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff007f;
    --neon-purple: #a855f7;
    --neon-yellow: #fffb00;
    --quantum-blue: #2563eb;

    /* Holographic Overlays */
    --card-bg: rgba(255, 255, 255, 0.75);
    --glass-sheen: cubic-bezier(0.16, 1, 0.3, 1);
    /* Faster, snappier physics */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    /* Fixed the hex syntax typo (2ff -> ff) for pristine radiant illumination */
    background-image:
        radial-gradient(circle at 5% 5%, rgba(0, 240, 255, 0.16) 0%, transparent 40%),
        radial-gradient(circle at 95% 95%, rgba(255, 0, 127, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.06) 0%, transparent 60%);
    background-attachment: fixed;
}

/* ==========================================================================
   2. HERO SECTION (Holographic Reality Warp)
   ========================================================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 10% 5rem 10%;
    gap: 4rem;
    min-height: 90vh;
}

.hero-text h1 {
    font-size: 5rem;
    /* Expanded visibility scales */
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, var(--quantum-blue), var(--neon-magenta), var(--neon-cyan), var(--quantum-blue));
    background-size: 200% auto;
    /* Silkier, less aggressive gradient looping */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: neonSpectrum 4s linear infinite;
    filter: drop-shadow(0 4px 15px rgba(0, 240, 255, 0.2));
}

.hero-text p {
    font-size: 1.35rem;
    color: #334155;
    margin-bottom: 3rem;
    max-width: 550px;
    font-weight: 500;
    line-height: 1.7;
}

.hero img {
    width: 45%;
    max-width: 500px;
    border-radius: 40px;
    /* Clean mathematical curves */
    box-shadow:
        -15px -15px 45px rgba(0, 240, 255, 0.25),
        15px 15px 45px rgba(255, 0, 127, 0.25),
        0 30px 60px rgba(0, 0, 0, 0.04);
    border: 4px solid #ffffff;
    transform: perspective(2000px) rotateY(-8deg) rotateX(6deg) scale(0.96);
    transition: transform 0.7s var(--glass-sheen), box-shadow 0.7s ease;
}

.hero img:hover {
    transform: perspective(2000px) rotateY(0deg) rotateX(0deg) scale(1.03);
    box-shadow:
        -8px -8px 35px rgba(0, 240, 255, 0.4),
        8px 8px 35px rgba(255, 0, 127, 0.4),
        0 25px 50px rgba(168, 85, 247, 0.3);
}

/* ==========================================================================
   3. HERO PULSE CALL TO ACTION
   ========================================================================== */
.btn {
    padding: 1.2rem 3.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(45deg, var(--neon-magenta), var(--neon-purple), var(--neon-cyan));
    background-size: 200% auto;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 10px 30px rgba(255, 0, 127, 0.3), 0 0 40px rgba(0, 240, 255, 0.15);
    transition: all 0.4s var(--glass-sheen);
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    background-position: right center;
    box-shadow: 0 15px 35px rgba(0, 240, 255, 0.4), 0 0 50px rgba(255, 0, 127, 0.3);
}

/* ==========================================================================
   4. FEATURED STORIES (Refractive Glass-Crystal Cards)
   ========================================================================== */
.section-title {
    text-align: center;
    font-size: 3.2rem;
    font-weight: 900;
    margin: 6rem 0 4rem 0;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--text-color) 30%, var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 3.5rem;
    padding: 0 10% 8rem 10%;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 32px;
    /* Perfectly balanced desktop aspect contours */
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(5, 5, 10, 0.03);
    transition: transform 0.6s var(--glass-sheen), border-color 0.4s ease, box-shadow 0.6s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-12px) scale(1.015);
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow:
        0 25px 50px rgba(0, 240, 255, 0.15),
        0 0 30px rgba(168, 85, 247, 0.1);
}

.card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    filter: saturate(1.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.7s var(--glass-sheen), filter 0.4s;
}

.card:hover img {
    transform: scale(1.05);
    filter: saturate(1.15);
}

.card-content {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: var(--text-color);
}

.card-content p {
    color: #475569;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

/* Hyper-Neon Age Quantum Tag */
.card-content p:nth-of-type(2) {
    display: inline-block;
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(255, 0, 127, 0.12));
    color: var(--text-color);
    padding: 0.35rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(0, 240, 255, 0.25);
}

/* ==========================================================================
   5. INTERACTIVE ULTRA-GLOW READ BUTTONS
   ========================================================================== */
.read-btn {
    position: relative;
    margin-top: auto;
    width: 100%;
    padding: 1.1rem 1.5rem;
    background: #05050a;
    /* Deepest foundation mask */
    color: #ffffff;
    border: none;
    border-radius: 20px;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s var(--glass-sheen);
}

/* Liquid Refraction Background Engine */
.read-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--neon-cyan) 0%, var(--neon-magenta) 45%, var(--neon-yellow) 100%);
    background-size: 200% 200%;
    z-index: -1;
    opacity: 0;
    transform: scale(0.6);
    transition: transform 0.5s var(--glass-sheen), opacity 0.3s ease;
}

/* Interactive Card Triggers */
.card:hover .read-btn {
    color: #05050a;
    transform: translateY(-2px);
    box-shadow:
        0 12px 25px rgba(0, 240, 255, 0.35),
        0 0 20px rgba(255, 0, 127, 0.2);
}

.card:hover .read-btn::before {
    opacity: 1;
    transform: scale(1) rotate(90deg);
    animation: infinitePlasma 5s linear infinite;
}

.read-btn:active {
    transform: scale(0.97);
}

/* ==========================================================================
   6. STATS SECTION (Floating Luminous Grid Container)
   ========================================================================== */
.stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 40px;
    padding: 5rem 10%;
    margin: 0 10% 8rem 10%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.02);
}

.stat {
    text-align: center;
}

.stat h2 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--quantum-blue), var(--neon-magenta), var(--neon-cyan));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    animation: neonSpectrum 4s linear infinite;
}

.stat p {
    font-size: 1rem;
    color: #475569;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 800;
}

/* ==========================================================================
   7. ANIMATION TRACKS
   ========================================================================== */
@keyframes neonSpectrum {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes infinitePlasma {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* Responsive UI tweaks */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 6rem;
    }

    .hero img {
        width: 95%;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .stats {
        margin: 0 5% 5rem 5%;
        padding: 3rem 5%;
    }
}

/* ==========================================================================
   THE ULTRA-PREMIUM SEASON INFINITY "READ STORY" ENGINE
   ========================================================================== */
.read-btn {
    position: relative;
    margin-top: auto;
    width: 100%;
    padding: 1.2rem 1.7rem;
    background: #05050a;
    /* Rich, high-contrast base mask */
    color: #ffffff;
    border: none;
    border-radius: 20px;
    /* Clean mathematical curvature */
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    /* Locks the plasma engine inside the container */
    z-index: 1;

    /* Snappy mathematical transition timing for that "instant feedback" click feel */
    transition:
        color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* The Latent Plasma Core (Stays hidden until card hover) */
.read-btn::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: radial-gradient(circle,
            var(--neon-cyan) 0%,
            var(--neon-magenta) 35%,
            var(--neon-yellow) 70%,
            var(--neon-purple) 100%);
    background-size: 200% 200%;
    z-index: -1;
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
    transition:
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s ease;
}

/* ==========================================================================
   THE "SOOO GOOD" HOVER & ACTIVE PHYSICAL PHYSICS
   ========================================================================== */

/* 1. Triggers instantly when the user hovers anywhere on the parent story card */
.card:hover .read-btn {
    color: #05050a;
    /* Text flips dark for supreme legibility over bright neon */
    transform: translateY(-4px);
    /* Premium weightless lift effect */
    box-shadow:
        0 16px 32px rgba(0, 240, 255, 0.4),
        0 0 25px rgba(255, 0, 127, 0.25),
        inset 0 0 12px rgba(255, 255, 255, 0.5);
}

/* 2. Wakens and rotates the liquid neon crystal gradient */
.card:hover .read-btn::before {
    opacity: 1;
    transform: scale(1) rotate(180deg);
    animation: permanentPlasma 4s linear infinite;
}

/* 3. The Kinetic Click - compresses perfectly on press */
.read-btn:active {
    transform: translateY(-1px) scale(0.96) !important;
    box-shadow:
        0 4px 10px rgba(0, 240, 255, 0.2),
        0 0 10px rgba(255, 0, 127, 0.15);
    transition: transform 0.1s ease !important;
}

/* ==========================================================================
   INFINITE ROTATIONAL FLUID PLASMA LOOP
   ========================================================================== */
@keyframes permanentPlasma {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.profile {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .2);
}

.profile:hover {
    transform: scale(1.12) rotate(10deg);
}

.profile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(10px);
}

.profile-overlay.active {
    display: flex;
}

.profile-card {
    width: 420px;
    background: white;
    border-radius: 30px;
    padding: 35px;
    text-align: center;
    position: relative;
    animation: pop .4s ease;
}

@keyframes pop {

    from {
        opacity: 0;
        transform: scale(.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    cursor: pointer;
}


#profileName {
    margin-top: 20px;
    width: 100%;
    padding: 14px;
    border-radius: 15px;
    border: 2px solid #ddd;
    font-size: 18px;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 60px);
    gap: 18px;
    justify-content: center;
    margin: 25px 0;
}

.color-grid span {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: .3s;
}

.color-grid span:hover {
    transform: scale(1.2);
}

#saveProfile {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 15px;
    background: #4CAF50;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.search-box input {
    color: #333;
    caret-color: #4CAF50;
}

/* RGB text while typing */
.search-box input:focus {
    animation: rgbText 2s linear infinite;
}

@keyframes rgbText {

    0% {
        color: #ff0000;
    }

    16% {
        color: #ff7f00;
    }

    33% {
        color: #ffff00;
    }

    50% {
        color: #00ff00;
    }

    66% {
        color: #00ffff;
    }

    83% {
        color: #0066ff;
    }

    100% {
        color: #ff00ff;
    }

}


/* ADD STORY BUTTON */
.add-story-btn {
    position: fixed;


    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.add-story-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

/* CUSTOM SCROLLBAR WITH RGB ANIMATION */

/* Width of the scrollbar */
::-webkit-scrollbar {
    width: 14px;
}

/* Track background behind the handle */
::-webkit-scrollbar-track {
    background: #111;
    border-radius: 10px;
}

/* Animated RGB Scrollbar Handle */
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: linear-gradient(180deg, #ff007f, #ff7f00, #ff00ff, #0077b6, #00b4d8, #ff007f);
    background-size: 100% 400%;
    box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.4);
    animation: scrollbarRGB 6s linear infinite;
    border: 2px solid #111;
}

/* Hover effects */
::-webkit-scrollbar-thumb:hover {
    background-size: 100% 200%;
    animation-duration: 3s;
    /* Speeds up the wave color transition on hover */
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.8), 0 0 15px rgba(0, 180, 216, 0.6);
}

/* Smooth color animation timeline */
@keyframes scrollbarRGB {
    0% {
        background-position: 50% 0%;
    }

    50% {
        background-position: 50% 100%;
    }

    100% {
        background-position: 50% 0%;
    }
}

html {
    scroll-behavior: smooth;
    /* Optimizes performance for heavy color animations during scroll events */
    scroll-padding-top: 2rem;
}

/* ============================================================
   THE ULTIMATE CYBERPUNK RGB NEON-GLASS SCROLLBAR SYSTEM
   ============================================================ */

/* Main layout containment box for the track layer */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
    /* For horizontal scroll structures */
}

/* Deep-dimension background track with an active ambient neon glow line */
::-webkit-scrollbar-track {
    background: #090d16;
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow:
        inset 5px 0 15px rgba(0, 0, 0, 0.85),
        inset -1px 0 3px rgba(0, 242, 254, 0.05);
}

/* The masterpiece scrolling thumb engine */
::-webkit-scrollbar-thumb {
    border-radius: 50px;
    /* 3D Glassmorphism layers with embedded double-helix gradient */
    background: linear-gradient(180deg,
            #ff0055 0%,
            #7a00ff 20%,
            #00e5ff 40%,
            #00ff66 60%,
            #ffcc00 80%,
            #ff0055 100%);
    background-size: 100% 500%;

    /* Strict composite isolation border prevents tracking clipping errors */
    border: 3px solid #090d16;

    /* Internal 3D reflective chiseled specular highlights */
    box-shadow:
        inset 1px 1px 2px rgba(255, 255, 255, 0.45),
        inset -1px -1px 2px rgba(0, 0, 0, 0.6),
        0 0 12px rgba(122, 0, 255, 0.35);

    /* Infinite hardware-accelerated timeline mapping */
    animation: ultimatePlasmaShift 10s linear infinite;
}

/* Hyper-interactive state: Expands visual presence on cursor intersections */
::-webkit-scrollbar-thumb:hover {
    border: 2px solid #060910;
    /* thins border to increase visible thumb surface */
    background-size: 100% 250%;
    /* highly compresses the gradient for a faster hyper-dense wave */
    animation-duration: 3s;
    /* triples internal cycle velocity */

    box-shadow:
        inset 1px 1px 3px rgba(255, 255, 255, 0.7),
        inset -1px -1px 3px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(0, 229, 255, 0.85),
        0 0 40px rgba(255, 0, 85, 0.4);
    cursor: grab;
}

/* User dragging compression state */
::-webkit-scrollbar-thumb:active {
    background-size: 100% 150%;
    animation-duration: 1.5s;
    box-shadow:
        inset 2px 2px 4px rgba(255, 255, 255, 0.9),
        0 0 35px rgba(0, 255, 102, 1),
        0 0 60px rgba(122, 0, 255, 0.6);
    cursor: grabbing;
}

/* Corners where horizontal and vertical paths collide */
::-webkit-scrollbar-corner {
    background: #060910;
}

/* High-performance GPU layer definition for smooth 60fps translation mapping */
@keyframes ultimatePlasmaShift {
    0% {
        background-position: 50% 0%;
    }

    50% {
        background-position: 50% 100%;
    }

    100% {
        background-position: 50% 0%;
    }
}

/* ==========================================================================
   STORY READER CONSISTENCY POLISH
   ========================================================================== */
body:has(.story-image-card) {
    background:
        radial-gradient(circle at 16% 18%, rgba(37, 99, 235, 0.16), transparent 32%),
        radial-gradient(circle at 78% 12%, rgba(255, 107, 107, 0.12), transparent 30%),
        radial-gradient(circle at 88% 76%, rgba(20, 168, 107, 0.13), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 44%, #f6fbf8 100%);
    color: #172033;
}

body:has(.story-image-card) .container {
    width: min(1180px, calc(100% - 40px));
    margin: clamp(28px, 5vw, 56px) auto clamp(44px, 7vw, 80px);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(23, 32, 51, 0.1);
    box-shadow: 0 24px 54px rgba(31, 47, 76, 0.12);
}

body:has(.story-image-card) .container>.header {
    padding: 18px clamp(20px, 3vw, 34px);
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(23, 32, 51, 0.09);
}

body:has(.story-image-card) .container>.header .logo {
    min-height: auto;
    color: #172033;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1;
    letter-spacing: 0;
}

body:has(.story-image-card) .right {
    color: #59677d;
    font-weight: 700;
}

body:has(.story-image-card) .content {
    grid-template-columns: minmax(320px, 0.95fr) minmax(340px, 1.05fr);
    gap: clamp(22px, 4vw, 44px);
    padding: clamp(20px, 4vw, 42px);
    align-items: start;
}

body:has(.story-image-card) .story-image-card {
    position: relative;
    padding: 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(23, 32, 51, 0.1);
    box-shadow: 0 18px 42px rgba(31, 47, 76, 0.12);
    overflow: hidden;
}

body:has(.story-image-card) .story-image-card::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(23, 32, 51, 0.24), transparent 34%);
    pointer-events: none;
}

body:has(.story-image-card) .tag {
    top: 26px;
    left: 26px;
    z-index: 2;
    max-width: calc(100% - 52px);
    border-radius: 8px;
    padding: 8px 12px;
    background: rgba(23, 32, 51, 0.88);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 12px 24px rgba(23, 32, 51, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
}

body:has(.story-image-card) .story-image {
    height: clamp(380px, 54vw, 620px);
    border-radius: 8px;
    display: block;
    filter: saturate(1.04) contrast(1.02);
}

body:has(.story-image-card) .story-card {
    min-height: 340px;
    border-radius: 8px;
    padding: clamp(24px, 3vw, 36px);
    background: #ffffff;
    border: 1px solid rgba(23, 32, 51, 0.1);
    box-shadow: 0 18px 42px rgba(31, 47, 76, 0.1);
}

body:has(.story-image-card) .story-card h1 {
    margin-bottom: 18px;
    color: #172033;
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1.02;
    letter-spacing: 0;
    background: linear-gradient(115deg, #111827 0%, #2563eb 36%, #14a86b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body:has(.story-image-card) .story-card p {
    color: #46556b;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.75;
}

body:has(.story-image-card) .progress {
    min-height: 8px;
    margin-bottom: 16px;
    background: rgba(37, 99, 235, 0.12);
}

body:has(.story-image-card) .buttons,
body:has(.story-image-card) .button {
    display: flex;
    gap: 14px;
    margin-top: 22px;
}

body:has(.story-image-card) .buttons .btn,
body:has(.story-image-card) .button .btn {
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
}

body:has(.story-image-card) .buttons .read-btn,
body:has(.story-image-card) .button .read-btn {
    background: linear-gradient(135deg, #2563eb, #14a86b);
    color: #ffffff;
}

body:has(.story-image-card) .buttons .translate-btn,
body:has(.story-image-card) .button .translate-btn {
    background: #fff8e8;
    color: #7c5615;
    border: 1px solid rgba(245, 185, 66, 0.35);
    box-shadow: none;
}

@media (max-width: 1000px) {
    body:has(.story-image-card) .content {
        grid-template-columns: 1fr;
    }

    body:has(.story-image-card) .story-image {
        height: clamp(300px, 62vw, 460px);
    }
}

@media (max-width: 640px) {
    body:has(.story-image-card) .container {
        width: min(440px, calc(100% - 28px));
    }

    body:has(.story-image-card) .container>.header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    body:has(.story-image-card) .right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    body:has(.story-image-card) .buttons,
    body:has(.story-image-card) .button {
        flex-direction: column;
    }

    body:has(.story-image-card) .tag {
        top: 22px;
        left: 22px;
        max-width: calc(100% - 44px);
    }
}

/* ==========================================================================
   AD PLACEHOLDERS
   ========================================================================== */
.ad-slot {
    width: min(1180px, calc(100% - 40px));
    min-height: 92px;
    margin: 28px auto;
    border: 1px dashed rgba(37, 99, 235, 0.28);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(20, 168, 107, 0.08)),
        rgba(255, 255, 255, 0.82);
    color: #59677d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(31, 47, 76, 0.07);
}

.ad-slot span {
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.ad-slot strong {
    color: #172033;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.2;
}

.ad-slot small {
    color: #75839a;
    font-size: 13px;
    font-weight: 700;
}

.ad-slot-home-top {
    margin-top: 0;
    margin-bottom: clamp(34px, 5vw, 58px);
}

.ad-slot-home-wide {
    margin-top: -36px;
    margin-bottom: clamp(34px, 5vw, 54px);
}

body:has(.story-image-card) .ad-slot-story {
    width: calc(100% - clamp(40px, 8vw, 84px));
    min-height: 104px;
    margin-top: 0;
    margin-bottom: clamp(20px, 4vw, 40px);
}

@media (max-width: 640px) {
    .ad-slot {
        width: min(440px, calc(100% - 28px));
        min-height: 84px;
        padding: 16px;
    }

    .ad-slot-home-wide {
        margin-top: -20px;
    }

    body:has(.story-image-card) .ad-slot-story {
        width: calc(100% - 28px);
    }
}

/* ==========================================================================
   STORY SUBMISSION PAGE
   ========================================================================== */
.story-submit-page {
    background:
        radial-gradient(circle at 16% 18%, rgba(37, 99, 235, 0.18), transparent 32%),
        radial-gradient(circle at 76% 12%, rgba(255, 107, 107, 0.14), transparent 30%),
        radial-gradient(circle at 88% 76%, rgba(20, 168, 107, 0.14), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 44%, #f6fbf8 100%);
}

.story-submit-page-wrap {
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(48px, 7vw, 88px) 0 clamp(54px, 8vw, 96px);
}

.story-submit-hero {
    max-width: 760px;
    margin-bottom: 30px;
}

.story-submit-hero span {
    display: inline-block;
    margin-bottom: 10px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.story-submit-hero h1 {
    margin-bottom: 16px;
    font-size: clamp(44px, 7vw, 78px);
    line-height: 0.98;
    background: linear-gradient(115deg, #111827 0%, #2563eb 30%, #7c3aed 50%, #ff6b6b 70%, #14a86b 100%);
    background-size: 170% 170%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.story-submit-hero p {
    max-width: 690px;
    color: #46556b;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.65;
    padding-left: 18px;
    border-left: 4px solid;
    border-image: linear-gradient(180deg, #2563eb, #14a86b, #ff6b6b) 1;
}

.story-submit-panel {
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 12%, rgba(37, 99, 235, 0.12), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(20, 168, 107, 0.12), transparent 32%),
        #ffffff;
    border: 1px solid rgba(23, 32, 51, 0.1);
    box-shadow: 0 24px 54px rgba(31, 47, 76, 0.12);
    padding: clamp(22px, 4vw, 34px);
}

.story-submit-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.story-submit-form .form-group {
    margin: 0;
}

.story-submit-form .form-group-full {
    grid-column: 1 / -1;
}

.story-submit-form label {
    display: block;
    margin-bottom: 7px;
    color: #172033;
    font-weight: 800;
}

.story-submit-form input,
.story-submit-form textarea {
    width: 100%;
    border: 1px solid rgba(23, 32, 51, 0.12);
    border-radius: 8px;
    padding: 12px 13px;
    color: #172033;
    background: rgba(255, 255, 255, 0.94);
    font-size: 16px;
    outline: none;
}

.story-submit-form textarea {
    min-height: 170px;
    resize: vertical;
}

.story-submit-form input:focus,
.story-submit-form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.story-submit-button {
    grid-column: 1 / -1;
    border: 0;
    border-radius: 8px;
    padding: 15px 18px;
    background: linear-gradient(135deg, #2563eb, #14a86b);
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.2);
}

.story-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(20, 168, 107, 0.22);
}

.story-submit-status {
    grid-column: 1 / -1;
    min-height: 22px;
    color: #14a86b;
    font-weight: 800;
}

@media (max-width: 680px) {
    .story-submit-page-wrap {
        width: min(440px, calc(100% - 28px));
        padding-top: 38px;
    }

    .story-submit-hero p {
        padding-left: 0;
        border-left: 0;
    }

    .story-submit-form {
        grid-template-columns: 1fr;
    }
}

