/* Custom Fonts */
.font-mono {
    font-family: 'Share Tech Mono', monospace;
}
.font-sans {
    font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #444444;
}

/* Selection */
::selection {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Glow Effects */
.glow-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3),
                 0 0 20px rgba(255, 255, 255, 0.2),
                 0 0 40px rgba(255, 255, 255, 0.08);
}
.glow-white {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4),
                 0 0 30px rgba(255, 255, 255, 0.2),
                 0 0 60px rgba(255, 255, 255, 0.12);
}

/* Navigation Link Style */
.nav-link {
    font-family: 'Share Tech Mono', monospace;
    color: #9ca3af;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: relative;
}
.nav-link:hover {
    color: #d1d5db;
    text-shadow: 0 0 8px rgba(200, 200, 200, 0.5);
}

/* Social Buttons */
.social-btn {
    display: inline-block;
    font-family: 'Share Tech Mono', monospace;
    color: #d1d5db;
    border: 1px solid rgba(200, 200, 200, 0.3);
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    background: rgba(200, 200, 200, 0.05);
    border-radius: 0.25rem;
}
.social-btn:hover {
    background: rgba(200, 200, 200, 0.12);
    border-color: rgba(200, 200, 200, 0.7);
    box-shadow: 0 0 15px rgba(200, 200, 200, 0.25),
                inset 0 0 10px rgba(200, 200, 200, 0.08);
    transform: translateY(-2px);
    color: #e5e7eb;
}

/* Tool Tags */
.tool-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: #d1d5db;
    border: 1px solid rgba(200, 200, 200, 0.2);
    padding: 0.3rem 0.7rem;
    border-radius: 0.25rem;
    background: rgba(200, 200, 200, 0.05);
    transition: all 0.2s ease;
    cursor: default;
}
.tool-tag:hover {
    background: rgba(200, 200, 200, 0.12);
    border-color: rgba(200, 200, 200, 0.5);
    transform: scale(1.05);
}

/* Navbar scrolled state */
nav.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glitch effect on hover for title */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Scanline effect for about section */
#about .border-white\/10::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.08), transparent);
    opacity: 0.3;
    animation: scanline 4s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% { top: -10%; }
    100% { top: 110%; }
}

/* Skill card hover glow */
.skill-card:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Project card hover */
.project-card:hover {
    box-shadow: 0 4px 30px rgba(255, 255, 255, 0.05);
}


/* ===== LIGHT THEME ===== */
.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #f0f0f0;
    --text-primary: #111111;
    --text-secondary: #333333;
    --text-muted: #666666;
    --text-dim: #999999;
    --border-color: rgba(0, 0, 0, 0.12);
    --border-hover: rgba(0, 0, 0, 0.25);
    --glow-color: rgba(0, 0, 0, 0.15);
}

/* Body & base */
.light-theme,
.light-theme body,
body.light-theme {
    background: #ffffff !important;
    color: #111111 !important;
}

/* Force Tailwind overrides */
.light-theme .bg-neutral-950,
.light-theme.bg-neutral-950 {
    background: #ffffff !important;
}

.light-theme .text-gray-300 { color: #000000 !important; }
.light-theme .text-gray-300\/60,
.light-theme .text-gray-300\/70,
.light-theme .text-gray-300\/80,
.light-theme .text-gray-300\/90 { color: #000000 !important; }
.light-theme .text-white { color: #000000 !important; }
.light-theme .text-white\/80,
.light-theme .text-white\/90,
.light-theme .text-white\/70,
.light-theme .text-white\/60,
.light-theme .text-white\/50 { color: #000000 !important; }

.light-theme .text-gray-400 { color: #000000 !important; }
.light-theme .text-gray-400\/80,
.light-theme .text-gray-400\/90,
.light-theme .text-gray-400\/60,
.light-theme .text-gray-400\/70,
.light-theme .text-gray-400\/50,
.light-theme .text-gray-400\/30 { color: #000000 !important; }
.light-theme .text-gray-500 { color: #333333 !important; }
.light-theme .text-gray-600 { color: #444444 !important; }
.light-theme .text-gray-700 { color: #555555 !important; }
.light-theme .text-gray-200 { color: #000000 !important; }

/* Navbar */
.light-theme nav.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Cards */
.light-theme .bg-neutral-900\/50,
.light-theme [class*="bg-neutral-900"] {
    background: #f0f0f0 !important;
}

.light-theme .bg-neutral-950\/95 {
    background: rgba(255, 255, 255, 0.97) !important;
}

/* Borders */
.light-theme .border-white\/10,
.light-theme .border-white\/15,
.light-theme .border-white\/20,
.light-theme [class*="border-white/"] {
    border-color: rgba(0, 0, 0, 0.12) !important;
}

.light-theme .border-white\/30,
.light-theme [class*="border-white/30"] {
    border-color: rgba(0, 0, 0, 0.2) !important;
}

/* Gradients — replace white with black */
.light-theme [class*="from-white"] {
    --tw-gradient-from: #000 !important;
}
.light-theme [class*="to-white"] {
    --tw-gradient-to: #000 !important;
}

/* Nav links */
.light-theme .nav-link { color: #333333 !important; }
.light-theme .nav-link:hover { color: #000000 !important; text-shadow: 0 0 8px rgba(0,0,0,0.2) !important; }

/* Social buttons */
.light-theme .social-btn {
    color: #333333 !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
    background: rgba(0, 0, 0, 0.03) !important;
}
.light-theme .social-btn:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.6) !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15) !important;
    color: #000000 !important;
}

/* Tool tags */
.light-theme .tool-tag {
    color: #444444 !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    background: rgba(0, 0, 0, 0.03) !important;
}
.light-theme .tool-tag:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.4) !important;
}

/* Glow effects in light mode — use black shadow */
.light-theme .glow-text {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3),
                 0 0 20px rgba(0, 0, 0, 0.15),
                 0 0 40px rgba(0, 0, 0, 0.08) !important;
}
.light-theme .glow-white {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.4),
                 0 0 30px rgba(0, 0, 0, 0.25),
                 0 0 60px rgba(0, 0, 0, 0.1) !important;
}

/* Skill cards */
.light-theme .skill-card:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08) !important;
}

/* Project cards */
.light-theme .project-card:hover {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06) !important;
}
.light-theme .project-card [class*="from-white/5"] {
    background: linear-gradient(to bottom, rgba(0,0,0,0.03), transparent) !important;
}

/* Menu button */
.light-theme .text-white.border {
    color: #333333 !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
}

/* Pulsing dots */
.light-theme .bg-white.rounded-full {
    background: #000000 !important;
}

/* Scanline */
.light-theme #about [class*="border-white/10"]::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0.08), transparent) !important;
}

/* Footer */
.light-theme footer {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}

/* Scrollbar light */
.light-theme ::-webkit-scrollbar-track {
    background: #f0f0f0 !important;
}
.light-theme ::-webkit-scrollbar-thumb {
    background: #aaaaaa !important;
}
.light-theme ::-webkit-scrollbar-thumb:hover {
    background: #888888 !important;
}

/* Selection */
.light-theme ::selection {
    background: rgba(0, 0, 0, 0.15) !important;
    color: #000 !important;
}

/* Theme toggle button */
.theme-toggle {
    font-family: 'Share Tech Mono', monospace;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #d1d5db;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.25rem;
    line-height: 1;
}
.theme-toggle:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}
.light-theme .theme-toggle {
    border-color: rgba(0, 0, 0, 0.25);
    color: #555555;
}
.light-theme .theme-toggle:hover {
    border-color: rgba(0, 0, 0, 0.5);
    color: #000000;
}

/* ===== GLOW BREATHING (SUBTLE) ===== */
@keyframes breathe-subtle {
    0%, 100% {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.25),
                     0 0 15px rgba(255, 255, 255, 0.1);
    }
    50% {
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.45),
                     0 0 25px rgba(255, 255, 255, 0.2);
    }
}

.glow-breathing {
    animation: breathe-subtle 4s ease-in-out infinite;
}

/* Cursor breathing (smooth glow pulse, not blink) */
.cursor-breathe {
    animation: cursor-pulse 0.8s ease-in-out infinite;
    font-weight: bold;
}

@keyframes cursor-pulse {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    }
    50% {
        opacity: 0.5;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
    }
}

/* Light theme breathing */
.light-theme .glow-breathing {
    animation-name: breathe-subtle-light;
}

@keyframes breathe-subtle-light {
    0%, 100% {
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
    }
    50% {
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }
}

.light-theme .cursor-breathe {
    animation-name: cursor-pulse-light;
}

@keyframes cursor-pulse-light {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    }
    50% {
        opacity: 0.5;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    }
}
