/* ============ COMPACT PREMIUM SAAS DESIGN (STRICT PROMPT COMPLIANCE) ============ */
:root {
    /* Color Palette - Vibrant yet Professional */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #8b5cf6;
    --accent: #f472b6;

    --bg-body: #f1f5f9;
    /* Slightly darker for contrast */
    --bg-card: #ffffff;
    --bg-surface: #f8fafc;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border-light: #e2e8f0;
    --border-hover: #cbd5e1;

    /* Compact Spacing (Strict 20px request) */
    --padding-section: 60px;
    --padding-card: 20px;
    /* Prompt requested Reduced padding */
    --gap-grid: 16px;
    /* Tighter gap */

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.15);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* Dark Mode - Deep Space (Prompt Compliance: #0f172a) */
body.dark-mode {
    --primary: #60a5fa;
    --primary-dark: #3b82f6;

    --bg-body: #0f172a;
    /* Explicitly requested #0f172a */
    --bg-card: #1e293b;
    --bg-surface: #334155;

    --text-main: #f1f5f9;
    /* Explicitly requested #f1f5f9 */
    --text-muted: #94a3b8;
    --text-light: #64748b;

    --border-light: #334155;
    --border-hover: #475569;
}

/* Base Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 14px;
    /* Ultra compact */
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* ============ AUTH BUTTON (CIRCULAR) ============ */
.btn-outline {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.btn-outline:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

.btn-outline i {
    font-size: 16px;
    color: #64748b;
}

body.dark-mode .btn-outline {
    background: #334155;
    border-color: #475569;
}

body.dark-mode .btn-outline:hover {
    background: #475569;
}

body.dark-mode .btn-outline i {
    color: #cbd5e1;
}


/* ========================================
   IMPROVED COMPACT RESPONSIVE DESIGN
   ======================================== */

/* TABLET STYLES (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .nav-container {
        padding: 12px 16px;
    }

    .nav-menu {
        gap: 20px;
    }

    .nav-menu a {
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 48px !important;
    }

    .hero-content p {
        font-size: 18px !important;
    }

    .problems-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }

    .stats-container {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat-item {
        flex: 1 1 45%;
        min-width: 200px;
    }
}

/* COMPACT MOBILE STYLES (max-width: 768px) */
@media screen and (max-width: 768px) {

    /* REDUCE OVERALL SPACING */
    body {
        font-size: 14px;
    }

    /* COMPACT NAVIGATION */
    .navbar {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }

    .nav-container {
        padding: 8px 12px !important;
        min-height: auto !important;
    }

    /* Hide desktop menu */
    .nav-menu {
        display: none !important;
    }

    .nav-menu.active {
        display: flex;
    }

    /* COMPACT MENU ITEMS - Less padding */
    .nav-menu li {
        padding: 10px 20px !important;
        margin: 0 !important;
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        font-size: 15px !important;
        padding: 0 !important;
    }

    /* Mobile hamburger menu and Three-dot (⋮) are handled by JS but styled here */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        outline: none !important;
        box-shadow: none !important;
        cursor: pointer;
        position: relative;
        transition: opacity 0.3s ease;
        order: -1;
        flex-shrink: 0;
        padding: 0;
    }

    .mobile-menu-toggle:hover {
        opacity: 0.7;
    }

    .mobile-menu-toggle i {
        font-size: 20px;
        color: #475569;
    }

    /* DROPDOWN MENU */
    .dropdown-menu {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        background: white;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        padding: 8px 0;
        min-width: 200px;
        z-index: 1000;
        animation: slideDown 0.2s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    .dropdown-menu.active {
        display: block;
    }

    .dropdown-menu a {
        display: block;
        padding: 12px 20px;
        color: #475569;
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        transition: all 0.2s;
        border-left: 3px solid transparent;
    }

    .dropdown-menu a:hover {
        background: #f8fafc;
        color: #0066cc;
        border-left-color: #0066cc;
    }

    .dropdown-menu a i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
        color: #64748b;
    }

    .dropdown-menu a:hover i {
        color: #0066cc;
    }

    /* Menu overlay */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .menu-overlay.active {
        display: block;
    }

    /* COMPACT LOGO */
    .logo {
        font-size: 18px !important;
        gap: 8px !important;
    }

    .logo i {
        font-size: 22px !important;
    }

    .logo-main {
        font-size: 18px !important;
    }

    .logo-tagline {
        display: block !important;
        /* Show on mobile */
        font-size: 7px !important;
        letter-spacing: 0.5px !important;
    }

    /* COMPACT NAVIGATION ACTIONS */
    .nav-actions {
        gap: 6px !important;
    }

    .theme-toggle-nav {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }

    .theme-toggle-nav i {
        font-size: 15px !important;
    }

    .btn,
    .btn-outline {
        padding: 8px 14px !important;
        font-size: 13px !important;
    }

    /* COMPACT HERO */
    .hero {
        min-height: auto !important;
        padding: 40px 16px !important;
    }

    .hero-content {
        padding: 0 !important;
    }

    .hero-content h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }

    .hero-content p {
        font-size: 15px !important;
        margin-bottom: 20px !important;
        line-height: 1.4 !important;
    }

    .cta-buttons {
        flex-direction: column !important;
        width: 100%;
        gap: 10px !important;
    }

    .cta-buttons .btn {
        width: 100%;
        padding: 12px 20px !important;
    }

    /* COMPACT PAGE HEADER */
    .page-header {
        padding: 30px 16px !important;
    }

    .page-header h1 {
        font-size: 28px !important;
        margin-bottom: 10px !important;
    }

    .page-header p {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    .breadcrumb {
        flex-wrap: wrap;
        font-size: 11px !important;
        margin-top: 12px !important;
    }

    /* COMPACT STATS BAR */
    .stats-bar {
        padding: 12px !important;
    }

    .stats-container {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .stat-item {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: 0 !important;
        padding: 12px 8px !important;
        text-align: center;
    }

    .stat-number {
        font-size: 24px !important;
        margin-bottom: 4px !important;
    }

    .stat-label {
        font-size: 11px !important;
    }

    /* COMPACT FILTERS */
    .filters {
        padding: 12px !important;
    }

    .filter-group {
        flex-direction: column;
        gap: 10px !important;
        align-items: stretch !important;
    }

    .filter-label {
        font-size: 13px !important;
    }

    .filter-buttons {
        flex-wrap: wrap;
        gap: 6px !important;
        justify-content: flex-start !important;
    }

    .filter-btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
        flex: 0 0 auto !important;
    }

    /* COMPACT PROBLEMS GRID */
    .problems-section {
        padding: 20px 12px !important;
    }

    .problems-container {
        padding: 0 4px !important;
    }

    .problems-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .problem-card {
        padding: 14px !important;
        margin: 0 !important;
    }

    .problem-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
    }

    .problem-header h3 {
        font-size: 15px !important;
        margin: 0 !important;
        flex: 1;
    }

    .problem-header .difficulty {
        font-size: 10px !important;
        padding: 4px 8px !important;
        flex-shrink: 0;
    }

    .problem-description {
        font-size: 12px !important;
        margin: 8px 0 !important;
        line-height: 1.4 !important;
    }

    .problem-stats {
        font-size: 11px !important;
        gap: 8px !important;
    }

    .problem-stats span {
        padding: 3px 8px !important;
    }

    .solve-btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }

    /* COMPACT FEATURES & CATEGORIES & CONTACT */
    .features,
    .categories,
    .contact {
        padding: 40px 16px !important;
    }

    .features h2,
    .categories h2,
    .contact h2 {
        font-size: 26px !important;
        margin-bottom: 20px !important;
    }

    .features-grid,
    .categories-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .feature-card,
    .category-card {
        padding: 18px !important;
    }

    .feature-card i {
        font-size: 32px !important;
        margin-bottom: 10px !important;
    }

    .feature-card h3 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }

    .feature-card p {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    .contact-container {
        flex-direction: column;
        gap: 24px !important;
    }

    .contact-form,
    .contact-info {
        width: 100%;
    }

    .form-group {
        margin-bottom: 14px !important;
    }

    .form-group label {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }

    /* COMPACT FOOTER */
    .footer {
        padding: 12px 16px 8px !important;
        margin-top: 24px !important;
        line-height: 1.6 !important;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    }

    .footer-container {
        max-width: 1000px !important;
        margin: 0 auto !important;
    }

    .footer-grid {
        display: grid !important;
        grid-template-columns: 1.5fr 1fr 1fr 1fr !important;
        gap: 16px !important;
        margin-bottom: 12px !important;
    }

    .footer,
    .footer * {
        text-align: left !important;
    }

    .footer-brand h3 {
        font-size: 16px !important;
        margin-bottom: 6px !important;
        color: #0066cc !important;
    }

    .footer-brand p {
        color: #94a3b8 !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
        font-size: 12px !important;
    }

    .social-links {
        display: flex !important;
        gap: 10px !important;
        justify-content: flex-start !important;
    }

    .social-link {
        width: 32px !important;
        height: 32px !important;
        background: #334155 !important;
        border-radius: 50% !important;
        font-size: 14px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: white !important;
        text-decoration: none !important;
        transition: all 0.3s !important;
    }

    .social-link:hover {
        background: #0066cc !important;
        transform: translateY(-2px) !important;
    }

    .footer-section h4 {
        font-size: 13px !important;
        margin-bottom: 6px !important;
        font-weight: 700 !important;
        color: #e2e8f0 !important;
    }

    .footer-links {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .footer-links li {
        margin-bottom: 6px !important;
    }

    .footer-links a {
        color: #94a3b8 !important;
        text-decoration: none !important;
        font-size: 12px !important;
        transition: color 0.3s !important;
    }

    .footer-links a:hover {
        color: #0066cc !important;
    }

    .footer-bottom {
        border-top: 1px solid #334155 !important;
        padding-top: 15px !important;
        text-align: left !important;
        color: #64748b !important;
        font-size: 12px !important;
    }


    /* COMPACT MODALS */
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 16px auto !important;
        max-height: 90vh;
        overflow-y: auto;
        padding: 16px !important;
    }

    .modal-header {
        padding: 0 0 12px 0 !important;
    }

    .modal-header h2 {
        font-size: 20px !important;
    }

    .modal-body {
        padding: 0 !important;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .tab-buttons {
        gap: 8px !important;
    }

    .tab-btn {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
}

/* ========================================
   GENERAL STYLES (Navbar, Hero, Features, etc.)
   ======================================== */

.logo-tagline,
.mobile-menu-toggle,
.dropdown-menu {
    display: none;
    /* Hidden on desktop by default */
}

/* Navbar - Glassmorphism */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

body.dark-mode .navbar {
    background: rgba(15, 23, 42, 0.9);
}

/* Hero Section - Aurora Effect */
.hero {
    position: relative;
    padding: var(--padding-section) 20px;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
        radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
    overflow: hidden;
}

body.dark-mode .hero {
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.2) 0%, transparent 60%),
        radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.2) 0%, transparent 60%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

body.dark-mode .hero-content h1 {
    background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Feature Cards - Bento Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap-grid);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--padding-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

/* Footer - Synced with Privacy Page (Ultra Compact) */
.footer {
    background: #1e293b;
    color: white;
    padding: 12px 16px 8px;
    /* Reduced padding */
    margin-top: 24px;
    /* Reduced margin */
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 16px;
    /* Reduced gap */
    margin-bottom: 12px;
    /* Reduced margin */
}

.footer,
.footer * {
    text-align: left !important;
}

.footer-brand h3 {
    font-size: 16px;
    /* Reduced font */
    margin-bottom: 6px;
    color: #0066cc;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.4;
    margin-bottom: 10px;
    font-size: 12px;
    /* Reduced font */
}

.social-links {
    display: flex;
    gap: 10px;
    justify-content: flex-start !important;
    /* Force left align */
}

.social-link {
    width: 32px;
    height: 32px;
    background: #334155;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: #0066cc;
    transform: translateY(-2px);
}

.footer-section h4 {
    font-size: 13px;
    /* Reduced font */
    margin-bottom: 6px;
    font-weight: 700;
    color: #e2e8f0;
}

.footer-links {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
}

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 12px;
    /* Reduced font */
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0066cc;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 15px;
    text-align: left;
    /* Left align copyright */
    color: #64748b;
    font-size: 12px;
}

/* Authentication Modal - Hidden by default */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.auth-modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2001;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Dark Mode - Deep Space (Prompt Compliance: #0f172a) */
body.dark-mode {
    --primary: #60a5fa;
    --primary-dark: #3b82f6;

    --bg-body: #0f172a;
    /* Explicitly requested #0f172a */
    --bg-card: #1e293b;
    --bg-surface: #334155;

    --text-main: #f1f5f9;
    /* Explicitly requested #f1f5f9 */
    --text-muted: #94a3b8;
    --text-light: #64748b;

    --border-light: #334155;
    --border-hover: #475569;
}

/* Base Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 14px;
    /* Ultra compact */
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

button {
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    outline: none;
}

/* ============ 1. COMPACT NAVBAR ============ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    height: 60px;
    /* Fixed height for compactness */
    display: flex;
    align-items: center;
}

body.dark-mode .navbar {
    background: rgba(2, 6, 23, 0.85);
}

.nav-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    /* Smaller logo */
    font-weight: 700;
    color: var(--text-main);
}

.logo i {
    font-size: 1.4rem;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle */
.theme-toggle-nav {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.theme-toggle-nav:hover {
    background: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border-light);
}

.btn-outline {
    padding: 6px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.85rem;
    background: var(--bg-card);
    transition: all 0.2s ease;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-surface);
}

/* ============ 2. COMPACT HERO SECTION ============ */
.hero {
    position: relative;
    padding: 60px 20px;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

/* Wow Factor: Gradient Text + Glow */
.hero h1 {
    font-size: 3.5rem;
    /* Reduced from 5rem */
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-main) 40%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
}

body.dark-mode .hero h1 {
    background: linear-gradient(135deg, #ffffff 40%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    /* Reduced from 1.35rem */
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-primary {
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    background: var(--primary-dark);
}

.btn-glass {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

body.dark-mode .btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-light);
    color: white;
}

.btn-glass:hover {
    background: var(--bg-surface);
    border-color: var(--text-muted);
}

/* ============ 3. COMPACT BENTO JOURNEY ============ */
.learning-journey-section {
    padding: var(--padding-section) 24px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

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

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

.journey-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--gap-grid);
    max-width: 1000px;
    /* Tighter width */
    margin: 0 auto;
}

.journey-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--padding-card);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.journey-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.journey-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.journey-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Tiny List Features */
.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.card-features .feature {
    font-size: 0.8rem;
    padding: 4px 8px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.cta-button {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.learn-btn {
    background: var(--bg-surface);
    color: var(--primary);
    border: 1px solid var(--border-light);
}

.learn-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.practice-btn {
    background: var(--bg-surface);
    color: #10b981;
    border: 1px solid var(--border-light);
}

.practice-btn:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

/* ============ 4. REAL BENTO GRID FEATURES ============ */
.features {
    padding: var(--padding-section) 24px;
    background: var(--bg-surface);
}

/* The prompt specifically asked for a Bento Grid layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-grid);
    max-width: 1200px;
    margin: 0 auto;
}

/* Utility to span columns */
.col-span-2 {
    grid-column: span 2;
}

.row-span-2 {
    grid-row: span 2;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .col-span-2 {
        grid-column: span 1;
    }

    /* Reset on mobile */
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============ 5. COMPACT FOOTER ============ */
.footer {
    padding: 40px 24px 20px;
    background: #0f172a;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.footer h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 1rem;
}

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

/* ============ 6. MODAL (Keep Fixed) ============ */
.auth-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.auth-modal.show {
    display: flex !important;
}

.auth-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.auth-modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 10;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* ========================================
   AUTHENTICATION MODAL (Premium Design)
   ======================================== */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.auth-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.auth-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 420px;
    /* Reduced from 480px */
    width: 90%;
    max-height: 90vh;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 15px;
    /* Reduced from 20px */
    right: 15px;
    /* Reduced from 20px */
    background: transparent;
    border: none;
    width: 32px;
    /* Reduced */
    height: 32px;
    /* Reduced */
    cursor: pointer;
    color: #94a3b8;
    font-size: 20px;
    /* Reduced */
    z-index: 10;
}

.modal-close:hover {
    background: #f1f5f9;
    border-radius: 8px;
}

.auth-modal-header {
    padding: 20px 30px 10px;
    /* Aggressively Reduced */
    text-align: center;
    background: transparent;
    border-bottom: none;
}

.auth-modal-title {
    font-size: 24px;
    /* Reduced from 28px */
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}

.auth-modal-subtitle {
    font-size: 13px;
    /* Reduced */
    color: #64748b;
}

.auth-modal-subtitle a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.auth-form-container {
    padding: 5px 30px 20px;
    /* Aggressively Reduced from index.html */
    max-height: calc(95vh - 40px);
    /* Increased max-height slightly */
    overflow-y: auto;
}

.social-btn-primary {
    width: 100%;
    padding: 10px 20px;
    /* Reduced */
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    background: white;
    cursor: pointer;
    font-size: 14px;
    /* Reduced */
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
    /* Reduced */
    color: #1e293b;
    transition: all 0.3s;
}

.social-btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.divider {
    display: flex;
    align-items: center;
    margin: 12px 0;
    /* Reduced */
    color: #94a3b8;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    padding: 0 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
}

.form-group input:not([type="checkbox"]) {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
    color: #1e293b;
}

.form-group input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
}

.password-strength {
    margin-top: 8px;
    display: none;
}

.password-strength.show {
    display: block;
}

.strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-bottom: 4px;
}

.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    transition: all 0.3s;
    border-radius: 2px;
}

.password-strength.weak .strength-bar::after {
    width: 33%;
    background: #ef4444;
}

.password-strength.medium .strength-bar::after {
    width: 66%;
    background: #f59e0b;
}

.password-strength.strong .strength-bar::after {
    width: 100%;
    background: #10b981;
}

.strength-text {
    font-size: 12px;
    font-weight: 600;
}

.password-strength.weak .strength-text {
    color: #ef4444;
}

.password-strength.medium .strength-text {
    color: #f59e0b;
}

.password-strength.strong .strength-text {
    color: #10b981;
}

.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
}

.field-error {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    color: #ef4444;
    font-weight: 600;
}

.field-error.show {
    display: block;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    color: #475569;
}

.remember-me input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-password {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #475569;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.btn-submit:hover {
    background: #0052a3;
    transform: translateY(-2px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message,
.success-message {
    padding: 12px 16px;
    border-radius: 10px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    display: none;
}

.error-message.show,
.success-message.show {
    display: block;
}

.error-message {
    background: #fee2e2;
    color: #dc2626;
}

.success-message {
    background: #d1fae5;
    color: #059669;
}

.back-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

/* ========================================
   DARK MODE AUTH OVERRIDES
   ======================================== */
.dark-mode .auth-modal-content {
    background: #1e293b;
}

.dark-mode .auth-modal-title {
    color: #f1f5f9;
}

.dark-mode .auth-modal-subtitle {
    color: #94a3b8;
}

.dark-mode .auth-modal-subtitle a {
    color: #60a5fa;
}

.dark-mode .modal-close:hover {
    background: #334155;
    color: #e0e0e0;
}

.dark-mode .social-btn-primary {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

.dark-mode .social-btn-primary:hover {
    background: #1e293b;
}

.dark-mode .divider::before,
.dark-mode .divider::after {
    background: #334155;
}

.dark-mode .form-group label {
    color: #f1f5f9;
}

.dark-mode .form-group input:not([type="checkbox"]) {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

.dark-mode .form-group input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.dark-mode .toggle-password {
    color: #94a3b8;
}

.dark-mode .toggle-password:hover {
    color: #60a5fa;
}

.dark-mode .btn-submit {
    background: #60a5fa;
}

.dark-mode .btn-submit:hover {
    background: #3b82f6;
}

.dark-mode .error-message {
    background: rgba(220, 38, 38, 0.1);
    color: #fca5a5;
}

.dark-mode .success-message {
    background: rgba(5, 150, 105, 0.1);
    color: #6ee7b7;
}

.dark-mode .back-link {
    color: #60a5fa;
}

.dark-mode .checkbox-label {
    color: #cbd5e1;
}

.dark-mode .checkbox-label a {
    color: #60a5fa;
}

.dark-mode .remember-me {
    color: #cbd5e1;
}

.dark-mode .forgot-password {
    color: #60a5fa;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

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

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ==========================================================================
   RECOVERED PROBLEM & CATEGORY STYLES
   (Standardized from basic_gates.html)
   ========================================================================== */

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.problems-column {
    min-width: 0;
}

.sidebar-column {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Sidebar Cards */
.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sidebar-title {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Problem Cards */
.problems-grid {
    display: grid;
    gap: 16px;
}

.problem-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 0;
    /* Adjusted from 16px to fit grid gap */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid transparent;
    position: relative;
}

.problem-card:hover {
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.12);
    transform: translateY(-4px);
    border-color: #0066cc;
}

.problem-card.solved {
    border-left: 5px solid #10b981;
    background: linear-gradient(to right, #f0fdf4 0%, white 50%);
    opacity: 0.85;
}

.problem-card.solved:hover {
    opacity: 1;
    border-color: #10b981;
}

.problem-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

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

.problem-info {
    flex: 1;
}

.problem-number {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.problem-title-text {
    font-size: 19px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.problem-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Problem Status Icons */
.problem-status {
    font-size: 28px;
    color: #10b981;
    transition: all 0.3s;
}

.problem-status.unsolved {
    color: #e2e8f0;
}

.problem-card.solved .problem-status {
    animation: checkBounce 0.6s ease-out;
}

@keyframes checkBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Category Links in Sidebar */
.category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-link:hover {
    background: #e0f2fe;
    border-color: #0066cc;
    transform: translateX(5px);
}

.category-link i:first-child {
    color: #0066cc;
    font-size: 18px;
}

.category-link span {
    flex: 1;
}

.category-link i:last-child {
    color: #94a3b8;
    font-size: 14px;
}

/* Dark Mode Overrides for Problem Cards */
body.dark-mode .problem-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .problem-card:hover {
    border-color: #60a5fa;
    box-shadow: 0 8px 24px rgba(96, 165, 250, 0.2);
}

body.dark-mode .problem-card.solved {
    border-left-color: #10b981;
    background: linear-gradient(to right, rgba(16, 185, 129, 0.1) 0%, #1e293b 50%);
}

body.dark-mode .sidebar-card {
    background: #1e293b;
}

body.dark-mode .category-link {
    background: #0f172a;
    color: #e2e8f0;
    border-color: #334155;
}

body.dark-mode .category-link:hover {
    background: #1e293b;
    border-color: #60a5fa;
}

body.dark-mode .category-link i:first-child {
    color: #60a5fa;
}

/* Solve Buttons */
.solve-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid #0066cc;
    background: transparent;
    color: #0066cc;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.solve-btn:hover {
    background: #0066cc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.solved-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid #10b981;
    background: #10b981;
    color: white;
    cursor: pointer;
    white-space: nowrap;
}

.solved-btn:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-2px);
}

body.dark-mode .solve-btn {
    border-color: #60a5fa;
    color: #60a5fa;
}

body.dark-mode .solve-btn:hover {
    background: #60a5fa;
    color: white;
}

/* ========================================
   SCROLL TO TOP BUTTON (SUPER CHARGED WOW)
   ======================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    /* Slightly larger */
    height: 60px;

    /* Deep Glass Base */
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    /* Gradient Border Trick */
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)),
        linear-gradient(135deg, #60a5fa, #3b82f6, #8b5cf6);
    background-origin: border-box;
    background-clip: content-box, border-box;

    color: #60a5fa;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;

    /* Pulse Glow Animation */
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    animation: pulse-glow 3s infinite;

    opacity: 0;
    visibility: hidden;
    transform: translateY(50px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy entrance */
    z-index: 1000;
}

/* Icon Animation */
.scroll-top-btn i {
    transition: transform 0.3s ease;
}

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

.scroll-top-btn:hover {
    /* Explode into Gradient */
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.8), 0 0 20px rgba(139, 92, 246, 0.6);
    transform: translateY(-8px) scale(1.1);
}

.scroll-top-btn:hover i {
    animation: arrow-bounce 1s infinite;
}

/* Animation Keyframes */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.7);
    }

    100% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    }
}

@keyframes arrow-bounce {

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

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

/* Dark Mode Adjustments */
body.dark-mode .scroll-top-btn {
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.4);
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)),
        linear-gradient(135deg, #60a5fa, #22d3ee);
    color: #38bdf8;
}

body.dark-mode .scroll-top-btn:hover {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 0 60px rgba(34, 211, 238, 0.7);
}