:root {
    --bg-color: #050505;
    --text-color: #ededed;
    --accent: #2a2a2a;
    --muted: #888888;
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Syne', sans-serif;

    /* Spacing & Sizes */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 5rem;
    --space-xl: 10rem;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-p: 1.1rem;
    --text-h3: 1.5rem;
    --text-h2: clamp(2rem, 4vw, 3rem);
    --text-h1: clamp(3rem, 8vw, 7rem);
    --text-subtitle: 1.25rem;
    --text-eyebrow: 0.75rem;
    --text-small: 0.875rem;
    --text-lg: 1.5rem;
    --text-xl: clamp(2rem, 4vw, 3rem);
    --text-huge: clamp(3rem, 8vw, 7rem);

    --container-width: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--bg-color);
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
    cursor: none;
}


/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="1.5" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.03"/%3E%3C/svg%3E');
}


/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.1s ease-out, width 0.3s, height 0.3s;
}

.cursor-hover .cursor-dot {
    background-color: transparent;
}

.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    border-color: transparent;
}


/* Typography */
h1,
h2,
h3,
h4,
.huge-title,
.logo {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.0em;
}

.split-text {
    font-size: var(--text-h1);
    text-transform: uppercase;
}

.subtitle {
    font-size: var(--text-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 400;
    color: var(--muted);
    margin-top: var(--space-md);
}

.section-title {
    font-size: var(--text-h2);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.text-large {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--text-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: var(--space-md);
    text-align: center;
}


/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5vw;
    width: 100%;
    min-width: 0;
}

.panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: var(--space-xl) 0;
}

.content-wrapper {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.content-wrapper.align-right {
    margin-left: auto;
}

.text-center {
    text-align: center;
}


/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5vw;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}



img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* Hero */
.hero {
    align-items: center;
    text-align: center;
    padding-top: 15vh;
}

.hero-content {
    position: relative;
    z-index: 3;
    mix-blend-mode: difference;
}

.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

#hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: grayscale(100%) contrast(1.2) brightness(0.4);
}

#hero-tracking-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.scroll-indicator {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-text {
    font-size: var(--text-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: #fff;
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(400%);
    }
}

/* Hero CTA Button */
.hero-cta {
    margin-top: var(--space-lg);
}

.btn-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    text-decoration: none;
    text-transform: uppercase;
    font-size: var(--text-eyebrow);
    letter-spacing: 0.2em;
    transition: color 0.3s;
}

.btn-scroll:hover {
    color: #fff;
}

.btn-scroll svg {
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}


/* Portfolio */
.portfolio-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-lg);
    gap: 1.5rem;
}

.portfolio-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.portfolio-search input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem 0;
    font-family: var(--font-sans);
    font-size: var(--text-small);
    width: 250px;
    transition: border-color 0.3s;
}

.portfolio-search input:focus {
    outline: none;
    border-color: #fff;
}

.portfolio-filters {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--muted);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: var(--text-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: none;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    transition: opacity 0.3s;
}

.port-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.port-img-wrapper {
    width: 100%;
    height: 100%;
}

.port-item img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    filter: grayscale(0%);
    transition: filter 0.5s ease, transform 0.8s ease;
}

.port-item:hover img {
    filter: grayscale(100%);
    transform: scale(1.05);
}

.port-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 1.5rem;
}

.port-item:hover .port-info {
    opacity: 1;
}

.port-info h3 {
    font-size: var(--text-h3);
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.port-item:hover .port-info h3 {
    transform: translateY(0);
}

.port-info p {
    color: var(--text-color);
    font-size: var(--text-small);
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.port-item:hover .port-info p {
    transform: translateY(0);
}


/* Testimonials */
.testim-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}







.testim-card .author {
    font-weight: 600;
    font-size: var(--text-small);
    color: var(--muted);
}


/* Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.metric .number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
}

.metric .label {
    text-transform: uppercase;
    font-size: var(--text-eyebrow);
    letter-spacing: 0.1em;
    color: var(--muted);
}


/* Radar Map Styles */
.radar-map-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 2/1;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

.radar-scan {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 400%;
    transform-origin: center;
    background: conic-gradient(from 0deg, transparent 66.66%, rgba(255, 255, 255, 0.05) 100%);
    animation: radar-spin 4s linear infinite;
    pointer-events: none;
    border-radius: 50%;
    z-index: 2;
}

@keyframes radar-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.world-map-svg {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.15;
    pointer-events: none;
    filter: invert(1);
}

.map-relative-wrapper {
    position: relative;
    width: 90%;
    margin: 0 auto;
    z-index: 3;
    display: block;
}

.map-node {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    cursor: none;
    z-index: 4;
}

.map-node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: node-pulse 2s ease-out infinite;
    pointer-events: none;
}

.tooltip-point:hover::after {
    content: attr(data-location);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: 6px 10px;
    font-size: 10px;
    font-family: var(--font-sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    border-radius: 4px;
    pointer-events: none;
    z-index: 10;
}

@keyframes node-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(5);
        opacity: 0;
    }
}


/* Services */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5vw;
}

.sticky-col {
    position: sticky;
    top: 30vh;
    height: fit-content;
}

.side-placeholder img {
    width: 100%;
    max-width: 300px;
    margin-top: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    filter: grayscale(100%);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}



.sv-number {
    font-family: var(--font-display);
    font-size: var(--text-small);
    color: var(--muted);
    display: block;
    margin-bottom: 0.5rem;
}



.service-item p {
    color: var(--muted);
}

.service-item:hover h3 {
    transform: translateX(10px);
}



/* Refactored Service Item Layout */














/* Differential */
.diff-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: var(--space-lg);
}

.diff-item {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.5s ease, background 0.5s ease;
}

.diff-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.diff-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto var(--space-md) auto;
    position: relative;
}

.diff-item:hover .diff-icon {
    border-color: #fff;
}

.diff-item h4 {
    font-size: var(--text-p);
    margin-bottom: 1rem;
}

.diff-item p {
    color: var(--muted);
    font-size: var(--text-small);
}


/* --- Icons for focus areas --- */
.focus-icon {
    width: 28px;
    height: 28px;
    margin: 1rem 0;
    position: relative;
    opacity: 0.8;
}

/* 1. Circle with dot */
.focus-icon-1 {
    border: 1px solid #fff;
    border-radius: 50%;
}

.focus-icon-1::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

/* 2. Abstract Square */
.focus-icon-2 {
    border: 1px solid #fff;
    transform: rotate(45deg);
}

/* 3. Triangle */
.focus-icon-3 {
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 24px solid #fff;
    opacity: 0.5;
}

/* 4. Film frame minimal */
.focus-icon-4 {
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.focus-icon-4::before,
.focus-icon-4::after {
    content: '';
    width: 4px;
    height: 100%;
    border-left: 2px solid #fff;
    border-right: 2px solid #fff;
}

/* 5. 3D Cube illusion */
.focus-icon-5 {
    border: 1px solid #fff;
}

.focus-icon-5::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: -5px;
    bottom: -5px;
    border: 1px solid #fff;
}

/* 6. Execution Arrow */
.focus-icon-6 {
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    width: 20px;
    height: 20px;
}

.focus-icon-6::after {
    content: '';
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 30px;
    height: 2px;
    background: #fff;
    transform-origin: right;
    transform: rotate(45deg);
}

/* 7. Network / Nodes */
.focus-icon-7 {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    width: 20px;
    align-content: center;
}

.focus-icon-7::before,
.focus-icon-7::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

/* 8. Conversion Target */
.focus-icon-8 {
    border: 1px dashed #fff;
    border-radius: 50%;
    animation: spin 4s linear infinite;
}

.focus-icon-8::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

/* 9. Sound Waves */
.focus-icon-9 {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
    width: 24px;
}

.focus-icon-9::before {
    content: '';
    width: 4px;
    height: 60%;
    background: #fff;
}

.focus-icon-9::after {
    content: '';
    width: 4px;
    height: 100%;
    background: #fff;
    margin-right: 3px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Celestial Body (Background) */
.celestial-body {
    position: absolute;
    bottom: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(160, 160, 160, 0.15) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: auto;
    height: auto;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: none;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(4px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%) translateY(-5px);
}


/* Testimonials Stars */







.testim-card {
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.testim-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}

.quote-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.1);
    height: 30px;
    line-height: 0.8;
}

.testim-card .quote {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #a0a0a0;
    font-style: italic;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testim-card .author {
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #fff;
    text-transform: uppercase;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.stars svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
    opacity: 0.8;
}

.testim-avatar {
    margin: 0 auto 1rem auto !important;
}

@media (max-width: 900px) {

    /* Mobile Portfolio Overrides */
    .port-item img {
        filter: grayscale(0%) !important;
    }

    .port-item:hover img {
        transform: scale(1) !important;
    }

    .port-info {
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.1) !important;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        top: auto !important;
        bottom: 0 !important;
        height: auto !important;
        padding: 0.75rem !important;
        text-align: left !important;
    }

    .port-info h3,
    .port-info p {
        transform: translateY(0) !important;
        margin-bottom: 0.1rem !important;
    }

    .port-info h3 {
        font-size: var(--text-small) !important;
    }

    .port-info p {
        font-size: 0.7rem !important;
    }

    /* Disable Custom Cursor in Mobile */
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }
}

/* CTA */
.huge-title {
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 0.9;
    margin-bottom: var(--space-lg);
}

.cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.cta-text {
    font-size: var(--text-h3);
    color: var(--muted);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: var(--text-eyebrow);
    position: relative;
    overflow: hidden;
    transition: color 0.3s;
}

.btn-primary span {
    position: relative;
    z-index: 2;
}

.btn-primary .btn-bg {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 50%;
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover span {
    color: #000;
}

.btn-primary:hover .btn-bg {
    top: 0;
    border-radius: 0;
}


/* Footer */
.footer {
    position: relative;
    overflow: hidden;
    padding: var(--space-xl) 5vw var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.relative-z {
    position: relative;
    z-index: 2;
}

.footer-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: var(--text-eyebrow);
    letter-spacing: 0.1em;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: var(--text-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}



/* Environmental Volumetric GIFs */
@keyframes float-large {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(15px, -10px) scale(0.98) rotate(2deg);
    }

    66% {
        transform: translate(-8px, 12px) scale(1.02) rotate(-1deg);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
}

.env-gif {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: float-large 14s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
    will-change: transform;
}

.meta-far {
    width: 200px;
    height: 200px;
    filter: blur(15px);
    opacity: 0.3;
}

.meta-mid {
    width: 350px;
    height: 350px;
    filter: blur(8px);
    opacity: 0.5;
}

.meta-near {
    width: 500px;
    height: 500px;
    filter: blur(3px);
    opacity: 0.8;
}

/* Service Info GIFs */



/* Move sv-number margin since parent handles layout now */


/* Make sections overflow hidden to prevent huge metaballs making scrollbars */
.panel {
    overflow: hidden;
}

/* Animations & Shapes */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.05;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: #ffffff;
    top: 20%;
    right: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: #ffffff;
    bottom: 10%;
    left: -200px;
}

.shape-3 {
    width: 800px;
    height: 800px;
    background: #ffffff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.03;
}



/* Refactored Service Item Layout */
.service-item {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

@keyframes float-small {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }

    33% {
        transform: translateY(-3px) rotate(1deg) scale(0.97);
    }

    66% {
        transform: translateY(2px) rotate(-1deg) scale(1.01);
    }

    100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
}

.service-img-col {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    /* center the image vertically if needed, or stretch */
}

.service-img-col .service-gif {
    height: 100%;
    max-height: 90px;
    /* Optional cap to prevent massive scaling */
    width: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    mix-blend-mode: screen;
    animation: float-small 6s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
    will-change: transform;
}

.service-item:nth-child(1) .service-gif {
    animation-duration: 7s;
}

.service-item:nth-child(2) .service-gif {
    animation-duration: 9.5s;
    animation-delay: -2s;
}

.service-item:nth-child(3) .service-gif {
    animation-duration: 8s;
    animation-delay: -4s;
}

.reversed-list .service-item {
    flex-direction: row-reverse;
}

.reversed-list .service-text-col {
    text-align: left;
}

.service-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.service-text-col .sv-number {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    font-size: var(--text-small);
    color: var(--muted);
}

.service-text-col h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.service-text-col p {
    margin-bottom: 0;
}

/* Responsiveness */
@media (max-width: 900px) {

    html,
    body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100%;
        position: relative;
    }

    .scroll-container {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100%;
    }

    .container {
        padding: 0 3vw;
    }

    .panel {
        padding: var(--space-md) 0;
    }

    .footer {
        padding-top: var(--space-md);
        padding-bottom: var(--space-md);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .split-text {
        font-size: clamp(2rem, 8vw, 3rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .portfolio-grid .port-info {
        padding: 0.5rem;
        background: rgba(0, 0, 0, 0.1) !important;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .portfolio-grid .port-info h3 {
        font-size: var(--text-small);
        margin-bottom: 0.2rem;
    }

    .portfolio-grid .port-info p {
        font-size: 0.65rem;
    }

    .portfolio-header {
        flex-direction: column;
        align-items: center;
    }

    .portfolio-controls {
        align-items: center;
    }

    .sticky-col {
        position: relative;
        top: 0;
        margin-bottom: var(--space-md);
    }

    .diff-wrapper {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .testim-grid {
        grid-template-columns: 1fr;
    }

    .radar-map-container {
        max-width: none;
        width: calc(100% + 10vw);
        margin-left: -5vw;
        border-radius: 0;
        border-left: none;
        border-right: none;
        overflow: hidden;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
        padding-bottom: 80px;
    }

    .side-placeholder img {
        display: none;
    }

    /* Mobile Portfolio Overrides */
    .port-item img {
        filter: grayscale(0%) !important;
        transform: scale(1) !important;
    }

    .port-item:hover img {
        transform: scale(1) !important;
    }

    .port-info {
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.1) !important;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        top: auto !important;
        bottom: 0 !important;
        height: 54px !important;
        padding: 0.5rem !important;
        text-align: left !important;
        justify-content: center !important;
        align-items: flex-start !important;
    }

    .port-info h3,
    .port-info p {
        transform: translateY(0) !important;
        margin-bottom: 0.1rem !important;
    }

    .port-info h3 {
        font-size: var(--text-small) !important;
        font-size: 0.6rem !important;
    }

    .port-info p {
        font-size: 0.6rem !important;
    }

    /* Disable Custom Cursor in Mobile */
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }

    /* Environmental Metaballs Mobile Scaling */
    .meta-far {
        width: 120px !important;
        height: 120px !important;
        filter: blur(8px) !important;
        opacity: 0.15 !important;
    }

    .meta-mid {
        width: 180px !important;
        height: 180px !important;
        filter: blur(5px) !important;
        opacity: 0.25 !important;
    }

    .meta-near {
        width: 250px !important;
        height: 250px !important;
        filter: blur(3px) !important;
        opacity: 0.4 !important;
    }
}

/* ---- New Adjustments ---- */

/* 2. Reduced Metaballs Desktop */
@media (min-width: 901px) {
    .meta-reduced {
        transform: scale(0.66) !important;
        transform-origin: center center;
    }
}

/* 3. Testimonial Carousel Mobile */
.testim-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.testim-grid-container {
    overflow: hidden;
    width: 100%;
}

.testim-nav-btn {
    display: none;
    /* hidden on desktop */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s;
}

.testim-nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.testim-prev {
    left: 0px;
}

.testim-next {
    right: 0px;
}

@media (max-width: 900px) {
    .testim-nav-btn {
        display: flex;
    }

    .testim-grid {
        display: flex !important;
        flex-wrap: nowrap;
        transition: transform 0.4s ease;
        gap: 0 !important;
        width: 100%;
    }

    .testim-card {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        box-sizing: border-box;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .focus-areas {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .focus-areas .services-grid {
        margin-bottom: 1.5rem !important;
    }
}

/* 4. Collapsible Mobile Sections */
.accordion-icon {
    display: none;
}

@media (max-width: 900px) {
    .accordion-icon {
        display: inline-block;
        margin-left: 0.5rem;
        vertical-align: middle;
        transition: transform 0.3s ease;
    }

    .service-col {
        cursor: pointer;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 0 !important;
    }

    .service-col .section-title {
        margin-bottom: 0 !important;
    }

    .service-col.active .accordion-icon {
        transform: rotate(180deg);
    }

    .service-col.active {
        border-bottom: none;
    }

    .service-list {
        display: none;
        padding-top: 1rem;
    }

    .service-col.active+.service-list {
        display: block;
        animation: fadeIn 0.4s ease forwards;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 5. Compact Spacing between number and upper divider */
.service-item {
    padding-bottom: 1.5rem !important;
    /* Reduced from 2rem equivalent */
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* No double border at end or adjust as needed */
.service-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .service-item {
        padding-bottom: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
}

/* 6 & 7. CTA Buttons */
.cta-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 1.5rem;
    margin-top: 2rem;
}

.solid-cta-btn {
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: var(--text-eyebrow);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.solid-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.solid-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid #25D366;
    color: #25D366;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: var(--text-sm);
    transition: all 0.3s ease;
}

.solid-wa-btn:hover {
    background: #25D366;
    color: #fff;
}

/* Hamburger Menu & Overlay Overlay */
.menu-btn {
    cursor: pointer;
    width: 48px;
    height: 48px;
    position: relative;
    z-index: 102;
    /* Above the overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: -8px;
    /* Offset the extra padding */
}

.menu-btn .line {
    position: absolute;
    width: 32px;
    height: 2px;
    background-color: #fff;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
}

.menu-btn .line:nth-child(1) {
    transform: translateY(-6px);
}

.menu-btn .line:nth-child(2) {
    transform: translateY(6px);
}

.menu-btn.active .line:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.menu-btn.active .line:nth-child(2) {
    transform: translateY(0) rotate(-45deg);
}

/* Nav links overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.menu-nav-links {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
}

.menu-link {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), color 0.3s;
}

.menu-link:hover {
    color: #888;
}

.menu-overlay.active .menu-link {
    opacity: 1;
    transform: translateY(0);
}

.menu-overlay.active .menu-link:nth-child(1) {
    transition-delay: 0.1s;
}

.menu-overlay.active .menu-link:nth-child(2) {
    transition-delay: 0.15s;
}

.menu-overlay.active .menu-link:nth-child(3) {
    transition-delay: 0.2s;
}

.menu-overlay.active .menu-link:nth-child(4) {
    transition-delay: 0.25s;
}

.menu-overlay.active .menu-link:nth-child(5) {
    transition-delay: 0.3s;
}

/* Mobile Navbar rules */
@media (max-width: 900px) {
    .navbar {
        position: fixed !important;
        justify-content: flex-end !important;
    }

    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .subtitle br {
        display: block !important;
    }
}

@media (min-width: 901px) {
    .subtitle br {
        display: none !important;
    }
}

/* Custom Footer Layout Updates */
.footer-links-custom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.footer-links-custom .footer-social-links,
.footer-links-custom .footer-legal-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-links-custom .footer-legal-links {
    font-size: 0.85em;
    opacity: 0.7;
}

.footer-bottom-custom {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-custom .footer-tagline,
.footer-bottom-custom .footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-bottom-custom .footer-tagline p,
.footer-bottom-custom .footer-contact-info p,
.footer-bottom-custom .footer-contact-info a {
    color: var(--muted);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {

    .footer-links-custom,
    .footer-links-custom .footer-social-links,
    .footer-links-custom .footer-legal-links {
        align-items: center;
        justify-content: center;
    }

    .footer-bottom-custom {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-bottom-custom .footer-tagline,
    .footer-bottom-custom .footer-contact-info {
        align-items: center;
    }
}

/* ---- Optimizacion Movil y Ajustes ---- */

/* 1) HERO (HOME) */
@media (max-width: 900px) {
    .panel.hero {
        padding-top: 0 !important;
        justify-content: center !important;
        min-height: 100vh;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    .hero-content h1, .hero-content .subtitle {
        text-align: center;
    }
    .hero-cta {
        margin-top: calc(var(--space-lg) + 3.5vh) !important;
    }
}

/* 2) RETICULA PROYECTOS - Quitar texto en movil */
@media (max-width: 900px) {
    .portfolio-grid .port-info {
        display: none !important;
    }
}

/* 3) FILTRO - Mas sutil en escritorio y movil */
.portfolio-search input {
    font-size: 0.8rem !important;
    padding: 0.3rem 0 !important;
    width: 200px !important;
}
.filter-btn {
    padding: 0.3rem 0.8rem !important;
    font-size: 0.65rem !important;
}
@media (max-width: 900px) {
    .portfolio-controls {
        transform: scale(0.95);
    }
}

/* 4) TESTIMONIOS - Ajustes en Movil */
@media (max-width: 900px) {
    .testim-card {
        min-height: 280px !important;
        padding: 4rem 1.5rem !important;
    }
    .testim-card p {
        font-size: 1.15rem !important;
        line-height: 1.5 !important;
        width: 90% !important;
        margin: 0 auto !important;
    }
}

/* 5) ESCRIBENOS - Centrado en movil y escalar fuente */
@media (max-width: 900px) {
    #cta .huge-title {
        font-size: clamp(2rem, 11vw, 3.5rem) !important;
        text-align: center;
        width: 100%;
        display: block;
    }
    #cta .subtitle {
        text-align: center;
        margin: 1rem auto;
    }
}



/* Boto Ver mas en behance */
.btn-more-behance {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-color);
    opacity: 0.6;
    text-decoration: none;
    text-transform: uppercase;
    font-size: var(--text-eyebrow);
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.8rem 1.8rem;
}
.btn-more-behance svg {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.btn-more-behance:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}
.btn-more-behance:hover svg {
    transform: translateX(5px);
}

