/* UNIT72784 - Red Team Hardware Labs */

:root {
    --terminal-green: #00FF41;
    --terminal-green-dim: #00cc33;
    --terminal-green-glow: rgba(0, 255, 65, 0.4);
    --bg-black: #0a0a0a;
    --bg-darker: #050505;
    --text-gray: #888888;
    --text-light: #cccccc;
    --danger-red: #ff0040;
    --warning-amber: #ffaa00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    background-color: var(--bg-black);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 999;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--terminal-green-dim);
    border-radius: 0;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0) 100%);
    backdrop-filter: blur(10px);
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--terminal-green);
    text-decoration: none;
    letter-spacing: 0.2em;
    text-shadow: 0 0 10px var(--terminal-green-glow);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--terminal-green);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--terminal-green);
    text-shadow: 0 0 10px var(--terminal-green-glow);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--terminal-green);
    color: var(--terminal-green);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-logo {
    width: min(600px, 90vw);
    margin-bottom: 2rem;
    animation: logoGlow 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 30px var(--terminal-green-glow));
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 20px var(--terminal-green-glow)); }
    100% { filter: drop-shadow(0 0 40px var(--terminal-green-glow)) brightness(1.1); }
}

.hero-tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--terminal-green);
    text-shadow: 0 0 20px var(--terminal-green-glow);
    margin-bottom: 1rem;
    text-align: center;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 3rem;
    text-align: center;
}

.hero-cta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--terminal-green);
    background: transparent;
    color: var(--terminal-green);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.btn:hover {
    color: var(--bg-black);
    box-shadow: 0 0 30px var(--terminal-green-glow);
}

.btn:hover::before {
    left: 0;
}

.btn-secondary {
    border-color: var(--text-gray);
    color: var(--text-gray);
}

.btn-secondary::before {
    background: var(--text-gray);
}

.btn-secondary:hover {
    box-shadow: 0 0 20px rgba(136, 136, 136, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    stroke: var(--terminal-green);
}

/* Section Styles */
section {
    padding: 8rem 4rem;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

.section-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--terminal-green);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::before {
    content: '>';
    animation: blink 1s step-end infinite;
}

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

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
}

/* Products Section */
#products {
    background: linear-gradient(180deg, var(--bg-black) 0%, var(--bg-darker) 50%, var(--bg-black) 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.05) 0%, transparent 100%);
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 3rem;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: var(--terminal-green);
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.1);
    transform: translateY(-5px);
}

.product-icon {
    width: 80px;
    height: 80px;
    stroke: var(--terminal-green);
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px var(--terminal-green-glow));
}

.product-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 0 15px var(--terminal-green-glow));
    transition: all 0.4s ease;
}

.product-card:hover .product-image {
    filter: drop-shadow(0 0 25px var(--terminal-green-glow)) brightness(1.1);
    transform: scale(1.02);
}

.product-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.product-codename {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--terminal-green);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.product-description {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.9rem;
}

.product-features li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--terminal-green);
}

.product-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--terminal-green);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--terminal-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--terminal-green-glow); }
    50% { opacity: 0.5; box-shadow: 0 0 0 10px transparent; }
}

.product-btn {
    margin-top: 1.5rem;
    width: 100%;
    text-align: center;
    display: block;
}

/* Services Section */
#services {
    background: var(--bg-darker);
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.services-text h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.services-text p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.services-list {
    list-style: none;
    margin: 2rem 0;
}

.services-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-light);
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.services-list li::before {
    content: '//';
    position: absolute;
    left: 0;
    color: var(--terminal-green);
    font-family: 'Share Tech Mono', monospace;
}

.services-visual {
    position: relative;
    height: 400px;
    margin-top: 0;
    border: 1px solid rgba(0, 255, 65, 0.2);
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.03) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* =========================================
   PCB Signal Visualizations (Bi-Directional)
   ========================================= */

.pcb-signals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; 
}

/* Base Trace Line */
.trace {
    position: absolute;
    background: rgba(0, 255, 65, 0.15);
}

/* The "Data Packet" (Solid Circle) */
.trace::after {
    content: '';
    position: absolute;
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--terminal-green);
    box-shadow: 0 0 8px var(--terminal-green);
    opacity: 0;
}

/* Directional Groups */
.signal-group {
    position: absolute;
}

/* ================= TOP TRACES (Vertical) ================= */
.signal-group.top {
    top: 0;
    left: 0; 
    width: 100%;
    height: 85px; 
}

.signal-group.top .trace {
    width: 2px;
    height: 100%;
    bottom: 0;
}

/* Default: Output (Up) */
.signal-group.top .trace::after {
    left: -2px;
    animation: moveUp 1.5s infinite linear;
}

/* Specific Inputs (Reverse direction -> Down/Into Chip) */
.signal-group.top .t-2::after { animation-direction: reverse; } 
.signal-group.top .t-4::after { animation-direction: reverse; }

/* 4 traces aligned to pin centers (pins 2, 5, 8, 11) */
/* Pin layout: 12 pins x 4px + 11 gaps x 7px = 125px total, centered */
/* Pin centers: pin1=-60.5, pin2=-49.5, pin5=-16.5, pin8=+16.5, pin11=+49.5 */
.signal-group.top .t-1 { left: calc(50% - 49.5px - 1px); height: 75%; animation-delay: 0s; }
.signal-group.top .t-2 { left: calc(50% - 16.5px - 1px); height: 55%; animation-delay: 0.4s; }
.signal-group.top .t-3 { left: calc(50% + 16.5px - 1px); height: 85%; animation-delay: 0.8s; }
.signal-group.top .t-4 { left: calc(50% + 49.5px - 1px); height: 65%; animation-delay: 1.2s; display: block; }


/* ================= BOTTOM TRACES (Vertical) ================= */
.signal-group.bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85px;
}

.signal-group.bottom .trace {
    width: 2px;
    height: 100%;
    top: 0;
}

/* Default: Output (Down) */
.signal-group.bottom .trace::after {
    left: -2px;
    animation: moveDown 2s infinite linear;
}

/* Specific Inputs (Reverse direction -> Up/Into Chip) */
.signal-group.bottom .t-1::after { animation-direction: reverse; }
.signal-group.bottom .t-3::after { animation-direction: reverse; }

/* 4 traces aligned to pin centers (pins 2, 5, 8, 11) */
.signal-group.bottom .t-1 { left: calc(50% - 49.5px - 1px); height: 60%; animation-delay: 0.2s; }
.signal-group.bottom .t-2 { left: calc(50% - 16.5px - 1px); height: 80%; animation-delay: 0.6s; }
.signal-group.bottom .t-3 { left: calc(50% + 16.5px - 1px); height: 45%; animation-delay: 1s; }
.signal-group.bottom .t-4 { left: calc(50% + 49.5px - 1px); height: 70%; animation-delay: 1.4s; }


/* ================= LEFT TRACES (Horizontal) ================= */
.signal-group.left {
    top: 0;
    left: 0;
    width: 85px;  /* Distance from screen edge to MCU pins */
    height: 100%;
}

.signal-group.left .trace {
    height: 2px !important; /* Force horizontal thickness */
    width: 100% !important; /* Force horizontal length */
    right: 0;               /* Anchor to the pins (right side of this box) */
    top: auto;              /* Reset any vertical positioning */
    bottom: auto;
}

/* Default Animation: Output (Right to Left) */
.signal-group.left .trace::after {
    top: -2px;
    animation: moveLeft 1.8s infinite linear;
}

/* Specific Inputs (Reverse direction -> Into Chip) */
.signal-group.left .t-2::after { animation-direction: reverse; }
.signal-group.left .t-4::after { animation-direction: reverse; }

/* 4 traces aligned to pin centers (pins 2, 5, 8, 11) */
.signal-group.left .t-1 { 
    top: calc(50% - 49.5px - 1px);
    width: 80% !important; 
    animation-delay: 0.1s; 
}

.signal-group.left .t-2 { 
    top: calc(50% - 16.5px - 1px);
    width: 60% !important; 
    animation-delay: 0.4s; 
}

.signal-group.left .t-3 { 
    top: calc(50% + 16.5px - 1px);
    width: 90% !important;
    animation-delay: 0.8s;
}

.signal-group.left .t-4 { 
    top: calc(50% + 49.5px - 1px);
    width: 70% !important;
    animation-delay: 1.2s;
}
/* ================= RIGHT TRACES (Horizontal) ================= */
.signal-group.right {
    top: 0;
    right: 0;
    width: 85px;
    height: 100%;
}

.signal-group.right .trace {
    height: 2px;
    width: 100%;
    left: 0;
}

/* Default: Output (Right) */
.signal-group.right .trace::after {
    top: -2px;
    animation: moveRight 2.2s infinite linear;
}

/* Specific Inputs (Reverse direction -> Left/Into Chip) */
.signal-group.right .t-2::after { animation-direction: reverse; }
.signal-group.right .t-4::after { animation-direction: reverse; }

/* 4 traces aligned to pin centers (pins 2, 5, 8, 11) */
.signal-group.right .t-1 { top: calc(50% - 49.5px - 1px); width: 85%; animation-delay: 0.3s; }
.signal-group.right .t-2 { top: calc(50% - 16.5px - 1px); width: 55%; animation-delay: 0.7s; }
.signal-group.right .t-3 { top: calc(50% + 16.5px - 1px); width: 75%; animation-delay: 1.1s; }
.signal-group.right .t-4 { top: calc(50% + 49.5px - 1px); width: 65%; animation-delay: 1.5s; }


/* ================= ANIMATIONS ================= */

@keyframes moveUp {
    0% { top: 100%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 0%; opacity: 0; }
}

@keyframes moveDown {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes moveLeft {
    0% { left: 100%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 0%; opacity: 0; }
}

@keyframes moveRight {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* MCU Animation */
.mcu-container {
    position: relative;
    width: 380px;
    height: 380px;
    z-index: 1;
}

.mcu-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border: 3px solid var(--terminal-green);
    background: rgba(0, 255, 65, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
    box-shadow: 
        0 0 20px var(--terminal-green-glow),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    animation: corePulse 3s ease-in-out infinite;
}

.mcu-text {
    width: 100%;
    height: auto;
    max-width: 130px;
}

.mcu-core span {
    font-size: 0.4rem;
    opacity: 0.7;
    line-height: 1.3;
    display: block;
    margin-top: 4px;
}

@keyframes corePulse {
    0%, 100% { box-shadow: 0 0 20px var(--terminal-green-glow), inset 0 0 20px rgba(0, 255, 65, 0.1); }
    50% { box-shadow: 0 0 40px var(--terminal-green-glow), inset 0 0 30px rgba(0, 255, 65, 0.2); }
}

.pin1-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--terminal-green);
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 5px var(--terminal-green);
}

.mcu-pin-row {
    position: absolute;
    display: flex;
    gap: 7px;
}

.mcu-pin-row.top { top: 85px; left: 50%; transform: translateX(-50%); flex-direction: row; }
.mcu-pin-row.bottom { bottom: 85px; left: 50%; transform: translateX(-50%); flex-direction: row; }
.mcu-pin-row.left { left: 85px; top: 50%; transform: translateY(-50%); flex-direction: column; }
.mcu-pin-row.right { right: 85px; top: 50%; transform: translateY(-50%); flex-direction: column; }

.mcu-pin {
    width: 4px;
    height: 18px;
    background: var(--terminal-green);
    box-shadow: 0 0 5px var(--terminal-green);
}

.mcu-pin-row.left .mcu-pin,
.mcu-pin-row.right .mcu-pin {
    width: 18px;
    height: 4px;
}

/* About Section */
#about {
    background: linear-gradient(180deg, var(--bg-black) 0%, var(--bg-darker) 100%);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: center;
}

.founder-image-container {
    position: relative;
    padding-bottom: 40px;
    padding-right: 10px;
}

.founder-image-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 30px;
    bottom: 60px;
    border: 1px solid var(--terminal-green);
    opacity: 0.3;
    pointer-events: none;
}

.founder-image {
    width: 100%;
    display: block;
    filter: grayscale(30%);
    transition: filter 0.3s ease, transform 0.4s ease;
}

/* Image wrapper for overflow control */
.founder-image-wrapper {
    position: relative;
    overflow: hidden;
}

/* Scan lines overlay */
.founder-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.founder-image-container:hover .founder-scanlines {
    opacity: 0.3;
}

/* Chromatic aberration layers */
.founder-image-container .chroma-red,
.founder-image-container .chroma-cyan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('omar-youssef.png') center/cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.founder-image-container:hover .founder-image {
    filter: grayscale(10%);
    transform: scale(1.05);
}

.founder-image-container:hover .chroma-red {
    opacity: 0.6;
    transform: translate(-3px, 0) scale(1.05);
    filter: grayscale(100%) sepia(100%) hue-rotate(-50deg) saturate(5);
    mix-blend-mode: multiply;
}

.founder-image-container:hover .chroma-cyan {
    opacity: 0.6;
    transform: translate(3px, 0) scale(1.05);
    filter: grayscale(100%) sepia(100%) hue-rotate(120deg) saturate(5);
    mix-blend-mode: screen;
}

.founder-image-container::after {
    content: 'FOUNDER';
    position: absolute;
    bottom: -30px;
    right: -10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--terminal-green);
    background: var(--bg-darker);
    padding: 0.5rem 1rem;
}

.about-text h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.about-text .founder-title {
    font-family: 'Share Tech Mono', monospace;
    color: var(--terminal-green);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 255, 65, 0.1);
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--terminal-green);
    text-shadow: 0 0 20px var(--terminal-green-glow);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* Contact Section */
#contact {
    background: var(--bg-darker);
    text-align: center;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-content p {
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terminal-green);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.2);
    color: var(--text-light);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--terminal-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300FF41' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-group select option {
    background: var(--bg-black);
    color: var(--text-light);
}

.submit-btn {
    margin-top: 1rem;
    width: 100%;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form message styles */
.form-message {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
}

.form-message.success {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--terminal-green);
    color: var(--terminal-green);
}

.form-message.error {
    background: rgba(255, 0, 65, 0.1);
    border-color: #ff0041;
    color: #ff0041;
}

.contact-alt {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 255, 65, 0.1);
}

.contact-alt p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-email {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    color: var(--terminal-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-email:hover {
    text-shadow: 0 0 20px var(--terminal-green-glow);
}

/* Footer */
footer {
    background: var(--bg-black);
    padding: 3rem 4rem;
    border-top: 1px solid rgba(0, 255, 65, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--terminal-green);
    letter-spacing: 0.2em;
}

.footer-info {
    text-align: center;
}

.footer-info p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.footer-location svg {
    width: 16px;
    height: 16px;
    stroke: var(--terminal-green);
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2s infinite linear alternate-reverse;
    color: var(--danger-red);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 3s infinite linear alternate-reverse;
    color: cyan;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 95% 0); transform: translate(-2px, 0); }
    20% { clip-path: inset(40% 0 40% 0); transform: translate(2px, 0); }
    40% { clip-path: inset(70% 0 10% 0); transform: translate(-2px, 0); }
    60% { clip-path: inset(10% 0 70% 0); transform: translate(2px, 0); }
    80% { clip-path: inset(50% 0 30% 0); transform: translate(-2px, 0); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(95% 0 0 0); transform: translate(2px, 0); }
    20% { clip-path: inset(10% 0 70% 0); transform: translate(-2px, 0); }
    40% { clip-path: inset(30% 0 50% 0); transform: translate(2px, 0); }
    60% { clip-path: inset(70% 0 10% 0); transform: translate(-2px, 0); }
    80% { clip-path: inset(20% 0 60% 0); transform: translate(2px, 0); }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    nav {
        padding: 1rem 2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    section {
        padding: 5rem 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-card {
        padding: 2rem;
    }

    .product-image {
        max-width: 280px;
    }

    .services-content {
        grid-template-columns: 1fr;
    }

    .services-visual {
        height: 400px;
        order: -1;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .founder-image-container {
        max-width: 350px;
        margin: 0 auto;
        padding-bottom: 35px;
    }

    .founder-image-container::before {
        top: -10px;
        left: -10px;
        right: 20px;
        bottom: 45px;
    }

    .founder-image-container::after {
        bottom: 0;
        right: 0;
        font-size: 0.65rem;
    }

    .about-text {
        text-align: center;
    }

    .about-text h3 {
        font-size: 1.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-logo {
        width: min(400px, 85vw);
    }

    .hero-tagline {
        font-size: 1.25rem;
        letter-spacing: 0.15em;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .product-card {
        padding: 1.5rem;
    }

    .product-image {
        max-width: 240px;
    }

    .product-name {
        font-size: 1.25rem;
    }

    .product-description {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .product-features li {
        font-size: 0.85rem;
    }

    .services-visual {
        height: 380px;
    }

    .founder-image-container {
        max-width: 300px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 600px) {
    nav {
        padding: 1rem;
    }

    .nav-logo {
        font-size: 1rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-label {
        font-size: 0.7rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero {
        padding: 1rem;
        min-height: 100svh;
    }

    .hero-logo {
        width: min(320px, 90vw);
        margin-bottom: 1.5rem;
    }

    .hero-tagline {
        font-size: 1rem;
        letter-spacing: 0.1em;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        margin-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        padding: 0;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.8rem;
    }

    .scroll-indicator {
        bottom: 1.5rem;
        font-size: 0.65rem;
    }

    .products-grid {
        gap: 1.5rem;
    }

    .product-card {
        padding: 1.25rem;
    }

    .product-image {
        max-width: 200px;
        margin-bottom: 1.5rem;
    }

    .product-name {
        font-size: 1.1rem;
        text-align: center;
    }

    .product-codename {
        font-size: 0.7rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .product-description {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .product-features {
        margin-bottom: 1.5rem;
    }

    .product-features li {
        font-size: 0.8rem;
        padding: 0.4rem 0;
        padding-left: 1.25rem;
    }

    .product-status {
        font-size: 0.75rem;
        justify-content: center;
    }

    .services-text h3 {
        font-size: 1.25rem;
        text-align: center;
    }

    .services-text p {
        font-size: 0.9rem;
    }

    .services-list li {
        font-size: 0.85rem;
        padding: 0.6rem 0;
        padding-left: 1.5rem;
    }

    .services-text .btn {
        display: block;
        margin: 0 auto;
    }

    .services-visual {
        height: 320px;
    }

    /* MCU Mobile Fixes - adjust dimensions instead of scale */
    .mcu-container {
        width: 280px;
        height: 280px;
        transform: none;
    }

    .mcu-core {
        width: 120px;
        height: 120px;
        padding: 12px;
    }

    .mcu-text {
        max-width: 96px;
    }

    .mcu-pin-row {
        gap: 5px;
    }

    .mcu-pin-row.top { top: 60px; }
    .mcu-pin-row.bottom { bottom: 60px; }
    .mcu-pin-row.left { left: 60px; }
    .mcu-pin-row.right { right: 60px; }

    .mcu-pin {
        width: 3px;
        height: 14px;
    }

    .mcu-pin-row.left .mcu-pin,
    .mcu-pin-row.right .mcu-pin {
        width: 14px;
        height: 3px;
    }

    .pin1-indicator {
        width: 8px;
        height: 8px;
        top: 8px;
        left: 8px;
    }

    /* Adjust signal traces for mobile */
    .signal-group.top,
    .signal-group.bottom {
        height: 60px;
    }

    .signal-group.left,
    .signal-group.right {
        width: 60px;
    }

    /* Mobile trace positions - recalculated for smaller pins */
    /* 12 pins x 3px + 11 gaps x 5px = 91px total, centered */
    /* Pin 2 center: -36.5px, Pin 5: -12.5px, Pin 8: +12.5px, Pin 11: +36.5px */
    .signal-group.top .t-1 { left: calc(50% - 36.5px - 1px); }
    .signal-group.top .t-2 { left: calc(50% - 12.5px - 1px); }
    .signal-group.top .t-3 { left: calc(50% + 12.5px - 1px); }
    .signal-group.top .t-4 { left: calc(50% + 36.5px - 1px); }

    .signal-group.bottom .t-1 { left: calc(50% - 36.5px - 1px); }
    .signal-group.bottom .t-2 { left: calc(50% - 12.5px - 1px); }
    .signal-group.bottom .t-3 { left: calc(50% + 12.5px - 1px); }
    .signal-group.bottom .t-4 { left: calc(50% + 36.5px - 1px); }

    .signal-group.left .t-1 { top: calc(50% - 36.5px - 1px); }
    .signal-group.left .t-2 { top: calc(50% - 12.5px - 1px); }
    .signal-group.left .t-3 { top: calc(50% + 12.5px - 1px); }
    .signal-group.left .t-4 { top: calc(50% + 36.5px - 1px); }

    .signal-group.right .t-1 { top: calc(50% - 36.5px - 1px); }
    .signal-group.right .t-2 { top: calc(50% - 12.5px - 1px); }
    .signal-group.right .t-3 { top: calc(50% + 12.5px - 1px); }
    .signal-group.right .t-4 { top: calc(50% + 36.5px - 1px); }

    .founder-image-container {
        max-width: 280px;
        padding-bottom: 30px;
    }

    .founder-image-container::before {
        top: -8px;
        left: -8px;
        right: 15px;
        bottom: 38px;
    }

    .founder-image-container::after {
        bottom: 0;
        right: 0;
        font-size: 0.6rem;
        padding: 0.4rem 0.75rem;
        letter-spacing: 0.2em;
    }

    /* Simpler hover effect on mobile */
    .founder-image-wrapper:active .founder-image,
    .founder-image-container:hover .founder-image {
        filter: grayscale(10%);
        transform: scale(1.03);
    }

    .founder-image-wrapper:active .founder-scanlines,
    .founder-image-container:hover .founder-scanlines {
        opacity: 0.4;
    }

    /* Enable chromatic on mobile but simpler */
    .founder-image-container .chroma-red,
    .founder-image-container .chroma-cyan {
        display: block;
    }

    .founder-image-wrapper:active .chroma-red,
    .founder-image-container:hover .chroma-red {
        opacity: 0.5;
        transform: translate(-2px, 0) scale(1.03);
    }

    .founder-image-wrapper:active .chroma-cyan,
    .founder-image-container:hover .chroma-cyan {
        opacity: 0.5;
        transform: translate(2px, 0) scale(1.03);
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .about-text .founder-title {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .about-text p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.1em;
    }

    .contact-content p {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .form-group label {
        font-size: 0.7rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.875rem;
        font-size: 0.85rem;
    }

    .form-group textarea {
        min-height: 120px;
    }

    .contact-alt {
        margin-top: 2.5rem;
        padding-top: 2rem;
    }

    .contact-alt p {
        font-size: 0.8rem;
    }

    .contact-email {
        font-size: 1rem;
    }

    footer {
        padding: 2rem 1rem;
    }

    .footer-logo {
        font-size: 1rem;
    }

    .footer-info p {
        font-size: 0.75rem;
    }

    .footer-location {
        font-size: 0.75rem;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .hero-logo {
        width: 95vw;
    }

    .hero-tagline {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .product-image {
        max-width: 180px;
    }

    .product-name {
        font-size: 1rem;
    }

    /* MCU even smaller for tiny screens */
    .mcu-container {
        width: 240px;
        height: 240px;
    }

    .mcu-core {
        width: 100px;
        height: 100px;
        padding: 10px;
    }

    .mcu-text {
        max-width: 80px;
    }

    .mcu-pin-row {
        gap: 4px;
    }

    .mcu-pin-row.top { top: 50px; }
    .mcu-pin-row.bottom { bottom: 50px; }
    .mcu-pin-row.left { left: 50px; }
    .mcu-pin-row.right { right: 50px; }

    .mcu-pin {
        width: 2px;
        height: 12px;
    }

    .mcu-pin-row.left .mcu-pin,
    .mcu-pin-row.right .mcu-pin {
        width: 12px;
        height: 2px;
    }

    .signal-group.top,
    .signal-group.bottom {
        height: 50px;
    }

    .signal-group.left,
    .signal-group.right {
        width: 50px;
    }

    /* Extra small trace positions */
    /* 12 pins x 2px + 11 gaps x 4px = 68px total, centered */
    /* Pin 2 center: -27px, Pin 5: -9px, Pin 8: +9px, Pin 11: +27px */
    .signal-group.top .t-1 { left: calc(50% - 27px - 1px); }
    .signal-group.top .t-2 { left: calc(50% - 9px - 1px); }
    .signal-group.top .t-3 { left: calc(50% + 9px - 1px); }
    .signal-group.top .t-4 { left: calc(50% + 27px - 1px); }

    .signal-group.bottom .t-1 { left: calc(50% - 27px - 1px); }
    .signal-group.bottom .t-2 { left: calc(50% - 9px - 1px); }
    .signal-group.bottom .t-3 { left: calc(50% + 9px - 1px); }
    .signal-group.bottom .t-4 { left: calc(50% + 27px - 1px); }

    .signal-group.left .t-1 { top: calc(50% - 27px - 1px); }
    .signal-group.left .t-2 { top: calc(50% - 9px - 1px); }
    .signal-group.left .t-3 { top: calc(50% + 9px - 1px); }
    .signal-group.left .t-4 { top: calc(50% + 27px - 1px); }

    .signal-group.right .t-1 { top: calc(50% - 27px - 1px); }
    .signal-group.right .t-2 { top: calc(50% - 9px - 1px); }
    .signal-group.right .t-3 { top: calc(50% + 9px - 1px); }
    .signal-group.right .t-4 { top: calc(50% + 27px - 1px); }

    .services-visual {
        height: 260px;
    }

    .founder-image-container {
        max-width: 240px;
        padding-bottom: 28px;
    }

    .founder-image-container::before {
        top: -6px;
        left: -6px;
        right: 12px;
        bottom: 34px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.55rem;
    }
}