/* Hero Section Styles */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    transition: background-color 0.5s;
}

body:not(.dark) .hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #cbd5e1 50%, #94a3b8 75%, #64748b 100%);
    background-size: 400% 400%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

body.dark .hero-section {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 25%, #2a2f4a 50%, #3a3f5a 75%, #4a4f6a 100%);
    background-size: 400% 400%;
}

/* Neon Orbs Styles */
#neon-orbs-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.orb-container {
    position: absolute;
    transition: all 1s ease-out;
    opacity: 0;
    z-index: 1;
}

.orb-container.mounted {
    opacity: 1;
}

.orb-container.top-left {
    top: -40%;
    left: -20%;
    width: 80vw;
    height: 80vw;
    max-width: 800px;
    max-height: 800px;
    transform: translateY(-10px);
}

.orb-container.top-left.mounted {
    transform: translateY(0);
}

.orb-container.bottom-center {
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 100vw;
    height: 100vw;
    max-width: 1000px;
    max-height: 1000px;
    transition-delay: 300ms;
}

.orb-container.bottom-center.mounted {
    transform: translateX(-50%) translateY(0);
}

.orb-container.top-right {
    top: -30%;
    right: -25%;
    width: 70vw;
    height: 70vw;
    max-width: 700px;
    max-height: 700px;
    transform: translateX(10px);
    transition-delay: 500ms;
}

.orb-container.top-right.mounted {
    transform: translateX(0);
}

.orb-container.bottom-right {
    bottom: -35%;
    right: -15%;
    width: 75vw;
    height: 75vw;
    max-width: 750px;
    max-height: 750px;
    transform: translateY(10px);
    transition-delay: 700ms;
}

.orb-container.bottom-right.mounted {
    transform: translateY(0);
}

/* Mobile adjustments for orbs */
@media (max-width: 768px) {
    .orb-container.top-left {
        top: -20%;
        left: -10%;
        width: 120vw;
        height: 120vw;
        max-width: none;
        max-height: none;
    }
    
    .orb-container.bottom-center {
        bottom: -30%;
        left: 50%;
        width: 150vw;
        height: 150vw;
        max-width: none;
        max-height: none;
    }
    
    .orb-container.top-right {
        top: -15%;
        right: -10%;
        width: 110vw;
        height: 110vw;
        max-width: none;
        max-height: none;
    }
    
    .orb-container.bottom-right {
        bottom: -20%;
        right: -5%;
        width: 130vw;
        height: 130vw;
        max-width: none;
        max-height: none;
    }
    
    .orb-light {
        background: radial-gradient(circle at 50% 50%, rgba(240, 244, 255, 0.9) 0%, rgba(240, 244, 255, 0.7) 60%, transparent 100%);
        box-shadow: 
            0 0 50px 3px rgba(99, 102, 241, 0.5),
            0 0 100px 8px rgba(99, 102, 241, 0.3),
            inset 0 0 50px 3px rgba(99, 102, 241, 0.15);
        border: 1px solid rgba(99, 102, 241, 0.5);
    }
    
    body.dark .orb-light {
        background: radial-gradient(circle at 50% 50%, rgba(5, 10, 24, 0.9) 0%, rgba(5, 10, 24, 0.7) 60%, transparent 100%);
        box-shadow: 
            0 0 50px 3px rgba(59, 130, 246, 0.6),
            0 0 100px 8px rgba(59, 130, 246, 0.4),
            inset 0 0 50px 3px rgba(59, 130, 246, 0.2);
        border: 1px solid rgba(100, 180, 255, 0.4);
    }
    
    .beam-light {
        width: 40px;
        height: 3px;
        margin-left: -20px;
        box-shadow: 0 0 15px 3px rgba(99, 102, 241, 0.7), 0 0 30px 6px rgba(129, 140, 248, 0.4);
    }
    
    body.dark .beam-light {
        box-shadow: 0 0 15px 3px rgba(100, 180, 255, 0.9), 0 0 30px 6px rgba(59, 130, 246, 0.5);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .orb-container.top-left {
        top: -30%;
        left: -15%;
    }
    
    .orb-container.bottom-center {
        bottom: -40%;
    }
    
    .orb-container.top-right {
        top: -25%;
        right: -20%;
    }
    
    .orb-container.bottom-right {
        bottom: -30%;
        right: -10%;
    }
}

.orb-light {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    transition: all 0.5s;
    background: radial-gradient(circle at 50% 50%, #f0f4ff 0%, #f0f4ff 90%, transparent 100%);
    box-shadow: 
        0 0 60px 2px rgba(99, 102, 241, 0.3),
        0 0 100px 5px rgba(99, 102, 241, 0.15),
        inset 0 0 60px 2px rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.4);
}

body.dark .orb-light {
    background: radial-gradient(circle at 50% 50%, #050a18 0%, #050a18 90%, transparent 100%);
    box-shadow: 
        0 0 60px 2px rgba(59, 130, 246, 0.4),
        0 0 100px 5px rgba(59, 130, 246, 0.2),
        inset 0 0 60px 2px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(100, 180, 255, 0.3);
}

.beam-container {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    will-change: transform;
}

.beam-light {
    position: absolute;
    top: 0;
    left: 50%;
    width: 60px;
    height: 4px;
    margin-left: -30px;
    border-radius: 2px;
    transform: translateY(-50%);
    transition: all 0.5s;
    background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.5) 30%, rgba(129, 140, 248, 0.9) 70%, rgba(99, 102, 241, 1) 100%);
    box-shadow: 0 0 20px 4px rgba(99, 102, 241, 0.6), 0 0 40px 8px rgba(129, 140, 248, 0.3);
}

body.dark .beam-light {
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.5) 30%, rgba(150, 200, 255, 0.9) 70%, white 100%);
    box-shadow: 0 0 20px 4px rgba(100, 180, 255, 0.8), 0 0 40px 8px rgba(59, 130, 246, 0.4);
}

.beam-spin-6 {
    animation: spin 6s linear infinite;
}

.beam-spin-7-reverse {
    animation: spin-reverse 7s linear infinite;
}

.beam-spin-8 {
    animation: spin 8s linear infinite;
}

.beam-spin-10-reverse {
    animation: spin-reverse 10s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Hero Text Styles */
.hero-text-container {
    color: #1e293b; /* Black text for light theme */
}

body.dark .hero-text-container {
    color: #ffffff; /* White text for dark theme */
}

#hero-title {
    transition: all 1s ease-out;
    transition-delay: 500ms;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

#hero-title.mounted {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.hero-char {
    color: inherit;
    white-space: nowrap;
    display: inline-block;
}

#hero-subtitle {
    transition: all 1s ease-out;
    transition-delay: 1500ms;
    color: inherit;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark #hero-subtitle {
    opacity: 0.6;
}

#hero-subtitle.mounted {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

body.dark #hero-subtitle.mounted {
    opacity: 0.6;
}

/* Responsive adjustments for hero text */
@media (max-width: 768px) {
    #hero-title {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }
    
    #hero-subtitle {
        font-size: 0.875rem;
        letter-spacing: 0.05em;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #hero-title {
        font-size: 4rem;
        letter-spacing: 0.15em;
    }
}

@media (min-width: 1025px) {
    #hero-title {
        font-size: 5.5rem;
        letter-spacing: 0.2em;
    }
}

.hero-title-responsive {
    font-size: clamp(1.5rem, 8vw, 5.5rem);
    letter-spacing: clamp(0.05em, 0.5vw, 0.2em);
}

.hero-subtitle-responsive {
    font-size: clamp(0.75rem, 2vw, 1.25rem);
    letter-spacing: clamp(0.05em, 0.3vw, 0.1em);
}

.hero-char {
    display: inline-block;
    transition: all 0.5s;
    opacity: 0;
    transform: translateY(16px);
}

.hero-char.mounted {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Futuristic Section Styles */
.futuristic-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0e1a 0%, #1a1f35 50%, #2a2f4a 100%);
}

body:not(.dark) .futuristic-section {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
}

.futuristic-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.futuristic-section > * {
    position: relative;
    z-index: 1;
}

/* Futuristic Card Styles */
.futuristic-card {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.futuristic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

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

.futuristic-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 
        0 20px 60px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 40px rgba(99, 102, 241, 0.2);
}

body:not(.dark) .futuristic-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.1),
        0 0 0 1px rgba(99, 102, 241, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body:not(.dark) .futuristic-card:hover {
    box-shadow: 
        0 20px 60px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 0 40px rgba(99, 102, 241, 0.15);
}

/* Stats Block */
.stats-block {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.stats-block::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stats-number {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

body:not(.dark) .stats-number {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Futuristic Typography */
.futuristic-heading {
    font-weight: 300;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body:not(.dark) .futuristic-heading {
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.futuristic-text {
    color: #cbd5e1;
    line-height: 1.8;
}

body:not(.dark) .futuristic-text {
    color: #475569;
}

/* Futuristic Button */
.futuristic-button {
    position: relative;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 20px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.futuristic-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.futuristic-button:hover::before {
    left: 100%;
}

.futuristic-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(99, 102, 241, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(99, 102, 241, 0.3);
}

.futuristic-button:active {
    transform: translateY(0);
}

/* Futuristic Input */
.futuristic-input {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    color: #f1f5f9;
}

.futuristic-input:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 
        0 0 0 3px rgba(99, 102, 241, 0.2),
        0 0 20px rgba(99, 102, 241, 0.1);
    outline: none;
}

body:not(.dark) .futuristic-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(99, 102, 241, 0.2);
    color: #1e293b;
}

body:not(.dark) .futuristic-input:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 
        0 0 0 3px rgba(99, 102, 241, 0.15),
        0 0 20px rgba(99, 102, 241, 0.1);
}

/* Icon Container */
.icon-container {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.icon-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.futuristic-card:hover .icon-container::before {
    opacity: 1;
}

/* Grid Pattern Background */
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.5;
}

body:not(.dark) .grid-pattern {
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
}

/* Policy Pages Text Styles */
.policy-content {
    color: #cbd5e1; /* Light text for dark theme */
}

body:not(.dark) .policy-content {
    color: #1e293b; /* Dark text for light theme */
}

body:not(.dark) body {
    background: #ffffff;
    color: #1e293b;
}

.policy-heading {
    color: #f1f5f9; /* White/light for dark theme */
    font-weight: 300;
}

body:not(.dark) .policy-heading {
    color: #0f172a; /* Dark for light theme */
}

.policy-text {
    color: #cbd5e1; /* Light gray for dark theme */
    line-height: 1.8;
}

body:not(.dark) .policy-text {
    color: #475569; /* Dark gray for light theme */
}

.policy-content ul li {
    color: inherit;
}

.policy-content h2 {
    color: inherit;
}

.policy-content p {
    color: inherit;
}

/* Body theme styles */
body.dark {
    background: #0a0e1a;
    color: #cbd5e1;
}

body:not(.dark) {
    background: #ffffff;
    color: #1e293b;
}

/* Section Backgrounds */
.section-bg-futuristic {
    background: linear-gradient(180deg, #0a0e1a 0%, #1a1f35 50%, #2a2f4a 100%);
}

.section-bg-futuristic-alt {
    background: linear-gradient(180deg, #1a1f35 0%, #2a2f4a 50%, #3a3f5a 100%);
}

body:not(.dark) .section-bg-futuristic {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
}

body:not(.dark) .section-bg-futuristic-alt {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

body:not(.dark) .futuristic-section::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

/* Navigation Futuristic */
.futuristic-nav {
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body:not(.dark) .futuristic-nav {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body:not(.dark) .futuristic-nav a {
    color: #475569;
}

body:not(.dark) .futuristic-nav a:hover {
    color: #6366f1;
}

/* Glow Effect */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.5));
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.glow-effect:hover::after {
    opacity: 0.6;
}
