:root {
    --bg: #09090a;          /* Deep Slate Black */
    --bg-sec: #0f0f11;      /* Architectural Charcoal */
    --bg-glass: rgba(15, 15, 17, 0.75);
    --accent: #C08A3E;      /* Brushed Bronze */
    --accent-light: #E5C185;/* Warm Champagne Gold */
    --accent-grad: linear-gradient(135deg, #C08A3E 0%, #E5C185 100%);
    --accent-glow: rgba(192, 138, 62, 0.1);
    --text: #f3f4f6;        /* Travertine White */
    --text-dim: #8a8f9d;     /* Concrete Grey */
    --border: rgba(192, 138, 62, 0.12); /* Bronze Technical Line */
    --border-dim: rgba(255, 255, 255, 0.03);
    --font-main: 'Inter', sans-serif;
    --font-title: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* RESET & EDITORIAL GRID LAYOUT */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-font-smoothing: antialiased; 
}
html { 
    scroll-behavior: smooth; 
    background: var(--bg); 
    font-family: var(--font-main); 
    width: 100%;
    overflow-x: hidden;
}
body { 
    background: var(--bg); 
    color: var(--text); 
    width: 100%;
    overflow-x: hidden; 
    line-height: 1.6; 
}
a { 
    text-decoration: none; 
    color: inherit; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}
ul { 
    list-style: none; 
}
img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

/* MONOLITHIC EDITORIAL BORDERS */
.editorial-grid {
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 100%;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    pointer-events: none;
    z-index: 1;
}

/* TYPOGRAPHY - PRESTIGIOUS & GEOMETRIC */
h1, h2, h3, h4 { 
    font-family: var(--font-title);
    line-height: 1.05; 
    font-weight: 700; 
    letter-spacing: -0.02em;
    color: #ffffff;
}
h1 { 
    font-size: clamp(3.2rem, 8vw, 6rem); 
    font-weight: 800;
    text-transform: uppercase;
}
h2 { 
    font-size: clamp(2.4rem, 5vw, 3.8rem); 
    margin-bottom: 1.5rem; 
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
h3 { 
    font-size: 1.5rem; 
    margin-bottom: 0.8rem; 
}
.mono-text { 
    font-family: var(--font-mono); 
}
.section-label { 
    font-family: var(--font-mono); 
    color: var(--accent); 
    font-size: 0.75rem; 
    letter-spacing: 5px; 
    text-transform: uppercase; 
    margin-bottom: 1.5rem; 
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-label::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--accent);
}

/* GLOBAL SECTIONS */
section { 
    padding: 150px 0; 
    border-bottom: 1px solid var(--border); 
    position: relative; 
}
.container { 
    width: 90%; 
    max-width: 1400px; 
    margin: 0 auto; 
    position: relative;
    z-index: 10;
}

/* COMPACT ARCHITECTURAL FLOATING NAV */
header { 
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%;
    height: 80px; 
    z-index: 2000; 
    display: flex; 
    align-items: center; 
    background: transparent;
    border-bottom: 1px solid transparent;
    padding: 0 5%;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
}
header.scrolled { 
    background: var(--bg-glass);
    height: 70px; 
    border-bottom-color: var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
    padding: 0;
}
.brand-logo { 
    height: 28px; 
    transition: all 0.4s; 
}

/* Scroll Progress indicator */
.scroll-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--accent-grad);
    z-index: 4000;
    transition: width 0.1s ease;
}

.nav-right { 
    display: flex; 
    align-items: center; 
    gap: 40px; 
    z-index: 3000; 
}
.lang-selector { 
    display: flex; 
    gap: 4px; 
}
.lang-btn { 
    background: transparent; 
    border: 1px solid transparent; 
    color: var(--text-dim); 
    padding: 3px 8px; 
    font-family: var(--font-mono); 
    font-size: 0.65rem; 
    border-radius: 2px;
    cursor: pointer; 
    transition: all 0.3s; 
}
.lang-btn:hover { 
    color: var(--text); 
}
.lang-btn.active { 
    border-color: var(--accent); 
    color: var(--accent); 
    background: rgba(192, 138, 62, 0.05); 
}

.menu-trigger { 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    gap: 7px; 
    width: 24px; 
    z-index: 3000; 
}
.menu-trigger span { 
    display: block; 
    width: 100%; 
    height: 1px; 
    background: var(--text); 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}
.menu-trigger.active span:nth-child(1) { 
    transform: translateY(8px) rotate(45deg); 
    background: var(--accent);
}
.menu-trigger.active span:nth-child(2) { 
    opacity: 0; 
}
.menu-trigger.active span:nth-child(3) { 
    transform: translateY(-8px) rotate(-45deg); 
    background: var(--accent);
}

/* OVERLAY NAV (Museum-Grade Backdrop) */
.nav-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh; 
    background: rgba(9, 9, 10, 0.98); 
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1500; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    visibility: hidden; 
    transform: scale(1.05); 
    opacity: 0; 
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s, visibility 0s 0.8s; 
}
.nav-overlay.active { 
    visibility: visible; 
    transform: scale(1); 
    opacity: 1; 
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s, visibility 0s; 
}
.nav-links { 
    text-align: left;
    border-left: 1px solid var(--border);
    padding-left: 50px;
}
.nav-links li { 
    margin: 1.8rem 0; 
    overflow: hidden; 
}
.nav-links a { 
    display: inline-block; 
    font-size: clamp(2.2rem, 5vw, 4.2rem); 
    font-weight: 700; 
    font-family: var(--font-title);
    text-transform: uppercase;
    transform: translateY(100%); 
    opacity: 0; 
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s, color 0.3s, padding-left 0.3s; 
}
.nav-overlay.active .nav-links li:nth-child(1) a { transition-delay: 0.1s; transform: translateY(0); opacity: 1; }
.nav-overlay.active .nav-links li:nth-child(2) a { transition-delay: 0.2s; transform: translateY(0); opacity: 1; }
.nav-overlay.active .nav-links li:nth-child(3) a { transition-delay: 0.3s; transform: translateY(0); opacity: 1; }
.nav-overlay.active .nav-links li:nth-child(4) a { transition-delay: 0.4s; transform: translateY(0); opacity: 1; }
.nav-overlay.active .nav-links li:nth-child(5) a { transition-delay: 0.5s; transform: translateY(0); opacity: 1; }

.nav-links a:hover { 
    color: var(--accent);
    padding-left: 20px;
}

/* HERO SECTION (Monolithic Frame Layout) */
.hero { 
    height: 100vh; 
    position: relative; 
    display: flex; 
    align-items: center; 
    padding: 0; 
    border-bottom: 1px solid var(--border); 
}
.hero-bg { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 0; 
    overflow: hidden; 
}
.slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    opacity: 0; 
    transform: scale(1.05); 
    transition: opacity 2s ease-in-out, transform 10s ease-out; 
    will-change: transform, opacity; 
}
.slide.active { 
    opacity: 0.22; 
    transform: scale(1.01); 
    z-index: 1; 
}
.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(to right, var(--bg) 20%, rgba(9,9,10,0.9) 50%, rgba(9,9,10,0.5) 100%);
    z-index: 2; 
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 10;
    width: 100%;
}
.tech-badge-wrapper {
    margin-bottom: 2rem;
}
.mono-badge {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.7rem;
    border: 1px solid var(--border);
    background: rgba(192, 138, 62, 0.03);
    padding: 5px 14px;
    border-radius: 2px;
    letter-spacing: 1px;
}
.hero-title .light-text { 
    display: block; 
    color: #ffffff;
    font-weight: 300;
}
.hero-title .gradient-text { 
    display: block; 
    color: var(--accent);
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle { 
    font-size: 1.15rem; 
    color: var(--text-dim); 
    max-width: 560px; 
    margin: 2rem 0 3.5rem 0; 
}

/* BRONZE MONUMENTS BUTTONS */
.btn-main { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    background: transparent; 
    color: var(--accent); 
    border: 1px solid var(--accent);
    padding: 1.2rem 2.8rem; 
    font-family: var(--font-mono); 
    font-weight: 500; 
    font-size: 0.8rem; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    border-radius: 2px;
    cursor: pointer; 
    position: relative;
    z-index: 15; /* Prevents SVG drawing overlapping/blocking clicks */
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
}
.btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-grad);
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-main:hover { 
    color: #09090a;
    transform: translateY(-3px); 
}
.btn-main:hover::before {
    transform: translateY(0);
}

/* SVG DRAWING HERO */
.hero-drawing-side {
    display: flex;
    justify-content: center;
    align-items: center;
}
.tech-drawing { 
    width: 100%; 
    max-width: 420px; 
    opacity: 0; 
    transform: scale(0.97);
    pointer-events: none; /* Make decorative SVG click-through so it doesn't block buttons */
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1); 
}
.tech-drawing.active { 
    opacity: 0.7; 
    transform: scale(1);
}
.draw-line { 
    stroke: var(--accent); 
    stroke-width: 0.75; 
    fill: none; 
    stroke-dasharray: 2400; 
    stroke-dashoffset: 2400; 
}
.tech-drawing.active .draw-line { 
    animation: draw 8s cubic-bezier(0.16, 1, 0.3, 1) forwards; 
}

/* STATS BAR GRID */
.stats-bar { 
    padding: 80px 0; 
    background: var(--bg); 
    border-bottom: 1px solid var(--border); 
}
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
    text-align: center; 
}
.stat-num-wrapper {
    display: flex;
    justify-content: center;
    align-items: baseline;
    color: var(--accent);
    margin-bottom: 0.4rem;
}
.stat-symbol {
    font-size: 1.5rem;
    font-family: var(--font-mono);
    margin-right: 3px;
    font-weight: 300;
}
.stat-item h3 { 
    font-size: 4rem; 
    font-family: var(--font-title); 
    line-height: 1; 
    font-weight: 600;
}
.stat-item p { 
    color: var(--text-dim); 
    font-size: 0.8rem; 
    letter-spacing: 3px; 
    text-transform: uppercase; 
}

/* ABOUT SECTION */
.about-grid { 
    display: grid; 
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 100px; 
    align-items: center; 
}
.about-text {
    max-width: 580px;
}
.section-desc { 
    font-size: 1.1rem; 
    color: var(--text-dim); 
    margin-bottom: 3rem; 
}
.software-badges { 
    display: flex; 
    gap: 15px; 
}
.badge { 
    border: 1px solid var(--border); 
    padding: 8px 18px; 
    font-family: var(--font-mono); 
    font-size: 0.7rem; 
    color: var(--accent); 
    background: transparent; 
    border-radius: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    cursor: pointer;
    outline: none;
    user-select: none;
}
.badge:hover {
    background: rgba(192, 138, 62, 0.05);
    border-color: var(--accent-light);
}
.badge.active {
    background: var(--accent);
    color: #09090a;
    border-color: var(--accent);
}
.badge.active .badge-dot {
    background: #09090a;
}
.badge-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.about-graphics {
    display: flex;
    justify-content: center;
}
.blueprint-card {
    width: 100%;
    max-width: 460px;
    height: 320px;
    background: var(--bg-sec);
    border: 1px solid var(--border);
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}
.card-hairlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(var(--border-dim) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-dim) 1px, transparent 1px);
    background-size: 20px 20px;
}
.card-coord {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255,255,255,0.15);
    letter-spacing: 1px;
}
.blueprint-card .card-top-left,
.blueprint-card .card-bottom-right {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 1px;
    z-index: 10;
    transition: opacity 0.3s ease;
}
.blueprint-card .card-top-left {
    top: 20px;
    left: 20px;
}
.blueprint-card .card-bottom-right {
    bottom: 20px;
    right: 20px;
}
.blueprint-card .card-top-left.fade-out,
.blueprint-card .card-bottom-right.fade-out {
    opacity: 0;
}
.blueprint-svg {
    width: 90%;
    height: auto;
    max-height: 240px;
    display: block;
    margin: 20px auto 0 auto;
    opacity: 0.9;
}
.blueprint-card .blueprint-logo {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 320px;
    height: 75%;
    max-height: 240px;
    object-fit: contain;
    z-index: 5;
    pointer-events: none;
    opacity: 0.95;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease, opacity 0.3s ease;
}
.blueprint-card .blueprint-logo.fade-out {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
}
.blueprint-card:hover .blueprint-logo {
    transform: translate(-50%, -52%) scale(1.04);
    filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.6));
}
.blueprint-card:hover .blueprint-logo.fade-out {
    transform: translate(-50%, -52%) scale(0.95);
}
.blueprint-card .blueprint-logo.asel-active {
    transform: translate(-50%, -50%) scale(1.3);
}
.blueprint-card .blueprint-logo.asel-active.fade-out {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
}
.blueprint-card:hover .blueprint-logo.asel-active {
    transform: translate(-50%, -52%) scale(1.35);
}
.blueprint-card:hover .blueprint-logo.asel-active.fade-out {
    transform: translate(-50%, -52%) scale(1.2);
}
.blueprint-card .blueprint-logo.progecad-active {
    transform: translate(-50%, -50%) scale(0.9);
}
.blueprint-card .blueprint-logo.progecad-active.fade-out {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
}
.blueprint-card:hover .blueprint-logo.progecad-active {
    transform: translate(-50%, -52%) scale(0.95);
}
.blueprint-card:hover .blueprint-logo.progecad-active.fade-out {
    transform: translate(-50%, -52%) scale(0.8);
}
.blueprint-card .blueprint-logo.dmelect-active {
    transform: translate(-40%, -65%) rotate(45deg) scale(1.6);
}
.blueprint-card .blueprint-logo.dmelect-active.fade-out {
    transform: translate(-40%, -65%) rotate(45deg) scale(1.5);
    opacity: 0;
}
.blueprint-card:hover .blueprint-logo.dmelect-active {
    transform: translate(-40%, -67%) rotate(45deg) scale(1.65);
}
.blueprint-card:hover .blueprint-logo.dmelect-active.fade-out {
    transform: translate(-40%, -67%) rotate(45deg) scale(1.5);
}

/* PILLARS - ELEGANT MONOLITHS */
.pillars-container { 
    margin-top: 100px; 
}
.pillars-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1px; 
    background: var(--border); /* Creates hairline dividers */
    border: 1px solid var(--border);
}
.pillar-card { 
    background: var(--bg); 
    padding: 50px 40px; 
    position: relative;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
}
.pillar-card:hover { 
    background: var(--bg-sec);
    transform: scale(1.02);
    z-index: 10;
}
.pillar-num {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 400;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pillar-num::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}
.pillar-card h4 { 
    color: #ffffff; 
    margin-bottom: 1.2rem; 
    font-size: 1.3rem; 
    font-weight: 500; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pillar-card p { 
    font-size: 0.9rem; 
    color: var(--text-dim); 
    line-height: 1.7; 
}

/* SERVICES EDITORIAL CARD GRID */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 1px; 
    background: var(--border);
    border: 1px solid var(--border);
    margin-top: 60px; 
}
.service-card { 
    background: var(--bg); 
    padding: 50px 30px; 
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
}
.service-card:hover { 
    background: var(--bg-sec); 
}
.service-tech-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 2rem;
}
.tech-mini-badge {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 1px;
}
.service-card h3 { 
    color: #ffffff; 
    margin-bottom: 1rem; 
    font-family: var(--font-title); 
    font-size: 1.3rem;
    text-transform: uppercase;
}
.service-card p { 
    color: var(--text-dim); 
    font-size: 0.85rem; 
    line-height: 1.7;
}
.card-arrow {
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 1.2rem;
    color: var(--accent);
    opacity: 0.4;
    transition: all 0.3s;
}
.service-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(4px);
    color: var(--accent-light);
}

/* PORTFOLIO ASYMMETRICAL MUSEUM SHOWCASE */
.portfolio-sec {
    background: var(--bg);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}
.project-card {
    background: transparent;
    border: none;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-img-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-sec);
    border: 1px solid var(--border);
}
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) contrast(1.05);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}
.project-card:hover .project-img {
    transform: scale(1.05);
    filter: grayscale(0) contrast(1);
}
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(9, 9, 10, 0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0.9;
}
.project-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.mono-meta {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.project-info {
    padding: 25px 0 0 0;
}
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.8rem;
}
.project-header h3 {
    font-size: 1.15rem;
    color: #ffffff;
    font-family: var(--font-title);
    text-transform: uppercase;
    font-weight: 600;
}
.project-coord {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
}
.project-info p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* CLIENTS CAROUSEL RUNWAY */
.carousel-container { 
    background: var(--bg); 
    padding: 100px 0; 
    border-bottom: 1px solid var(--border); 
}
.carousel-track-wrapper {
    margin-top: 50px;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.carousel-track-wrapper::before,
.carousel-track-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.carousel-track-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
}
.carousel-track-wrapper::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg) 0%, transparent 100%);
}
.track { 
    display: flex; 
    align-items: center; 
    width: max-content; 
    animation: scroll 65s linear infinite; 
}
.track:hover { 
    animation-play-state: paused; 
}
.client-logo { 
    height: 320px; 
    margin: 0 45px; 
    filter: grayscale(1) contrast(1.5) opacity(0.2); 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}
.client-logo:hover { 
    filter: grayscale(0) contrast(1) opacity(1); 
    transform: scale(1.05); 
}

/* CONTACT (MUSEUM REGISTRY LAYOUT) */
.contact-info { 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.contact-header-centered {
    margin-bottom: 2rem;
}
.contact-subtitle {
    font-family: var(--font-main);
    font-size: 1.05rem;
    color: var(--text-dim);
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.info-blocks-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    width: 100%;
    margin: 2rem 0;
}
.info-block {
    flex: 1;
    min-width: 240px;
    max-width: 320px;
}
.info-block h4 { 
    font-family: var(--font-mono); 
    color: var(--accent); 
    margin-bottom: 0.5rem; 
    text-transform: uppercase; 
    font-size: 0.75rem; 
    letter-spacing: 2px;
}
.info-link {
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 500;
}
.info-link:hover {
    color: var(--accent-light);
}
.info-desc { 
    color: var(--text-dim); 
    font-size: 1.05rem;
}
.map-container-wrapper {
    width: 100%;
    max-width: 800px;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.map-toggle-buttons {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: var(--bg-sec);
    padding: 3px;
    gap: 4px;
}
.map-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 6px 14px;
    cursor: pointer;
    border-radius: 1px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.map-toggle-btn:hover {
    color: var(--text);
}
.map-toggle-btn.active {
    background: var(--accent);
    color: #09090a;
    font-weight: 500;
}
.map-display-area {
    width: 100%;
    height: 380px; /* Consistently identical height for both views on desktop */
    position: relative;
    border: 1px solid var(--border);
    border-radius: 1px;
    background: transparent;
    padding: 10px;
    overflow: hidden;
}
.map-view {
    display: none;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.map-view.active {
    display: block;
    opacity: 1;
}
.technical-map {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    padding: 0;
}
.vector-map {
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: block;
}
.real-google-map {
    width: 100%;
    height: 100%;
    filter: grayscale(0.8) contrast(1.1) invert(0.9) hue-rotate(180deg);
    transition: filter 0.4s;
    border-radius: 1px;
    overflow: hidden;
}
.real-google-map:hover {
    filter: grayscale(0) contrast(1) invert(0) hue-rotate(0);
}

/* FOOTER SYSTEM */
footer { 
    padding: 60px 0; 
    border-top: 1px solid var(--border); 
    text-align: center; 
}
.footer-content { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    align-items: center; 
}
.footer-logo {
    opacity: 0.2;
    transition: opacity 0.3s;
}
.footer-logo:hover {
    opacity: 0.5;
}
.footer-links { 
    display: flex; 
    gap: 30px; 
}
.footer-links a { 
    color: var(--text-dim); 
    font-size: 0.8rem; 
}
.footer-links a:hover { 
    color: var(--accent); 
}
.copyright { 
    font-size: 0.75rem; 
    color: #4b4b55; 
}

/* VERCEL-STYLE SPOTLIGHT CARD GLOWS */
.service-card, .project-card, .pillar-card, .blueprint-card {
    position: relative;
    z-index: 10;
}
.service-card::after, .project-card::after, .pillar-card::after, .blueprint-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(300px circle at var(--mouse-x) var(--mouse-y), rgba(192, 138, 62, 0.04), transparent 50%);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.service-card:hover::after, .project-card:hover::after, .pillar-card:hover::after, .blueprint-card:hover::after {
    opacity: 1;
}
.service-card *, .project-card *, .pillar-card *, .blueprint-card * {
    position: relative;
    z-index: 2;
}

/* STAGGERED REVEAL ANIMATIONS */
.fade-in-card {
    opacity: 0 !important;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.fade-in-card.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* RESPONSIVE FLUIDITY SYSTEM */
@media (max-width: 1200px) {
    .contact-grid { gap: 60px; }
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
}
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .about-text { max-width: 100%; display: flex; flex-direction: column; align-items: center; }
    .software-badges { justify-content: center; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: left; }
    .hero-drawing-side { height: 350px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .pillars-grid { grid-template-columns: 1fr; gap: 20px; background: transparent; border: none; }
    .client-logo { height: 160px; margin: 0 30px; }
}
@media (max-width: 768px) {
    section {
        padding: 60px 0 !important;
    }
    #contacto {
        padding-bottom: 35px !important;
    }
    .blueprint-card .card-top-left,
    .blueprint-card .card-bottom-right,
    .blueprint-card .card-coord {
        font-size: 0.5rem;
    }
    .nav-right { gap: 15px; }
    .lang-selector { gap: 2px; }
    .lang-btn { padding: 2px 5px; font-size: 0.6rem; }
    .brand-logo { height: 22px; }
    .hero-subtitle { margin-bottom: 2rem; }
    .btn-main { width: 100%; text-align: center; }
    .hero-grid { text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-subtitle { text-align: center; }
    .hero-drawing-side { height: 250px; }
    .stats-bar { padding: 40px 0 !important; }
    .stats-grid { grid-template-columns: 1fr; gap: 30px; }
    .stat-item h3 { font-size: 3rem !important; }
    
    .pillar-card { padding: 30px 20px !important; }
    .pillars-grid { grid-template-columns: 1fr; gap: 20px; background: transparent; border: none; }
    
    .service-card { padding: 30px 20px !important; }
    .services-grid { grid-template-columns: 1fr; gap: 20px; background: transparent; border: none; }
    
    .portfolio-grid { grid-template-columns: 1fr; gap: 30px; }
    
    /* Client Logos: Responsive heights for tablet and mobile sizes (increased by 60% + 30%) */
    .client-logo { height: 250px; margin: 0 20px; }
    
    .info-blocks-wrapper {
        flex-direction: column !important;
        gap: 30px !important;
        align-items: center !important;
        margin: 1.5rem 0 !important;
    }
    .info-block {
        width: 100% !important;
        text-align: center !important;
    }
    .info-block h4 {
        margin-bottom: 0.2rem !important;
    }
    .info-link {
        font-size: 1.15rem !important;
    }
    .map-container-wrapper {
        margin-top: 1rem !important;
    }
    .map-display-area {
        height: 250px !important; /* Unified identical height for both views on mobile */
        padding: 5px !important;
    }
}

/* Extra small devices (phones, under 480px) */
@media (max-width: 480px) {
    .client-logo { height: 166px; margin: 0 15px; }
    .section-title { font-size: 2rem !important; }
    .hero-title { font-size: 2.5rem !important; }
    .stat-item h3 { font-size: 2.5rem !important; }
    .info-link { font-size: 1rem !important; }
}

/* ANIMATION KEYFRAMES */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* FACEBOOK FLOATING LINK SYSTEM */
.facebook-link-container {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.facebook-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-sec);
    color: var(--text-dim);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    text-decoration: none;
}
.facebook-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.facebook-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(192, 138, 62, 0.05);
    box-shadow: 0 8px 24px var(--accent-glow);
    transform: translateY(-3px);
}
.facebook-link:hover .facebook-icon {
    transform: scale(1.15);
}

/* CONTACT SECTION BOTTOM PADDING REDUCTION */
#contacto {
    padding-bottom: 50px;
}
