/* ==========================================================================
   NEXUS ONE GROUP — FUTURISTIC DARK TECH & GLASSMORPHISM DESIGN SYSTEM
   Pan-European Energy Renovation, Industrial Decarbonization & Subsidy Hub
   ========================================================================== */

:root {
    --nx-bg-deep: #040912;
    --nx-bg-primary: #07101E;
    --nx-bg-secondary: #0B182D;
    --nx-bg-card: rgba(13, 27, 50, 0.58);
    --nx-bg-card-hover: rgba(18, 38, 69, 0.78);
    --nx-navy: #143558;
    --nx-sapphire: #388BDA;
    --nx-cyan: #22D3EE;
    --nx-emerald: #10B981;
    --nx-emerald-deep: #0E8E6D;
    --nx-emerald-glow: rgba(16, 185, 129, 0.35);
    --nx-blue-glow: rgba(56, 139, 218, 0.35);
    --nx-border: rgba(255, 255, 255, 0.08);
    --nx-border-emerald: rgba(16, 185, 129, 0.38);
    --nx-text-main: #F8FAFC;
    --nx-text-muted: #94A3B8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--nx-bg-deep);
    color: var(--nx-text-main);
}

body {
    background-color: var(--nx-bg-deep);
    color: var(--nx-text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, .font-display {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

.font-mono-tech {
    font-family: 'JetBrains Mono', monospace;
}

/* Futuristic Cyber Grid & Ambient Aurora Background */
.bg-cyber-grid {
    background-size: 56px 56px;
    background-image: 
        linear-gradient(to right, rgba(56, 139, 218, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
}

.aurora-glow-1 {
    position: fixed;
    top: -15%;
    left: -10%;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 139, 218, 0.16) 0%, rgba(20, 53, 88, 0.05) 45%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.aurora-glow-2 {
    position: fixed;
    top: 20%;
    right: -12%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(14, 142, 109, 0.04) 50%, transparent 72%);
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

/* Glassmorphism Navigation & Surfaces */
.glass-nav {
    background: rgba(4, 9, 18, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
}

.glass-panel {
    background: linear-gradient(145deg, rgba(13, 27, 50, 0.68) 0%, rgba(7, 16, 30, 0.85) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: linear-gradient(155deg, rgba(15, 31, 56, 0.62) 0%, rgba(8, 17, 32, 0.82) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(56, 139, 218, 0.6), rgba(16, 185, 129, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.38);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.65), 0 0 28px -4px rgba(16, 185, 129, 0.18);
}

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

/* Text Gradients */
.text-gradient-nexus {
    background: linear-gradient(135deg, #FFFFFF 0%, #93C5FD 45%, #34D399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-emerald {
    background: linear-gradient(135deg, #34D399 0%, #10B981 55%, #38BDF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Futuristic Buttons */
.btn-nexus-primary {
    background: linear-gradient(135deg, #0E8E6D 0%, #10B981 50%, #2563EB 100%);
    background-size: 200% 200%;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 0.875rem;
    border: 1px solid rgba(52, 211, 153, 0.4);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-nexus-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -6px rgba(16, 185, 129, 0.55), 0 0 20px rgba(56, 139, 218, 0.35);
    filter: brightness(1.08);
}

.btn-nexus-secondary {
    background: rgba(15, 31, 56, 0.65);
    color: #E2E8F0;
    font-weight: 600;
    border-radius: 0.875rem;
    border: 1px solid rgba(56, 139, 218, 0.35);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.btn-nexus-secondary:hover {
    background: rgba(25, 51, 90, 0.8);
    border-color: rgba(16, 185, 129, 0.55);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Country Pill Tabs */
.country-tab {
    background: rgba(11, 24, 45, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.875rem;
    transition: all 0.25s ease;
    cursor: pointer;
}

.country-tab:hover {
    background: rgba(20, 42, 76, 0.85);
    border-color: rgba(56, 139, 218, 0.4);
}

.country-tab.active {
    background: linear-gradient(135deg, rgba(14, 142, 109, 0.28) 0%, rgba(20, 53, 88, 0.65) 100%);
    border-color: #10B981;
    box-shadow: 0 0 24px -4px rgba(16, 185, 129, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Animated Pulse Rings & Hexagon Accents */
@keyframes pulseGlow {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 0.95; transform: scale(1.04); }
}

.animate-pulse-glow {
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* Custom Inputs & Selects in Dark Tech Mode */
.nexus-input {
    background: rgba(7, 16, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #F8FAFC;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    width: 100%;
    transition: all 0.25s ease;
}

.nexus-input:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.nexus-input option {
    background-color: #07101E;
    color: #F8FAFC;
}

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

::-webkit-scrollbar-track {
    background: #040912;
}

::-webkit-scrollbar-thumb {
    background: #143558;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #10B981;
}
