/**
 * Visual Enhancements
 * Sophisticated dark theme with quantum-themed visual effects
 */

/* ========================================
 * FLOATING GEOMETRIC ELEMENTS
 * ======================================== */

.floating-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--border-subtle);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.floating-ring-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.floating-ring-2 {
    width: 600px;
    height: 600px;
    bottom: -200px;
    left: -150px;
    border-color: var(--border-subtle);
    animation-delay: 7s;
}

.floating-ring-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: var(--border-subtle);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
        opacity: 0.5;
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
        opacity: 0.4;
    }
    75% {
        transform: translate(20px, 30px) scale(1.02);
        opacity: 0.6;
    }
}

/* ========================================
 * GRADIENT ENHANCEMENTS
 * ======================================== */

.gradient-glow {
    background: radial-gradient(
        circle at center,
        rgba(100, 255, 218, 0.15) 0%,
        rgba(100, 255, 218, 0.05) 25%,
        transparent 50%
    );
}

.gradient-border {
    position: relative;
    background: linear-gradient(135deg,
        rgba(100, 255, 218, 0.1) 0%,
        rgba(0, 212, 255, 0.1) 50%,
        rgba(255, 128, 1, 0.1) 100%
    );
    border-radius: 12px;
    padding: 2px;
}

.gradient-border-inner {
    background: #1a1a2e;
    border-radius: 10px;
    padding: 1.5rem;
}

/* ========================================
 * ENHANCED CARD STYLING - WCAG AA COMPLIANT
 * ======================================== */

.enhanced-card {
    position: relative;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--border-strong) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.enhanced-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-medium);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 80px var(--border-subtle);
}

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

/* ========================================
 * BUTTON ENHANCEMENTS - WCAG AA COMPLIANT
 * ======================================== */

.enhanced-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: var(--button-primary-bg);
    color: var(--button-primary-text);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 8px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.enhanced-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-cyan-hover);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.enhanced-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px var(--border-strong);
}

.enhanced-button:hover::before {
    opacity: 1;
}

.enhanced-button span {
    position: relative;
    z-index: 1;
}

.enhanced-button-outline {
    background: var(--button-secondary-bg);
    border: 2px solid var(--button-secondary-border);
    color: var(--button-secondary-text);
}

.enhanced-button-outline::before {
    background: var(--border-subtle);
}

.enhanced-button-outline:hover {
    border-color: var(--border-strong);
    background: var(--border-subtle);
}

/* ========================================
 * TYPOGRAPHY ENHANCEMENTS - WCAG AA COMPLIANT
 * ======================================== */

.enhanced-heading-xl {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.enhanced-heading-lg {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.enhanced-text-glow {
    text-shadow: 0 0 20px var(--border-medium);
    color: var(--text-secondary);
}

/* ========================================
 * ENHANCED ANIMATIONS
 * ======================================== */

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

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

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ========================================
 * HOVER EFFECTS & INTERACTIONS
 * ======================================== */

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.2);
    filter: brightness(1.1);
}

/* ========================================
 * BACKDROP EFFECTS
 * ======================================== */

.backdrop-blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.glass-effect {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
 * GRADIENT OVERLAYS
 * ======================================== */

.gradient-fade-top {
    position: relative;
}

.gradient-fade-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 26, 1) 0%,
        rgba(10, 10, 26, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.gradient-fade-bottom {
    position: relative;
}

.gradient-fade-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(
        to top,
        rgba(10, 10, 26, 1) 0%,
        rgba(10, 10, 26, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* ========================================
 * SECTION DIVIDERS - WCAG AA COMPLIANT
 * ======================================== */

.section-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--border-medium) 25%,
        var(--border-strong) 50%,
        var(--border-medium) 75%,
        transparent 100%
    );
    margin: 4rem 0;
}

/* ========================================
 * ICON ANIMATIONS
 * ======================================== */

.icon-animate {
    transition: transform 0.3s ease;
}

.enhanced-button:hover .icon-animate,
.enhanced-card:hover .icon-animate {
    transform: translateX(4px);
}

/* ========================================
 * RESPONSIVE ADJUSTMENTS
 * ======================================== */

@media (max-width: 768px) {
    .floating-ring {
        display: none;
    }

    .enhanced-heading-xl {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .enhanced-card {
        padding: 1.5rem;
    }
}

/* ========================================
 * STAT CARD INTEGRATION
 * ======================================== */

/* Ensure stat cards work well with enhanced card styling */
.stat-card.enhanced-card {
    /* Override any conflicting padding */
    padding: 1.5rem;
}

.stat-card.enhanced-card .stat-number {
    position: relative;
    z-index: 1;
}

.stat-card.enhanced-card .stat-label {
    position: relative;
    z-index: 1;
}

/* ========================================
 * ACCESSIBILITY
 * ======================================== */

@media (prefers-reduced-motion: reduce) {
    .floating-ring,
    .fade-in-up,
    .fade-in-left {
        animation: none;
    }

    .enhanced-card,
    .enhanced-button,
    .hover-lift {
        transition: none;
    }
}
