/* Custom Tailwind CSS Overrides for Portfolio */
/* Enable decorative accent squares for professional appearance */
.accent-block { display: flex; }
/* Opt-in: add .show-accents on <body> or a container to re-enable */
.show-accents .accent-block { display: flex; }

/* Decorative overlays (gradients, grid patterns, blobs) must never cover text
   Make them non-interactive and place them behind content via stacking context. */
.inset-0.bg-gradient-to-br,
.bg-grid-pattern,
.animate-blob {
    pointer-events: none; /* never capture clicks */
    z-index: 0; /* sit behind the main content */
}

/* Ensure hero/container content sits above decorative layers */
.container {
    position: relative; /* create a stacking context */
    z-index: 10;
}

.container h1,
.container h2,
.container .typing-effect {
    position: relative;
    z-index: 20; /* ensure headings and typed lines are on top */
}

/* Hero-specific safeguards to avoid clipping of single letters/numbers at large sizes */
.hero-heading {
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
    line-height: 1.05; /* compact but avoids clipping */
}

.typing-effect {
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}

/* Ensure any text inside the main container cannot be visually occluded
   by decorative elements: give textual descendants a higher stacking order
   and transparent background so they always render above blobs/gradients. */
.container * {
    position: relative;
    z-index: 20;
    background: transparent !important;
}

/* Fix: ensure grid children can shrink and text won't be clipped on small viewports */
/* Common issue: grid/flex children can overflow if inner elements have intrinsic min-width. */
.grid > * {
    min-width: 0; /* allow children to shrink below their content width */
}

.grid .text-3xl, .grid .text-2xl, .grid .text-lg {
    overflow-wrap: anywhere; /* allow long words or numbers to wrap */
    word-break: break-word;
    white-space: normal; /* ensure wrapping */
}

/* Slight padding safety for tight cards */
.max-w-6xl .rounded-xl, .max-w-6xl .rounded-2xl {
    overflow: visible;
}

/* Broader safety: apply min-width:0 for grid children inside common layout containers */
.container .grid > *,
.max-w-6xl .grid > *,
.container > .grid > *,
.container .rounded-xl,
.container .rounded-2xl {
    min-width: 0;
}

/* Target counters/headlines specifically used in the metrics cards */
.max-w-6xl .text-3xl,
.max-w-6xl .text-2xl,
.metrics .text-3xl,
.metrics .text-2xl {
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

/* Import Tailwind CSS from CDN for GitHub Pages compatibility */
@import url('https://cdn.tailwindcss.com');

/* Corporate Professional Theme Variables */
:root {
    /* Corporate Blue Palette - CIO-Impressive Design */
    --primary-blue: #1e40af;
    --primary-indigo: #3730a3;
    --primary-slate: #334155;
    --primary-accent: #2563eb;
    
    /* Executive Background Palette */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    --bg-card: #ffffff;
    --bg-hero: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    
    /* Corporate Text Hierarchy */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;
    
    /* Executive Border System */
    --border-primary: #cbd5e1;
    --border-secondary: #94a3b8;
    --border-accent: #2563eb;
    
    /* Professional Shadows - Depth & Sophistication */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.12), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.15), 0 4px 6px -2px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.18), 0 10px 10px -5px rgba(15, 23, 42, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    
    /* Corporate Gradients */
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
    --gradient-secondary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}



/* Global Styling - Executive Professional */
body {
    background: var(--bg-primary);
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    transition: all 0.3s ease;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
    word-break: break-word;
    hyphens: auto;
}

/* Prevent text overflow globally */
h1, h2, h3, h4, h5, h6, p, div, span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Professional Navigation Styling */
.nav-link-pro {
    position: relative;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 2px solid transparent;
}

.nav-link-pro:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.nav-link-pro.active,
.nav-link-pro[href$="index.html"] {
    border-bottom-color: #3b82f6;
    color: #3b82f6 !important;
}

/* Mobile menu animations */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced theme toggle */
#theme-toggle {
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

#theme-toggle:hover::before {
    left: 100%;
}

/* Typography spacing fixes */
.typing-effect {
    overflow: visible !important;
    white-space: normal !important;
    word-break: normal !important;
    line-height: 1.2 !important;
    padding: 0.25rem 0 !important;
    margin: 0.125rem 0 !important;
}

/* Ensure proper text spacing and visibility */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.1 !important;
    letter-spacing: -0.025em !important;
    word-spacing: 0.1em !important;
}

/* Professional spacing for hero text */
.space-y-4 > * + * {
    margin-top: 1.5rem !important;
}

/* Container improvements */
.container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Professional Expertise Section Styling */
.bg-gradient-to-br {
    background: linear-gradient(to bottom right, var(--bg-hero));
}

/* Enhanced gradient text effects */
.bg-gradient-to-r {
    background: linear-gradient(to right, var(--primary-blue), var(--primary-indigo));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Professional Card Animations and Effects */
.hover\:shadow-xl:hover {
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Enhanced border hover effects */
.hover\:border-amber-300:hover {
    border-color: #fcd34d;
    box-shadow: 0 0 20px rgba(252, 211, 77, 0.3);
}

.hover\:border-emerald-300:hover {
    border-color: #6ee7b7;
    box-shadow: 0 0 20px rgba(110, 231, 183, 0.3);
}

.hover\:border-blue-300:hover {
    border-color: #93c5fd;
    box-shadow: 0 0 20px rgba(147, 197, 253, 0.3);
}

.hover\:border-purple-300:hover {
    border-color: #c4b5fd;
    box-shadow: 0 0 20px rgba(196, 181, 253, 0.3);
}

.hover\:border-teal-300:hover {
    border-color: #5eead4;
    box-shadow: 0 0 20px rgba(94, 234, 212, 0.3);
}

.hover\:border-rose-300:hover {
    border-color: #fda4af;
    box-shadow: 0 0 20px rgba(253, 164, 175, 0.3);
}

/* Professional badge styling */
.bg-gradient-to-r.from-amber-100 {
    background: linear-gradient(to right, #fef3c7, #fed7aa);
    border: 1px solid #f59e0b;
}

/* Enhanced Typography for Professional Look */
h1, h2, h3 {
    letter-spacing: -0.025em;
    font-weight: 700;
}

.text-slate-800 {
    color: #1e293b;
}

.text-slate-600 {
    color: #475569;
}

.text-slate-500 {
    color: #64748b;
}

/* Professional spacing and layout improvements */
.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-8 > * + * {
    margin-top: 2rem;
}

/* Enhanced button styling for corporate professional look */
.bg-gradient-to-br.from-blue-500 {
    background: linear-gradient(to bottom right, #2563eb, #1e40af);
}

.bg-gradient-to-br.from-indigo-500 {
    background: linear-gradient(to bottom right, #6366f1, #3730a3);
}

.bg-gradient-to-br.from-slate-500 {
    background: linear-gradient(to bottom right, #64748b, #475569);
}

/* Professional Micro-Interactions and Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    }
}

/* Enhanced card animations */
.bg-white, .dark\\:bg-gray-800 {
    animation: slideInUp 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-white:hover, .dark\\:bg-gray-800:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Professional button styling */
.bg-green-500, .bg-blue-400, .bg-purple-400 {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-green-500::before, .bg-blue-400::before, .bg-purple-400::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.bg-green-500:hover::before, .bg-blue-400:hover::before, .bg-purple-400:hover::before {
    left: 100%;
}

/* Professional focus states */
.bg-green-500:focus, .bg-blue-400:focus, .bg-purple-400:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    animation: glowPulse 2s infinite;
}

/* Enhanced terminal styling for professionalism */
.terminal-window {
    position: relative;
    overflow: hidden;
}

.terminal-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Professional achievement badge styling */
.inline-flex.items-center {
    animation: fadeInScale 0.8s ease-out;
    transition: all 0.3s ease;
}

.inline-flex.items-center:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* Enhanced gradient background animations */
.bg-gradient-to-br {
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Apple/Stripe-style Professional Design System */
@keyframes blob {
    0%, 100% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Grid pattern background */
.bg-grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Modern Typography - Apple Style */
.font-black {
    font-weight: 900;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wide {
    letter-spacing: 0.1em;
}

/* Professional Card System */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\\:translate-x-1 {
    transform: translateX(0.25rem);
}

/* Enhanced Shadows - Stripe Style */
.shadow-2xl {
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .shadow-2xl {
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Professional Button Styles */
.bg-gradient-to-r.from-blue-600 {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
}

.bg-gradient-to-r.from-blue-600:hover {
    background: linear-gradient(to right, #1d4ed8, #1e40af);
}

/* Modern Backdrop Blur */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Professional Focus States */
.focus\\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\\:ring-4:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
}

/* Enhanced Border Radius */
.rounded-3xl {
    border-radius: 1.5rem;
}

/* Improved Text Colors for Maximum Visibility */
.text-slate-900 {
    color: #0f172a !important;
}

.text-slate-800 {
    color: #1e293b !important;
}

.text-slate-700 {
    color: #334155 !important;
}

.text-slate-600 {
    color: #475569 !important;
}

/* Ensure proper contrast in light mode */
[data-theme="light"] .text-slate-900,
[data-theme="light"] .text-slate-800,
[data-theme="light"] .text-slate-700,
[data-theme="light"] .text-slate-600 {
    color: #1e293b !important;
}

/* Dark mode text colors */
[data-theme="dark"] .text-slate-900 {
    color: #f8fafc !important;
}

[data-theme="dark"] .text-slate-800 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .text-slate-700 {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .text-slate-600 {
    color: #cbd5e1 !important;
}

/* Enhanced Typography Contrast */
h1, h2, h3, h4, h5, h6 {
    color: #1e293b !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #f8fafc !important;
}

/* Body text improvements */
p {
    color: #334155 !important;
}

[data-theme="dark"] p {
    color: #e2e8f0 !important;
}

/* Dark mode body styling */
[data-theme="dark"] body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    font-family: 'Courier New', monospace;
}

/* Executive Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    background: var(--bg-card);
    border: 2px solid var(--border-accent);
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
}

.theme-toggle:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 1);
}

[data-theme="dark"] .theme-toggle {
    background: var(--bg-card);
    border: 2px solid var(--border-primary);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

[data-theme="dark"] .theme-toggle:hover {
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
}

/* Executive Navigation */
nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid var(--border-primary) !important;
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] nav {
    background: rgba(0, 0, 0, 0.9) !important;
    border-bottom: 1px solid var(--border-primary) !important;
}

/* Enhanced Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
    border: 1px solid var(--border-secondary);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}

/* Dark mode scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-green), var(--primary-blue));
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--primary-red), var(--primary-purple));
    box-shadow: 0 0 15px rgba(255, 7, 58, 0.5);
}

/* Executive Navigation Links */
.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.01em;
    padding: 12px 20px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 15px;
    text-decoration: none;
    background: transparent;
}

.nav-link:hover {
    color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.08) 0%, rgba(30, 64, 175, 0.12) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.nav-link.active {
    color: var(--primary-blue);
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.nav-link.active:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Dark mode navigation */
[data-theme="dark"] .nav-link {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

[data-theme="dark"] .nav-link:hover {
    color: var(--primary-green);
    text-shadow: 0 0 15px currentColor;
    background: transparent;
    transform: translateY(-2px);
}

[data-theme="dark"] .nav-link.active {
    color: var(--primary-green);
    text-shadow: 0 0 10px currentColor;
    background: transparent;
}

[data-theme="dark"] .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px;
}

[data-theme="dark"] .nav-link:hover::before {
    opacity: 1;
}

[data-theme="dark"] .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px currentColor;
}

[data-theme="dark"] .nav-link:hover::after {
    width: 100%;
}

/* Enhanced Terminal Window */
.terminal-window {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    font-family: 'SF Mono', 'Consolas', 'Monaco', 'Menlo', monospace;
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 600px;
    min-height: 320px;
}

.terminal-header {
    background: linear-gradient(180deg, #3c3c3c 0%, #2a2a2a 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #555;
    position: relative;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'SF Mono', 'Consolas', 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: #ddd;
    font-weight: 500;
}

.terminal-content {
    padding: 16px;
    height: 280px;
    max-height: 280px;
    background: #1e1e1e;
    position: relative;
    color: #e5e5e5;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'SF Mono', 'Consolas', 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    line-height: 1.4;
}

.terminal-prompt {
    color: #4fc3f7;
    margin-right: 8px;
    font-weight: 500;
}

/* Terminal Content Styling */
.terminal-line {
    margin: 2px 0;
    display: flex;
    align-items: flex-start;
    min-height: 18px;
}

.terminal-command {
    color: #e5e5e5;
    font-weight: 400;
}

.terminal-response {
    color: #81c784;
    margin-left: 0;
    margin-top: 2px;
    font-style: normal;
    line-height: 1.4;
}

.terminal-cursor {
    display: flex;
    align-items: center;
    margin-top: 8px;
    color: #4fc3f7;
}

.blinking-cursor {
    color: #e5e5e5;
    animation: blink 1s infinite;
    margin-left: 4px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Professional Card and Button Light Mode Overrides */
.bg-white, 
.bg-white\/90,
.bg-white\/95 {
    background-color: #ffffff !important;
    color: #1e293b !important;
}

.text-slate-800,
.text-slate-700,
.text-slate-600 {
    color: #1e293b !important;
}

.border-slate-200,
.border-slate-300 {
    border-color: #e2e8f0 !important;
}

.hover\:bg-slate-50:hover {
    background-color: #f8fafc !important;
}

/* Ensure buttons and cards are always visible */
button,
.btn,
a[class*="bg-"],
div[class*="bg-white"] {
    background-color: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

button:hover,
.btn:hover,
a[class*="bg-"]:hover {
    background-color: #f8fafc;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.terminal-button.close {
    background: #ff5f57;
    border: 1px solid #e2463f;
}

.terminal-button.minimize {
    background: #ffbd2e;
    border: 1px solid #dea123;
}

.terminal-button.maximize {
    background: #28ca42;
    border: 1px solid #1aab29;
}

.terminal-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Ensure cursor animation works */
.typing-cursor::after {
    content: '█';
    animation: blink 1s infinite;
    color: #00ff00;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Enhanced readability for all text */
h1, h2, h3, h4, h5, h6 {
    color: #1e293b !important;
    font-weight: 700 !important;
}

p, div, span {
    color: #475569 !important;
}

/* Metric cards specific styling */
.space-y-3 .text-sm {
    color: #1e293b !important;
    font-weight: 600 !important;
}

.space-y-3 .text-xs {
    color: #64748b !important;
    font-weight: 500 !important;
}

/* Ensure all buttons are readable */
.bg-blue-600,
.bg-gradient-to-r {
    color: #ffffff !important;
}

/* Make sure navigation is visible */
nav a {
    color: #475569 !important;
}

nav a:hover {
    color: #3b82f6 !important;
}

/* Typewriter effect styling */
.typing-cursor {
    animation: blink-cursor 1s infinite;
    color: #3b82f6;
    font-weight: normal;
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Typing effect for hero section */
.typing-effect {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

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

/* Executive Card Components */
.cyber-card {
    background: var(--gradient-card);
    border: 2px solid var(--border-primary);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(203, 213, 225, 0.8);
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.cyber-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-2xl);
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
}

/* Executive typography in cards */
.cyber-card h1,
.cyber-card h2,
.cyber-card h3 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cyber-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
}

/* Dark mode cards */
[data-theme="dark"] .cyber-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .cyber-card::before {
    background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
}

[data-theme="dark"] .cyber-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.15), transparent);
    transition: left 0.6s ease;
}

[data-theme="dark"] .cyber-card:hover::after {
    left: 100%;
}

[data-theme="dark"] .cyber-card:hover {
    border-color: var(--primary-green);
    box-shadow: 
        0 8px 40px rgba(0, 255, 65, 0.3),
        0 0 30px rgba(0, 255, 65, 0.2);
    transform: translateY(-8px) scale(1.02);
}

/* Enhanced Project Filter Buttons */
.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Dark mode filter buttons */
[data-theme="dark"] .filter-btn {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 1.5px;
}

[data-theme="dark"] .filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    transition: left 0.3s ease;
}

[data-theme="dark"] .filter-btn:hover::before,
[data-theme="dark"] .filter-btn.active::before {
    left: 100%;
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
    background: var(--primary-blue);
    color: #000;
    box-shadow: 
        0 0 25px rgba(0, 212, 255, 0.6),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

/* Enhanced Skills Grid */
.skill-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-cyber);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.skill-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(191, 0, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-tile:hover::before {
    opacity: 1;
}

.skill-tile:hover {
    border-color: var(--cyber-purple);
    box-shadow: 
        0 8px 30px rgba(191, 0, 255, 0.4),
        0 0 20px rgba(191, 0, 255, 0.3);
    transform: scale(1.08) translateY(-5px);
}

.skill-progress {
    background: #333;
    border-radius: 12px;
    height: 8px;
    margin: 12px 0;
    overflow: hidden;
    position: relative;
}

.skill-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--cyber-green), var(--cyber-blue));
    border-radius: 12px;
    transition: width 1.5s ease-in-out;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.skill-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

/* Enhanced Experience Timeline */
.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--cyber-green), var(--cyber-blue), var(--cyber-purple));
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.timeline-dot {
    position: absolute;
    left: 15px;
    top: 0;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--cyber-red), #8b0000);
    border-radius: 50%;
    border: 4px solid var(--bg-terminal);
    box-shadow: 
        0 0 20px var(--cyber-red),
        inset 0 0 10px rgba(255, 7, 58, 0.3);
    z-index: 2;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-cyber);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.timeline-content:hover::before {
    left: 100%;
}

.timeline-content:hover {
    border-color: var(--cyber-blue);
    box-shadow: 
        0 8px 30px rgba(0, 212, 255, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateX(10px);
}

/* Enhanced Search Interface */
.search-container {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 212, 255, 0.1));
    backdrop-filter: blur(20px);
    border: 2px solid var(--cyber-red);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 
        0 8px 40px rgba(255, 7, 58, 0.2),
        inset 0 0 30px rgba(255, 7, 58, 0.05);
    position: relative;
    overflow: hidden;
}

.search-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 7, 58, 0.1), transparent);
    animation: rotate 10s linear infinite;
    z-index: -1;
}

.search-input {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--cyber-red);
    color: var(--cyber-green);
    font-family: 'Courier New', monospace;
    font-size: 18px;
    padding: 16px 20px;
    border-radius: 10px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.search-input:focus {
    outline: none;
    border-color: var(--cyber-green);
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.5),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    transform: scale(1.02);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.search-filter {
    background: transparent;
    border: 2px solid var(--cyber-red);
    color: var(--cyber-red);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.search-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--cyber-red);
    transition: left 0.3s ease;
    z-index: -1;
}

.search-filter:hover::before,
.search-filter.active::before {
    left: 0;
}

.search-filter:hover,
.search-filter.active {
    color: #000;
    box-shadow: 
        0 0 25px rgba(255, 7, 58, 0.6),
        0 4px 15px rgba(255, 7, 58, 0.3);
    transform: translateY(-2px);
}

/* Enhanced Contact Form */
.contact-form {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(191, 0, 255, 0.1));
    backdrop-filter: blur(20px);
    border: 2px solid var(--cyber-purple);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 
        0 8px 40px rgba(191, 0, 255, 0.2),
        inset 0 0 30px rgba(191, 0, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--cyber-purple), var(--cyber-blue), var(--cyber-green), var(--cyber-red));
    border-radius: 16px;
    z-index: -1;
    animation: gradient-border 3s ease infinite;
}

.contact-input {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--cyber-blue);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    padding: 16px 20px;
    border-radius: 10px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.contact-input:focus {
    outline: none;
    border-color: var(--cyber-purple);
    box-shadow: 
        0 0 25px rgba(191, 0, 255, 0.5),
        inset 0 0 20px rgba(191, 0, 255, 0.1);
    transform: scale(1.02);
}

.contact-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.contact-submit {
    background: linear-gradient(45deg, var(--cyber-purple), var(--cyber-blue));
    border: none;
    color: #000;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 16px 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.3s ease;
}

.contact-submit:hover::before {
    left: 100%;
}

.contact-submit:hover:not(:disabled) {
    box-shadow: 
        0 0 35px rgba(191, 0, 255, 0.8),
        0 8px 25px rgba(191, 0, 255, 0.4);
    transform: translateY(-3px) scale(1.05);
}

.contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Enhanced Chart Container */
.chart-container {
    background: var(--bg-card);
    border: 2px solid var(--cyber-yellow);
    border-radius: 16px;
    padding: 32px;
    margin: 32px 0;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 40px rgba(255, 255, 0, 0.2),
        inset 0 0 30px rgba(255, 255, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 0, 0.03) 50%, transparent 70%);
    animation: subtle-shimmer 4s ease-in-out infinite;
}

.chart-title {
    color: var(--cyber-yellow);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
    position: relative;
    z-index: 1;
}

/* Enhanced YouTube & Blog Sections */
.youtube-card,
.blog-post {
    background: var(--bg-card);
    border: 1px solid var(--cyber-green);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.youtube-card::before,
.blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 65, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.youtube-card:hover::before,
.blog-post:hover::before {
    opacity: 1;
}

.youtube-card:hover,
.blog-post:hover {
    border-color: var(--cyber-yellow);
    box-shadow: 
        0 8px 35px rgba(255, 255, 0, 0.3),
        0 0 25px rgba(255, 255, 0, 0.2);
    transform: translateY(-8px) scale(1.02);
}

.blog-tag {
    background: rgba(255, 255, 0, 0.2);
    color: var(--cyber-yellow);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    margin: 4px;
    border: 1px solid rgba(255, 255, 0, 0.3);
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background: rgba(255, 255, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.5);
    transform: scale(1.1);
}

/* Enhanced Animations */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes subtle-shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gradient-border {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes cyber-pulse {
    0%, 100% { 
        box-shadow: 0 0 5px currentColor; 
    }
    50% { 
        box-shadow: 0 0 30px currentColor, 0 0 40px currentColor; 
    }
}

.cyber-pulse {
    animation: cyber-pulse 2s infinite;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-item::before {
        left: 20px;
    }
    
    .timeline-dot {
        left: 12px;
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 768px) {
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-item::before {
        left: 18px;
    }
    
    .timeline-dot {
        left: 10px;
        width: 14px;
        height: 14px;
    }
    
    .search-container {
        padding: 20px;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 8px 16px;
        margin: 4px 2px;
    }
    
    .chart-container {
        padding: 20px;
    }
    
    .terminal-content {
        padding: 20px;
        height: 180px;
        max-height: 180px;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    /* Fix text overflow issues */
    h1 {
        font-size: clamp(2rem, 8vw, 4rem) !important;
        line-height: 1.2;
        word-break: break-word;
    }
    
    h2 {
        font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
        line-height: 1.3;
        word-break: break-word;
    }
    
    h3 {
        font-size: clamp(1.25rem, 5vw, 2rem) !important;
        line-height: 1.4;
        word-break: break-word;
    }
    
    p, .text-xl, .text-lg {
        font-size: clamp(0.9rem, 4vw, 1.125rem) !important;
        line-height: 1.6;
        word-break: break-word;
    }
    
    .text-5xl {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }
    
    .text-7xl {
        font-size: clamp(2.5rem, 10vw, 4rem) !important;
    }
    
    .text-4xl {
        font-size: clamp(1.75rem, 7vw, 2.25rem) !important;
    }
    
    .text-2xl {
        font-size: clamp(1.125rem, 5vw, 1.5rem) !important;
    }
}

@media (max-width: 640px) {
    .skill-tile {
        padding: 16px;
    }
    
    .cyber-card {
        margin: 12px 0;
    }
    
    .nav-link {
        font-size: 14px;
        letter-spacing: 1px;
        padding: 6px 12px;
    }
    
    .search-input {
        font-size: 16px;
        padding: 14px 16px;
    }
    
    .contact-input {
        padding: 14px 16px;
    }
    
    .contact-submit {
        padding: 14px 32px;
        letter-spacing: 1.5px;
    }
    
    /* Enhanced mobile typography */
    h1 {
        font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
        line-height: 1.1;
        word-break: break-word;
        hyphens: auto;
    }
    
    h2 {
        font-size: clamp(1.25rem, 4.5vw, 1.875rem) !important;
        line-height: 1.2;
        word-break: break-word;
        hyphens: auto;
    }
    
    h3 {
        font-size: clamp(1.125rem, 3.5vw, 1.5rem) !important;
        line-height: 1.3;
        word-break: break-word;
        hyphens: auto;
    }
    
    p, .text-xl, .text-lg {
        font-size: clamp(0.875rem, 2.5vw, 1rem) !important;
        line-height: 1.5;
        word-break: break-word;
        hyphens: auto;
    }
    
    .text-5xl, .text-6xl, .text-7xl {
        font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
        line-height: 1.1;
    }
    
    .text-4xl {
        font-size: clamp(1.25rem, 4.5vw, 1.875rem) !important;
        line-height: 1.2;
    }
    
    .text-2xl {
        font-size: clamp(1rem, 3vw, 1.25rem) !important;
        line-height: 1.3;
    }
    
    /* Container and spacing adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .terminal-content {
        padding: 16px;
        height: 160px;
        max-height: 160px;
        overflow-y: auto;
        overflow-x: hidden;
        font-size: 0.75rem;
    }
    
    /* Prevent horizontal overflow */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .terminal-window {
        margin: 0 0.5rem;
    }
    
    /* Expertise section mobile adjustments */
    .grid {
        gap: 1rem;
    }
    
    .rounded-xl {
        border-radius: 0.75rem;
    }
    
    .p-8 {
        padding: 1.5rem;
    }
    
    .space-y-2 > * + * {
        margin-top: 0.5rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .cyber-card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    .nav-link::after,
    .cyber-card::before,
    .timeline-content::before {
        display: none !important;
    }
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: var(--cyber-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyber-red);
}

/* Navigation Cyber Effects */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--cyber-green);
    text-shadow: 0 0 10px currentColor;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyber-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    box-shadow: 0 0 10px var(--cyber-green);
}

/* Hero Section Terminal Effect */
.terminal-window {
    background: var(--bg-terminal);
    border: 2px solid var(--cyber-green);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    font-family: 'Courier New', monospace;
}

.terminal-header {
    background: linear-gradient(90deg, var(--cyber-green), var(--cyber-blue));
    padding: 8px 16px;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.terminal-button:nth-child(2) {
    background: #ffbd2e;
}

.terminal-button:nth-child(3) {
    background: #27ca3f;
}

.terminal-content {
    padding: 20px;
    height: 180px;
    max-height: 180px;
    background: var(--bg-terminal);
    overflow-y: auto;
    overflow-x: hidden;
}

.terminal-prompt {
    color: var(--cyber-green);
    margin-right: 8px;
}

.typing-cursor::after {
    content: '_';
    animation: blink 1s infinite;
    color: var(--cyber-green);
}

/* Card Components */
.cyber-card {
    background: var(--bg-card);
    border: 1px solid var(--border-cyber);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.5s ease;
}

.cyber-card:hover::before {
    left: 100%;
}

.cyber-card:hover {
    border-color: var(--cyber-green);
    box-shadow: 0 5px 30px rgba(0, 255, 65, 0.3);
    transform: translateY(-5px);
}

/* Project Filter Buttons */
.filter-btn {
    background: transparent;
    border: 2px solid var(--cyber-blue);
    color: var(--cyber-blue);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--cyber-blue);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

/* Skills Grid */
.skill-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-cyber);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-tile:hover {
    border-color: var(--cyber-purple);
    box-shadow: 0 5px 25px rgba(191, 0, 255, 0.4);
    transform: scale(1.05);
}

.skill-progress {
    background: #333;
    border-radius: 10px;
    height: 6px;
    margin: 8px 0;
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--cyber-green), var(--cyber-blue));
    border-radius: 10px;
    transition: width 1s ease-in-out;
    position: relative;
}

.skill-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Experience Timeline */
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--cyber-green), var(--cyber-blue));
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--cyber-red);
    border-radius: 50%;
    border: 3px solid var(--bg-terminal);
    box-shadow: 0 0 15px var(--cyber-red);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-cyber);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--cyber-blue);
    box-shadow: 0 5px 25px rgba(0, 212, 255, 0.3);
}

/* Search Interface */
.search-container {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 212, 255, 0.1));
    backdrop-filter: blur(15px);
    border: 1px solid var(--cyber-red);
    border-radius: 12px;
    padding: 24px;
}

.search-input {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--cyber-red);
    color: var(--cyber-green);
    font-family: 'Courier New', monospace;
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--cyber-green);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.5);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-filter {
    background: transparent;
    border: 2px solid var(--cyber-red);
    color: var(--cyber-red);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-filter:hover,
.search-filter.active {
    background: var(--cyber-red);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 7, 58, 0.6);
}

/* Contact Form */
.contact-form {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(191, 0, 255, 0.1));
    backdrop-filter: blur(15px);
    border: 1px solid var(--cyber-purple);
    border-radius: 12px;
    padding: 32px;
}

.contact-input {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--cyber-blue);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
}

.contact-input:focus {
    outline: none;
    border-color: var(--cyber-purple);
    box-shadow: 0 0 20px rgba(191, 0, 255, 0.5);
}

.contact-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-submit {
    background: linear-gradient(45deg, var(--cyber-purple), var(--cyber-blue));
    border: none;
    color: #000;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-submit:hover:not(:disabled) {
    box-shadow: 0 0 30px rgba(191, 0, 255, 0.8);
    transform: translateY(-2px);
}

.contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Chart Container */
.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--cyber-yellow);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    backdrop-filter: blur(10px);
}

.chart-title {
    color: var(--cyber-yellow);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-align: center;
}

/* YouTube Section */
.youtube-card {
    background: var(--bg-card);
    border: 1px solid var(--cyber-green);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.youtube-card:hover {
    border-color: var(--cyber-yellow);
    box-shadow: 0 5px 25px rgba(255, 255, 0, 0.3);
    transform: translateY(-3px);
}

/* Blog Section */
.blog-post {
    background: var(--bg-card);
    border: 1px solid var(--cyber-yellow);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-post:hover {
    border-color: var(--cyber-purple);
    box-shadow: 0 5px 25px rgba(191, 0, 255, 0.3);
    transform: translateY(-3px);
}

.blog-tag {
    background: rgba(255, 255, 0, 0.2);
    color: var(--cyber-yellow);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin: 2px;
}

/* Animations */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes cyber-pulse {
    0%, 100% { 
        box-shadow: 0 0 5px currentColor; 
    }
    50% { 
        box-shadow: 0 0 25px currentColor, 0 0 35px currentColor; 
    }
}

.cyber-pulse {
    animation: cyber-pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-item::before {
        left: 15px;
    }
    
    .timeline-dot {
        left: 8px;
        width: 14px;
        height: 14px;
    }
    
    .search-container {
        padding: 16px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 6px 12px;
        margin: 4px 2px;
    }
    
    .chart-container {
        padding: 16px;
    }
}

@media (max-width: 640px) {
    .skill-tile {
        padding: 12px;
    }
    
    .cyber-card {
        margin: 8px 0;
    }
    
    .terminal-content {
        padding: 16px;
        min-height: 150px;
    }
    
    .nav-link {
        font-size: 14px;
        letter-spacing: 0.5px;
    }
}

/* Ensure decorative overlays never cover text */
.cyber-card::before,
.cyber-card::after,
.youtube-card::before,
.blog-post::before,
.skill-tile::before,
.timeline-content::before,
.filter-btn::before,
.search-filter::before,
.contact-submit::before,
#theme-toggle::before,
.bg-green-500::before,
.bg-blue-400::before,
.bg-purple-400::before {
    pointer-events: none;
    z-index: 0;
}
