/* =========================================
   1. VARIABLES & GLOBAL SETTINGS
   ========================================= */
:root {
    /* Color Palette */
    --gold-primary: #FFD700;
    --gold-hover: #d4af37;
    --gold-glow: rgba(255, 215, 0, 0.5);
    
    --dark-bg: #050505;
    --card-bg: #0a0a0a;
    
    /* Glassmorphism */
    --glass-bg: rgba(5, 5, 5, 0.9);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Text */
    --text-white: #ffffff;
    --text-grey: #b0b0b0;
    
    /* Status Colors */
    --win: #00ff88;
    --loss: #ff4444;
    
    /* Transitions */
    --transition-speed: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--dark-bg);
    color: var(--text-white);
    font-family: 'Segoe UI', 'Roboto', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Scrollbar Customization */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

/* =========================================
   2. BACKGROUND ANIMATIONS (BUBBLES)
   ========================================= */
.bubbles-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #111 0%, #000 100%);
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -150px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp linear infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.05);
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    20% { opacity: 0.5; }
    80% { opacity: 0.2; }
    100% { transform: translateY(-120vh) scale(1.2); opacity: 0; }
}

/* =========================================
   3. PROFESSIONAL NAVBAR (Advanced)
   ========================================= */
.navbar {
    background: transparent;
    padding: 20px 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
    z-index: 1000;
}

/* Scrolled State (Added via JS) */
.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Logo Styling */
.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}
.brand-icon {
    color: var(--gold-primary);
    filter: drop-shadow(0 0 5px var(--gold-glow));
    transition: transform var(--transition-speed);
}
.navbar-brand:hover .brand-icon {
    transform: rotate(15deg) scale(1.1);
}

/* Nav Links & Magnetic Underline */
.nav-link {
    color: var(--text-grey) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 15px !important;
    position: relative;
    transition: color var(--transition-speed);
}
.nav-link:hover, .nav-link.active {
    color: var(--text-white) !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--gold-primary);
    transition: width var(--transition-speed), left var(--transition-speed);
    box-shadow: 0 0 10px var(--gold-glow);
}
.nav-link:hover::after {
    width: 80%;
    left: 10%;
}

/* Dropdown Animation */
.dropdown-menu {
    background: #0f0f0f;
    border: 1px solid var(--glass-border);
    border-top: 3px solid var(--gold-primary);
    border-radius: 0 0 8px 8px;
    padding: 10px;
    margin-top: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.dropdown-menu.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.dropdown-item {
    color: var(--text-grey);
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.dropdown-item:hover {
    background: rgba(255, 215, 0, 0.08);
    color: var(--gold-primary);
    transform: translateX(5px);
}
.dropdown-divider { border-color: rgba(255,255,255,0.1); }

/* Mobile Menu */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #111;
        padding: 20px;
        border-radius: 12px;
        border: 1px solid var(--glass-border);
        margin-top: 10px;
    }
    .nav-link::after { display: none; }
    .dropdown-menu {
        background: transparent;
        border: none;
        padding-left: 15px;
        margin-top: 0;
        box-shadow: none;
    }
}

/* =========================================
   4. BUTTONS & UTILITIES
   ========================================= */
.text-gold { color: var(--gold-primary) !important; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary) 0%, #b89a00 100%);
    color: #000;
    font-weight: 800;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}

/* Button Shine Effect */
.btn-gold::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--gold-glow);
    color: #000;
}
.btn-gold:hover::before { left: 100%; }

.btn-outline-gold {
    background: transparent;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 50px;
    transition: 0.3s;
}
.btn-outline-gold:hover {
    background: var(--gold-primary);
    color: #000;
    box-shadow: 0 0 15px var(--gold-glow);
}

/* =========================================
   5. HERO & SECTIONS
   ========================================= */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: transform 0.4s, box-shadow 0.4s;
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.1);
}

/* =========================================
   6. INTERACTIVE TOOLS DEMO (APP LOOK)
   ========================================= */
.tool-container {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
}

/* Tabs */
.nav-pills .nav-link {
    background: #111;
    color: var(--text-grey);
    border: 1px solid #333;
    margin-right: 10px;
    transition: 0.3s;
}
.nav-pills .nav-link.active {
    background-color: var(--gold-primary);
    color: #000;
    font-weight: bold;
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-glow);
}

/* Inputs */
.input-dark {
    background: #000;
    border: 1px solid #333;
    color: white;
    padding: 12px;
    width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: 0.3s;
}
.input-dark:focus {
    border-color: var(--gold-primary);
    outline: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

/* Plan Builder Checkboxes */
.demo-rule {
    cursor: pointer;
    transition: 0.2s;
    background: #050505;
}
.demo-rule:hover {
    border-color: #666 !important;
}
.demo-rule.active {
    border-color: var(--gold-primary) !important;
    background: rgba(255, 215, 0, 0.05);
}

/* Checklist Card */
.checklist-card {
    background: #000;
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    padding: 25px;
    height: 100%;
    box-shadow: 0 5px 30px rgba(255,215,0,0.05);
}

/* Grades */
.grade-box {
    text-align: center;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #080808;
}
.grade-val { font-size: 2.5rem; font-weight: 800; line-height: 1; color: #fff; }
.grade-val.grade-A { color: var(--win); text-shadow: 0 0 15px rgba(0,255,136,0.4); }
.grade-val.grade-B { color: var(--gold-primary); text-shadow: 0 0 15px rgba(255,215,0,0.4); }

/* Journal Stats */
.stat-box {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
}
.stat-box:hover { border-color: #555; }
.stat-title { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.stat-value { font-size: 1.4rem; font-weight: bold; color: #fff; margin-top: 5px; }

/* =========================================
   7. 3D BOOK ANIMATION
   ========================================= */
.book-stage {
    perspective: 1000px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.book-3d {
    width: 260px;
    height: 360px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-30deg);
    transition: transform 1s ease;
    animation: bookFloat 5s ease-in-out infinite;
}
.book-3d:hover {
    transform: rotateY(0deg) scale(1.05);
}
.book-cover {
    position: absolute;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    border: 2px solid var(--gold-primary);
    border-radius: 4px 10px 10px 4px;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    transform: translateZ(25px);
    box-shadow: 15px 15px 40px rgba(0,0,0,0.8);
}
.book-spine {
    position: absolute; width: 50px; height: 100%;
    background: var(--gold-primary);
    transform: rotateY(-90deg) translateZ(25px);
    border-left: 1px solid rgba(0,0,0,0.2);
}
.book-pages {
    position: absolute; width: 48px; height: 96%;
    background: linear-gradient(to right, #ccc, #fff, #ccc);
    right: 0; top: 2%;
    transform: rotateY(90deg) translateZ(-230px);
}
@keyframes bookFloat {
    0%, 100% { transform: rotateY(-30deg) translateY(0); }
    50% { transform: rotateY(-30deg) translateY(-20px); }
}

/* =========================================
   8. REVIEWS TICKER
   ========================================= */
.scrolling-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 20px 0;
}
.scrolling-content {
    display: inline-block;
    animation: scrollLeft 50s linear infinite;
}
.review-card {
    display: inline-block;
    width: 380px;
    white-space: normal;
    background: rgba(255,255,255,0.03);
    border: 1px solid #333;
    padding: 25px;
    margin: 0 15px;
    border-radius: 12px;
    vertical-align: top;
    backdrop-filter: blur(5px);
}
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   9. FAQ ACCORDION
   ========================================= */
.accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
}
.accordion-button {
    background: transparent;
    color: var(--text-white);
    font-weight: 700;
    box-shadow: none !important;
    padding: 20px 0;
}
.accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--gold-primary);
}
.accordion-button::after {
    filter: invert(1);
    transition: transform 0.3s;
}
.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}
.accordion-body {
    color: var(--text-grey);
    padding-bottom: 20px;
    line-height: 1.6;
}

/* =========================================
   10. FOOTER
   ========================================= */
footer {
    background: #000;
    border-top: 1px solid #222;
}
footer i {
    transition: 0.3s;
}
footer i:hover {
    color: var(--gold-primary) !important;
    transform: translateY(-3px);
}
/* =========================================
   1. CORE THEME & VARIABLES
   ========================================= */
:root {
    --gold: #FFD700;
    --gold-hover: #e6c200;
    --dark: #050505;
    --glass: rgba(15, 15, 15, 0.95); /* Darker glass for better text contrast */
    --border: rgba(255, 215, 0, 0.2);
    --text-white: #ffffff;
    
    /* UPDATED: Lighter Grey for better visibility */
    --text-grey: #e0e0e0; 
}

body {
    background-color: var(--dark);
    color: var(--text-white);
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* =========================================
   2. NAVBAR & LOGO
   ========================================= */
.navbar {
    background: rgba(0,0,0,0.9); /* Darker background for menu visibility */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 15px 0;
    transition: 0.3s;
}

.navbar-brand {
    font-weight: 900; /* Bolder Logo */
    font-size: 1.6rem;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); /* Glow effect */
}

.nav-link {
    color: #cccccc !important;
    font-size: 0.95rem;
    font-weight: 600; /* Thicker font for menu links */
    transition: 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--gold) !important;
    text-shadow: 0 0 5px var(--gold);
}

/* Desktop Hover Underline */
@media (min-width: 992px) {
    .nav-link::after {
        content: ''; position: absolute; width: 0; height: 2px;
        bottom: 5px; left: 50%; background: var(--gold);
        transition: 0.3s;
    }
    .nav-link:hover::after { width: 80%; left: 10%; }
}

/* Dropdown Menu */
.dropdown-menu {
    background: #0f0f0f;
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: 0 0 8px 8px;
    padding: 0;
    overflow: hidden;
    margin-top: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
}

.dropdown-item {
    color: #e0e0e0 !important; /* Bright text in dropdown */
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: 0.2s;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold) !important;
    padding-left: 25px;
}

/* =========================================
   3. TEXT VISIBILITY HELPERS
   ========================================= */
.text-grey {
    color: var(--text-grey) !important;
    line-height: 1.6;
    font-weight: 400; /* Ensure it's not too thin */
}
.lead {
    font-weight: 400;
    color: #dcdcdc; /* Even brighter for lead text */
}

/* =========================================
   4. BUTTONS & UI ELEMENTS
   ========================================= */
.text-gold { color: var(--gold) !important; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #d4af37);
    color: #000; font-weight: 800; border: none;
    padding: 12px 30px; border-radius: 6px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
    color: #000;
    background: #fff; /* Flash white on hover */
}

.btn-outline-gold {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold); font-weight: 700;
    padding: 10px 25px; border-radius: 6px;
    transition: 0.3s;
}
.btn-outline-gold:hover {
    background: var(--gold); color: #000;
}

/* =========================================
   5. GLASS CARDS & SECTIONS
   ========================================= */
.glass-card {
    background: rgba(20, 20, 20, 0.85); /* Darker opacity for text readability */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    transition: 0.4s;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.glass-card:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    background: rgba(10, 10, 10, 0.95);
}

.card-3d {
    transition: transform 0.5s;
    transform-style: preserve-3d;
}
.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

/* Bubbles */
.bubbles-container { position: fixed; top:0; left:0; width:100%; height:100%; z-index:-1; pointer-events:none; }
.bubble { position: absolute; background: rgba(255,215,0,0.08); border-radius: 50%; animation: rise infinite linear; bottom: -100px; }
@keyframes rise { 0% { bottom: -100px; opacity:0; } 50% { opacity:0.5; } 100% { bottom: 100vh; opacity:0; } }

/* Scrolling Reviews */
.scrolling-wrapper { overflow: hidden; white-space: nowrap; mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); }
.scrolling-content { display: inline-block; animation: scroll 50s linear infinite; }
.review-card { 
    display: inline-block; width: 350px; margin: 0 15px; padding: 20px; 
    white-space: normal; vertical-align: top;
    background: rgba(255,255,255,0.05); border: 1px solid #333; border-radius: 12px; 
}
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
/* About Image Effects */
.about-img-wrapper { z-index: 1; }
.glow-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
}
.experience-badge {
    position: absolute;
    bottom: 20px; right: -20px;
    background: #111;
    border: 2px solid var(--gold);
    padding: 15px 25px;
    border-radius: 12px;
    text-align: center;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
/* Badge positioned on the LEFT side of the image */
.experience-badge-left {
    position: absolute;
    bottom: 40px;
    left: -25px; /* Moves it outside the image on the left */
    background: #000;
    border: 2px solid var(--gold);
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    z-index: 5;
    box-shadow: -5px 10px 30px rgba(0,0,0,0.7);
}

/* Adjust for mobile screens */
@media (max-width: 991px) {
    .experience-badge-left {
        left: 10px;
        bottom: 10px;
    }
}

/* 3D Book Container Fix for Centering */
.book-container {
    perspective: 1000px;
    width: 200px; /* Forces the centering to work correctly in desktop columns */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Animation for the "LIVE" pulse */
.animate-pulse {
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}
/* Move badge to the left of the about image */
.left-badge {
    position: absolute;
    bottom: 30px; 
    left: -20px; /* Positioned on the left now */
    background: #111;
    border: 2px solid var(--gold);
    padding: 10px 20px;
    border-radius: 12px;
    text-align: center;
    z-index: 5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* Ensure images don't overflow on small screens */
@media (max-width: 991px) {
    .left-badge {
        left: 10px;
        bottom: 10px;
        padding: 5px 15px;
    }
}

/* Centering fix for book container */
.book-container {
    width: 200px; /* Constrain width to keep it centered */
}

/* Login Modal Styling */
.modal-content-dark {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.1);
}
.modal-header { border-bottom: 1px solid #222; }
.btn-close-white { filter: invert(1); }
.modal-icon-box {
    width: 80px; height: 80px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px auto;
}



/* =========================================
   3. TEXT VISIBILITY & CONTRAST FIXES
   ========================================= */

/* 1. Force all Headings to Pure White */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: #ffffff !important;
}

/* 2. Make standard text Light Grey (Readable) */
p, li, span, div {
    color: #e0e0e0; /* Bright Grey */
}

/* 3. Fix Bootstrap's "Muted" text (It is usually too dark) */
.text-muted, .text-secondary {
    color: #b0b0b0 !important; /* Lighter grey so it shows on black */
}

/* 4. Invert ".text-dark" if used by mistake */
.text-dark {
    color: #ffffff !important;
}

/* 5. Highlight Gold Text */
.text-gold, strong, b {
    color: var(--gold) !important;
}

/* 6. FIX FORM INPUTS (Text was likely black) */
input, select, textarea, .form-control, .input-dark {
    background-color: #0a0a0a !important;
    border: 1px solid #333 !important;
    color: #ffffff !important; /* Force typing text to White */
}

/* 7. Fix Placeholders (The text inside empty inputs) */
::placeholder {
    color: #888 !important; /* Visible Grey */
    opacity: 1;
}

/* 8. Fix Link Colors (So they aren't blue/dark) */
a {
    text-decoration: none;
    color: var(--gold);
}
a:hover {
    color: #ffffff;
}
.form-control, .form-select {
    background-color: #222 !important;
    border: 1px solid #444 !important;
    color: #fff !important;
}