/* Modern AdrenalineX Dashboard Styles */
:root {
    /* Color Palette - Cyberpunk / Aurora */
    --bg-deep: #050511;
    --primary: #6366f1;       /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.4);
    --accent: #06b6d4;        /* Cyan */
    --accent-glow: rgba(6, 182, 212, 0.4);
    --secondary: #8b5cf6;     /* Violet */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Text */
    --text-main: #ffffff;
    --text-body: #94a3b8;
    --text-muted: #64748b;

    /* Glassmorphism settings */
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);
    --backdrop-blur: 20px;
    
    /* Layout */
    --radius-lg: 24px;
    --radius-md: 16px;
    --container-width: 1200px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Light Mode Overrides */
[data-theme="light"] {
    --bg-deep: #f0f4f8;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(0, 0, 0, 0.05);
    --text-main: #0f172a;
    --text-body: #475569;
    --primary: #4f46e5;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* --- DYNAMIC BACKGROUND (AURORA) --- */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-deep);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatBlob 20s infinite alternate;
}

.blob-1 { width: 600px; height: 600px; background: var(--primary); top: -100px; left: -100px; animation-duration: 25s; }
.blob-2 { width: 500px; height: 500px; background: var(--secondary); bottom: -100px; right: -100px; animation-duration: 30s; }
.blob-3 { width: 300px; height: 300px; background: var(--accent); top: 40%; left: 40%; filter: blur(60px); opacity: 0.4; animation: floatBlob 22s infinite alternate-reverse; }

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Texture Overlay */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* --- UTILITIES --- */
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
ul { list-style: none; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }

/* --- GLASS COMPONENTS --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Shine Effect on Hover */
.glass-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}
.glass-panel:hover::after { left: 150%; transition: 1.2s ease-in-out; }

/* --- HEADER --- */
header {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-glass {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 50px; /* Pill shape */
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-glow);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-body);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: 0.3s;
    border-radius: 2px;
}
.nav-links a:hover::after { width: 100%; }

/* --- HERO SECTION --- */
.hero-section {
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
    /* Fallback for light mode/color adjustments */
    text-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

[data-theme="light"] .hero-content h1 {
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
}

.hero-content h1 span {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-body);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* 3D Cards Area */
.login-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    perspective: 1000px; /* Enable 3D space */
}

.action-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.1s ease, box-shadow 0.3s ease; /* Fast transform for Tilt JS */
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.action-card:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: var(--primary);
}

.card-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: rgba(0,0,0,0.2);
    color: var(--primary);
}

.card-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}
.card-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* --- TRUSTED SERVERS (Infinite Scroll) --- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.section-header p { color: var(--text-muted); }

.scroller-mask {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 2rem 0;
}

.scroller-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.server-badge {
    min-width: 280px;
    height: 100px;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.server-badge:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

.badge-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

.server-icon-sm {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.server-details h4 { font-size: 1rem; color: white; margin-bottom: 2px; }
.server-details span { font-size: 0.8rem; color: #cbd5e1; display: block; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- FEATURES GRID --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 2.5rem;
    background: var(--glass-highlight);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--glass-bg);
    border-color: var(--accent);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.feature-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.feature-card p { color: var(--text-body); font-size: 0.95rem; }

/* --- STATS COUNTERS --- */
.stats-section {
    padding: 4rem 0;
    text-align: center;
}
.stats-row {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to top, var(--primary), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--text-muted); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.2);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h2 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--text-main); }
.footer-brand p { color: var(--text-muted); max-width: 300px; }

.footer-col h4 { color: var(--text-main); margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: var(--text-body); font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--primary); padding-left: 5px; }

.social-bar {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.social-btn:hover { background: var(--primary); color: white; transform: translateY(-3px); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- THEME TOGGLE --- */
.theme-switch {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}
.theme-switch:hover { transform: rotate(45deg) scale(1.1); }

/* --- NOTIFICATIONS --- */
.notify-toast {
    position: fixed;
    top: 20px;
    right: -300px; /* Hidden */
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-left: 4px solid var(--danger);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    transition: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1000;
}
.notify-toast.active { right: 20px; }
.notify-toast.error { border-color: var(--danger); }
.notify-toast.success { border-color: var(--success); }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content p { margin: 0 auto 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Could add hamburger menu logic here, simplified for now */
    .hero-content h1 { font-size: 2.8rem; }
    .stats-row { gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 0 auto; }
    .social-bar { justify-content: center; }
    
    .action-card { padding: 1.5rem; }
}