/* ============================================
   COSMIC ODYSSEY & GALAXY PORTAL - Main Stylesheet
   Mata Vaishno Services | Owner: NUNU
   Theme: Fantasy Galaxy, Stars, Planets & Alien Universe
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --space-black: #05070f;
    --deep-space: #090e24;
    --cosmic-navy: #0d1538;
    --nebula-purple: #7928ca;
    --electric-purple: #a855f7;
    --cosmic-blue: #00f5ff;
    --alien-neon: #10b981;
    --star-gold: #ffd166;
    --text-white: #f8fafc;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-card: rgba(13, 21, 56, 0.72);
    --glass-border: rgba(0, 245, 255, 0.25);
    --shadow-cosmic: 0 10px 35px rgba(0, 245, 255, 0.15);
    --gradient-cosmic: linear-gradient(135deg, #00f5ff 0%, #7928ca 50%, #ff007f 100%);
    --gradient-neon: linear-gradient(135deg, #00f5ff 0%, #10b981 100%);
    --gradient-alien: linear-gradient(135deg, #a855f7 0%, #00f5ff 100%);
    --gradient-space: radial-gradient(circle at 50% 20%, #17113e 0%, #090e24 50%, #05070f 95%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--space-black);
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 100px 150px, #00f5ff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 250px 80px, #ffd166, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 400px 280px, #a855f7, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 600px 120px, #10b981, rgba(0,0,0,0)),
        var(--gradient-space);
    background-repeat: repeat;
    background-size: 800px 800px, 800px 800px, 800px 800px, 800px 800px, 800px 800px, 100% 100%;
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 7, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 5%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #00f5ff 60%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 1.5px;
    text-shadow: 0 0 25px rgba(0, 245, 255, 0.4);
}

.logo-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.8));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    position: relative;
    border: 1px solid transparent;
}

.nav-links a:hover {
    color: var(--cosmic-blue);
    background: rgba(0, 245, 255, 0.08);
    border-color: rgba(0, 245, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

.nav-links a.active {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(121, 40, 202, 0.3));
    color: var(--cosmic-blue);
    border: 1px solid var(--cosmic-blue);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 35%, #180d38 0%, #090e24 45%, #05070f 90%);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: 
        radial-gradient(circle at 25% 45%, rgba(0, 245, 255, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 75% 55%, rgba(168, 85, 247, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
    animation: galaxyRotate 35s linear infinite;
    pointer-events: none;
}

@keyframes galaxyRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 950px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 245, 255, 0.1);
    color: var(--cosmic-blue);
    padding: 10px 28px;
    border-radius: 50px;
    border: 1px solid rgba(0, 245, 255, 0.35);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.25);
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    font-weight: 900;
    color: var(--text-white);
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title span {
    background: linear-gradient(135deg, #00f5ff 0%, #a855f7 50%, #ff007f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    text-shadow: 0 0 40px rgba(0, 245, 255, 0.35);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 1px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 38px;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #00f5ff 0%, #7928ca 100%);
    color: #ffffff;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 50px rgba(0, 245, 255, 0.7);
    color: #ffffff;
}

.btn-secondary {
    background: rgba(13, 21, 56, 0.6);
    color: var(--cosmic-blue);
    border: 1px solid var(--cosmic-blue);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(0, 245, 255, 0.15);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
    padding: 100px 5%;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    background: rgba(0, 245, 255, 0.1);
    color: var(--cosmic-blue);
    border: 1px solid rgba(0, 245, 255, 0.3);
    padding: 6px 22px;
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* ============================================
   STORY CARDS (COSMIC GLASS PANELS)
   ============================================ */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.story-card {
    background: var(--glass-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.story-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 245, 255, 0.25);
    border-color: rgba(0, 245, 255, 0.6);
}

.story-card-img {
    height: 200px;
    background: linear-gradient(135deg, rgba(9, 14, 36, 0.9), rgba(121, 40, 202, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 245, 255, 0.15);
    filter: drop-shadow(0 0 15px rgba(0, 245, 255, 0.4));
}

.story-card-content {
    padding: 25px;
}

.story-card-category {
    display: inline-block;
    background: rgba(121, 40, 202, 0.25);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
    padding: 4px 14px;
    border-radius: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.story-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
    line-height: 1.4;
}

.story-card-excerpt {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.story-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.story-card-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.story-card-read {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cosmic-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.story-card-read:hover {
    gap: 12px;
    color: var(--electric-purple);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* ============================================
   MEMORY CARDS (STELLAR ARCHIVES)
   ============================================ */
.memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.memory-card {
    background: var(--glass-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.memory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00f5ff, #7928ca, #10b981);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.memory-card:hover::before {
    transform: scaleX(1);
}

.memory-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 245, 255, 0.2);
    border-color: rgba(0, 245, 255, 0.5);
}

.memory-icon {
    font-size: 3.2rem;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(0, 245, 255, 0.5));
    animation: cosmicFloat 4s ease-in-out infinite;
}

@keyframes cosmicFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.memory-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.memory-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   GALLERY (CELESTIAL OBSERVATORY)
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #090e24 0%, #150f35 100%);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: var(--cosmic-blue);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.3);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 15, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: white;
    padding: 20px;
    text-align: center;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--cosmic-blue);
    margin-bottom: 8px;
}

.gallery-item-overlay p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ============================================
   STATS SECTION (COSMIC TELEMETRY)
   ============================================ */
.stats-section {
    background: radial-gradient(circle at 50% 50%, #130a2e 0%, #060917 100%);
    color: white;
    padding: 80px 5%;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00f5ff 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 0 25px rgba(0, 245, 255, 0.3);
}

.stat-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================
   TESTIMONIALS (STARGAZER LOGS)
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--glass-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    position: relative;
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: var(--cosmic-blue);
    box-shadow: 0 12px 40px rgba(0, 245, 255, 0.2);
}

.testimonial-card::before {
    content: '"';
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    color: var(--cosmic-blue);
    opacity: 0.2;
    position: absolute;
    top: 5px;
    left: 20px;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f5ff, #7928ca);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.4);
}

.testimonial-info h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
}

.testimonial-info span {
    font-size: 0.85rem;
    color: var(--cosmic-blue);
}

/* ============================================
   NEWSLETTER (COSMIC BEACON)
   ============================================ */
.newsletter-section {
    background: radial-gradient(circle at 50% 50%, #150f35 0%, #05070f 90%);
    padding: 90px 5%;
    text-align: center;
    position: relative;
}

.newsletter-box {
    max-width: 650px;
    margin: 0 auto;
    background: var(--glass-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
}

.newsletter-box h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.newsletter-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 15px 25px;
    background: rgba(5, 7, 15, 0.8);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    border-radius: 50px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--cosmic-blue);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #03040a;
    color: white;
    padding: 80px 5% 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto 50px;
}

.footer-brand h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--cosmic-blue);
    letter-spacing: 1.5px;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--cosmic-blue);
    color: #05070f;
    border-color: var(--cosmic-blue);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
}

.footer-links h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--cosmic-blue);
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--cosmic-blue);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* ============================================
   ANIMATIONS & SCROLL OBSERVERS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .hero-title {
        font-size: 2.3rem;
    }

    .section {
        padding: 60px 5%;
    }

    .stories-grid,
    .memories-grid,
    .gallery-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 290px;
        justify-content: center;
    }
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--space-black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00f5ff, #7928ca);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00f5ff;
}

/* ============================================
   PAGE LOADER
   ============================================ */
.page-loader {
    position: fixed;
    inset: 0;
    background: #05070f;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-book {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.8));
    animation: cosmicSpin 2s linear infinite;
}

@keyframes cosmicSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.15); }
    100% { transform: rotate(360deg) scale(1); }
}

.loader-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--cosmic-blue);
    margin-top: 15px;
    letter-spacing: 2px;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00f5ff, #7928ca);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 35px rgba(0, 245, 255, 0.7);
}
