/* NeuroNet.dev - Custom Styles */

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Enhanced Background Pattern */
.enhanced-bg {
    background:
        radial-gradient(ellipse at top, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
}

/* Glassmorphism Card Enhancement */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(59, 130, 246, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.8);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #2563eb, #7c3aed);
}

/* Background Grid Pattern */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    width: 100%;
    height: 100%;
    /* Removed animation to prevent scrolling issues */
}

/* Removed grid-move animation that was causing scroll problems */

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* Enhanced Hero Glow Effect */
@keyframes hero-glow {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(59, 130, 246, 0.3),
            0 0 20px rgba(139, 92, 246, 0.2);
    }
    50% {
        text-shadow:
            0 0 20px rgba(59, 130, 246, 0.5),
            0 0 40px rgba(139, 92, 246, 0.4),
            0 0 60px rgba(236, 72, 153, 0.2);
    }
}

.hero-glow {
    animation: hero-glow 3s ease-in-out infinite;
}

/* Shine Effect for Buttons */
@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shine 3s infinite;
}

/* Glowing Effects */
.glow {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.glow-purple {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Simplified Particle Animation */
@keyframes particle-float {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0);
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(1);
    }
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    animation: particle-float 4s ease-out forwards;
    pointer-events: none;
}

/* Text Animations */
.text-glow {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Button Hover Effects */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), 0 0 60px rgba(139, 92, 246, 0.2);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Gradient Text Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-text-animated {
    background: linear-gradient(-45deg, #3b82f6, #8b5cf6, #ec4899, #10b981);
    background-size: 400% 400%;
    animation: gradient-shift 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.8), 0 0 60px rgba(139, 92, 246, 0.4);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Morphing Background */
@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.morph {
    animation: morph 8s ease-in-out infinite;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .grid-pattern {
        background-size: 30px 30px;
    }

    .particle {
        display: none; /* Hide particles on mobile for performance */
    }

    /* Reduce animation complexity on mobile */
    .hero-glow {
        animation: none;
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    }

    .gradient-text-animated {
        animation: none;
        background: linear-gradient(-45deg, #3b82f6, #8b5cf6);
        background-size: 100% 100%;
    }

    /* Simplify hover effects on mobile */
    .glass-card:hover {
        transform: none;
    }

    .card-hover:hover {
        transform: none;
    }

    /* Optimize backdrop blur for mobile performance */
    .glass-card {
        backdrop-filter: blur(10px);
    }

    /* Reduce box shadow complexity */
    .btn-shine::after {
        display: none;
    }

    /* Optimize fonts for mobile */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeSpeed;
    }

    /* Touch target optimization - minimum 44x44px */
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Reduce glow effects on mobile */
    .glow,
    .glow-purple,
    .pulse-glow {
        box-shadow: none;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/* Focus States for Accessibility */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Select Dropdown Styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2393c5fd' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select option {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border: none;
}

select option:hover {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
    color: #a5f3fc;
}

select option:checked,
select option:focus {
    background: linear-gradient(135deg, #3730a3 0%, #4c1d95 100%);
    color: #60a5fa;
    font-weight: 600;
}

select::-ms-expand {
    display: none;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .grid-pattern {
        animation: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bg-white\/5 {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    .border-white\/10 {
        border-color: rgba(255, 255, 255, 0.3) !important;
    }
}

/* Print Styles */
@media print {
    .fixed,
    .absolute {
        position: static !important;
    }
    
    .bg-gradient-to-br,
    .bg-gradient-to-r {
        background: white !important;
        color: black !important;
    }
    
    .text-white {
        color: black !important;
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading-shimmer 1.5s ease-in-out infinite;
}

@keyframes loading-shimmer {
    100% {
        left: 100%;
    }
}

/* Sticky CTA Button */
.sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    opacity: 0;
    transform: translateY(100px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.sticky-cta.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.sticky-cta button {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.sticky-cta button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.6);
}

/* Animated Counter */
.stat-number {
    font-variant-numeric: tabular-nums;
}

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

.counting {
    animation: countUp 0.6s ease-out;
}

/* Mobile Sticky CTA */
@media (max-width: 768px) {
    .sticky-cta {
        bottom: 20px;
        right: 20px;
    }

    .sticky-cta button {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* Cookie Consent Banner */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.consent-banner.show {
    transform: translateY(0);
}

.consent-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.consent-banner-text {
    flex: 1;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.consent-banner-text a {
    color: #60a5fa;
    text-decoration: underline;
    transition: color 0.2s;
}

.consent-banner-text a:hover {
    color: #93c5fd;
}

.consent-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.consent-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.consent-btn-accept {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
}

.consent-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.consent-btn-decline {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.consent-btn-decline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.consent-btn-settings {
    background: transparent;
    color: #94a3b8;
    text-decoration: underline;
    padding: 0.75rem 1rem;
}

.consent-btn-settings:hover {
    color: #cbd5e1;
}

/* Consent Modal */
.consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem;
}

.consent-modal.show {
    display: flex;
}

.consent-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.consent-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.consent-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.consent-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.consent-modal-close:hover {
    color: #e2e8f0;
}

.consent-modal-body {
    padding: 1.5rem;
}

.consent-option {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.consent-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.consent-option-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
}

.consent-toggle {
    position: relative;
    width: 48px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.consent-toggle.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.consent-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.consent-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.consent-toggle.active .consent-toggle-slider {
    transform: translateX(24px);
}

.consent-option-description {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.5;
}

.consent-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .consent-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .consent-banner-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .consent-btn {
        width: 100%;
        text-align: center;
    }

    .consent-modal-content {
        margin: 1rem;
    }

    .consent-modal-footer {
        flex-direction: column;
    }

    .consent-modal-footer .consent-btn {
        width: 100%;
    }
}