:root {
    --bg-color: #050510;
    --card-bg: #0f0f20;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --neon-cyan: #00f3ff;
    --neon-magenta: #ff00ff;
    --neon-lime: #ccff00;
    --glow-strength: 0 0 10px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'VT323', monospace;
    /* Base font for body */
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.4;
    /* Tighter leading for pixel font */
    overflow-x: hidden;
    font-size: 1.4rem;
    /* Larger base size for legibility */
    image-rendering: pixelated;
    /* Force pixel rendering */
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: 'Press Start 2P', cursive;
    /* Header font */
    text-transform: uppercase;
    letter-spacing: -1px;
}

* {
    border-radius: 0 !important;
    /* Global reset for square shapes */
}

#circuit-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--bg-color);
}

/* Navbar */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 16, 0.8);
    background: rgba(5, 5, 16, 0.95);
    border-bottom: 4px solid var(--neon-cyan);
    /* Hard border */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.company-logo {
    height: 120px;
    /* Increased size significantly */
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s ease;
    /* Space Float Animation */
    animation: floating-space 4s ease-in-out infinite;
}

.company-logo:hover {
    opacity: 1;
    /* No glow on hover if requested clean, or keep white? User said remove background neon. I'll keep white hover for feedback but remove animation glow. */
    filter: drop-shadow(0 0 5px #fff);
}

@keyframes floating-space {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}



.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: var(--glow-strength) var(--neon-cyan);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.8rem;
}

nav a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

.cta-btn {
    padding: 1rem 1.5rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    background: transparent;
    border: 2px solid var(--neon-magenta);
    color: var(--neon-magenta);
    cursor: pointer;
    transition: all 0.1s steps(2);
    /* Instant retroactive feel */
    box-shadow: 4px 4px 0 var(--dark-bg);
}

.cta-btn:hover {
    background: var(--neon-magenta);
    color: #fff;
    box-shadow: 4px 4px 0 #fff;
    transform: translate(-2px, -2px);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered */
    padding: 0 5%;
    position: relative;
    /* Background handled by canvas */
}

.hero-content {
    max-width: 1000px;
    z-index: 1;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px rgba(255, 255, 255, 0.4);
}

.neon-text {
    color: var(--neon-cyan);
    text-shadow:
        0 0 5px #fff,
        0 0 10px var(--neon-cyan),
        0 0 20px var(--neon-cyan),
        0 0 40px var(--neon-cyan);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.primary-btn {
    padding: 1.2rem 2.5rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    background: var(--neon-cyan);
    color: #000;
    border: 4px solid #fff;
    /* Hard border */
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.1s steps(2);
}

.primary-btn:hover {
    box-shadow: 8px 8px 0 var(--neon-cyan);
    transform: translate(-2px, -2px);
}

.secondary-btn {
    padding: 1.2rem 2.5rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    background: #000;
    color: var(--text-primary);
    border: 4px solid var(--text-primary);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.1s steps(2);
}

.secondary-btn:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 8px 8px 0 var(--neon-cyan);
    transform: translate(-2px, -2px);
}

.hero-visual {
    position: relative;
    width: 500px;
    height: 500px;
    display: none;
    /* display: flex; Hidden to center text perfectly */
    justify-content: center;
    align-items: center;
}

.glowing-orb {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    filter: blur(50px);
    opacity: 0.6;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Services Section */
#services {
    padding: 0 5% 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#services h2 {
    font-size: 5rem;
    font-weight: 900;
    text-align: center;
    margin: 0 auto 4rem auto;
    width: -moz-fit-content;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 2px;

    /* Ultimate Hyper-Fine Circuit Effect */
    background-image:
        /* 1. The Energy Flash (Bright White/Cyan) - Moving fast */
        linear-gradient(90deg, transparent 40%, rgba(255, 255, 255, 1) 50%, transparent 60%),
        /* 2. Thousands of fine vertical traces (Dark Blue/Cyan) */
        repeating-linear-gradient(90deg, #001133 0px, #001133 1px, transparent 1px, transparent 3px),
        /* 3. Fine diagonal data lines */
        repeating-linear-gradient(45deg, var(--neon-cyan) 0px, var(--neon-cyan) 1px, transparent 1px, transparent 4px),
        /* 4. Horizontal scan texture */
        repeating-linear-gradient(0deg, transparent 0px, transparent 1px, rgba(0, 243, 255, 0.2) 1px, rgba(0, 243, 255, 0.2) 2px);

    background-size:
        200% 100%,
        /* Flash */
        4px 100%,
        /* Vertical density */
        6px 6px,
        /* Diagonal density */
        100% 3px;
    /* Horizontal scan */

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    /* Intense Unique Neon Glow (White -> Cyan -> Magenta) */
    filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 8px var(--neon-cyan)) drop-shadow(0 0 15px var(--neon-magenta));

    /* Warp Speed Animation */
    animation: warp-circuit 0.3s linear infinite, btn-float 3s ease-in-out infinite;
    /* Extremely fast + Floating */
    position: relative;
    z-index: 2;
}

/* Add a second layer for depth/vibration using pseudo-element inside parent (not possible on h2 text easily without wrapper, sticking to background animation) */

@keyframes warp-circuit {
    0% {
        background-position:
            200% 0,
            /* Flash starts right */
            0 0,
            /* Static grid base */
            0 0,
            /* Diagonals */
            0 0;
        /* Lines */
    }

    100% {
        background-position:
            -200% 0,
            /* Flash moves left super fast */
            0 0,
            6px 6px,
            /* Diagonals move to create 'flowing' illusion */
            0 3px;
        /* Scanlines move down */
    }
}

@keyframes text-flicker {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    }

    50% {
        opacity: 0.8;
        text-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
    }
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Wider gap for separation */
    gap: 8rem;
    max-width: 1600px;
    width: 95%;
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

/* Retro Card Styles... */
/* ... (unchanged parts of .card) ... */

/* 1. Web Development - Cyan Theme */
.card.web-card {
    background-color: #001a1a;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0, 255, 255, 0.05) 1px, rgba(0, 255, 255, 0.05) 2px),
        repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(0, 255, 255, 0.05) 1px, rgba(0, 255, 255, 0.05) 2px);
    background-size: 4px 4px;
    border-color: #005555;
}

.card.web-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 var(--neon-cyan);
    border-color: var(--neon-cyan);
    background-color: #002222;
}

.card.web-card:active {
    border-color: var(--neon-cyan) !important;
    box-shadow:
        0 0 20px var(--neon-cyan),
        0 0 50px var(--neon-cyan),
        0 0 100px var(--neon-cyan) !important;
    transform: scale(0.98);
}

/* 2. Automation - BLUE Theme (Requested) */
.card.auto-card {
    background-color: #0a0a2a;
    background-image:
        radial-gradient(#2962ff 15%, transparent 16%),
        radial-gradient(#2962ff 15%, transparent 16%);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    background-blend-mode: overlay;
    opacity: 1;
    border-color: #002266;
}

.card.auto-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 #2962ff;
    border-color: #2962ff;
    background-color: #0a1a4a;
}

.card.auto-card:active {
    border-color: #2962ff !important;
    box-shadow:
        0 0 20px #2962ff,
        0 0 50px #2962ff,
        0 0 100px #2962ff !important;
    transform: scale(0.98);
}

/* 3. Mobile Apps - Magenta Theme */
.card.mobile-card {
    background-color: #1a051a;
    background-image:
        linear-gradient(45deg, rgba(255, 0, 255, 0.05) 25%, transparent 25%, transparent 50%, rgba(255, 0, 255, 0.05) 50%, rgba(255, 0, 255, 0.05) 75%, transparent 75%, transparent);
    background-size: 8px 8px;
    /* Diagonal stripes */
    border-color: #550055;
}

.card.mobile-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 var(--neon-magenta);
    border-color: var(--neon-magenta);
    background-color: #2a0a2a;
}

.card.mobile-card:active {
    border-color: var(--neon-magenta) !important;
    box-shadow:
        0 0 20px var(--neon-magenta),
        0 0 50px var(--neon-magenta),
        0 0 100px var(--neon-magenta) !important;
    transform: scale(0.98);
}

/* Laptop Animation - Enhanced 16 Bit Style */
.laptop-icon {
    display: inline-block;
    position: relative;
    width: 68px;
    height: 56px;
    animation: laptop-float 2s steps(4) infinite;
    image-rendering: pixelated;
}

.laptop-base {
    position: absolute;
    bottom: 0;
    width: 68px;
    height: 12px;
    /* Thicker base */
    background: #e0e0e0;
    border-radius: 0;
    /* 3D Pixel Look */
    box-shadow:
        4px 4px 0 rgba(0, 0, 0, 0.5),
        /* Hard shadow */
        0 8px 15px var(--neon-cyan);
    /* Glow underneath */
    border: 2px solid #fff;
    border-right-color: #999;
    border-bottom-color: #999;
}

.laptop-screen {
    position: absolute;
    bottom: 12px;
    /* Sits on base */
    left: 4px;
    width: 60px;
    height: 40px;
    background: #000;
    border: 4px solid #e0e0e0;
    border-radius: 0;
    transform-origin: bottom;
    animation: laptop-open-close 4s steps(8) infinite;
    position: relative;
    transform-style: preserve-3d;
}

/* Screen Loading Bar */
.laptop-screen::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 6px;
    background: #333;
    /* Empty bar */
    border: 2px solid #555;
    box-shadow: none;
    /* Reset prev shadow */
    animation: none;
    /* Reset prev animation */
}

/* New element for the filling bar using pseudo-element of the icon or inner div? 
   Cannot add easily to ::after, let's use box-shadow on ::after to simulate progress or just a static 'loading' look 
   Actually, let's use a linear gradient on ::after to simulate the progress bar provided in the image */
.laptop-screen::after {
    /* Overwriting previous rule fully */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 8px;
    border: 2px solid #555;
    /* Green Loading Animation */
    background: linear-gradient(90deg, #00ff00, #00ff00);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    image-rendering: pixelated;
    box-shadow: 0 0 5px #00ff00;
    animation: loading-bar 2s steps(10) infinite;
}

@keyframes loading-bar {
    0% {
        background-size: 0% 100%;
    }

    100% {
        background-size: 100% 100%;
    }
}

@keyframes laptop-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes laptop-open-close {

    0%,
    15% {
        transform: rotateX(0deg);
    }

    /* Open */
    45%,
    55% {
        transform: rotateX(-90deg);
    }

    /* Closed */
    85%,
    100% {
        transform: rotateX(0deg);
    }

    /* Open */
}

/* Mobile Animation - 16 Bit */
.mobile-icon {
    display: inline-block;
    position: relative;
    width: 44px;
    height: 68px;
    background: #111;
    border: 4px solid #555;
    border-radius: 0;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
    /* Pixel float */
    animation: mobile-float 3s steps(6) infinite reverse;
}

.mobile-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 4px;
    background: #222;
    border-radius: 0;
    z-index: 2;
}

.mobile-screen {
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    bottom: 4px;
    background: #000;
    overflow: hidden;
    border-radius: 0;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
}

.app-grid {
    width: 100%;
    height: 200%;
    /* Higher than screen for scrolling */
    background-image:
        linear-gradient(45deg, var(--neon-magenta) 25%, transparent 25%, transparent 75%, var(--neon-magenta) 75%),
        linear-gradient(45deg, var(--neon-cyan) 25%, transparent 25%, transparent 75%, var(--neon-cyan) 75%);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
    /* Stepped scroll matching grid size */
    animation: app-scroll 2s steps(20) infinite;
    image-rendering: pixelated;
}

@keyframes mobile-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes app-scroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

.card.mobile-card:hover {
    border-color: var(--neon-magenta);
    box-shadow: 12px 12px 0 var(--neon-magenta);
    transform: translate(-4px, -4px);
}

/* Robot Animation - Minimal White Pixel Art */
.robot-icon {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 60px;
}

.robot-head {
    position: relative;
    width: 44px;
    height: 32px;
    background: transparent;
    border: 4px solid #fff;
    /* White Outline */
    margin: 20px auto 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    /* Soft glow */
    animation: robot-bob 2s steps(4) infinite;
}

/* Face container (inner) */
.robot-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
}

/* Eyes - Vertical White Pills */
.robot-eyes {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 6px;
    height: 12px;
    background: #fff;
    box-shadow: 12px 0 0 #fff;
    /* Second eye */
    animation: robot-blink-white 4s steps(1) infinite;
}

.robot-mouth {
    display: none;
    /* No mouth in reference */
}

/* Small side nubs */
.robot-ears {
    position: absolute;
    top: 50%;
    left: -8px;
    transform: translateY(-50%);
    width: 60px;
    /* Spans full width */
    height: 6px;
    background: transparent;
    border-left: 4px solid #fff;
    border-right: 4px solid #fff;
    z-index: -1;
}

/* Bent Antenna */
.robot-antenna {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #fff;
}

/* Antenna Top Flag */
.robot-antenna::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 12px;
    /* Flag right */
    height: 4px;
    background: #fff;
    border-radius: 0;
    animation: none;
}

@keyframes robot-bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes robot-blink-white {

    0%,
    48%,
    52%,
    100% {
        height: 12px;
        transform: translateY(-50%);
    }

    50% {
        height: 2px;
        transform: translateY(-50%);
    }

    /* Blink squish */
}

/* Rocket Animation - 16 Bit Pixel Art */
.rocket-icon {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 60px;
}

.pixel-rocket {
    position: relative;
    width: 100%;
    height: 100%;
    animation: rocket-fly 2s steps(8) infinite;
    transform: rotate(45deg);
    /* Diagonal flight */
}

/* Red Fins */
.rocket-fins {
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 40px;
    height: 12px;
    background: #FF0000;
    box-shadow: 4px -4px 0 #D00000;
    /* shading */
    z-index: 1;
}

/* Vertical Fin part */
.rocket-fins::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    width: 12px;
    height: 30px;
    background: #FF0000;
    box-shadow: 4px 0 0 #D00000;
}

/* Rocket Body */
.rocket-body-main {
    position: absolute;
    bottom: 12px;
    left: 14px;
    width: 12px;
    height: 36px;
    background: linear-gradient(90deg, #ccc 50%, #999 50%);
    /* Metallic look */
    border-top: 4px solid #3366cc;
    /* Blue nose cone base */
    z-index: 2;
}

/* Nose Cone */
.rocket-body-main::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 12px;
    height: 12px;
    background: #3366cc;
    /* Blue tip */
    border-bottom: 2px solid #224488;
}

/* Window */
.rocket-window {
    position: absolute;
    bottom: 28px;
    left: 16px;
    width: 8px;
    height: 8px;
    background: #000;
    /* Dark glass */
    border: 2px solid #FF0000;
    /* Red rim */
    z-index: 3;
    box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.5);
    /* Glint */
}

/* Retro Flame */
.rocket-flame-pixel {
    position: absolute;
    bottom: -10px;
    left: 16px;
    width: 8px;
    height: 12px;
    background: #FFDD00;
    box-shadow: 0 0 0 2px #FF5500;
    z-index: 0;
    animation: pixel-fire 0.2s steps(2) infinite alternate;
    transform-origin: top;
}

/* Remove old pseudo-elements if they exist by resetting or assuming they are gone with new classes */
.rocket-icon::before,
.rocket-icon::after {
    display: none;
}

@keyframes pixel-fire {
    0% {
        height: 12px;
        background: #FFDD00;
    }

    100% {
        height: 18px;
        background: #FF8800;
    }
}

/* Reuse existing rocket-fly but ensure steps */
@keyframes rocket-fly {

    0%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    50% {
        transform: translateY(-8px) rotate(45deg);
    }
}

@keyframes rocket-fire {
    0% {
        transform: scaleY(1) translateY(0);
        opacity: 0.9;
    }

    100% {
        transform: scaleY(1.8) translateY(2px);
        opacity: 0.5;
    }

    /* Grow down significantly */
}

@keyframes rocket-smoke {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translateY(15px) scale(2);
        opacity: 0;
    }
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
}

/* Footer */
footer {
    padding: 0;
    text-align: center;
    border-top: none;
    color: var(--text-secondary);
    margin-top: -2rem;
    position: relative;
    z-index: 5;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0;
}

.social-icons a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.1s steps(2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    background: #000;
    box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    color: #fff;
    border-color: var(--neon-magenta);
    background: var(--neon-magenta);
    box-shadow: 6px 6px 0 #fff;
    transform: translate(-3px, -3px);
    text-shadow: 2px 2px 0 #000;
}

/* Retro Social Colors - Hover & Active */

/* Instagram (Retro Gradient Blur) */
/* Instagram (Retro Gradient Neon Blur) */
.social-icons a.instagram-link:hover {
    border-color: transparent;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    /* Neon Blur Effect */
    box-shadow:
        0 0 10px #f09433,
        0 0 20px #dc2743,
        0 0 30px #bc1888;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    transform: translateY(-3px) scale(1.1);
}

.social-icons a.instagram-link:active {
    box-shadow:
        0 0 5px #f09433,
        0 0 10px #dc2743;
    transform: translate(0, 0) scale(0.95);
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}

/* Facebook (Neon Blue Blur) */
.social-icons a.facebook-link:hover {
    border-color: transparent;
    background: #1877F2;
    color: #fff;
    /* Neon Blur Effect */
    box-shadow:
        0 0 10px #1877F2,
        0 0 20px #1877F2,
        0 0 30px #1877F2;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    transform: translateY(-3px) scale(1.1);
}

.social-icons a.facebook-link:active {
    box-shadow: 0 0 10px #1877F2;
    background: #1877F2;
    color: #fff;
    border-color: transparent;
    transform: translate(0, 0) scale(0.95);
}

/* YouTube (Neon Red Blur) */
.social-icons a.youtube-link:hover {
    border-color: transparent;
    background: #FF0000;
    color: #fff;
    /* Neon Blur Effect */
    box-shadow:
        0 0 10px #FF0000,
        0 0 20px #FF0000,
        0 0 30px #FF0000;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    transform: translateY(-3px) scale(1.1);
}

.social-icons a.youtube-link:active {
    box-shadow: 0 0 10px #FF0000;
    background: #FF0000;
    color: #fff;
    border-color: transparent;
    transform: translate(0, 0) scale(0.95);
}

/* WhatsApp (Neon Green Blur) */
.social-icons a.whatsapp-link:hover {
    border-color: transparent;
    background: #25D366;
    color: #fff;
    /* Neon Blur Effect */
    box-shadow:
        0 0 10px #25D366,
        0 0 20px #25D366,
        0 0 30px #25D366;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    transform: translateY(-3px) scale(1.1);
}

.social-icons a.whatsapp-link:active {
    box-shadow: 0 0 10px #25D366;
    background: #25D366;
    color: #fff;
    border-color: transparent;
    transform: translate(0, 0) scale(0.95);
}

/* TikTok (Neon Glitch Effect) */
.social-icons a.tiktok-link:hover {
    border-color: transparent;
    background: #000;
    color: #fff;
    /* Cyan and Red Shadow Mix */
    box-shadow:
        -2px -2px 0 #00f2ea,
        2px 2px 0 #ff0050,
        0 0 10px #00f2ea,
        0 0 20px #ff0050;
    text-shadow: 2px 2px 0 #ff0050, -2px -2px 0 #00f2ea;
    transform: translateY(-3px) scale(1.1);
}

.social-icons a.tiktok-link:active {
    background: #000;
    box-shadow: 0 0 0 transparent;
    transform: translate(0, 0) scale(0.95);
}



/* Responsive */
/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    .hero-visual {
        width: 400px;
        height: 400px;
    }

    .glowing-orb {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
        flex-direction: column;
        gap: 1rem;
        background: rgba(5, 5, 16, 0.95);
        /* Solid background for mobile header */
    }

    .logo-container {
        width: 100%;
        justify-content: center;
    }

    nav ul {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .cta-btn {
        display: none;
        /* Hide CTA on mobile to save space, or move it */
    }

    #hero {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
        /* More space for stacked header */
        height: auto;
        padding-bottom: 5rem;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .hero-visual {
        width: 100%;
        height: 300px;
    }

    .glowing-orb {
        width: 180px;
        height: 180px;
    }

    #services h2 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    h1 {
        font-size: 2rem;
    }

    .company-logo {
        height: 50px;
        /* Smaller logo on mobile */
    }
}

/* Retro Modal / Popup */
.retro-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Dimmed background */
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    image-rendering: pixelated;
}

.modal-content-pixel {
    background-color: #050510;

    width: 90%;
    max-width: 600px;
    padding: 2rem;
    position: relative;
    box-shadow:
        8px 8px 0 rgba(0, 0, 0, 0.5),
        0 0 20px var(--neon-cyan);
    animation: popup-open 0.3s steps(5) forwards, popup-float 4s ease-in-out infinite 0.3s;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) #000;
}

@keyframes popup-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1);
    }
}

/* Custom Scrollbar for Modal */
.modal-content-pixel::-webkit-scrollbar {
    width: 12px;
}

.modal-content-pixel::-webkit-scrollbar-track {
    background: #000;
}

.modal-content-pixel::-webkit-scrollbar-thumb {
    background-color: var(--neon-cyan);
    border: 2px solid #000;
}

.pixel-title {
    font-family: 'Press Start 2P', cursive;
    color: var(--neon-cyan);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 4px solid #333;
    padding-bottom: 1rem;
    text-shadow: 4px 4px 0 #000;
}

.pixel-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pixel-item {
    border-left: 4px solid #333;
    padding-left: 1rem;
    transition: all 0.2s steps(2);
}

.pixel-item:hover {
    border-left-color: var(--neon-magenta);
    background: rgba(255, 255, 255, 0.05);
}

.item-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    /* Smaller for list items */
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check {
    color: var(--neon-lime);
    font-size: 1rem;
}

.pixel-item p {
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    color: #ccc;
    line-height: 1.2;
    margin: 0;
}

/* Close Button [x] */
.close-btn-pixel {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: #FF0000;
    box-shadow: 4px 4px 0 #000;
    transition: transform 0.1s steps(2);
}

.close-btn-pixel:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}

.close-btn-pixel:active {
    background: #ff0000;
    text-shadow: 0 0 5px #fff;
    transform: translate(3px, 3px);
    box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
    /* Red Neon Glow */
}

/* Footer Button */
.modal-footer-pixel {
    margin-top: 2rem;
    text-align: center;
    border-top: 4px solid #333;
    padding-top: 1.5rem;
}

.retro-btn {
    background: #000;
    color: #fff;
    border: 4px solid #fff;
    padding: 1rem 2rem;
    font-family: 'Press Start 2P', cursive;
    cursor: pointer;
    font-size: 0.8rem;
    box-shadow: 6px 6px 0 rgba(255, 255, 255, 0.2);
}

.retro-btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 8px 8px 0 var(--neon-cyan);
    transform: translate(-2px, -2px);
}

/* CTA Button (Header) - "Empezar" */
.cta-btn {
    background: #2962ff;
    /* Electric Blue - More Professional */
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    text-transform: uppercase;
    position: relative;
    box-shadow: 4px 4px 0 #ff00ff;
    /* Neon Magenta Contrast */
    transition: all 0.2s;
    animation: btn-float 2s ease-in-out infinite;
}

.cta-btn:hover {
    transform: translate(2px, 2px);
    /* Click effect */
    box-shadow: 2px 2px 0 #ff00ff;
    /* Optional: Glow on hover */
    filter: drop-shadow(0 0 8px #2962ff);
}

@keyframes btn-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes popup-open {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Automation Popup Styles */
.sub-pixel-list {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    list-style-type: square;
    color: #aaa;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
}

.pixel-separator {
    border: 0;
    border-top: 2px dashed #444;
    margin: 2rem 0;
}

.pixel-subtitle {
    font-family: 'Press Start 2P', cursive;
    color: var(--neon-magenta);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 #000;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.benefit-item {
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: #eee;
    border: 1px solid #333;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
}

.tech-text {
    font-family: 'VT323', monospace;
    color: var(--neon-cyan);
    font-size: 1.2rem;
}

.process-list {
    font-family: 'VT323', monospace;
    color: #ccc;
    font-size: 1.2rem;
    padding-left: 1.5rem;
}

.cta-box-pixel {
    margin-top: 2rem;
    background: rgba(24, 119, 242, 0.1);
    border: 2px solid var(--neon-cyan);
    padding: 1.5rem;
    text-align: center;
}

.cta-box-pixel p {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Header Actions (Button + Flags) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-flags {
    display: flex;
    gap: 0.8rem;
}

.retro-flag {
    width: 32px;
    height: 24px;
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 2px 2px 0 #000;
    transition: transform 0.1s;
}

.retro-flag:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--neon-cyan);
}

/* Ecuador Flag (High Contrast Arcade Colors) */
.flag-ec {
    background: linear-gradient(to bottom,
            #FFFF00 0%, #FFFF00 50%,
            /* Arcade Yellow */
            #0000FF 50%, #0000FF 75%,
            /* Arcade Blue */
            #FF0000 75%, #FF0000 100%
            /* Arcade Red */
        );
}

.flag-ec:hover,
.flag-ec:active,
.flag-ec:focus {
    box-shadow: 4px 4px 0 #FFFF00 !important;
    /* Force Neon Yellow */
    border-color: #FFFF00 !important;
    outline: none;
    transform: translate(-2px, -2px);
}

/* USA Flag (Stars & Stripes Retro - High Contrast) */
.flag-us {
    position: relative;
    /* Context for pseudo-element */
    background: repeating-linear-gradient(to bottom, #FF0000 0px, #FF0000 4px, #ffffff 4px, #ffffff 8px);
    box-shadow: 0 0 10px #2962ff, 0 0 20px #2962ff;
    border-color: #2962ff !important;
}

.flag-us:hover,
.flag-us:active {
    box-shadow: 4px 4px 0 #2962ff;
    /* Neon Blue Glow */
    border-color: #2962ff;
    transform: translate(-2px, -2px);
}

.flag-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 55%;
    background-color: #0000FF;
    /* Arcade Blue */
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 4px 4px;
    /* Pixel stars pattern */
    background-position: 1px 1px;
}

/* Active Neon State for Selected Language */
.flag-ec.active-neon {
    box-shadow: 0 0 15px #FFFF00, 0 0 30px #FFFF00, 4px 4px 0 #FFFF00 !important;
    border-color: #fff !important;
    transform: translate(-2px, -2px);
    z-index: 10;
}

.flag-us.active-neon {
    box-shadow:
        0 0 10px #fff,
        0 0 20px #ff0000,
        0 0 40px #0000ff,
        4px 4px 0 #fff !important;
    border-color: #fff !important;
    transform: translate(-2px, -2px);
    z-index: 100;
    /* Increased z-index */
    outline: 2px solid #fff;
    filter: brightness(1.2);
    /* Extra brightness */
}

/* Force override for any potential conflicting hover states */
.retro-flag.active-neon:hover {
    transform: translate(-2px, -2px) !important;
}

/* Footer Layout */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
}

.footer-left {
    flex: 1;
    text-align: left;
}

.footer-email {
    color: #fff;
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: btn-float 3s ease-in-out infinite;
    /* Continuous Floating Effect */
}

/* Neon Blue on Interaction */
.footer-email:hover,
.footer-email:active,
.footer-email:focus {
    color: #00f3ff;
    /* Neon Blue/Cyan */
    text-shadow: 0 0 8px #00f3ff, 0 0 15px #0000ff;
    /* Strong Neon Glow */
    transform: translateY(-2px);
    /* Slight lift on interaction */
}

.copyright {
    width: 100%;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    border-top: 2px solid #333;
    padding-top: 0.5rem;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

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

/* -----------------------------------------------------------
   ARCADE CONTACT FORM STYLES
   ----------------------------------------------------------- */
.arcade-modal-content {
    background: #000;
    width: 90%;
    max-width: 500px;
    padding: 2px;
    /* Inner border spacing */
    position: relative;
    /* Double Border NES Style with SUPER NEON ORANGE Glow */
    box-shadow:
        0 0 0 4px #000,
        0 0 0 8px #FF5F1F,
        0 0 20px #FF5F1F,
        0 0 40px #FF5F1F,
        0 0 80px #FF5F1F;
    /* Intense Outer Glow */
    animation: popup-open 0.4s steps(5) forwards, btn-float 3s ease-in-out 0.4s infinite;
    color: #fff;
}

/* Cancel/Close Button Specific Styles (Global) */
.retro-btn.close-action {
    background-color: #b30000;
    /* Darker red base */
    border-color: #ff0000;
    color: #fff;
    box-shadow: 6px 6px 0 #550000;
    transition: all 0.1s;
    animation: btn-float 1.5s ease-in-out infinite;
}

.retro-btn.close-action:hover {
    background: #550000;
    color: #fff;
    border-color: #ff0000;
    box-shadow: 0 0 10px #ff0000;
}

.retro-btn.close-action:active {
    background-color: #ff0000 !important;
    border-color: #ff0000 !important;
    color: #ffffff !important;
    box-shadow:
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 40px #ff0000,
        0 0 80px #ff0000 !important;
    text-shadow: 0 0 5px #fff !important;
    transform: scale(0.98);
}

.arcade-header {
    background: linear-gradient(90deg, #FF8A00, #FF2E80, #FF00CC);
    /* Warm Neon Gradient */
    padding: 1rem;
    text-align: center;
    border-bottom: 2px solid #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.arcade-header:active {
    filter: brightness(1.2);
    box-shadow: 0 0 30px #FF2E80;
    transform: scale(0.98);
}

.arcade-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    color: #fff;
    line-height: 1.5;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    margin: 0;
}

.arcade-form {
    padding: 2rem;
    background: #12001A;
    /* Even darker purple for deeper depth */
    border: 2px solid #FF00CC;
    /* Neon Magenta Inner Border */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.form-group-pixel {
    margin-bottom: 1.5rem;
}

.form-group-pixel label {
    display: block;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: #fff;
    /* White Text High Contrast */
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    text-shadow: 0 0 5px #FF2E80;
    /* Subtle pink glow for legibility */
}

.pixel-input {
    width: 100%;
    background: #0A0010;
    /* Very dark purple/black */
    border: 2px solid #555;
    color: #fff;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    padding: 0.5rem;
    outline: none;
    box-shadow: inset 4px 4px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.pixel-input:focus {
    border-color: #FF00CC;
    background: #1A0024;
    box-shadow: 0 0 15px #FF2E80, inset 0 0 10px rgba(255, 0, 204, 0.2);
}

.pixel-input::placeholder {
    color: #444;
}

/* Custom Select Arrow Styling is tricky in pure CSS cross-browser, 
   so we stick to simple high-contrast border but ensure font is retro */
select.pixel-input {
    appearance: none;
    border-radius: 0;
    cursor: pointer;
}

.arcade-btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: #00aa00;
    /* Arcade Green */
    border: 4px solid #fff;
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 6px 0 #006600, 0 10px 10px rgba(0, 0, 0, 0.5);
    /* 3D Clicky Button */
    transition: all 0.1s;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.arcade-btn-submit:hover {
    background: #00ff00;
    box-shadow: 0 6px 0 #008800, 0 0 20px #00ff00;
    text-shadow: 2px 2px 0 #000;
}

.arcade-btn-submit:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 #006600;
}

.blink-text {
    animation: blink-fast 0.2s infinite;
}

@keyframes blink-fast {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* Adjust generic footer for this modal */
#retro-contact-popup .modal-footer-pixel {
    background: #111;
    border-top: none;
    padding-bottom: 1.5rem;
    padding-top: 0;
}