/* ===================================================
   OMERTA DEFENCE - Main Stylesheet
   Premium Redesign with Cinematic Effects
   =================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --teal-primary: #1B3C4B;
    --teal-accent: #3D8FA7;
    --teal-glow: rgba(61, 143, 167, 0.3);
    --teal-subtle: rgba(27, 60, 75, 0.5);
    --text-primary: #E8E8E8;
    --text-heading: #FFFFFF;
    --text-muted: #888888;
    --border-color: rgba(255, 255, 255, 0.08);
    --font-heading: 'Orbitron', sans-serif;
    --font-sub: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-height: 80px;
    --container-max: 1200px;
    --section-padding: 120px;
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    cursor: none;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
}

/* Film Grain Overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--teal-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
    cursor: none;
}

a:hover {
    color: #fff;
}

ul {
    list-style: none;
}

/* ---------- Custom Cursor ---------- */
.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--teal-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-ring.expanded {
    width: 60px;
    height: 60px;
    border-color: var(--teal-accent);
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--teal-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10002;
    transform: translate(-50%, -50%);
}

/* ---------- Boot Terminal ---------- */
.boot-terminal {
    position: fixed;
    inset: 0;
    z-index: 10005;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.boot-terminal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-lines {
    max-width: 600px;
    padding: 24px;
}

.boot-line {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--teal-accent);
    opacity: 0;
    margin-bottom: 8px;
    text-shadow: 0 0 10px var(--teal-glow);
}

.boot-line.visible {
    opacity: 1;
}

/* ---------- Utility ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-label {
    font-family: var(--font-sub);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--teal-accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-subtitle {
    font-family: var(--font-sub);
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 60px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-sub);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 36px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: none;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal-primary), var(--teal-accent));
    color: #fff;
    border-color: var(--teal-accent);
}

.btn-primary:hover {
    background: var(--teal-accent);
    color: #fff;
    box-shadow: 0 0 30px var(--teal-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-heading);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--teal-accent);
    color: var(--teal-accent);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ===================================================
   NAVIGATION
   =================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 24px;
    transition: all var(--transition-fast);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border-color);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.nav-logo img {
    height: 219px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(61, 143, 167, 0.3));
    animation: logoEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               logoGlow 3s ease-in-out 1.2s infinite;
    opacity: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-sub);
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--teal-accent);
    transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 60%;
}

.nav-cta {
    font-family: var(--font-sub);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    padding: 10px 24px;
    border: 1px solid var(--teal-accent);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.nav-cta:hover {
    background: var(--teal-accent);
    color: #fff;
    box-shadow: 0 0 20px var(--teal-glow);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: none;
    padding: 8px;
    z-index: 1010;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 2px;
    background: #fff;
    margin: 6px 0;
    transition: all var(--transition-fast);
    border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    text-align: center;
}

.mobile-nav-links li {
    margin: 24px 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.mobile-menu.active .mobile-nav-links li {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav-links li:nth-child(6) { transition-delay: 0.35s; }

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.mobile-link:hover {
    color: var(--teal-accent);
}

.mobile-cta {
    display: inline-block;
    font-family: var(--font-sub);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 36px;
    border: 2px solid var(--teal-accent);
    color: var(--teal-accent);
    border-radius: 4px;
    margin-top: 16px;
}

.mobile-cta:hover {
    background: var(--teal-accent);
    color: #fff;
}

/* ===================================================
   HERO
   =================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-video.loaded {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(27, 60, 75, 0.4) 50%,
        rgba(10, 10, 10, 0.9) 100%
    );
    z-index: 1;
    animation: gradientShift 12s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(27,60,75,0.4) 50%, rgba(10,10,10,0.9) 100%);
    }
    33% {
        background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(27,60,75,0.5) 40%, rgba(10,10,10,0.85) 100%);
    }
    66% {
        background: linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(61,143,167,0.2) 60%, rgba(10,10,10,0.9) 100%);
    }
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
}

.hero-preheading {
    font-family: var(--font-sub);
    font-size: clamp(0.75rem, 2vw, 1rem);
    font-weight: 600;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--teal-accent);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    color: var(--text-heading);
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 0 60px rgba(27, 60, 75, 0.4);
}

.hero-subtitle {
    font-family: var(--font-sub);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    display: flex;
    justify-content: center;
}

.scroll-chevron {
    width: 4px;
    height: 10px;
    background: var(--teal-accent);
    border-radius: 2px;
    margin-top: 8px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); opacity: 1; }
    40% { transform: translateY(12px); opacity: 0.6; }
    60% { transform: translateY(8px); opacity: 0.8; }
}

/* ===================================================
   ABOUT
   =================================================== */
.about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-description {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* SVG Stat Rings */
.stat-ring {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 12px;
}

.stat-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.stat-ring-bg {
    fill: none;
    stroke: rgba(61, 143, 167, 0.15);
    stroke-width: 4;
}

.stat-ring-fill {
    fill: none;
    stroke: var(--teal-accent);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-ring-fill.animated {
    /* Set via JS based on data-percent */
}

.stat-ring-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--teal-accent);
    display: inline;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal-accent);
}

.stat-label {
    display: block;
    font-family: var(--font-sub);
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Image with teal corner brackets */
.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    padding: 20px;
}

.image-frame::before,
.image-frame::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-color: var(--teal-accent);
    border-style: solid;
    transition: all var(--transition-medium);
}

.image-frame::before {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

.image-frame::after {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
}

.image-frame:hover::before,
.image-frame:hover::after {
    width: 80px;
    height: 80px;
}

.image-frame img {
    width: 100%;
    border-radius: 4px;
    filter: grayscale(20%);
    transition: filter var(--transition-medium);
}

.image-frame:hover img {
    filter: grayscale(0%);
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: rgba(27, 60, 75, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(61, 143, 167, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    font-family: var(--font-sub);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--teal-accent);
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-1 { top: 10%; right: -20px; }
.badge-2 { bottom: 20%; left: -30px; }
.badge-3 { bottom: 5%; right: 10%; }

/* ===================================================
   PRODUCTS - 3D Cards with Flip
   =================================================== */
.products {
    background: var(--bg-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    --grid-glow-x: 50%;
    --grid-glow-y: 50%;
}

/* Grid Glow Trail */
.products-grid::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(61,143,167,0.08) 0%, transparent 70%);
    left: var(--grid-glow-x);
    top: var(--grid-glow-y);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.product-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: visible;
    border: 1px solid var(--border-color);
    transition: all var(--transition-medium);
    position: relative;
    perspective: 800px;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.product-card .card-inner {
    position: relative;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.product-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.product-card .card-front {
    position: relative;
    backface-visibility: hidden;
}

.product-card .card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    background: var(--bg-card);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal-primary), var(--teal-accent));
    transition: width 0.5s ease;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--teal-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--teal-glow);
}

.product-card:hover::before {
    width: 100%;
}

.card-image {
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 28px;
}

.card-title {
    font-family: var(--font-sub);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-link {
    font-family: var(--font-sub);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--teal-accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.card-link span {
    transition: transform var(--transition-fast);
}

.card-link:hover {
    color: #fff;
}

.card-link:hover span {
    transform: translateX(4px);
}

/* Mouse tracking card glow */
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(61,143,167,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.product-card:hover::after {
    opacity: 1;
}

/* ===================================================
   CYBER SECURITY
   =================================================== */
.cyber {
    position: relative;
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.cyber-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cyber-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.92) 0%,
        rgba(27, 60, 75, 0.3) 50%,
        rgba(10, 10, 10, 0.95) 100%
    );
}

/* Matrix Canvas */
.matrix-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.3;
    pointer-events: none;
}

.cyber .container {
    position: relative;
    z-index: 2;
}

/* Rotating Gradient Border */
@property --gradient-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.gradient-border-box {
    position: relative;
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.gradient-border-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: conic-gradient(from var(--gradient-angle), var(--teal-primary), var(--teal-accent), #5BC0EB, var(--teal-primary));
    z-index: -1;
    animation: rotateBorder 4s linear infinite;
    opacity: 0.5;
}

.gradient-border-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(17, 17, 17, 0.6);
    z-index: -1;
}

@keyframes rotateBorder {
    to { --gradient-angle: 360deg; }
}

.cyber-panel {
    /* Inherits from gradient-border-box */
}

.cyber-description {
    font-size: 1.05rem;
    color: var(--text-primary);
    max-width: 700px;
    line-height: 1.8;
    margin-bottom: 50px;
}

/* Typing cursor */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--teal-accent);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cyber-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.cyber-feature {
    padding: 30px;
    background: rgba(27, 60, 75, 0.1);
    border: 1px solid rgba(61, 143, 167, 0.1);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.cyber-feature:hover {
    background: rgba(27, 60, 75, 0.2);
    border-color: rgba(61, 143, 167, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    color: var(--teal-accent);
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

/* SVG Draw Effect */
.svg-draw svg * {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.svg-draw.drawn svg * {
    stroke-dashoffset: 0;
}

.feature-title {
    font-family: var(--font-sub);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===================================================
   CONTACT
   =================================================== */
.contact {
    background: var(--bg-secondary);
    position: relative;
}

/* Grid Pattern Background */
.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(61, 143, 167, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61, 143, 167, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-heading {
    font-family: var(--font-sub);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 16px;
}

.contact-description {
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--teal-subtle);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-accent);
    padding: 8px;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-item-label {
    font-family: var(--font-sub);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal-accent);
    margin-bottom: 4px;
}

.contact-item-value {
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    padding-top: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
    cursor: none;
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 20px;
    font-family: var(--font-sub);
    font-size: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal-accent);
    box-shadow: 0 0 0 3px rgba(61, 143, 167, 0.1);
    background: rgba(27, 60, 75, 0.05);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:valid + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: 6px;
    font-size: 0.7rem;
    color: var(--teal-accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Select needs special handling - always show label up when has value */
.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    margin-top: 8px;
}

.form-success {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    color: var(--teal-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.form-success p {
    font-family: var(--font-sub);
    font-size: 1rem;
}

/* Particle Burst */
.particle-burst-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
}

.particle-burst {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--teal-accent);
    border-radius: 50%;
    animation: particleFly 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes particleFly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--px), var(--py)) scale(0);
    }
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
    background: var(--bg-primary);
    padding: 80px 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-logo {
    height: 87px;
    width: auto;
    margin-bottom: 16px;
}


.footer-tagline {
    font-family: var(--font-sub);
    font-size: 1rem;
    font-weight: 600;
    color: var(--teal-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 320px;
}

.footer-heading {
    font-family: var(--font-sub);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--teal-accent);
    padding-left: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-family: var(--font-sub);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ===================================================
   LOADING SCREEN
   =================================================== */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 10004;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 170px;
    height: 170px;
    object-fit: contain;
    margin: 0 auto 24px;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin: 0 auto 16px;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--teal-primary), var(--teal-accent));
    border-radius: 2px;
    animation: loadingProgress 1.8s ease-in-out forwards;
}

.loading-text {
    font-family: var(--font-sub);
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--teal-accent);
    text-transform: uppercase;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ===================================================
   SCROLL PROGRESS BAR
   =================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--teal-primary), var(--teal-accent), #5BC0EB);
    z-index: 1001;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--teal-glow), 0 0 20px rgba(61, 143, 167, 0.15);
}

/* ===================================================
   LANGUAGE SWITCHER
   =================================================== */
.lang-switcher {
    display: flex;
    gap: 2px;
    margin-left: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 3px;
}

.lang-btn {
    padding: 4px 10px;
    font-family: var(--font-sub);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: none;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: rgba(255,255,255,0.8);
}

.lang-btn.active {
    color: #fff;
    background: var(--teal-primary);
}

/* ===================================================
   DYNAMIC CONTENT PAGES (Category & Product Detail)
   =================================================== */
.dynamic-content {
    min-height: 100vh;
    padding-top: var(--nav-height);
    background: var(--bg-primary);
}

.dynamic-page {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sub);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--teal-accent);
    margin-bottom: 24px;
    transition: all var(--transition-fast);
}

.back-link:hover {
    color: #fff;
    gap: 12px;
}

.back-link svg {
    width: 16px;
    height: 16px;
}

.category-header {
    margin-bottom: 40px;
}

.category-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.category-header p {
    font-family: var(--font-sub);
    font-size: 1rem;
    color: var(--text-muted);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Product Detail */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-detail-image {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.product-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-info h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 16px;
}

.product-detail-info .description {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.specs-table caption {
    font-family: var(--font-sub);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--teal-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: left;
    padding-bottom: 12px;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table td {
    padding: 10px 0;
    font-size: 0.9rem;
}

.specs-table td:first-child {
    color: var(--text-muted);
    font-weight: 500;
    width: 40%;
}

.specs-table td:last-child {
    color: var(--text-primary);
}

/* Split char animation */
.split-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotateX(-90deg);
    animation: charReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes charReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Counter pulse */
@keyframes counterPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.stat-number.pulse {
    animation: counterPulse 0.4s ease;
}

/* Odometer digit animation */
.odometer-digit {
    display: inline-block;
    overflow: hidden;
    height: 1.1em;
    line-height: 1.1;
    vertical-align: top;
}

.odometer-digit-inner {
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================================================
   PAGE BUILDER — Rendered Blocks (main site)
   =================================================== */
.pb-page {
    padding: 0;
}

/* Hero Block */
.pb-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    margin-bottom: 48px;
    overflow: hidden;
}

.pb-hero.full-height {
    min-height: 100vh;
}

.pb-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.pb-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 60px 24px;
}

.pb-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.pb-hero-content p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
}

.pb-hero-content .btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--teal-primary);
    color: #fff;
    border-radius: 6px;
    font-family: var(--font-sub);
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background var(--transition-fast);
}

.pb-hero-content .btn:hover {
    background: var(--teal-accent);
}

/* Text Block */
.pb-text {
    max-width: 800px;
    margin: 0 auto 48px;
    padding: 0 24px;
}

.pb-text h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.pb-text .pb-body {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.8;
}

/* Image Block */
.pb-image {
    margin: 0 auto 48px;
    max-width: 900px;
    padding: 0 24px;
}

.pb-image img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.pb-image.rounded img {
    border-radius: 12px;
}

.pb-image figcaption,
.pb-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

/* Gallery Block */
.pb-gallery {
    display: grid;
    gap: 12px;
    margin-bottom: 48px;
    padding: 0 24px;
}

.pb-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.pb-gallery img:hover {
    transform: scale(1.03);
}

/* Features Grid Block */
.pb-features-grid {
    margin-bottom: 48px;
    padding: 0 24px;
}

.pb-features-grid > h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-heading);
    text-align: center;
    margin-bottom: 32px;
}

.pb-features-items {
    display: grid;
    gap: 24px;
}

.pb-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.pb-feature-card:hover {
    border-color: var(--teal-subtle);
    transform: translateY(-4px);
}

.pb-feature-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.pb-feature-card h3 {
    font-family: var(--font-sub);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.pb-feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Specs Table Block */
.pb-specs {
    max-width: 800px;
    margin: 0 auto 48px;
    padding: 0 24px;
}

.pb-specs h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-heading);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.pb-specs table {
    width: 100%;
    border-collapse: collapse;
}

.pb-specs tr {
    border-bottom: 1px solid var(--border-color);
}

.pb-specs td {
    padding: 10px 0;
    font-size: 0.9rem;
}

.pb-specs td:first-child {
    color: var(--text-muted);
    font-weight: 500;
    width: 40%;
}

.pb-specs td:last-child {
    color: var(--text-primary);
}

/* CTA Block */
.pb-cta {
    padding: 60px 24px;
    text-align: center;
    margin-bottom: 48px;
    border-radius: 12px;
}

.pb-cta h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.pb-cta p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.pb-cta .btn {
    display: inline-block;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 6px;
    font-family: var(--font-sub);
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition-fast);
}

.pb-cta .btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Spacer Block */
.pb-spacer {
    display: block;
}

/* Divider Block */
.pb-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 24px auto;
}

/* Video Block */
.pb-video {
    max-width: 900px;
    margin: 0 auto 48px;
    padding: 0 24px;
}

.pb-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: 8px;
}

.pb-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Product Showcase Block */
.pb-product-showcase {
    margin-bottom: 48px;
    padding: 0 24px;
}

.pb-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
    .about-grid {
        gap: 40px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cyber-panel,
    .gradient-border-box {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
        --nav-height: 70px;
    }

    /* Disable custom cursor on mobile */
    html, body, a, .btn, .hamburger, .lang-btn, .form-group input, .form-group select, .form-group textarea {
        cursor: auto !important;
    }

    .cursor-ring,
    .cursor-dot {
        display: none !important;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-stats {
        gap: 24px;
    }

    .stat-ring {
        width: 90px;
        height: 90px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .cyber-features {
        grid-template-columns: 1fr;
    }

    .cyber-panel,
    .gradient-border-box {
        padding: 30px 24px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-text {
        max-width: 100%;
    }

    .footer-logo {
        margin: 0 auto 16px;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    /* Hide floating badges on mobile */
    .floating-badge {
        display: none;
    }

    /* Matrix canvas off on mobile */
    .matrix-canvas {
        display: none;
    }

    /* Use poster instead of video on mobile */
    .hero-video {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .about-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-suffix {
        font-size: 1.2rem;
    }
}

/* ===================================================
   BULLET TRANSITION EFFECT
   =================================================== */
.bullet-transition {
    position: fixed;
    inset: 0;
    z-index: 10006;
    pointer-events: none;
    overflow: hidden;
}

.bullet-transition.done {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* The Bullet Shell */
.bullet-shell {
    position: absolute;
    top: 50%;
    left: -120px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 5;
    filter: drop-shadow(0 0 12px rgba(255, 200, 50, 0.6));
}

.bullet-body {
    width: 60px;
    height: 22px;
    background: linear-gradient(180deg, #c9a33e 0%, #8b6914 30%, #d4af37 50%, #8b6914 70%, #c9a33e 100%);
    border-radius: 2px 0 0 2px;
    position: relative;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.2);
}

.bullet-body::before {
    content: '';
    position: absolute;
    left: -8px;
    top: -3px;
    width: 10px;
    height: 28px;
    background: linear-gradient(180deg, #b8860b 0%, #6b4e0a 50%, #b8860b 100%);
    border-radius: 2px 0 0 2px;
}

/* Crimp line */
.bullet-body::after {
    content: '';
    position: absolute;
    right: 0;
    top: 3px;
    width: 2px;
    height: 16px;
    background: rgba(0,0,0,0.25);
}

.bullet-tip {
    width: 40px;
    height: 22px;
    background: linear-gradient(180deg, #d4a440 0%, #996515 30%, #e0b848 50%, #996515 70%, #d4a440 100%);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    position: relative;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3);
}

.bullet-tip::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 5px;
    width: 20px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Bullet fly animation */
.bullet-shell.fly {
    animation: bulletFly 0.45s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes bulletFly {
    0% {
        left: -120px;
        transform: translateY(-50%) scale(1) rotate(0deg);
    }
    70% {
        left: calc(50% - 50px);
        transform: translateY(-50%) scale(1.05) rotate(0deg);
    }
    100% {
        left: calc(50% - 50px);
        transform: translateY(-50%) scale(0.3) rotate(5deg);
        opacity: 0;
    }
}

.bullet-shell.hit {
    opacity: 0;
}

/* Muzzle Flash */
.bullet-flash {
    position: absolute;
    top: 50%;
    left: -20px;
    width: 120px;
    height: 120px;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(255, 220, 80, 0.95) 0%, rgba(255, 160, 20, 0.7) 30%, rgba(255, 80, 0, 0.4) 60%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    z-index: 4;
}

.bullet-flash.fire {
    animation: muzzleFlash 0.15s ease-out forwards;
}

@keyframes muzzleFlash {
    0% {
        opacity: 1;
        transform: translateY(-50%) scale(0.5);
    }
    50% {
        opacity: 0.9;
        transform: translateY(-50%) scale(1.5);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) scale(2);
    }
}

/* Smoke */
.bullet-smoke {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 3;
}

.smoke-particle {
    position: absolute;
    width: var(--size, 12px);
    height: var(--size, 12px);
    background: radial-gradient(circle, rgba(180, 180, 180, 0.5) 0%, rgba(100, 100, 100, 0.2) 60%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
}

.bullet-smoke.active .smoke-particle {
    animation: smokeRise 0.8s var(--delay, 0ms) ease-out forwards;
}

@keyframes smokeRise {
    0% {
        opacity: 0.6;
        transform: translate(0, 0) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(var(--drift-x, 0px), var(--drift-y, -40px)) scale(2);
    }
}

/* Bullet Trails (motion blur lines) */
.bullet-trail {
    position: absolute;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 200, 50, 0.6), rgba(255, 200, 50, 0.8), transparent);
    opacity: 0;
    z-index: 2;
}

.trail-1 {
    left: 0;
    width: 0;
    transform: translateY(-50%);
}

.trail-2 {
    left: 0;
    width: 0;
    transform: translateY(calc(-50% + 6px));
    height: 1px;
}

.trail-3 {
    left: 0;
    width: 0;
    transform: translateY(calc(-50% - 6px));
    height: 1px;
}

.bullet-trail.active {
    animation: trailStreak 0.5s ease-out forwards;
}

.trail-2.active {
    animation-delay: 0.03s;
}

.trail-3.active {
    animation-delay: 0.06s;
}

@keyframes trailStreak {
    0% {
        width: 0;
        left: 0;
        opacity: 0.8;
    }
    40% {
        width: 60%;
        left: 0;
        opacity: 0.6;
    }
    100% {
        width: 0;
        left: 55%;
        opacity: 0;
    }
}

/* Impact Effect */
.bullet-impact {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
}

.impact-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 200, 50, 0.9);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.bullet-impact.active .impact-ring {
    animation: impactRing 0.6s ease-out forwards;
}

.bullet-impact.active .ring-2 {
    animation: impactRing 0.6s 0.1s ease-out forwards;
    border-color: rgba(255, 255, 255, 0.6);
}

@keyframes impactRing {
    0% {
        width: 10px;
        height: 10px;
        opacity: 1;
        border-width: 4px;
    }
    100% {
        width: 250px;
        height: 250px;
        opacity: 0;
        border-width: 1px;
    }
}

/* Impact Sparks */
.impact-sparks {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spark-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffcc33;
    border-radius: 50%;
    box-shadow: 0 0 4px #ffcc33, 0 0 8px rgba(255, 150, 0, 0.6);
    opacity: 0;
}

.impact-sparks.active .spark-particle {
    animation: sparkFly 0.5s var(--delay, 0ms) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes sparkFly {
    0% {
        opacity: 1;
        transform: translate(0, 0);
    }
    100% {
        opacity: 0;
        transform: translate(var(--sx), var(--sy));
    }
}

/* Screen Shake */
.bullet-transition.shake {
    animation: screenShake 0.2s ease-out;
}

@keyframes screenShake {
    0% { transform: translate(0, 0); }
    15% { transform: translate(-8px, 4px); }
    30% { transform: translate(6px, -6px); }
    45% { transform: translate(-4px, 2px); }
    60% { transform: translate(3px, -3px); }
    75% { transform: translate(-2px, 1px); }
    100% { transform: translate(0, 0); }
}

/* Shutter Wipe - metallic doors */
.bullet-shutter {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.shutter-top,
.shutter-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 40%, #111 100%);
    transform: scaleY(0);
    transform-origin: top center;
}

.shutter-top {
    top: 0;
    transform-origin: top center;
    border-bottom: 2px solid rgba(61, 143, 167, 0.4);
}

.shutter-bottom {
    bottom: 0;
    transform-origin: bottom center;
    border-top: 2px solid rgba(61, 143, 167, 0.4);
}

/* Metallic texture */
.shutter-top::after,
.shutter-bottom::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 8px, rgba(255,255,255,0.02) 8px, rgba(255,255,255,0.02) 9px),
        linear-gradient(90deg, rgba(0,0,0,0.3) 0%, transparent 10%, transparent 90%, rgba(0,0,0,0.3) 100%);
}

.bullet-shutter.close .shutter-top {
    animation: shutterCloseTop 0.35s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.bullet-shutter.close .shutter-bottom {
    animation: shutterCloseBottom 0.35s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes shutterCloseTop {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

@keyframes shutterCloseBottom {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.bullet-shutter.open .shutter-top {
    animation: shutterOpenTop 0.6s 0.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bullet-shutter.open .shutter-bottom {
    animation: shutterOpenBottom 0.6s 0.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shutterOpenTop {
    from { transform: scaleY(1); }
    to { transform: scaleY(0); }
}

@keyframes shutterOpenBottom {
    from { transform: scaleY(1); }
    to { transform: scaleY(0); }
}

/* ===================================================
   PREFERS REDUCED MOTION — Performance
   =================================================== */
@media (prefers-reduced-motion: reduce) {
    .cursor-ring,
    .cursor-dot {
        display: none !important;
    }

    html, body, a, .btn {
        cursor: auto !important;
    }

    .matrix-canvas {
        display: none !important;
    }

    .hero-video {
        display: none !important;
    }

    body::after {
        display: none !important;
    }

    .gradient-border-box::before {
        animation: none !important;
    }

    .bullet-transition {
        display: none !important;
    }
}
