/* ========================================
   index.css — Styles specific to index.html
   ======================================== */

/* Base overrides for index */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav,
section,
footer,
.stat-card,
.vscode-editor,
.terminal-window,
.theme-toggle {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.82);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35);
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    border-color: rgba(239, 68, 68, 0.65);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.45);
}

.theme-toggle:focus-visible {
    outline: 2px solid #ef4444;
    outline-offset: 3px;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .icon-sun {
    display: none;
}

/* ===== LIGHT THEME — Premium Warm Design ===== */
html.theme-light body {
    background: linear-gradient(180deg, #faf8f6 0%, #f5f0eb 40%, #f0ebe5 100%) !important;
    color: #1a1a2e;
}

html.theme-light .theme-toggle {
    background: rgba(255, 255, 255, 0.92);
    color: #1a1a2e;
    border-color: rgba(190, 170, 155, 0.4);
    box-shadow: 0 4px 20px rgba(120, 80, 50, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
}

html.theme-light .theme-toggle:hover {
    border-color: rgba(220, 80, 60, 0.5);
    box-shadow: 0 8px 28px rgba(220, 80, 60, 0.18);
    transform: translateY(-2px);
}

html.theme-light .theme-toggle .icon-moon {
    display: none;
}

html.theme-light .theme-toggle .icon-sun {
    display: block;
}

html.theme-light .preloader {
    background: radial-gradient(circle at 30% 20%, #ffffff 0%, #faf5f0 40%, #f0e8e0 100%);
}

html.theme-light .preloader-progress-bar {
    background: linear-gradient(90deg, #c93030, #e04040, #c93030);
    box-shadow: 0 0 20px rgba(200, 50, 50, 0.5), 0 0 40px rgba(200, 50, 50, 0.2);
}

html.theme-light .preloader-text {
    color: #5a4e4a;
}

html.theme-light .preloader-percent {
    color: #c93030;
}

html.theme-light .orbital-ring {
    border-color: rgba(200, 50, 50, 0.1);
    border-top-color: rgba(200, 50, 50, 0.6);
}

html.theme-light .orbital-ring-2 {
    border-color: rgba(200, 50, 50, 0.05);
    border-top-color: rgba(200, 50, 50, 0.4);
}

/* — Sections background tints — */
html.theme-light [class*="bg-black/20"] {
    background: rgba(235, 225, 215, 0.5) !important;
}

html.theme-light [class*="bg-black/50"] {
    background: rgba(40, 30, 25, 0.12) !important;
}

/* — Info Cards (stat-card) — */
html.theme-light .stat-card {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(200, 180, 165, 0.35) !important;
    box-shadow: 0 8px 32px rgba(80, 50, 30, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(12px);
}

html.theme-light .stat-card:hover {
    box-shadow: 0 16px 48px rgba(200, 80, 60, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
    border-color: rgba(220, 80, 60, 0.35) !important;
}

html.theme-light .stat-card::before {
    background: linear-gradient(90deg, transparent, rgba(220, 80, 60, 0.12), transparent);
}

/* — Staff cards (bg-gray-900/50 pattern) — */
html.theme-light [class*="bg-gray-900/50"] {
    background: rgba(255, 255, 255, 0.72) !important;
    border-color: rgba(200, 180, 165, 0.35) !important;
    box-shadow: 0 8px 32px rgba(80, 50, 30, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(12px);
}

html.theme-light [class*="bg-gray-900/50"]:hover {
    border-color: rgba(220, 80, 60, 0.4) !important;
    box-shadow: 0 16px 48px rgba(200, 80, 60, 0.12);
}

/* — Project cards (from-red-900/30 gradient) — */
html.theme-light [class*="from-red-900/30"] {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(200, 180, 165, 0.3) !important;
    box-shadow: 0 8px 32px rgba(80, 50, 30, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(12px);
}

html.theme-light [class*="from-red-900/30"]:hover {
    border-color: rgba(220, 80, 60, 0.4) !important;
    box-shadow: 0 16px 48px rgba(200, 80, 60, 0.14);
}

/* — Contact card & borders — */
html.theme-light [class*="border-gray-800"] {
    border-color: rgba(200, 180, 165, 0.35) !important;
}

html.theme-light .bg-gray-900\/50 {
    background: rgba(255, 255, 255, 0.72) !important;
}

/* — Typography — */
html.theme-light .text-white {
    color: #1a1a2e !important;
}

html.theme-light .text-gray-300,
html.theme-light .text-gray-400 {
    color: #5a4e4a !important;
}

html.theme-light .text-gray-500,
html.theme-light .text-gray-600 {
    color: #7a6e68 !important;
}

html.theme-light .text-green-400 {
    color: #0d7a5f !important;
}

html.theme-light .typing-cursor {
    background: #e04040;
}

/* — Accent colors — */
html.theme-light .text-red-400,
html.theme-light .text-red-500 {
    color: #c93030 !important;
}

html.theme-light .bg-red-600 {
    background: linear-gradient(135deg, #d43535, #c02828) !important;
}

html.theme-light .hover\:bg-red-700:hover {
    background: linear-gradient(135deg, #b82222, #a01e1e) !important;
}

html.theme-light [class*="border-red-600"],
html.theme-light [class*="border-red-800"] {
    border-color: rgba(200, 50, 50, 0.4) !important;
}

html.theme-light [class*="border-red-500"] {
    border-color: rgba(200, 50, 50, 0.3) !important;
}

html.theme-light [class*="bg-red-600/10"] {
    background: rgba(200, 50, 50, 0.08) !important;
}

html.theme-light [class*="bg-red-600/20"],
html.theme-light [class*="bg-red-500/20"] {
    background: rgba(200, 50, 50, 0.12) !important;
}

html.theme-light .animated-gradient {
    background: linear-gradient(270deg, #c93030, #d43535, #b82222);
    background-size: 200% 200%;
}

/* — Buttons: keep white text on colored bg — */
html.theme-light .btn-primary.bg-red-600.text-white,
html.theme-light a.bg-red-600.text-white {
    color: #ffffff !important;
}

/* — CTA attention glow — */
html.theme-light .cta-attention {
    animation: ctaPulseGlowLight 2s ease-in-out infinite;
}

@keyframes ctaPulseGlowLight {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(200, 50, 50, 0.25), 0 6px 16px rgba(0, 0, 0, 0.08);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(200, 50, 50, 0), 0 0 20px rgba(200, 50, 50, 0.2), 0 10px 24px rgba(0, 0, 0, 0.1);
    }
}

/* — Scroll progress bar — */
html.theme-light .scroll-progress {
    background: linear-gradient(90deg, #c93030, #e04040);
}

/* — Back to top button — */
html.theme-light .back-to-top {
    background: linear-gradient(135deg, #d43535, #c02828);
    box-shadow: 0 8px 24px rgba(200, 50, 50, 0.30);
}

html.theme-light .back-to-top:hover {
    background: linear-gradient(135deg, #b82222, #a01e1e);
    box-shadow: 0 12px 32px rgba(200, 50, 50, 0.40);
}

html.theme-light .back-to-top svg {
    color: #ffffff !important;
}

/* — Footer — */
html.theme-light footer {
    border-color: rgba(200, 180, 165, 0.35) !important;
}

/* === Hero & Nav: ALWAYS dark, immune to light theme === */
html.theme-light nav {
    background: rgba(17, 24, 39, 0.8) !important;
    border-color: rgba(31, 41, 55, 1) !important;
    box-shadow: none !important;
    backdrop-filter: blur(12px);
}

html.theme-light nav.fixed a,
html.theme-light nav a.text-gray-300 {
    color: #ffffff !important;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

html.theme-light nav.fixed a:hover,
html.theme-light nav a.text-gray-300:hover {
    color: #ef4444 !important;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.6), 0 0 20px rgba(239, 68, 68, 0.3);
}

html.theme-light nav span.text-white,
html.theme-light nav .text-white {
    color: #ffffff !important;
}

html.theme-light #hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e293b 100%) !important;
}

html.theme-light #hero .text-white {
    color: #ffffff !important;
}

html.theme-light #hero .text-red-500 {
    color: #ef4444 !important;
}

/* Reverse hero title colors in light mode */
html.theme-light #hero h1.glitch {
    color: #ef4444 !important;
}

html.theme-light #hero h1.glitch span.text-red-500 {
    color: #ffffff !important;
}

#hero h1.glitch,
#hero h1.glitch span {
    transition: color 1s ease;
}

/* Hero CTA buttons: smooth transition */
#hero .flex.flex-wrap a {
    transition: all 1s ease !important;
}

/* Reverse hero buttons in light mode */
html.theme-light #hero a.btn-primary.bg-red-600 {
    background: transparent !important;
    border: 2px solid #ef4444 !important;
    color: #ffffff !important;
}

html.theme-light #hero a.btn-primary.bg-red-600:hover {
    background: rgba(239, 68, 68, 0.15) !important;
}

html.theme-light #hero a.border-2.border-red-600 {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}

html.theme-light #hero a.border-2.border-red-600:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}

html.theme-light #hero .text-gray-300 {
    color: #d1d5db !important;
}

html.theme-light #hero .text-gray-400 {
    color: #9ca3af !important;
}

html.theme-light #hero .text-gray-500 {
    color: #6b7280 !important;
}

html.theme-light #hero .text-gray-600 {
    color: #4b5563 !important;
}

html.theme-light #hero .text-green-400 {
    color: #4ade80 !important;
}

html.theme-light #hero .text-green-300 {
    color: #86efac !important;
}

html.theme-light #hero .text-purple-400 {
    color: #c084fc !important;
}

html.theme-light #hero .text-blue-300 {
    color: #93c5fd !important;
}

html.theme-light #hero .text-cyan-300 {
    color: #67e8f9 !important;
}

html.theme-light #hero .text-orange-400 {
    color: #fb923c !important;
}

html.theme-light #hero .text-yellow-300 {
    color: #fde047 !important;
}

html.theme-light #hero .text-red-400 {
    color: #f87171 !important;
}

html.theme-light #hero .typing-cursor {
    background: #22c55e !important;
}

html.theme-light #hero .vscode-editor {
    background: #1e1e1e !important;
    border: 1px solid #333 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
}

html.theme-light #hero .vscode-header {
    background: #2d2d2d !important;
}

html.theme-light #hero .vscode-body {
    background: #1e1e1e !important;
}

html.theme-light #hero .terminal-window {
    background: #1a1a1a !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
}

html.theme-light #hero .terminal-header {
    background: #2d2d2d !important;
}

html.theme-light #hero .terminal-body {
    background: #1a1a1a !important;
    color: #86efac !important;
}

html.theme-light #hero [class*="bg-black/50"] {
    background: rgba(0, 0, 0, 0.5) !important;
}

html.theme-light #hero [class*="border-green-500"] {
    border-color: rgba(34, 197, 94, 0.3) !important;
}

html.theme-light #hero .bg-red-600 {
    background-color: #dc2626 !important;
}

html.theme-light #hero .hover\:bg-red-700:hover {
    background-color: #b91c1c !important;
}

html.theme-light #hero [class*="border-red-600"] {
    border-color: #dc2626 !important;
}

html.theme-light #hero .grid-overlay {
    background-image:
        linear-gradient(rgba(220, 38, 38, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 38, 38, 0.1) 1px, transparent 1px) !important;
}

html.theme-light #hero #matrix-canvas {
    opacity: 1 !important;
    filter: none !important;
}

html.theme-light #hero .btn-primary.bg-red-600.text-white {
    color: #ffffff !important;
}

/* MTB Photo Cards */
.mtb-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 420px;
    cursor: pointer;
    border: 1px solid rgba(55, 65, 81, 0.5);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.mtb-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 48px rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.mtb-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mtb-card:hover .mtb-card-img {
    transform: scale(1.1);
}

.mtb-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 60%);
    z-index: 1;
    transition: background 0.4s ease;
}

.mtb-card:hover .mtb-card-gradient {
    background: rgba(0, 0, 0, 0.75);
}

.mtb-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.mtb-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    transition: transform 0.4s ease;
}

.mtb-card:hover .mtb-card-title {
    transform: translateY(-8px);
}

.mtb-card-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease 0.1s;
}

.mtb-card:hover .mtb-card-desc {
    max-height: 200px;
    opacity: 1;
}

.mtb-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    background: rgba(220, 38, 38, 0.85);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    backdrop-filter: blur(8px);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Card Hover — index-specific extended version */
.card-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.1), transparent);
    transition: left 0.5s;
    pointer-events: none;
    z-index: 0;
}

.card-hover:hover::after {
    left: 100%;
}

.card-hover>* {
    position: relative;
    z-index: 1;
}

.card-hover:hover .card-border {
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* Card 3D — index-specific combined */
.card-3d:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg) scale(1.02);
}

.card-hover.card-3d:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg) scale(1.02) translateY(-8px);
}

/* Stagger animation delays */
.animate-on-scroll {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-on-scroll:nth-child(1) {
    animation-delay: 0.1s;
}

.animate-on-scroll:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-on-scroll:nth-child(3) {
    animation-delay: 0.3s;
}

.animate-on-scroll:nth-child(4) {
    animation-delay: 0.4s;
}

.animate-on-scroll:nth-child(5) {
    animation-delay: 0.5s;
}

.animate-on-scroll:nth-child(6) {
    animation-delay: 0.6s;
}

/* Border Animation */
.border-animate {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(#1f2937, #1f2937) padding-box,
        linear-gradient(90deg, #dc2626, #ef4444, #dc2626) border-box;
    background-size: 200% 100%;
    animation: borderShift 3s linear infinite;
}

@keyframes borderShift {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.border-animate:hover {
    animation: borderShift 1s linear infinite;
}

/* Additional animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Glow Effect */
.glow-on-hover {
    position: relative;
    overflow: hidden;
}

.glow-on-hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
    z-index: 0;
}

.glow-on-hover:hover::before {
    width: 300px;
    height: 300px;
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.pulse-icon {
    animation: pulse 2s ease-in-out infinite;
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(270deg, #dc2626, #991b1b, #7f1d1d);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    z-index: 9999;
    transition: width 0.1s;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #b91c1c;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

/* Animated Underline */
.animated-underline {
    position: relative;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ef4444;
    transition: width 0.3s;
}

.animated-underline:hover::after {
    width: 100%;
}

/* Matrix Rain Canvas */
#matrix-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Floating Code Snippets */
.code-float {
    position: absolute;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    opacity: 0;
    animation: float-code 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float-code {
    0% {
        transform: translate(0, 100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translate(100px, -100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitch-skew 3s infinite;
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    1% {
        transform: skew(-2deg);
    }

    2% {
        transform: skew(0deg);
    }

    10% {
        transform: skew(1deg);
    }

    11% {
        transform: skew(0deg);
    }

    100% {
        transform: skew(0deg);
    }
}

/* Typing Cursor */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: #22c55e;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Terminal Style */
.terminal-window {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.terminal-header {
    background: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-body {
    padding: 24px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #86efac;
}

.code-line {
    opacity: 0;
    animation: fadeInCode 0.8s ease forwards;
}

@keyframes fadeInCode {
    to {
        opacity: 1;
    }
}

/* VS Code Style Editor */
.vscode-editor {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
}

.vscode-header {
    background: #2d2d2d;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vscode-body {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Animated Stats */
.stat-card {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(127, 29, 29, 0.1) 100%);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.2), transparent);
    animation: scan 3s infinite;
}

@keyframes scan {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Button Hover Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Attention CTA */
.cta-attention {
    animation: ctaPulseGlow 1.8s ease-in-out infinite;
}

.cta-attention::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(248, 113, 113, 0.55);
    border-radius: inherit;
    pointer-events: none;
    animation: ctaBorderBlink 1.8s ease-in-out infinite;
}

@keyframes ctaPulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45), 0 8px 20px rgba(2, 6, 23, 0.35);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0), 0 0 24px rgba(239, 68, 68, 0.65), 0 14px 28px rgba(2, 6, 23, 0.45);
    }
}

@keyframes ctaBorderBlink {

    0%,
    100% {
        opacity: 0.55;
    }

    50% {
        opacity: 1;
    }
}

/* Grid Pattern Overlay */
.grid-overlay {
    background-image:
        linear-gradient(rgba(220, 38, 38, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 38, 38, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .code-float,
    .code-line,
    .glitch,
    .typing-cursor,
    .stat-card::before,
    .cta-attention,
    .cta-attention::after {
        animation: none !important;
    }
}

@view-transition {
    navigation: auto;
}