/* ====================================================
   ABHINAV SINGH - PORTFOLIO STYLESHEET
   Design Style: Premium + Futuristic + Minimal + Developer Aesthetic
==================================================== */

:root {
    --bg-main: #07090e;
    --bg-card: rgba(12, 16, 23, 0.85);
    --border-card: rgba(255, 255, 255, 0.08);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-primary: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.25);
}

/* Light Theme Overrides */
html.light {
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.95);
    --border-card: rgba(0, 0, 0, 0.08);
    --text-main: #0f172a;
    --text-muted: #475569;
    --accent-primary: #7c3aed;
    --accent-glow: rgba(124, 58, 237, 0.15);
}

html.light body {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

html.light #main-navbar {
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

html.light nav {
    background-color: rgba(241, 245, 249, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

html.light .nav-link {
    color: #334155 !important;
}

html.light .nav-link:hover {
    color: #7c3aed !important;
    background-color: rgba(124, 58, 237, 0.08) !important;
}

html.light section {
    background-color: transparent !important;
}

html.light .bg-\[\#0c1017\]\/90,
html.light .bg-\[\#0c1017\]\/80,
html.light .bg-\[\#0c1017\]\/95,
html.light .bg-\[\#0c1017\],
html.light .bg-\[\#0e131d\]\/60,
html.light .bg-\[\#0b0e14\]\/90,
html.light .bg-\[\#141a24\] {
    background-color: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(203, 213, 225, 0.6) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
}

html.light h1,
html.light h2,
html.light h3,
html.light h4,
html.light .text-white {
    color: #0f172a !important;
}

html.light .text-slate-300,
html.light .text-slate-400 {
    color: #475569 !important;
}

html.light .text-slate-500 {
    color: #64748b !important;
}

html.light footer {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

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

::-webkit-scrollbar-track {
    background: #07090e;
}

html.light ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6;
}

/* Custom Cursor */
.custom-cursor {
    transition: transform 0.15s ease-out, opacity 0.3s ease;
}

@media (pointer: coarse) {
    .custom-cursor {
        display: none !important;
    }
}

/* Smooth active section glowing */
.scrolled-nav {
    background-color: rgba(12, 16, 23, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Card Hover Tilt & Elevation */
.skill-card,
.project-item {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Glow Border Utility */
.glow-border {
    position: relative;
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(90deg, #8b5cf6, #6366f1, #ec4899);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-border:hover::after {
    opacity: 0.4;
}

/* Terminal Styles */
#terminal-output::-webkit-scrollbar {
    width: 4px;
}

#terminal-output::-webkit-scrollbar-thumb {
    background: #1e2638;
}

/* Respect Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    #cursor-dot,
    #cursor-ring,
    #bg-particles {
        display: none !important;
    }
}
