@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;900&family=Inter:wght@400;600&display=swap');

:root {
    /* DARK THEME (DEFAULT) */
    --bg: #030712;
    --card: rgba(255, 255, 255, 0.04);
    /* Enhanced Glassmorphism */
    --text: #ffffff;
    --sub: #9ca3af;
    --primary: #6366f1;
    /* Indigo */
    --primary-dark: #4f46e5;
    --secondary: #a855f7;
    /* Purple */
    --accent: #22d3ee;
    /* Cyan */
    --border: rgba(255, 255, 255, 0.1);
    --glow: rgba(99, 102, 241, 0.5);
    --glass-grad: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    --canvas-opacity: 0.2;
    --ripple-color: rgba(255, 255, 255, 0.4);
    --btn-outline-hover: rgba(255, 255, 255, 0.1);
    --btn-outline-border: rgba(255, 255, 255, 0.4);
    --shimmer-grad: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
}

[data-theme="light"] {
    --bg: #f8fafc;
    --card: rgba(0, 0, 0, 0.03);
    /* Subtle glass for light mode */
    --text: #0f172a;
    --sub: #475569;
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --secondary: #7c3aed;
    --accent: #0891b2;
    --border: rgba(0, 0, 0, 0.08);
    --glow: rgba(79, 70, 229, 0.2);
    --glass-grad: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
    --canvas-opacity: 0.1;
    --ripple-color: rgba(0, 0, 0, 0.2);
    --btn-outline-hover: rgba(0, 0, 0, 0.05);
    --btn-outline-border: rgba(0, 0, 0, 0.2);
    --shimmer-grad: linear-gradient(90deg, rgba(0, 0, 0, 0.03) 25%, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.03) 75%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
    min-height: 100vh;
    position: relative;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
}

/* Background Texture & Aura */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Combined stardust and technical grid */
    background-image:
        radial-gradient(var(--border) 1px, transparent 1px),
        url('https://www.transparenttextures.com/patterns/stardust.png');
    background-size: 40px 40px, auto;
    /* Grid size 40px */
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
    z-index: -2;
    pointer-events: none;
    animation: slowDrift 20s ease-in-out infinite alternate;
}

/* ANIMATION KEYFRAMES */
@keyframes staggeredFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 10px 20px var(--glow);
    }

    50% {
        box-shadow: 0 10px 35px rgba(168, 85, 247, 0.6);
    }

    100% {
        box-shadow: 0 10px 20px var(--glow);
    }
}

@keyframes breathGradient {
    0% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.2));
    }

    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.5));
    }

    100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.2));
    }
}

@keyframes slowDrift {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.05) translate(-1%, 1%);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER / NAV */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    position: relative;
}

.theme-toggle {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    border-color: var(--primary);
}

.logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo span {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo sup {
    font-size: 12px;
    color: var(--secondary);
    font-weight: 700;
    top: -1em;
}

.shine-hover span {
    background-size: 200% auto;
    transition: background-position 0.5s ease;
}

.shine-hover:hover span {
    background-position: 100% center;
}

/* HERO SECTION */
.hero {
    padding: 80px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* 3D FLOATING NEURAL CORE */
.core-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: -1;
    pointer-events: none;
    perspective: 1000px;
    opacity: 0.4;
}

.neural-core {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(var(--core-rx, 0deg)) rotateY(var(--core-ry, 0deg));
    transition: transform 0.2s ease-out;
}

.core-ring {
    position: absolute;
    inset: 150px;
    border-radius: 50%;
    border: 1px dashed var(--primary);
    box-shadow: 0 0 30px var(--glow), inset 0 0 30px var(--glow);
}

.r1 {
    animation: rotateRing 20s linear infinite;
}

.r2 {
    inset: 100px;
    border: 2px solid var(--accent);
    opacity: 0.3;
    animation: rotateRing 15s reverse linear infinite;
    transform: rotateX(60deg);
}

.r3 {
    inset: 200px;
    border-color: var(--secondary);
    animation: rotateRing 25s linear infinite;
    transform: rotateY(60deg);
}

.core-globe {
    position: absolute;
    inset: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--text) 0%, transparent 60%);
    box-shadow: 0 0 60px var(--primary);
    animation: pulseGlow 4s infinite alternate;
}

@keyframes rotateRing {
    0% {
        transform: rotateZ(0deg) rotateX(45deg);
    }

    100% {
        transform: rotateZ(360deg) rotateX(45deg);
    }
}

.scroll-lens-flare {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + var(--lens-y, 0px)));
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.02) 40%, transparent 70%);
    pointer-events: none;
    z-index: -10;
    will-change: transform;
}

.z-zoom-in {
    opacity: 0;
    transform: scale(0.6) translateY(50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.z-zoom-in.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 50%, var(--secondary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: breathGradient 6s ease-in-out infinite;
}

.stagger-reveal-1,
.stagger-reveal-2,
.stagger-reveal-3 {
    opacity: 0;
    animation: staggeredFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger-reveal-1 {
    animation-delay: 0.2s;
}

.stagger-reveal-2 {
    animation-delay: 0.4s;
}

.stagger-reveal-3 {
    animation-delay: 0.6s;
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.25rem);
    color: var(--sub);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* FILTER BAR */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 99px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--sub);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--text);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 20px var(--glow);
}

/* SEARCH BAR */
.search-container {
    max-width: 500px;
    margin: 0 auto 30px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 25px 15px 50px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 99px;
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--glow);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sub);
    pointer-events: none;
}

/* GRID SYSTEM */
.prediction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin: 60px 0;
}

/* CARDS (Inspired by Sip App calc-card) */
.glass-card {
    background: var(--card);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    /* 3D Transform Logic */
    transform: perspective(1000px) rotateX(var(--rot-x, 0deg)) rotateY(var(--rot-y, 0deg)) translateY(var(--dy, 0px)) scale(var(--s, 1));
    transition: transform 0.4s ease-out, border-color 0.4s, box-shadow 0.4s;
    transform-style: preserve-3d;
}

.glass-card::after {
    /* 3D Glare Element */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: var(--glare-opacity, 0);
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 2;
}

.glass-card:hover {
    transition: transform 0.1s, opacity 0.1s;
    --dy: -8px;
    --s: 1.01;
    --glare-opacity: 1;
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(168, 85, 247, 0.15);
}

.glass-card:active {
    --dy: 0px;
    --s: 0.97;
}

/* BORDER BEAM EFFECT */
.live-border {
    position: relative;
    border: none;
    /* Replaced by pseudo */
}

.live-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    /* Border thickness */
    background: conic-gradient(from 0deg, transparent 70%, var(--primary) 80%, var(--accent) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
    animation: spinBeam 3s linear infinite;
}

@keyframes spinBeam {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* SCANNING RAY */
.scanner-container {
    position: relative;
    overflow: hidden;
}

.scanner-ray {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--primary);
    animation: scanRay 3s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes scanRay {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(300px);
        opacity: 0;
    }
}

/* PACKET FLOW CONNECTIVITY */
.packet-path {
    position: absolute;
    top: -80px;
    right: 20%;
    width: 1px;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
    z-index: 0;
}

.packet {
    position: absolute;
    top: 0;
    left: -2px;
    width: 5px;
    height: 15px;
    background: var(--primary);
    border-radius: 5px;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--secondary);
    animation: packetFlow 2s linear infinite;
}

.packet.delay {
    animation-delay: 1s;
}

@keyframes packetFlow {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(150px);
        opacity: 0;
    }
}

/* PROBABILITY PULSE */
.pulse-center {
    position: relative;
    z-index: 1;
}

.pulse-center::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    animation: probabilityPulse 3s ease-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes probabilityPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.counter {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 5px;
    font-family: 'Outfit', sans-serif;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0;
    transition: 0.3s;
}

.glass-card:hover::before {
    opacity: 1;
}

.card-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
}

/* BUTTONS */
.btn {
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background: var(--ripple-color);
    pointer-events: none;
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px var(--glow);
    animation: pulseGlow 4s infinite;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(168, 85, 247, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--btn-outline-hover);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-outline:hover::before {
    transform: scaleX(1);
}

.btn-outline:hover {
    border-color: var(--btn-outline-border);
}

/* DIORAMA STYLES */
.diorama-container {
    width: 100%;
    height: 300px;
    margin-bottom: 40px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scene-3d {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateScene 20s infinite linear;
}

.cube {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
}

.cube-face {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px solid var(--primary);
    background: rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.front {
    transform: rotateY(0deg) translateZ(50px);
}

.back {
    transform: rotateY(180deg) translateZ(50px);
}

.right {
    transform: rotateY(90deg) translateZ(50px);
}

.left {
    transform: rotateY(-90deg) translateZ(50px);
}

.top {
    transform: rotateX(90deg) translateZ(50px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(50px);
}

.data-node {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent);
    animation: flowData 2s infinite ease-in-out;
}

@keyframes rotateScene {
    from {
        transform: rotateX(-20deg) rotateY(0deg);
    }

    to {
        transform: rotateX(-20deg) rotateY(360deg);
    }
}

@keyframes flowData {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* SOLDER POINTS */
.solder-point {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--sub);
    border-radius: 50%;
    z-index: 5;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.solder-point.tl {
    top: 12px;
    left: 12px;
}

.solder-point.tr {
    top: 12px;
    right: 12px;
}

.solder-point.bl {
    bottom: 12px;
    left: 12px;
}

.solder-point.br {
    bottom: 12px;
    right: 12px;
}

.solder-point.spark {
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent), 0 0 30px #ffffff;
    opacity: 1;
    transform: scale(1.5);
}

/* BUTTON SPLICE EFFECT */
.wire-splice {
    position: fixed;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    z-index: 9999;
    pointer-events: none;
    transform-origin: left center;
    animation: wireGrow 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wireGrow {
    0% {
        transform: scaleX(0);
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: scaleX(1);
        opacity: 0;
    }
}

/* FOOTER */
footer {
    padding: 80px 0 40px;
    background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, 0.05));
    border-top: 1px solid var(--border);
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--sub);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--sub);
    font-size: 0.85rem;
}

.disclaimer-banner {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 15px 25px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 40px;
}

.disclaimer-banner p {
    font-size: 0.85rem;
    color: var(--sub);
    line-height: 1.4;
}

.disclaimer-banner span {
    color: var(--accent);
    font-weight: 700;
    margin-right: 8px;
}

/* SCROLL ANIMATIONS */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

/* AI PROCESSING & THEMED ANIMATIONS */
.scanning-container {
    position: relative;
    overflow: hidden;
}

.scanning-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--primary);
    animation: scanLine 4s linear infinite;
    opacity: 0.6;
    pointer-events: none;
}

@keyframes scanLine {
    0% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(300px);
    }

    /* Adjust based on container height roughly */
}

.shimmer-bg {
    background: var(--shimmer-grad);
    background-size: 400% 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent);
    /* The cursor */
    width: 0;
}

.typewriter.is-typing {
    animation: typing 1.5s steps(30, end) forwards, blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--accent);
    }
}

.typewriter.is-done {
    width: auto;
    border-right: none;
    animation: none;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col:first-child {
        grid-column: span 2;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .nav-header {
        padding: 20px 0;
    }
}