/* --- CSS VARIABLES & RESET --- */
:root {
    --primary-red: #c91313c9;

    --dark-red: #b30000;
    --bg-color: #000000fc;
    --text-color: #e0e0e0;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --elegant-black: #0a0a0a;
    --dark-black: #000;
    --light-black: #1a1a1a;
    --medium-black: #111;
    --gray: #333;
    --light-gray: #444;
    --text-light: #ddd;
    --text-white: #fff;
    --gold: rgb(223, 222, 222);
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --header-height: 80px;
    --header-shrink-height: 70px;
} 

/* For Chrome, Safari, and Edge */
::-webkit-scrollbar {
    width: 18px;  
}

/* The background of the scrollbar area */
::-webkit-scrollbar-track {
    background: #0a0a0a; /* Matches a dark theme background */
}

/* The draggable handle */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #990202 0%, #990202 100%); 
    border-radius: 20px;
    border: 2px solid #0a0a0a;  
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #990202d0; /* Lighter gold when interacting */
    cursor: pointer;
}

/* Firefox Support */
html {
    scrollbar-width: auto;
    scrollbar-color: #990202 #0a0a0a; /* thumb color | track color */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    /* Simulating the particle background */
    background-image:
        radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    scroll-behavior: smooth;
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
}

:root {
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.877);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- NAV WRAPPER --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 96%;
    max-width: 1400px;
    height: 65px;
    z-index: 800;
    transition: all 0.5s var(--ease-out);
    background: transparent;

}

/* Scrolled State */
nav.scrolled {
    top: 15px;
    width: 96%;
    border-radius: 100px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}


/* --- NAV LINKS --- */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links li:hover {
    background: rgba(102, 100, 100, 0.1);
    color: white;
}

/* --- DROPDOWN --- */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(15, 15, 15, 0.959);
    min-width: 220px;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    /* This matches your 20px gap */
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown a {
    padding: 12px 15px;
    display: block;
    text-transform: none;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.dropdown a:hover {
    background: rgba(102, 100, 100, 0.1);
    color: white;
}

/* --- BUTTONS & MOBILE --- */
.btn-nav {
    padding: 9px 14px;
    background: radial-gradient(100% 120% at 50% 0%, #df0211 0%, #500D11 100%);
    color: #fdfdfd;
    border-radius: 100px;
    border: none;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.7px; 
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    animation: ripple 7s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.btn-nav:hover { 
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(230, 57, 70, 0.3);
}
@keyframes ripple {
0%, 100% { transform: perspective(400px) rotateX(0deg); }
  50% { transform: perspective(400px) rotateY(-30deg); }
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 15px;
    z-index: 1000;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    /* Hide links on mobile for simplicity */
    .mobile-menu-btn {
        display: block;
    }

    .btn-nav span {
        display: none;
    }

    /* Show only icon on small mobile if needed */
    .btn-nav {
        padding: 10px;
    }
}

/* Mobile Menu Button - Hidden on desktop, only shows on mobile */
.mobile-menu-btn {
    display: none;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 51, 51, 0.1);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-white);
    font-size: 1.5rem;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 51, 51, 0.3);
    transform: rotate(90deg);
}

/* Mobile Navigation - Hidden by default */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(5, 5, 5, 0.98);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 200;
}

.mobile-nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
}

.mobile-nav li {
    margin: 25px 0;
    margin-top: 20px;
}

.mobile-nav a {
    font-size: 1.8rem;
    font-weight: 600;
    padding: 10px 45px;
    position: relative;
    transition: var(--transition);
    display: inline-block;
    color: #aaa;
    text-decoration: none;

}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--primary-red);
    transform: translateX(10px);
}

.mobile-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.mobile-nav a:hover::after,
.mobile-nav a.active::after {
    width: 100%;
}

.mobile-close-btn {
    position: absolute;
    top: 100px;
    right: 9%;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 1001;
}

.mobile-close-btn:hover {
    color: var(--primary-red);
    background-color: rgba(255, 51, 51, 0.1);
    transform: rotate(90deg);
}

/* --- HERO SECTION (FROM FIRST CODE) --- */
.hero::before {
    content: '';
    top: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #eee, rgb(209, 40, 40)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgb(255, 36, 36)),
        radial-gradient(1px 1px at 90px 40px, #fff, rgb(223, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.5;
    animation: twinkle 3s infinite alternate;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100vh;
}

/* Left Side: Book Cover */
.book-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    height: 400px;
    width: 90%;
    top: -50px;
}

.book-img {
    width: 80%;
    max-width: 450px;
    border-radius: 5px;
    box-shadow: 0 0 60px rgba(255, 51, 51, 0.3);
    transform: rotateY(-5deg);
    transition: transform 0.3s ease;
}

.book-wrapper:hover .book-img {
    transform: rotateY(0deg) scale(1.02);
}

.badge {
    position: absolute;
    bottom: -25px;
    background: radial-gradient(100% 120% at 50% 0%,
            #df0211 0%,
            #b10a1549 100%);
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    padding: 10px;
    z-index: 100;
    margin: 0 auto;
    border-radius: 10px;
}

/* Right Side: Content */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    margin-top: -70px;

}

.status {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
}

.hero .synopsis {
    color: #ccc;
    line-height: 1.8; /* Increased from 1.6 for better readability */
    font-size: 1.05rem; /* Slightly smaller for a more sophisticated look */
    max-width: 700px;  
    font-family: var(--font-body); 
    margin-top: 15px;      /* Gap from the title/tracker above */ 
    letter-spacing: 0.1px; /* Slight air between letters */
    opacity: 0.9;          /* Softens the text to keep focus on the title */
}

.cta-group {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.btn {
    padding: 12px 25px;
    background: radial-gradient(100% 120% at 50% 0%, #df0211 0%, #500D11 100%);
    color: #fdfdfd;
    border-radius: 6px;
    border: none;
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.7px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;

}

.btn:hover {
    background-color: var(--dark-red);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(192, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--text-light); 
}

.btn-outline:hover { 
    background: radial-gradient(100% 120% at 50% 0%, #df0211 0%, #500D11 100%); 
    box-shadow: 0 15px 30px rgba(192, 0, 0, 0.3);
    border: 2px solid #500D11;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #aaa;
}

.stars {
    color: var(--primary-red);
}

.divider {
    height: 15px;
    width: 1px;
    background-color: #444;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 0px;
    left: 50%;

    color: #666;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* --- REST OF THE PAGE STYLES --- */
h1,
h2,
h3,
h4,
h5 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    font-family: 'Raleway', sans-serif;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 50px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background-color: var(--primary-red);
}

/* Book Preview */
.book-preview {
    background-color: var(--light-black);
    position: relative;
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 100px;
    align-items: center;
}

.book-cover-3d {
    position: relative;
    perspective: 2000px;
    transform-style: preserve-3d;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);

    left: 15%;
}

.book-cover-3d:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.cover-3d {
    width: 100%;
    max-width: 400px;
    max-height: 500px;
    border-radius: 10px;
    box-shadow:
        var(--shadow),
        0 0 50px rgba(192, 0, 0, 0.3),
        20px 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.book-spine {
    position: absolute;
    top: 0;
    left: -20px;
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, #222, #000);
    transform: rotateY(90deg) translateZ(-20px);
    border-radius: 5px 0 0 5px;
}

.book-pages {
    position: absolute;
    top: 0;
    left: -10px;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, #eee, #ccc);
    transform: rotateY(90deg) translateZ(-10px);
    border-radius: 2px 0 0 2px;
}

/* about section */
:root {
    --dark-red: #7a0000;
    --glass-bg: rgba(15, 15, 15, 0.75);
    --border-white: rgba(255, 255, 255, 0.1);
}

.about {
    padding: 60px 0; /* Increased padding for better breathing room */
    background-image: linear-gradient(
        rgba(0, 0, 0, 0.884), /* Lowered opacity to 40% */
        rgba(0, 0, 0, 0.89)
    ), 
    url(../universe.webp);
    
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* Changed to 'cover' so it fills the whole section */
    
    color: #ffffff; /* Ensures text is readable over the image */
}

.about-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #bbbbbb;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Enhanced Background */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    opacity: 1;
    z-index: 0;
}

.planets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    padding-top: 40px;
}

/* The Planet Card */
.planet-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-white);
    border-radius: 30px;
    /* Modern rounded look */
    padding: 50px 35px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* Animated Glow Orb */
.planet-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(192, 0, 0, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.planet-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(192, 0, 0, 0.1);
}

.planet-card:hover .planet-glow {
    opacity: 1;
}

/* Number Styling */
.planet-number {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3.5rem;
    font-family: 'Cinzel', serif;

    background: linear-gradient(145deg, #df0211 10%, #ad0712 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.2;
    font-weight: 900;
    transition: 0.5s ease;
}

.planet-card:hover .planet-number {
    opacity: 0.4;
    background: linear-gradient(145deg, #df0211 10%, #5c1015 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.2) translateY(10px);
}

/* Text Elements */
.planet-name {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 2px;
    letter-spacing: 3px;
}

.planet-dialect {
    color: var(--primary-red);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(192, 0, 0, 0.3);
    padding-bottom: 5px;
}

.planet-info {
    color: #b0b0b0;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* Bottom Highlight Line */
.planet-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    transition: width 0.6s ease;
}

.planet-card:hover::after {
    width: 100%;
}

/* Characters Section */
.characters {
    background-color: var(--light-black);
}

.characters-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
    justify-content: center;
}

.character-card {
    background-color: var(--medium-black);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    height: 90%;
    display: flex;
    flex-direction: column;
}

.character-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(192, 0, 0, 0.3);
}

.character-img {
    height: 100px;
    overflow: hidden;
    position: relative;
}

.character-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.character-card:hover .character-img img {
    transform: scale(1.05);
}

.character-role-badge {
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    background: linear-gradient(to bottom, #c00410 10%, #5c1015 90%);
    align-items: center;
    text-align: center;
    color: var(--text-white);
    padding: 8px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.character-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.character-name {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* Magic System */
.magic {
    position: relative;
}

.magic-container {
    display: grid;
    grid-template-columns: 1fr 1.9fr;
    gap: 20px;
    align-items: center;
}


@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 100px rgba(192, 0, 0, 0.5);
    }

    100% {
        transform: scale(1.05);
        box-shadow: 0 0 150px rgba(192, 0, 0, 0.7);
    }
}

.dialects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.dialect-item {
    background-color: var(--light-black);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
}

.dialect-item:hover {
    background-color: rgba(85, 83, 83, 0.185);
    transform: scale(1.05);
    transition: all 0.5s ease;
    border-right: 3px solid var(--primary-red);
}

.dialect-name {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 10px;
    font-family: ' ', serif;
}

/* Contact Section - Professional Custom Design */
.contact {
    padding: 30px 0px;
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
}



.contact-description {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #999999;
    text-align: center;
}

/* Contact Methods - Card Layout */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.contact-card {
    border-radius: 20px;
    padding: 50px 40px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #1f1f1f;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: #750606af;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-icon {
    font-size: 2.5rem;
    color: #c00000;
    margin-bottom: 30px;
    display: inline-block;
    background: rgba(192, 0, 0, 0.05);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.contact-card p {
    font-size: 1rem;
    color: #888888;
    line-height: 1.6;
    margin-bottom: 25px;
}

.contact-details {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #222222;
}

.contact-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #f0f0f0;
}

.contact-detail i {
    color: #c00000;
    margin-right: 12px;
    font-size: 1rem;
}

/* Order Inquiry Form - Refined */
.order-form-container {
    background: #0f0f0f;
    border-radius: 24px;
    padding: 70px;
    max-width: 850px;
    margin: 0 auto;
    border: 1px solid #1a1a1a;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.form-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 45px;
    text-align: center;
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 30px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #c00000;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background-color: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c00000;
    background-color: #1f1f1f;
    box-shadow: 0 0 0 4px rgba(192, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Button Styling */
.contact .btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 20px;
    background-color: #c00000;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact .btn:hover {
    background-color: #e60000;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(192, 0, 0, 0.4);
}

/* Specific styling for the select dropdown icon */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .order-form-container {
        padding: 40px 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-card {
        padding: 40px 20px;
    }
}

/* Author Section */
.author {
    background-color: var(--light-black);
}

.author-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.author-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.author-img img {
    width: 100%;
    height: auto;
    display: block;
}

.author-info h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.author-bio {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

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

.author-social a {
    width: 50px;
    height: 50px;
    text-decoration: none;
    border-radius: 10px;
    background-color: #201f1f; 
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: large;
}

.author-social a:hover {
    transform: translateY(-5px);
}

/* Newsletter */
.newsletter {
    text-align: center;
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.newsletter p {
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.newsletter-form input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    background-color: var(--light-black);
    color: var(--text-white);
    border-radius: 4px 0 0 4px;
    font-size: 1.1rem;
    border: 2px solid transparent;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 20px rgba(192, 0, 0, 0.3);
}

.newsletter-form button {
    border-radius: 0 4px 4px 0;
    border: none;
}

/* Footer */
footer { 
    background: linear-gradient(90deg, #000000ef, #0808089d);
    padding: 30px 0 0px;
    border-top: 1px solid rgba(192, 0, 0, 0.2);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 20px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-red);
}

.footer-links li {
    margin-bottom: 15px;

}

.footer-links a {
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    color: #aaa;
}

.footer-links a:hover {
    color: var(--primary-red);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
    color: #aaa;
    font-size: 0.9rem;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 10px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(192, 0, 0, 0.3);
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: var(--dark-red);
    transform: translateY(-5px) scale(1.1);
}

/* Cinzel Styles */
.cinzel {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 900;
    font-size: 25px;
    color: #ffffff;
    text-transform: uppercase;
    text-decoration: none;
    margin-left: 2%;
}

.glitch-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 55px;
}

/* About Book Section */

.book-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.book-cover {
    padding: 10px;
    margin: 0 auto;
}

.book-cover-img {
    width: 100%;
    max-width: 400px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.book-cover-img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.book-info {
    flex: 1;
}

.book-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.book-info p {
    margin-bottom: 20px;
    color: #aaa;
}

.book-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.detail-item {
    background-color: rgba(53, 51, 51, 0.185);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid rgb(97, 3, 3);
}

.detail-item:hover {
    background-color: rgba(85, 83, 83, 0.185);
    transform: scale(1.05);
    transition: all 0.4s ease; 
    border-right: 3px solid rgb(97, 3, 3);
}

.detail-item h4 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.asection-title {
    text-align: center;
    font-size: 15px;
}

.asection-title h2 {
    text-align: center;
    font-size: 15px;
}

:root {
    /* Primary deep red for the radar sweep and blips */
    --radar-color: #b30000;
    /* A darker tone for the grid lines */
    --grid-color: #4d0000;
    /* The background color of the radar display */
    --display-bg-color: #0d0d0d;
}

.radar-scan {
    width: 400px;
    height: 400px;
    border: 4px solid #333;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    /* Use the dark background color */
    background-color: var(--display-bg-color);

    /* VISUAL UPGRADE: Complex looking grid using only CSS Gradients (High Performance) */
    background-image:
        /* Concentric circles */
        repeating-radial-gradient(transparent 0,
            transparent 49px,
            var(--grid-color) 50px),
        /* Vertical line */
        linear-gradient(to right,
            transparent 50%,
            var(--grid-color) 50%,
            var(--grid-color) calc(50% + 1px),
            transparent calc(50% + 1px)),
        /* Horizontal line */
        linear-gradient(to bottom,
            transparent 50%,
            var(--grid-color) 50%,
            var(--grid-color) calc(50% + 1px),
            transparent calc(50% + 1px));

    /* Outer glow for hardware realism */
    box-shadow:
        0 0 0 1px #000,
        0 0 20px rgba(0, 0, 0, 0.8),
        inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.radar-beam {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;

    /* VISUAL UPGRADE: Conic gradient for a perfect sweep tail */
    background: conic-gradient(from 0deg,
            transparent 0deg,
            transparent 270deg,
            /* Semi-transparent tail */
            rgba(133, 4, 4, 0.6) 360deg,
            /* Solid color for the leading edge */
            var(--radar-color) 30deg);

    /* PERFORMANCE: Promote to composite layer */
    will-change: transform;
    transform: translateZ(0);
    animation: scan 6s linear infinite;
}

/* Optional: A center dot to anchor the eye */
.radar-scan::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    /* Use the primary radar color */
    background: var(--radar-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--radar-color);
    z-index: 10;
}

.blip {
    position: absolute;
    width: 8px;
    height: 8px;
    /* Use a bright color for the blip itself (could also be var(--radar-color)) */
    background: #fff;
    border-radius: 50%;
    /* Glow effect using the primary color */
    box-shadow: 0 0 8px var(--radar-color), 0 0 15px var(--radar-color);
    opacity: 0;
    will-change: opacity;
}

/* Coordinate positioning (unchanged) */
.b1 {
    top: 30%;
    left: 60%;
    animation: pulse 4s infinite 0.8s;
}

.b2 {
    top: 70%;
    left: 30%;
    animation: pulse 4s infinite 2.4s;
}

.b3 {
    top: 20%;
    left: 40%;
    animation: pulse 4s infinite 3.5s;
}

/* Keyframes (unchanged) */
@keyframes scan {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0;
    }

    /* Fast appearance when beam hits */
    10% {
        opacity: 1;
        transform: scale(1.5);
    }

    /* Slow decay (phosphor effect) */
    40% {
        opacity: 0.3;
        transform: scale(1);
    }

    100% {
        opacity: 0;
    }
}

.author-quote {

    font-size: 1.2rem;
    color: silver;
    padding: 20px;
    border-left: 4px solid transparent;
    border-image: linear-gradient(to bottom, #b40000c4, #4d0101) 1;
    background: rgba(70, 70, 71, 0.5);
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    margin: 40px 0;
}

/* World Section */ 
.world-content {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
}

.world-item {
    background-color: rgba(151, 151, 151, 0.089);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.world-item:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.world-icon {
    font-size: 50px;
    margin-bottom: 20px;
    display: inline-block;
    background: linear-gradient(145deg, #df0211 10%, #5c1015 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 2px rgba(136, 25, 32, 0.4)) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.123));
    animation: float 3s ease-in-out infinite; 
}

#worldtitled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background-color: red;
}

/* --- 1. THE BACKDROP --- */
.modal { 
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 9999;
    /* Deep blood-black gradient instead of flat color */
    background: radial-gradient(rgb(20, 19, 19) 0%, rgba(19, 2, 2, 0.733) 100%);
    backdrop-filter: blur(15px);
    padding: 20px;
    overflow-y: auto;
}

/* Texture Overlay - Slightly more visible for "paper" feel */
.modal-overlay-texture {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    z-index: 1;
}

/* --- 2. THE CONTAINER --- */
.modal-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    /* Slightly wider for better line lengths */
    margin: auto;
    animation: modalEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 3. THE ACTUAL PAGE --- */
.modal-content {
    background: radial-gradient(circle at center, #080808 0%, #080808 100%);
    padding: 4rem 5rem;
    border-radius: 8px;
    position: relative; 
    cursor: default !important; 
    border: 1px solid rgba(255, 255, 255, 0.671);
    box-shadow:
        0 0 0 1px rgba(255, 0, 0, 0.05),
        0 30px 60px rgba(0, 0, 0, 0.9),
        inset 0 0 100px rgba(255, 0, 0, 0.05);
}

/* Corner Frames - More "Ornate" */
.frame-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid #ffffff;
    opacity: 0.4;
    transition: 0.3s ease;
}

.modal-container:hover .frame-corner {
    opacity: 0.8;
    width: 50px;
    height: 50px;
}

.top-left {
    top: 20px;
    left: 20px;
    border-right: 0;
    border-bottom: 0;
}

.top-right {
    top: 20px;
    right: 20px;
    border-left: 0;
    border-bottom: 0;
}

.bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: 0;
    border-top: 0;
}

.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: 0;
    border-top: 0;
}

/* Header Typography */
.book-header {
    text-align: center;
    margin-bottom: 3.5rem;
    cursor: default !important;
}

.series-subtitle {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.75rem;
    letter-spacing: 6px;
    color: #8a8a8a;
    text-transform: uppercase; 
    cursor: default !important;
}

.book-title {
    background: linear-gradient(to bottom, #ffffff 20%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 5px 5px rgba(116, 89, 89, 0.925));
    cursor: default !important;
    font-family: 'Cinzel Decorative', serif;
    font-weight: 900;
    letter-spacing: 0.2em;
    /* Use relative units */
    font-size: 3rem;
    /* Use rem for responsiveness */
    color: #ffffff;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    /* Centering */
    padding: 1rem;
    /* Add padding for flexibility */
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 1px; 
}

/* Manuscript Body */
.manuscript-body {
    font-family: 'EB Garamond', serif;
    font-size: 1.35rem;
    /* Increased for readability */
    line-height: 1.9;
    color: #c5c5c5; 
    margin: 0 auto;
    /* Soften the edges of the text block */
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 95%, transparent);
    cursor: default !important;
}

.prose {
    margin-bottom: 2rem;
    text-indent: 2.5rem;
    text-align: justify;
    hyphens: auto;
    cursor: default !important;
}

.emphasis {
    color: #fff; 
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* CTA Button - Style */
.premium-cta {
    padding: 9px 19px;
    background: radial-gradient(100% 120% at 50% 0%, #df0211 0%, #500D11 100%);
    color: #fdfdfd;
    border-radius: 100px;
    border: none;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.7px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    float: right;
    
}

.premium-cta:hover {
   background: var(--dark-red);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(230, 57, 70, 0.3);
}

/* Better Close Button */
.close-btn {
    position: absolute;
    top: 35px;
    right: 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1000;
    font-size: 25px;
}

.close-btn:hover {
    background: #920101;
    transform: rotate(90deg);
}


/* Animations */
@keyframes modalEntrance {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .modal-content {
        padding: 3rem 1.5rem;
    }

    .manuscript-body {
        font-size: 1.15rem;
        line-height: 1.7;
    }

    .prose {
        text-indent: 1.5rem;
    }

    .close-btn {
        margin-right: 10px;
    }

    .book-title {
        font-size: 1.9rem;
        letter-spacing: 0.1em;
    }
}

@media (max-width: 400px) {
    .book-title {
        font-size: 0.8rem;
    }
    .close-btn{
        top: 70px;
        position: absolute;
        margin: 0 auto;
    }
}

@media (max-width: 300px) {
    .book-title {
        font-size: 0.8rem;
    }
}

/* --- CLOSE BUTTON --- */
.close-button {
    color: var(--color-text-light, #F0F0F0);
    float: right;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 9999;
}

.close-button:hover,
.close-button:focus {
    color: var(--color-accent-red, #E74C3C);
    text-decoration: none;
    cursor: pointer;
}

/* ========== RESPONSIVE FIXES ONLY ========== */

/* Large Screens */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
        padding: 0 15px;
    }

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

    .book-wrapper {
        top: 0;
        height: 350px;
    }
}

/* Screens */
@media (max-width: 1000px) {

    .book-content {
        flex-direction: column;
        /* Stacks image on TOP of book-info */
        align-items: center;
        /* Centers items horizontally */
        text-align: center;
        /* Optional: centers the text below the image */
    }

    .book-cover {
        margin-bottom: 5px;
        /* Adds space between image and text */
    }

    .book-cover-img {
        max-width: 250px;
        /* Shortens the size as requested */
        margin: 0 auto;
        /* Ensures it is centered */
    }


}

/* Tablet & Medium Screens */
@media (max-width: 992px) {
    body {
        padding-top: var(--header-shrink-height);
    }

    nav {
        padding: 1rem 4%;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        height: auto;
        min-height: auto;
        padding: 60px 0;
    }

    .book-wrapper {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        height: 300px;
        top: 0;
    }

    .hero-content {
        margin-top: 0;
        align-items: center;
    }

    .hero p.synopsis {
        max-width: 100%;
        margin: 0 auto;
    }

    .cta-group {
        justify-content: center;
        flex-wrap: wrap;
    }

    .preview-container,
    .magic-container,
    .author-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-cover-3d {
        left: 0;
        max-width: 400px;
        margin: 0 auto;
    }

    .author-container {
        text-align: center;
    }

    .author-img {
        max-width: 300px;
        margin: 0 auto;
    }

    .author-social {
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .planets-grid,
    .characters-container,
    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: 4px;
        width: 100%;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links,
    .btn-nav {
        display: none;
    }
}

/* Mobile Screens */
@media (max-width: 768px) {
    * {
        cursor: default;
    }

    .cursor-dot {
        visibility: hidden;
    }

    .cursor-outline {
        visibility: hidden;

    }

    :root {
        --header-height: 70px;
        --header-shrink-height: 60px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .book-wrapper {
        height: 300px;
    }

    .book-img {
        width: 90%;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn,
    .btn-outline {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .social-proof {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .divider {
        display: none;
    }

    .cover-3d {
        max-width: 300px;
    }

    .radar-scan {
        width: 300px;
        height: 300px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 5vh auto;
    }

    .modal-content h4 {
        font-size: 1.8rem;
        letter-spacing: 4px;
        padding: 1rem 0;
    }

    .modal-text-content p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .modal-text-content p:first-of-type::first-letter {
        font-size: 3.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .order-form-container {
        padding: 30px 20px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .world-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .scroll-down {
        display: none;
    }

    .mobile-nav a {
        font-size: 1.6rem;
    }

    .mobile-nav li {
        margin: 20px 0;
    }
}

/* Small Mobile Screens */
@media (max-width: 576px) {
    .premium-cta{
        float: none; 
        margin-left: 10px;
        margin-top: -20px; 
        padding: 9px 14px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p.synopsis {
        font-size: 1rem;
    }

    .status {
        font-size: 0.8rem;
    }

    .book-wrapper {
        height: 300px;
    }

    .planets-grid,
    .characters-container,
    .contact-methods,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .planet-card,
    .character-card {
        padding: 25px 20px;
    }

    .character-img {
        height: 150px;
    }

    .character-role-badge {
        left: 20px;
        right: 20px;
    }

    .mobile-nav a {
        font-size: 1.4rem;
        padding: 8px 15px;
    }

    .mobile-nav li {
        margin: 15px 0;
    }

    .cover-3d {
        max-width: 250px;
    }

    .radar-scan {
        width: 250px;
        height: 250px;
    }

    .glitch-title {
        font-size: 2.5rem;
    }

    .author-info h2 {
        font-size: 2rem;
    }

    .author-bio {
        font-size: 1rem;
    }

    .contact-detail {
        flex-direction: column;
        text-align: center;
    }

    .contact-detail i {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .scroll-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .book-details {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Screens */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .book-wrapper {
        height: 300px;
    }

    .btn,
    .btn-outline {
        padding: 10px 20px;
        font-size: 14px;
    }

    .mobile-nav a {
        font-size: 1.2rem;
    }

    .modal-content h4 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .modal-text-content p:first-of-type::first-letter {
        font-size: 3rem;
    }

    .radar-scan {
        width: 200px;
        height: 200px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo i {
        font-size: 1.3rem;
    }
}

/* Landscape Mode */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-container {
        height: auto;
        min-height: 100vh;
        padding: 40px 0;
    }


    nav {
        height: 60px;
    }

    body {
        padding-top: 60px;
    }

    .mobile-nav {
        overflow-y: auto;
    }

    .mobile-nav ul {
        padding: 20px 0;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .hero-container {
        min-height: -webkit-fill-available;
    }
}

/* Prevent horizontal scrolling */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Make images responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Make form elements responsive */
input,
select,
textarea {
    max-width: 100%;
}

/* ========== HIGH-END REVIEW SECTION ========== */

.r_review-section {
    margin-top: 50px;
}

.r_container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}


/* Content Layout */
.r_review-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

@media (max-width: 1200px) {
    .r_review-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* Left Column: Reviews Display */
.r_reviews-display {
    position: relative;
}

.r_display-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.r_display-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #f5f3f0;
}

.r_review-count {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #888;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Review Cards */
.r_review-cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.r_review-card {
    background: linear-gradient(145deg, rgba(18, 18, 18, 0.9), rgba(12, 12, 12, 0.9));
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.r_review-card:hover {
    transform: translateY(-10px);
    border-color: rgba(201, 19, 19, 0.2);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(201, 19, 19, 0.1);
}

.r_review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(201, 19, 19, 0.02) 100%);
    z-index: 1;
    pointer-events: none;
}

.r_review-card-content {
    position: relative;
    z-index: 2;
}

.r_review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

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

.r_reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c91313, #8c0a0a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.3rem;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 8px 20px rgba(201, 19, 19, 0.3);
}

.r_reviewer-details h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0 0 6px 0;
    color: #f5f3f0;
}

.r_review-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #888;
    font-weight: 300;
}

.r_review-rating {
    color: #c91313;
    font-size: 1.3rem;
    letter-spacing: 3px;
    background: rgba(201, 19, 19, 0.1);
    padding: 8px 16px;
    border-radius: 12px;
}


.r_review-text {
    color: #ccc;
    line-height: 1.7;
    font-size: 1.15rem;
    margin-bottom: 25px;
    font-weight: 300;
}

.r_review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Inter', sans-serif;
}

.r_review-actions {
    display: flex;
    gap: 15px;
}

.r_action-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #888;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.r_action-btn:hover {
    background: rgba(201, 19, 19, 0.1);
    color: #636363;
}


.r_review-verified {
    color: #4CAF50;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Right Column: Review Form */
.r_review-form-container {
    position: sticky;
    top: 100px;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(15, 15, 15, 0.95));
    border-radius: 25px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
}

.r_form-header {
    text-align: center;
    margin-bottom: 40px;
}

.r_form-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(148, 147, 147, 0.1), rgba(140, 10, 10, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 1px solid rgba(201, 19, 19, 0.2);
}

.r_form-icon i {
    font-size: 2.5rem;
    color: #fc0606;
}

.r_form-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: #f5f3f0;
}

.r_form-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #b8b6b3;
    line-height: 1.6;
}

/* Form Elements */
.r_form-group {
    margin-bottom: 30px;
}


.r_form-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #b8b6b3;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.r_form-input,
.r_form-textarea {
    width: 100%;
    padding: 18px 22px;
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #f5f3f0;
    font-size: 1.1rem;
    font-family: 'Cormorant Garamond', serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.r_form-input:focus,
.r_form-textarea:focus {
    outline: none;
    border-color: #c91313;
    background: rgba(40, 40, 40, 0.9);
    box-shadow: 0 0 0 3px rgba(201, 19, 19, 0.1);
}

.r_form-textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

/* Star Rating */
.r_rating-container {
    text-align: center;
    padding: 10px;
    background: rgba(25, 25, 25, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.r_rating-container {
    text-align: center;
    padding: 10px;
    background: rgba(25, 25, 25, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.03);

}

.r_rating-hint {
    font-family: 'Inter', sans-serif;
    opacity: 0;
    /* Start invisible */
    visibility: hidden;
    /* Still hidden */
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
    /* Adjusted delay */
}

.r_rating-container:hover .r_rating-hint {
    opacity: 1;
    /* Make fully visible */
    visibility: visible;
    /* Ensure it's visible */
    transition: opacity 2.5s ease;
    /* No delay for visibility on hover */
}

.r_star-rating {
    display: inline-flex;
    gap: 10px;
    direction: rtl;
}

.r_star {
    font-size: 2.5rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.r_star:hover,
.r_star:hover~.r_star,
.r_star.selected,
.r_star.selected~.r_star {
    color: #c91313;
    text-shadow: 0 0 20px rgba(201, 19, 19, 0.5);
}



/* Submit Button */
.r_submit-container {
    margin-top: 40px;
}

.r_submit-btn {
    width: 100%;
    padding: 15px 20px;

    background: radial-gradient(100% 120% at 50% 0%, #df0211 0%, #500D11 100%);
    border: none;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.904);
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.r_submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(201, 19, 19, 0.4);
}

.r_submit-btn:active {
    transform: translateY(-1px);
}

.r_submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.r_submit-btn:hover::after {
    left: 100%;
}

 
 
.r_modal-content {
    background: linear-gradient(145deg, #151515, #101010);
    border-radius: 25px;
    padding: 60px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(201, 19, 19, 0.2);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
 
.r_modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #c91313, #8c0a0a);
}

.r_modal-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.r_modal-icon i {
    font-size: 3.5rem;
    color: #4CAF50;
}

.r_modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #f5f3f0;
}

.r_modal-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #b8b6b3;
    line-height: 1.7;
    margin-bottom: 40px;
}

.r_modal-btn {
    padding: 16px 40px;
    background: linear-gradient(135deg, #c91313, #8c0a0a);
    border: none;
    border-radius: 10px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.r_modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(201, 19, 19, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {}

@media (max-width: 992px) {
    .r_review-content {
        gap: 60px;
    }

    .r_review-form-container {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .newsletter-form .btn{
        max-width: 100%;
    }
    .r_review-section {
        padding: 60px 20px;
    }

    .r_review-card {
        padding: 30px;
    }

    .r_review-form-container {
        padding: 35px;
    }

    .r_modal-content {
        padding: 40px 30px;
    }

    .r_display-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .r_review-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .r_review-meta {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .r_modal-title {
        font-size: 2rem;
    }

    .r_modal-text {
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes r_spin {
    to {
        transform: rotate(360deg);
    }
}


/* --- CUSTOM MOON CURSOR --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.1s ease-out, width 0.3s, height 0.3s, background 0.3s, box-shadow 0.3s;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    /* Creating a cratered surface using multiple radial gradients */
    background:
        radial-gradient(circle at 30% 30%, rgba(0, 0, 0, 0.1) 10%, transparent 10.5%),
        radial-gradient(circle at 60% 70%, rgba(0, 0, 0, 0.08) 8%, transparent 8.5%),
        radial-gradient(circle at 75% 35%, rgba(0, 0, 0, 0.1) 5%, transparent 5.5%),
        radial-gradient(circle at center, #ffffff 0%, #e0e0e0 60%, #bcbcbc 100%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.cursor-outline {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Soft atmospheric "Bloom" effect */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

/* --- HOVER STATE: Solar Eclipse Mode --- */
body.hovering .cursor-dot {
    width: 30px;
    height: 30px;
    /* The moon turns into a silhouette */
    background: #111;
    box-shadow: 0 0 0px transparent;
}

body.hovering .cursor-outline {
    width: 38px;
    height: 38px;
    border: none;
    /* The "Corona" or Ring of Fire effect */
    background: transparent;
    box-shadow:
        0 0 10px #fff,
        0 0 20px #d4af37,
        0 0 30px #d4af37;
    background-color: rgba(212, 175, 55, 0.2);
}
 

#main-nav {
    width: 96%;
    border-radius: 100px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.series-tracker {
    display: flex;
    align-items: stretch; /* Stretches the red line to match height */
    gap: 14px; 
    opacity: 0; 
    animation: fade-in-up 6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.3s;
    background: linear-gradient(to right, #29292971, transparent); 
    padding: 5px;
    margin-top: 9px;
}

/* The Anchor Line - Made it slightly thicker for impact */
.tracker-accent {
    width: 3px;
    background: #b30000d2;
    box-shadow: 0 0 15px rgba(179, 0, 0, 0.6); /* Cinematic Glow */
    border-radius: 4px;
}

.tracker-data {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px; /* Spacing between rows */
}

/* TOP ROW */
.tracker-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tracker-label {
    font-family: 'Arial', sans-serif;
    font-size: 9px;
    color: #b30000;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tracker-dot {
    width: 5px;
    height: 5px;
    background-color: #b30000;
    border-radius: 50%;
    animation: slow-pulse 3s infinite ease-in-out;
}

/* MIDDLE ROW */
.tracker-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.tracker-title {
    font-family: 'Cinzel', sans-serif;
    font-size: 10px; /* Slightly larger */
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5); /* Lift off background */
}
 

/* Animations */
@keyframes slow-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 8px #b30000; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}