/* 
 * 090bet Purple Gradient Theme - Complete Redesign
 * Modern Elegant Design with Purple/Blue Gradient System
 * SEO Optimized + Responsive + Accessible
 */

:root {
    /* Purple Gradient Color System */
    --primary-purple: #8B5CF6;
    --primary-violet: #6366F1;
    --secondary-cyan: #06B6D4;
    --accent-pink: #EC4899;
    --accent-rose: #F43F5E;
    
    /* Legacy Gold Variables - 替换为紫色/青色系 */
    --casino-gold: #8B5CF6; /* 紫色，替代金黄色 */
    --casino-gold-dark: #6366F1; /* 深紫色，替代深金色 */
    --casino-black: #0F0B1F; /* 深色背景 */
    
    /* Background System */
    --bg-darkest: #0F0B1F;
    --bg-dark: #1A1330;
    --bg-card: #251C42;
    --bg-card-hover: #2D2454;
    --bg-gradient: linear-gradient(135deg, #1A1330 0%, #0F0B1F 100%);
    
    /* Text Colors */
    --text-primary: #F8F9FB;
    --text-secondary: #C4B5FD;
    --text-muted: #9CA3AF;
    --text-accent: #A78BFA;
    
    /* Gradient Combinations */
    --gradient-primary: linear-gradient(135deg, var(--primary-purple), var(--primary-violet));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-cyan), var(--primary-violet));
    --gradient-accent: linear-gradient(135deg, var(--accent-pink), var(--accent-rose));
    --gradient-hero: linear-gradient(135deg, #8B5CF6 0%, #6366F1 50%, #06B6D4 100%);
    
    /* Shadows & Glows */
    --glow-purple: 0 0 30px rgba(139, 92, 246, 0.5);
    --glow-cyan: 0 0 30px rgba(6, 182, 212, 0.5);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.7);
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-xxl: 6rem;
    
    /* Typography */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Animation */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-darkest);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Force all main content below header */
body > *:not(header) {
    position: relative;
    z-index: 0;
}

/* Container System with Max Width */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 var(--space-sm);
    }
}

/* Row System - Fixed Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(var(--space-md) * -0.5);
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding: 0 calc(var(--space-md) * 0.5);
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 992px) {
    .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

/* Modern Header - Glass Effect */
header {
    position: sticky;
    top: 0;
    /* Keep header above the full-screen menu overlay so the close button remains accessible */
    z-index: 2147483647 !important;
    background: linear-gradient(135deg, rgba(15, 11, 31, 0.95), rgba(26, 19, 48, 0.95));
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: none !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 0 60px rgba(139, 92, 246, 0.15);
    transition: all var(--transition-normal);
    isolation: isolate;
    padding: 0.75rem 0;
}

header:hover {
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.8), 0 0 80px rgba(139, 92, 246, 0.3);
    border-bottom: none !important;
}

header .d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    gap: var(--space-md);
    position: relative;
    z-index: 10001 !important;
}

header img {
    transition: transform var(--transition-normal);
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.6));
    max-width: 80px;
    height: auto;
}

header img:hover {
    transform: scale(1.08) rotate(-3deg);
}

/* Purple Gradient Button System */
.btn {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid;
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary {
    background: transparent;
    color: var(--primary-purple);
    border-color: var(--primary-purple);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--glow-purple);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-pink));
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.7), 0 8px 30px rgba(236, 72, 153, 0.5);
    transform: translateY(-3px) scale(1.05);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.1rem;
    min-width: 100%;
}

/* Hero Section - Purple Gradient Theme */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: calc(var(--space-xxl) + 80px) 0 var(--space-xxl) 0;
    overflow: hidden;
    background: var(--bg-gradient);
    margin-bottom: var(--space-xl);
    z-index: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 80%;
    height: 180%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    animation: heroFloat 10s ease-in-out infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 70%;
    height: 150%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    animation: heroFloat 12s ease-in-out infinite alternate-reverse;
}

@keyframes heroFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, -5%) scale(1.1); }
}

.hero-section .row {
    position: relative;
    z-index: 2;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.hero-section .row > * {
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    background: var(--gradient-hero);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    line-height: 1.8;
}

/* New Style Stats Cards (Second Image Style) */
.stats-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: var(--space-xl) auto;
    max-width: 500px;
    padding: 2rem 1.5rem;
    background: rgba(139, 92, 246, 0.03);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.stat-card {
    position: relative;
    padding: 1.75rem 2rem;
    border-radius: var(--radius-lg);
    background: rgba(26, 19, 48, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid;
    transition: all var(--transition-normal);
    text-align: center;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, currentColor, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity var(--transition-normal);
}

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

.stat-card:hover::before {
    opacity: 1;
}

/* Purple Card */
.stat-card-purple {
    border-color: rgba(139, 92, 246, 0.4);
    color: #A78BFA;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2), inset 0 0 20px rgba(139, 92, 246, 0.05);
}

.stat-card-purple:hover {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.5), inset 0 0 25px rgba(139, 92, 246, 0.1);
}

/* Cyan Card */
.stat-card-cyan {
    border-color: rgba(6, 182, 212, 0.4);
    color: #22D3EE;
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.2), inset 0 0 20px rgba(6, 182, 212, 0.05);
}

.stat-card-cyan:hover {
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.5), inset 0 0 25px rgba(6, 182, 212, 0.1);
}

/* Pink Card */
.stat-card-pink {
    border-color: rgba(236, 72, 153, 0.4);
    color: #F472B6;
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.2), inset 0 0 20px rgba(236, 72, 153, 0.05);
}

.stat-card-pink:hover {
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.5), inset 0 0 25px rgba(236, 72, 153, 0.1);
}

/* Purple Alt Card */
.stat-card-purple-alt {
    border-color: rgba(99, 102, 241, 0.4);
    color: #818CF8;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2), inset 0 0 20px rgba(99, 102, 241, 0.05);
}

.stat-card-purple-alt:hover {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.5), inset 0 0 25px rgba(99, 102, 241, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px currentColor;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.05em;
}

/* Responsive adjustments for stats cards */
@media (max-width: 768px) {
    .stats-cards-container {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }
    
    .stat-card {
        padding: 1.5rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

/* Trust Indicators - Purple Card Style (Vertical Stack) */
.trust-indicators {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-xl) 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.trust-item {
    background: rgba(139, 92, 246, 0.08);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.trust-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    transition: left var(--transition-slow);
}

.trust-item:hover {
    border-color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
    transform: translateY(-6px);
}

.trust-item:hover::before {
    left: 100%;
}

.trust-item span {
    font-size: 2.2rem;
    display: block;
    margin-bottom: var(--space-xs);
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
}

.trust-item strong {
    display: block;
    color: var(--primary-purple);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.trust-item small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Modern Card System */
.card {
    background: var(--bg-card);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    background-size: 200% auto;
    animation: borderSlide 3s linear infinite;
}

@keyframes borderSlide {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.card:hover {
    border-color: var(--primary-purple);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-elevated), 0 0 40px rgba(139, 92, 246, 0.3);
    transform: translateY(-8px);
}

.card h2,
.card h3,
.card h4 {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-weight: 800;
}

.card h2 {
    font-size: 2.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card h3 {
    font-size: 1.7rem;
    color: var(--text-accent);
}

.card h4 {
    font-size: 1.4rem;
}

/* Hamburger Menu - Modern Elegant Design */
.hamburger-menu-toggle {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.12));
    border: 2px solid rgba(139, 92, 246, 0.4);
    width: 52px;
    height: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    border-radius: 14px;
    padding: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10002 !important;
    box-shadow: 
        0 2px 10px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.hamburger-menu-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 14px;
}

.hamburger-menu-toggle:hover::before {
    opacity: 1;
}

.hamburger-menu-toggle:hover {
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 
        0 0 25px rgba(139, 92, 246, 0.5),
        0 0 40px rgba(6, 182, 212, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hamburger-menu-toggle span {
    display: block !important;
    width: 28px;
    height: 2.5px;
    background: linear-gradient(90deg, #A78BFA, #06B6D4) !important;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 0 10px rgba(139, 92, 246, 0.6),
        0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 1;
}

.hamburger-menu-toggle span:nth-child(1) {
    width: 24px;
}

.hamburger-menu-toggle span:nth-child(3) {
    width: 20px;
}

.hamburger-menu-toggle:hover span {
    width: 28px;
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.9),
        0 0 30px rgba(6, 182, 212, 0.5);
}

.hamburger-menu-toggle.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.25));
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: 
        0 0 35px rgba(236, 72, 153, 0.6),
        0 4px 20px rgba(0, 0, 0, 0.4);
}

.hamburger-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background: linear-gradient(90deg, #EC4899, #F472B6) !important;
    width: 28px;
}

.hamburger-menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
    transform: scale(0);
}

.hamburger-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: linear-gradient(90deg, #EC4899, #F472B6) !important;
    width: 28px;
}

.hamburger-nav {
    /* Full-screen overlay so underlying page content never shows through */
    background: linear-gradient(180deg, 
        rgba(15, 11, 31, 1) 0%, 
        rgba(26, 19, 48, 1) 50%,
        rgba(20, 15, 40, 1) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    border-top: none !important;
    border-bottom: none !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    /* Extremely high so no floating ads/widgets can appear above the menu */
    z-index: 2147483646 !important; /* keep header above */
    padding-top: 82px; /* header height (desktop) */
    will-change: max-height;
    overscroll-behavior: contain;
}

.hamburger-nav.active {
    max-height: 100vh;
    border-bottom: none !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: 
        0 10px 60px rgba(0, 0, 0, 0.8), 
        0 0 120px rgba(139, 92, 246, 0.25),
        0 0 80px rgba(6, 182, 212, 0.15),
        inset 0 1px 0 rgba(139, 92, 246, 0.3);
}

.mobile-nav-content {
    padding: var(--space-md) var(--space-lg) calc(var(--space-xl) + 1rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeSlideIn 0.5s ease-out;
}

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

.mobile-nav-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(6, 182, 212, 0.04));
    padding: var(--space-lg);
    border-radius: 16px;
    border: 1.5px solid rgba(139, 92, 246, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mobile-nav-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(139, 92, 246, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.mobile-nav-section:hover::before {
    left: 100%;
}

.mobile-nav-section:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.08));
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 
        0 10px 40px rgba(139, 92, 246, 0.2),
        0 0 60px rgba(6, 182, 212, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(-4px) scale(1.02);
}

.mobile-nav-section h4 {
    font-family: var(--font-display);
    color: #A78BFA;
    font-size: 1.15rem;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding-bottom: var(--space-sm);
    font-weight: 800;
    border-bottom: 2px solid rgba(139, 92, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.6), 0 0 40px rgba(6, 182, 212, 0.4);
    transition: all 0.3s ease;
    text-align: center;
}

.mobile-nav-section h4:hover {
    color: #06B6D4;
    text-shadow: 0 0 25px rgba(6, 182, 212, 0.8), 0 0 50px rgba(167, 139, 250, 0.5);
}

.mobile-nav-section a {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-xs);
    border: 1.5px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    background: rgba(139, 92, 246, 0.02);
}

.mobile-nav-section a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-purple), var(--secondary-cyan));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-nav-section a:hover::before {
    transform: scaleY(1);
}

.mobile-nav-section a:hover {
    color: white;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(6, 182, 212, 0.15));
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateX(12px);
    box-shadow: 
        0 4px 20px rgba(139, 92, 246, 0.3),
        0 0 40px rgba(6, 182, 212, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding-left: calc(var(--space-md) + 10px);
}

.mobile-nav-section a:active {
    transform: translateX(8px) scale(0.98);
}

/* Image Styling */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.img-fluid {
    border: 3px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.img-fluid:hover {
    border-color: var(--primary-purple);
    box-shadow: var(--glow-purple), 0 12px 48px rgba(0, 0, 0, 0.7);
    transform: scale(1.04);
}

/* Footer - Modern Purple */
footer {
    background: var(--bg-dark);
    border-top: 2px solid rgba(139, 92, 246, 0.3);
    padding: var(--space-xl) 0;
    margin-top: var(--space-xxl);
    text-align: center;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    padding-bottom: 4px;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

footer a:hover {
    color: var(--primary-purple);
}

footer a:hover::after {
    width: 100%;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.7s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 30px rgba(236, 72, 153, 0.7), 0 8px 40px rgba(236, 72, 153, 0.6);
    }
}

.animate-pulse {
    animation: pulse 2.5s infinite;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section {
        min-height: 70vh;
        padding: calc(var(--space-xl) + 120px) 0 var(--space-xl) 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1.05rem;
    }
    
    .mobile-nav-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 2.5rem;
        --space-xxl: 4rem;
    }
    
    .hero-section {
        padding: 90px 0 var(--space-xl) 0;
        min-height: auto;
    }
    
    .btn-lg {
        min-width: 100%;
        padding: var(--space-sm) var(--space-lg);
    }
    
    .card {
        padding: var(--space-lg);
    }

    /* Mobile header is shorter, keep menu content visible (not under header) */
    .hamburger-nav {
        padding-top: 72px;
    }
}

/* Small phones (landscape and portrait) */
@media (max-width: 667px) {
    .hero-section {
        padding: 85px 0 var(--space-xl) 0 !important;
        margin-top: 0;
    }
}

/* Extra small devices (phones in portrait mode) */
@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0 var(--space-xl) 0 !important;
        margin-top: 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
}

/* Very small phones */
@media (max-width: 414px) {
    .hero-section {
        padding: 80px 0 var(--space-lg) 0 !important;
    }
}

@media (max-width: 375px) {
    .hero-section {
        padding: 75px 0 var(--space-lg) 0 !important;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-purple { color: var(--primary-purple); }
.text-cyan { color: var(--secondary-cyan); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }
.mt-3 { margin-top: var(--space-md); }
.py-5 { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }

/* Main Content Area */
#main-content {
    position: relative;
}

/* Section Spacing */
section {
    padding: var(--space-xxl) 0;
    position: relative;
    z-index: 0;
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: var(--space-sm) var(--space-md);
    background: var(--primary-purple);
    color: white;
    z-index: 10000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 var(--radius-sm) 0;
}

/* Enhanced Hamburger Menu Visibility - Force Display */
button.hamburger-menu-toggle {
    display: flex !important;
    visibility: visible !important;
}

button.hamburger-menu-toggle span {
    content: '' !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: var(--primary-purple) !important;
    width: 28px !important;
    height: 3px !important;
    margin: 3px 0 !important;
}

/* Ensure hamburger lines are always visible */
.hamburger-menu-toggle span[aria-hidden="true"] {
    display: block !important;
    width: 28px !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-pink)) !important;
    border-radius: 2px !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.8) !important;
}

/* Override any conflicting styles from other CSS files */
header .hamburger-menu-toggle span {
    display: block !important;
    width: 28px !important;
    height: 3px !important;
    background: var(--primary-purple) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

/* Stronger specificity for hamburger button */
header nav .hamburger-menu-toggle {
    background: rgba(139, 92, 246, 0.15) !important;
    border: 2px solid var(--primary-purple) !important;
    min-width: 50px !important;
    min-height: 50px !important;
}

/* Hide floating widget (js/tg.js) while menu is open */
body.menu-open .fw-container,
body[style*="overflow: hidden"] .fw-container {
    display: none !important;
}