:root {
    /* Palette - Professional Reform */
    --bg-dark: #050505;
    --bg-panel: #0a0a12;

    --primary: #5200ff;
    --primary-glow: rgba(82, 0, 255, 0.4);
    --secondary: #00f0ff;
    --secondary-glow: rgba(0, 240, 255, 0.4);

    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;

    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    /* Thinner, subtler borders */

    --success-color: #00ff9d;

    /* Spacing */
    --section-padding: 5rem 2rem;
    --container-width: 1280px;
    --radius-lg: 16px;
    /* Slightly tighter radius for professional feel */
    --radius-md: 12px;
    --radius-sm: 6px;
    --header-height: 90px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', system-ui, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.7;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(82, 0, 255, 0.03), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.02), transparent 40%);
}

/* Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 600;
    /* Lighter weight for modern luxury feel */
    background: linear-gradient(to bottom, #fff, #b0b0b0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    text-align: center;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 300;
    font-size: 1.05rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: linear-gradient(120deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Component: Glass Card (Refined) */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);

    /* Reveal Animation Start State */
    opacity: 0;
    transform: translateY(30px);
}

.glass-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Component: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    /* Square/Tech look */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.95rem;
    /* Increased size */
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    color: #000;
    font-weight: 800;
    /* Extra bold */
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover {
    color: #000;
    /* Keep black for better contrast */
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px var(--primary-glow), 0 0 10px var(--secondary-glow);
    text-shadow: none;
    /* Clean black text */
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: var(--section-padding);
    position: relative;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s;
}

header.scrolled {
    background: rgba(2, 4, 16, 0.85);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 32px;
    border-radius: 15%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.header-socials {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-right: 1rem;
    border-right: 1px solid var(--glass-border);
    padding-right: 1rem;
}

.header-social-link {
    color: var(--text-muted);
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-right: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.lang-selector a {
    text-decoration: none;
    transition: all 0.3s;
}

.lang-selector a.active {
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary-glow);
    cursor: default;
}

.lang-selector a:not(.active) {
    color: var(--text-muted);
}

.lang-selector a:not(.active):hover {
    color: #fff;
}

.lang-selector .divider {
    color: var(--text-muted);
    font-weight: 300;
}

.header-social-link:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

.header-social-link svg {
    width: 20px;
    height: 20px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.hamburger {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
}

/* HERO */
#inicio {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

/* Hero Visual - Orbit Effects */
.orb-1,
.orb-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
    top: -100px;
    left: -100px;
    opacity: 0.4;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-glow);
    bottom: 0;
    right: -100px;
    opacity: 0.2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CSS 3D Sphere Representation */
.ai-sphere {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4a00e0, #000);
    box-shadow: 0 0 50px var(--primary-glow), inset -20px -20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.ring-1 {
    width: 300px;
    height: 300px;
    animation: spin 20s linear infinite;
}

.ring-2 {
    width: 450px;
    height: 450px;
    animation: spin-reverse 25s linear infinite;
    border-color: rgba(0, 240, 255, 0.1);
}

.dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    font-size: 0.8rem;
}

.mouse-icon {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-main);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

/* TECHNOLOGY - BENTO GRID & ARCHITECTURE */
#tecnologia,
#arquitectura {
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-panel));
}

.bento-grid {
    display: grid;
    /* Default to simple stack on mobile */
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas:
            "vision audio motor"
            "core core evolution";
    }

    .area-vision {
        grid-area: vision;
    }

    .area-audio {
        grid-area: audio;
    }

    .area-motor {
        grid-area: motor;
    }

    .area-core {
        grid-area: core;
    }

    .area-vision {
        grid-area: vision;
    }

    .area-audio {
        grid-area: audio;
    }

    .area-motor {
        grid-area: motor;
    }

    .area-core {
        grid-area: core;
    }

    .area-evolution {
        grid-area: evolution;
    }
}

/* Mobile Bento Optimization */
@media (max-width: 899px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "vision audio"
            "core core"
            "motor evolution";
        gap: 1rem;
    }

    .glass-card {
        padding: 1.5rem;
        /* Reduce padding on mobile */
    }

    .bento-card {
        min-height: 220px;
        /* Reduce min-height on mobile */
    }

    /* Assign areas for mobile scope */
    .area-vision {
        grid-area: vision;
    }

    .area-audio {
        grid-area: audio;
    }

    .area-motor {
        grid-area: motor;
    }

    .area-core {
        grid-area: core;
    }

    .area-evolution {
        grid-area: evolution;
    }
}

@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "core"
            "vision"
            "audio"
            "motor"
            "evolution";
    }
}

.bento-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    min-height: 280px;
}

/* Module Tags */
.module-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.7rem;
    color: var(--secondary);
    border: 1px solid var(--secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    /* Tech look */
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 240, 255, 0.05);
}

.area-core {
    background: linear-gradient(145deg, rgba(82, 0, 255, 0.08), rgba(255, 255, 255, 0.01));
    border-color: rgba(82, 0, 255, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    /* pure css upgrade from emoji if possible later, for now emoji is fine */
}

/* Pulse Animation for Core System */
.pulse-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(40px);
    animation: pulse-slow 4s infinite alternate;
    z-index: 1;
    pointer-events: none;
}

@keyframes pulse-slow {
    0% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1.1);
    }
}


/* COMPETITIVE ADVANTAGE */
#ventajas {
    padding: 6rem 0;
    position: relative;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.advantage-card {
    text-align: center;
    border-color: rgba(0, 255, 157, 0.1);
    /* Subtle hint of success color */
}

.advantage-card h3 {
    color: var(--text-muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.big-stat {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--success-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-desc {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.small-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* INDUSTRIAS - NODE DIAGRAM (Minor Tweak) */
#industrias {
    padding: 2rem 0;
    overflow: hidden;
}

.node-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 2rem 0;
    min-height: 500px;
}

.central-node {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--primary), #2a0080);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 0 50px rgba(82, 0, 255, 0.4);
    position: relative;
}

.central-logo {
    width: 60%;
    height: auto;
    filter: brightness(100);
}

.nodes-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: absolute;
    width: 300px;
}

.nodes-left {
    right: 55%;
    align-items: flex-end;
}

.nodes-right {
    left: 55%;
    align-items: flex-start;
}

.industry-node {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
}

.industry-node:hover {
    border-color: var(--secondary);
    background: rgba(0, 240, 255, 0.05);
    transform: scale(1.02);
}

.industry-icon {
    font-size: 1.5rem;
}

/* Connection Lines */
.connection-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    top: 50%;
    z-index: 0;
    width: 100px;
    opacity: 0.5;
}

.nodes-left .connection-line {
    right: -100px;
}

.nodes-right .connection-line {
    left: -100px;
}

/* SLIDER (CASES) */
/* SLIDER (CASES) */
.slider-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    aspect-ratio: 16/7;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
    position: relative;
}

.slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #020410 0%, transparent 80%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.slide-nav {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 3;
    display: flex;
    gap: 1rem;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.nav-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Mobile Slider Adjustments */
@media (max-width: 768px) {
    .slider-wrapper {
        aspect-ratio: auto;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .slide {
        display: block;
        /* Stack vertically */
        height: auto;
        padding: 0;
        background: var(--bg-card);
    }

    .slide-img {
        position: relative;
        height: 250px;
        width: 100%;
    }

    .slide-overlay {
        display: none;
    }

    .slide-content {
        padding: 1.5rem;
        padding-bottom: 5rem;
        /* Space for nav arrows */
    }

    .slide-nav {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* CONTACT FORM & INPUTS (Shared with Cotizacion) */
#contacto {
    position: relative;
}

.contact-container {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form-wrapper,
.form-card {
    flex: 1.5;
    min-width: 300px;
    background: rgba(15, 18, 37, 0.6);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

label,
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

input,
select,
textarea,
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    transition: border 0.3s;
}

input:focus,
select:focus,
textarea:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(82, 0, 255, 0.2);
}

.error-msg,
.error-message {
    color: #ff4d4d;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.has-error .error-msg,
.form-group.error .error-message,
.form-group.has-error .error-message {
    display: block;
}

.form-group.has-error input,
.form-group.error .form-input {
    border-color: #ff4d4d;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    background: #010205;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #0f1225;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

/* UTILS */
.hidden {
    display: none;
}

#back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 999;
}

#back-top.visible {
    opacity: 1;
    pointer-events: all;
    background: linear-gradient(135deg, var(--primary), #3a0ca3);
}

/* ANIMATIONS */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spin-reverse {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(82, 0, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(82, 0, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(82, 0, 255, 0);
    }
}

.central-node-glow {
    animation: pulse-glow 2s infinite;
}

.c-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.c-ring-1 {
    inset: -15px;
    border-color: rgba(0, 240, 255, 0.3);
    border-style: dashed;
    animation: spin 20s linear infinite;
}

.c-ring-2 {
    inset: -30px;
    border-color: rgba(82, 0, 255, 0.2);
    animation: spin-reverse 15s linear infinite;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        order: 2;
        /* Visual below content on tablets if needed, or keep standard */
    }

    .hero-visual {
        order: 1;
        margin-bottom: 0;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-large {
        grid-column: auto;
    }

    .node-container {
        margin: 2rem 0;
        height: auto;
        flex-direction: column;
        gap: 1.5rem;
    }

    .nodes-side {
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .nodes-left,
    .nodes-right {
        align-items: center;
        left: auto;
        right: auto;
    }

    .central-node {
        margin: 2rem 0;
    }

    .connection-line {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 1.5rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(15, 18, 37, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        border-bottom: 1px solid var(--glass-border);
        height: calc(100vh - 80px);
        /* Full height mobile menu */
        justify-content: center;
    }

    .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease-in-out;
    }

    /* Adjust social icons in mobile menu */
    .header-socials {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding-right: 0;
        padding-bottom: 1.5rem;
        margin-right: 0;
        width: 100%;
        justify-content: center;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .contact-container {
        flex-direction: column;
        gap: 2rem;
    }

    .form-card,
    .contact-info .glass-card {
        padding: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
        /* Ensure wrapper matches */
    }

    /* Adjust Hero for mobile */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-visual {
        height: 60px;
        /* Micro visual area */
    }

    .ai-sphere {
        width: 30px;
        height: 30px;
    }

    .ring-1 {
        width: 60px;
        height: 60px;
    }

    .ring-2 {
        width: 90px;
        height: 90px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}