/* ================================================
   EDIL GEOSONDA — Stylesheet
   ================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg: #15171a;
    --bg-elev: #1c1f22;
    --bg-elev-2: #23272b;
    --surface: #2a2f33;
    --border: rgba(255,255,255,0.06);
    --border-strong: rgba(255,255,255,0.13);

    --text: #ececea;
    --text-muted: #a8a8a4;
    --text-soft: #74746f;

    --accent: #0E288D;
    --accent-2: #2846B8;
    --accent-deep: #091C63;
    --accent-soft: rgba(14,40,141,0.14);
    --accent-glow: rgba(14,40,141,0.45);

    --metal-light: #c7cdd1;
    --metal-mid: #8c9298;
    --metal-dark: #4a4f55;

    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;

    --shadow-sm: 0 4px 16px rgba(0,0,0,0.25);
    --shadow: 0 14px 40px rgba(0,0,0,0.35);
    --shadow-lg: 0 30px 80px rgba(0,0,0,0.45);

    --easing: cubic-bezier(.22,.61,.36,1);
    --easing-out: cubic-bezier(.16,1,.3,1);

    --container: 1240px;
    --header-h: 78px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scrollbar-width: none;
    overflow-x: hidden;
    max-width: 100%;
    overscroll-behavior-x: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    background-image:
        radial-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        radial-gradient(rgba(0,0,0,0.18) 1px, transparent 1px);
    background-size: 4px 4px, 7px 7px;
    background-position: 0 0, 2px 2px;
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    -ms-overflow-style: none;
    width: 100%;
    max-width: 100%;
    overscroll-behavior-x: none;
}

.projects-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 99;
    pointer-events: none;
    background: #0d1015;
    box-shadow: 0 14px 34px rgba(0,0,0,0.42);
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a:focus,
button:focus {
    outline: none;
}
a:focus-visible,
button:focus-visible {
    outline: 1px solid rgba(255,255,255,0.45);
    outline-offset: 3px;
}
ul { list-style: none; }

::selection { background: var(--accent); color: var(--bg); }

/* ---------- Container & Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

.section {
    padding: 130px 0;
    position: relative;
}

.site-light {
    --bg: #f4f2eb;
    --bg-elev: #fcfbf7;
    --bg-elev-2: #efebe2;
    --surface: #e6e1d7;
    --border: rgba(24,32,27,0.08);
    --border-strong: rgba(24,32,27,0.16);

    --text: #18201b;
    --text-muted: #5e665f;
    --text-soft: #868c85;

    --accent-soft: rgba(14,40,141,0.12);
    --accent-glow: rgba(14,40,141,0.22);

    --shadow-sm: 0 10px 24px rgba(24,32,27,0.06);
    --shadow: 0 18px 50px rgba(24,32,27,0.08);
    --shadow-lg: 0 36px 90px rgba(24,32,27,0.12);

    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(rgba(24,32,27,0.025) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.7) 1px, transparent 1px),
        linear-gradient(180deg, #f0eee7 0%, #faf8f3 220px, #f4f2eb 100%);
    background-size: 4px 4px, 7px 7px, auto;
    background-position: 0 0, 2px 2px, 0 0;
    position: relative;
    box-shadow: inset 0 22px 28px -24px rgba(0,0,0,0.75);
}
.site-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 22px;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.72) 0, rgba(0,0,0,0.42) 18%, rgba(0,0,0,0.18) 52%, rgba(0,0,0,0) 100%);
    box-shadow: 0 -1px 0 rgba(0,0,0,0.78);
}

.site-light .section-title,
.site-light .features h3,
.site-light .step-content h3,
.site-light .quote-author strong,
.site-light .footer-col h4,
.site-light .contact-list a,
.site-light .contact-list span:not(.contact-label):not(.contact-icon) {
    color: var(--text);
}

.site-light .btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}
.site-light .btn-primary:hover {
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(0,0,0,0.34);
}

.site-light .btn-ghost:hover,
.site-light .service-tag,
.site-light .contact-list li {
    background: rgba(24,32,27,0.035);
}

.site-light .quote-card,
.site-light .service-card,
.site-light .contact-card,
.site-light .footer,
.site-light .stats-strip,
.site-light .marquee,
.site-light .process {
    box-shadow: var(--shadow-sm);
}

.site-light .stat-num {
    color: var(--accent-deep);
}

.site-light .portfolio-content {
    position: relative;
    align-self: flex-start;
    margin-top: auto;
    margin-bottom: 18px;
    overflow: hidden;
    background: transparent;
    padding: 12px 14px 11px;
    max-width: min(78%, 360px);
    border-radius: 0 14px 0 0;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-light .portfolio-overlay {
    padding: 0;
}

.site-light .portfolio-meta {
    padding: 22px 22px 0;
}

.site-light .portfolio-title,
.site-light .portfolio-info {
    color: #ffffff;
    text-shadow: 0 1px 16px rgba(0,0,0,0.28);
}

.site-light .portfolio-title {
    font-size: 1.02rem;
    margin-bottom: 6px;
    line-height: 1.14;
}

.site-light .portfolio-card--featured .portfolio-title,
.site-light .portfolio-card--wide .portfolio-title {
    font-size: 1.22rem;
    margin-bottom: 7px;
}

.site-light .portfolio-info {
    font-size: 0.78rem;
    gap: 8px;
}

.site-light .portfolio-info::before {
    width: 16px;
}

.site-light .portfolio-tag {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.site-light .portfolio-info::before {
    background: rgba(255,255,255,0.8);
}

.site-light .step-num {
    background: rgba(255,255,255,0.92);
    box-shadow: var(--shadow-sm);
}

.site-light .map-card {
    background: radial-gradient(circle at 50% 50%, #f8f6f1 0%, #ece7dc 100%);
    border: 1px solid var(--border);
}

.site-light .map-grid {
    background-image:
        linear-gradient(rgba(24,32,27,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24,32,27,0.06) 1px, transparent 1px);
}

.site-light .map-info {
    background: rgba(255,255,255,0.84);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.section-head {
    max-width: 740px;
    margin: 0 auto 80px;
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 18px;
    position: relative;
    padding-left: 28px;
}
.section-eyebrow::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 18px; height: 1.5px;
    background: var(--accent);
    transform: translateY(-50%);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.6vw, 2.85rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

.section-lead {
    color: var(--text-muted);
    font-size: 1.06rem;
    max-width: 640px;
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    border-radius: 4px;
    transition: transform 0.25s var(--easing), background 0.25s, border-color 0.25s, color 0.25s;
    position: relative;
    white-space: nowrap;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border: 1px solid var(--accent);
    box-shadow: 0 10px 22px -10px rgba(0,0,0,0.85);
}
.btn-primary:hover {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -10px rgba(0,0,0,0.9);
}
.btn-primary svg { transition: transform 0.25s var(--easing); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--text-muted);
    color: var(--text);
}

/* ---------- Preloader ---------- */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transition: opacity 0.6s, visibility 0.6s;
}
.preloader.hidden { opacity: 0; visibility: hidden; }

.preloader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}
.preloader-logo-img {
    height: 82px;
    width: auto;
}
.preloader-bar {
    width: 200px; height: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}
.preloader-bar span {
    display: block;
    width: 30%; height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
    animation: loadbar 1.2s infinite;
}
@keyframes loadbar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    transition: background 0.4s var(--easing);
    background: rgba(13,16,20,0.0);
}
.header.scrolled {
    background: #0d1015;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 28px rgba(0,0,0,0.42), 0 1px 0 rgba(255,255,255,0.04);
}
.header.menu-open {
    background: rgba(13,16,20,0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(14,40,141,0.7), 0 0 4px rgba(14,40,141,1);
    opacity: 0;
    pointer-events: none;
}
.header.scrolled::after {
    animation: header-glow 4.5s ease forwards;
}
@keyframes header-glow {
    0%   { opacity: 0; }
    50%  { opacity: 1; }
    100% { opacity: 0; }
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 101;
}
.logo-img {
    height: 64px;
    width: auto;
    display: block;
    max-width: none;
    transition: opacity 0.3s;
}
.logo:hover .logo-img { opacity: 0.85; }
.footer-brand .logo {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    overflow: visible;
    margin-bottom: 54px;
    z-index: 1;
}
.footer-brand .logo-img {
    height: 82px;
    transform: translateY(-28px) scale(2.1);
    transform-origin: center top;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    display: inline-block;
    padding: 9px 16px;
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid transparent;
    position: relative;
    transition: color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active {
    color: #ffffff;
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 10px 20px -12px rgba(0,0,0,0.8);
}

.mobile-nav {
    display: none;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 101;
}
.header-icon {
    width: 40px; height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.82);
    transition: color 0.3s var(--easing), border-color 0.3s var(--easing), background 0.3s var(--easing);
}
.header-icon svg { width: 17px; height: 17px; }
.header-icon:hover {
    color: #ffffff;
    border-color: var(--accent);
    background: var(--accent-soft);
}
.header-icon--whatsapp {
    color: #25D366;
    border-color: rgba(37,211,102,0.28);
    background: rgba(37,211,102,0.07);
}
.header-icon--whatsapp:hover {
    color: #25D366;
    border-color: rgba(37,211,102,0.5);
    background: rgba(37,211,102,0.14);
}

.menu-toggle {
    display: none;
    width: 40px; height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: rgba(255,255,255,0.82);
    transition:
        color 0.3s var(--easing),
        border-color 0.3s var(--easing),
        background 0.3s var(--easing),
        transform 0.3s var(--easing);
    position: relative;
    z-index: 101;
}
.menu-toggle:hover,
.menu-toggle.open {
    color: #ffffff;
    border-color: var(--accent);
    background: var(--accent-soft);
}
.menu-toggle:active {
    transform: scale(0.94);
}
.menu-toggle span {
    width: 18px; height: 2px;
    background: currentColor;
    border-radius: 2px;
    transform-origin: center;
    transition:
        transform 0.42s var(--easing-out),
        opacity 0.24s var(--easing),
        width 0.3s var(--easing);
}
.menu-toggle.open span {
    width: 20px;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (full-viewport cinematic) ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    padding: calc(var(--header-h) + 40px) 0 100px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: none;
}
.hero::after {
    content: none;
}

.hero-bg {
    position: absolute; inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    filter: saturate(0.85) contrast(1.05) brightness(0.78);
}
@keyframes hero-drift {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg,
            rgba(15,17,20,0.7) 0%,
            rgba(15,17,20,0.6) 40%,
            rgba(15,17,20,0.82) 80%,
            var(--bg) 100%),
        linear-gradient(90deg,
            rgba(15,17,20,0.78) 0%,
            rgba(15,17,20,0.4) 60%,
            rgba(15,17,20,0.55) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}
.hero-content {
    max-width: 1080px;
    margin-left: clamp(24px, 4vw, 64px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.25);
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 500;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.hero-eyebrow-row {
    display: inline-block;
}
.eyebrow .dot {
    width: 8px; height: 8px;
    background: var(--accent-2);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(40,70,184,0.72), 0 0 12px rgba(40,70,184,0.85);
    animation: pulse 3.1s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(40,70,184,0.72), 0 0 12px rgba(40,70,184,0.85); }
    50% { box-shadow: 0 0 0 9px rgba(40,70,184,0), 0 0 16px rgba(40,70,184,0.9); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 4.6vw, 4.4rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.025em;
    margin: 26px 0;
    color: #ffffff;
    text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.hero-title-line {
    display: block;
    white-space: nowrap;
}
.hero-title-accent {
    color: #5E9F4F;
    text-shadow: 0 2px 30px rgba(0,0,0,0.55);
}
.highlight {
    background: linear-gradient(135deg, #96CF85 0%, #7CC068 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.hero-sub {
    color: rgba(255,255,255,0.85);
    font-size: 1.14rem;
    max-width: 580px;
    margin-bottom: 40px;
    text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-scroll {
    min-width: 56px;
    padding: 15px 18px;
    justify-content: center;
}
.scroll-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: scroll-bob 1.6s ease-in-out infinite;
}
.btn-scroll:hover .scroll-icon {
    animation-duration: 1.1s;
}
@keyframes scroll-bob {
    0%, 100% { transform: translateY(-1px); }
    50% { transform: translateY(5px); }
}

/* Stats strip below hero */
.stats-strip {
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.stat {
    text-align: center;
    padding: 0 20px;
    position: relative;
}
.stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 10%; bottom: 10%;
    width: 1px;
    background: var(--border);
}
.stat-num {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--accent-2);
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

/* ---------- Marquee ---------- */
.marquee {
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    max-width: 100%;
    padding: 22px 0;
}
.marquee-inner {
    display: flex;
    width: max-content;
    animation: marquee 32s linear infinite;
}
.marquee-group {
    display: flex;
    gap: 40px;
    padding-right: 40px; /* trailing gap = internal gap → ambele jumătăți au lățime identică */
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
}
.marquee-group span:nth-child(odd) { color: var(--text); }
.marquee-group span:nth-child(even) { color: var(--accent); }
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.features {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.features li {
    display: block;
}
.features li > div {
    text-align: center;
}
.feature-icon {
    flex-shrink: 0;
    width: 34px; height: 34px;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.feature-icon svg { width: 18px; height: 18px; }
.features h3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 1.16rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: var(--font-display);
}
.features p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.about-visual {
    position: relative;
}
.quote-card {
    position: relative;
    background: linear-gradient(160deg, var(--bg-elev-2) 0%, var(--bg-elev) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 38px 36px;
    box-shadow: var(--shadow);
}
.quote-mark {
    width: 36px; height: 36px;
    color: var(--accent);
    margin-bottom: 14px;
    opacity: 0.85;
}
.quote-card p {
    font-size: 1.18rem;
    line-height: 1.55;
    font-family: var(--font-display);
    font-weight: 500;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}
.quote-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}
.avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}
.quote-author strong { display: block; font-size: 0.95rem; }
.quote-author span { font-size: 0.82rem; color: var(--text-soft); }

.badge-card {
    position: absolute;
    bottom: -34px; right: -22px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #ffffff;
    padding: 22px 26px;
    border-radius: var(--radius);
    box-shadow: 0 20px 50px -10px var(--accent-glow);
    transform: rotate(-3deg);
    transition: transform 0.5s var(--easing);
}
.badge-card:hover { transform: rotate(0deg) scale(1.04); }
.badge-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.badge-text {
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 4px;
    max-width: 140px;
    line-height: 1.3;
}

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.service-card {
    position: relative;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 38px 32px 34px;
}
.service-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--accent);
    box-shadow: 0 0 24px rgba(14,40,141,0.4);
    opacity: 0;
    transition: opacity 2s ease;
    pointer-events: none;
}
.service-card:hover::after {
    opacity: 1;
}

.service-num {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-soft);
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.service-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.service-icon svg { width: 28px; height: 28px; }

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.32rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.service-card p {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 22px;
}
.service-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ---------- Process ---------- */
.process {
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
}
.process-timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 5%; right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong) 15%, var(--border-strong) 85%, transparent);
}

.process-step {
    text-align: center;
    position: relative;
}
.step-num {
    width: 64px; height: 64px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--bg-elev);
    border: 2px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    position: relative;
    z-index: 2;
    transition: background 0.4s var(--easing), border-color 0.4s var(--easing), transform 0.4s var(--easing), box-shadow 0.4s var(--easing);
}
.step-num::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: 0 0 18px rgba(14,40,141,0.55), 0 0 5px rgba(14,40,141,0.9);
    opacity: 0;
    pointer-events: none;
}
.step-num::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    box-shadow: 0 0 24px rgba(14,40,141,0.4);
    opacity: 0;
    transition: opacity 2s ease;
    pointer-events: none;
}
.process-step:hover .step-num::after {
    opacity: 1;
}

@keyframes step-ring-glow {
    0%    { opacity: 0; }
    5%    { opacity: 1; }
    15%   { opacity: 1; }
    20%   { opacity: 0; }
    100%  { opacity: 0; }
}
@keyframes step-num-color {
    0%    { color: var(--text); }
    5%    { color: var(--accent); }
    15%   { color: var(--accent); }
    20%   { color: var(--text); }
    100%  { color: var(--text); }
}

/* Animația pornește doar când secțiunea e vizibilă (.process--active adăugat din JS) */
.process--active .step-num       { animation: step-num-color 20s linear infinite; }
.process--active .step-num::before { animation: step-ring-glow 20s linear infinite; }

.process--active .process-step:nth-child(1) .step-num,
.process--active .process-step:nth-child(1) .step-num::before { animation-delay: 0s; }
.process--active .process-step:nth-child(2) .step-num,
.process--active .process-step:nth-child(2) .step-num::before { animation-delay: 4s; }
.process--active .process-step:nth-child(3) .step-num,
.process--active .process-step:nth-child(3) .step-num::before { animation-delay: 8s; }
.process--active .process-step:nth-child(4) .step-num,
.process--active .process-step:nth-child(4) .step-num::before { animation-delay: 12s; }
.process--active .process-step:nth-child(5) .step-num,
.process--active .process-step:nth-child(5) .step-num::before { animation-delay: 16s; }
.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.step-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    padding: 0 6px;
}

/* ---------- Portfolio (Projects) ---------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.projects {
    padding-bottom: 58px;
}

.portfolio-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    isolation: isolate;
    cursor: pointer;
}

.portfolio-card--featured { grid-column: span 2; height: 480px; }
.portfolio-card--standard { height: 480px; }
.portfolio-card--mid      { height: 360px; }
.portfolio-card--wide     { grid-column: span 3; height: 380px; }

.portfolio-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: saturate(0.95) brightness(0.85);
    transition: transform 1.4s var(--easing), filter 0.6s ease;
    will-change: transform;
}

.portfolio-card:hover img {
    transform: scale(1.06);
    filter: saturate(1.05) brightness(0.92);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(11,12,15,0.05) 0%,
        rgba(11,12,15,0.25) 45%,
        rgba(11,12,15,0.78) 85%,
        rgba(11,12,15,0.94) 100%
    );
}

.portfolio-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: var(--radius-lg);
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease;
    box-shadow:
        inset 0 0 0 1px var(--accent),
        0 0 0 1px var(--accent),
        0 0 40px 6px var(--accent-glow);
}

.portfolio-card:hover::after {
    opacity: 1;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.portfolio-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.portfolio-num {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--accent);
    padding: 6px 12px;
    border-radius: 2px;
    letter-spacing: 0.12em;
    line-height: 1;
}

.portfolio-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-2);
    background: rgba(11,12,15,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(14,40,141,0.32);
    padding: 7px 13px;
    border-radius: 999px;
    line-height: 1;
}

.portfolio-content {
    transform: translateY(6px);
    transition: transform 0.55s var(--easing);
}

.portfolio-card:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-more {
    display: flex;
    justify-content: center;
    margin-top: 58px;
}

.projects-page {
    padding-top: var(--header-h);
}

.projects-page-head {
    padding-top: 120px;
}

.portfolio-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: -0.005em;
}

.portfolio-card--featured .portfolio-title,
.portfolio-card--wide .portfolio-title {
    font-size: 1.95rem;
    margin-bottom: 12px;
}

.portfolio-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.72);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.portfolio-info::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

/* ---------- Project Lightbox ---------- */
.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    place-items: center;
    padding: 28px;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.24s;
}
.project-lightbox.open {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}
.project-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6,8,12,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.24s var(--easing);
}
.project-lightbox.open .project-lightbox__backdrop {
    opacity: 1;
}
.project-lightbox__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 1120px);
    display: grid;
    gap: 16px;
    opacity: 0;
    transform: translateY(12px) scale(0.975);
    transition: opacity 0.24s var(--easing), transform 0.24s var(--easing);
}
.project-lightbox.open .project-lightbox__panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.project-lightbox__image-wrap {
    position: relative;
    width: 100%;
    height: min(74vh, 720px);
    background: rgba(0,0,0,0.34);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 32px 90px rgba(0,0,0,0.55);
}
.project-lightbox__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.project-lightbox__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #ffffff;
    font-family: var(--font-display);
}
.project-lightbox__title {
    font-size: 1rem;
    font-weight: 600;
}
.project-lightbox__count {
    color: rgba(255,255,255,0.64);
    font-size: 0.86rem;
}
.project-lightbox__close,
.project-lightbox__nav {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(13,16,21,0.58);
    color: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.project-lightbox__close {
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
}
.project-lightbox__nav {
    top: 50%;
    width: 42px;
    height: 54px;
    border-radius: 6px;
    transform: translateY(-50%);
}
.project-lightbox__prev { left: 14px; }
.project-lightbox__next { right: 14px; }

/* ---------- Contact ---------- */
.contact-card {
    background: linear-gradient(160deg, var(--bg-elev-2) 0%, var(--bg-elev) 100%);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 70px 60px;
    position: relative;
    overflow: hidden;
}
.contact-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
    pointer-events: none;
}

.contact-head,
.contact-layout,
.contact-info,
.contact-visual { position: relative; z-index: 1; }

.contact-head {
    margin-bottom: 54px;
}
.contact-head .section-title,
.contact-head .section-lead {
    max-width: none;
    text-align: left;
}
.contact-head .section-lead {
    margin: 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
    gap: 70px;
    align-items: start;
}

.contact-list {
    display: grid;
    gap: 18px;
    margin-bottom: 36px;
}
.contact-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.4s var(--easing);
}
.contact-list li:hover {
    border-color: rgba(14,40,141,0.25);
    background: var(--accent-soft);
    transform: translateX(4px);
}
.contact-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-label {
    display: block;
    font-size: 0.74rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}
.contact-list a, .contact-list span:not(.contact-label):not(.contact-icon) {
    font-weight: 500;
    color: var(--text);
    font-size: 1rem;
    transition: color 0.3s;
}
.contact-list a:hover { color: var(--accent); }

.contact-actions {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}
.contact-actions .btn {
    padding: 13px 16px;
    font-size: 0.8rem;
}
.contact-whatsapp {
    color: #25D366;
    border-color: rgba(37,211,102,0.45);
}

/* Contact Visual / Map */
.contact-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    z-index: 1;
}
.map-card {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, #1c2433 0%, #0a0e14 100%);
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    overflow: hidden;
}
.map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}
.map-paths {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
}
.map-pin {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.pin-dot {
    display: block;
    width: 14px; height: 14px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(14,40,141,0.2), 0 0 30px var(--accent-glow);
    position: relative;
    z-index: 2;
}
.pin-pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-ring 2.5s ease-out infinite;
}
@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(5); opacity: 0; }
}
.map-info {
    position: absolute;
    top: calc(50% + 28px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(13,16,20,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    padding: 12px 18px;
    border-radius: 12px;
    text-align: center;
    white-space: nowrap;
    z-index: 2;
}
.map-info strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}
.map-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    padding-top: 80px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}
.footer-brand p {
    color: var(--text-muted);
    margin-top: 18px;
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text);
    margin-bottom: 22px;
    font-weight: 600;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a, .footer-col li {
    color: var(--text-muted);
    font-size: 0.93rem;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 26px 0;
    color: var(--text-soft);
    font-size: 0.85rem;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    background: var(--accent);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px -8px var(--accent-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--easing);
    z-index: 50;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -8px var(--accent-glow);
}

/* ---------- Hero slider ---------- */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide .hero-photo {
    animation: hero-drift 24s ease-in-out infinite alternate;
}

/* Slide counter */
.slide-counter {
    position: absolute;
    bottom: 36px;
    left: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.06em;
}
.slide-current {
    color: #ffffff;
    font-size: 1.05rem;
}
.slide-sep {
    width: 44px;
    height: 1px;
    background: rgba(255,255,255,0.3);
    display: block;
}
.slide-total {
    color: rgba(255,255,255,0.38);
    font-size: 0.85rem;
}

/* Slider navigation arrows */
.slider-nav {
    position: absolute;
    bottom: 30px;
    right: 28px;
    display: flex;
    gap: 8px;
    z-index: 2;
}
.slider-btn {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 4px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--easing);
    cursor: pointer;
}
.slider-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

/* ---------- Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--easing-out), transform 0.9s var(--easing-out);
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}
.hero .reveal {
    opacity: 1;
    transform: none;
    transition: none;
}
.reveal-stagger > .reveal { transition-delay: calc(var(--i, 0) * 100ms); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .features { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-card--featured { grid-column: span 2; height: 420px; }
    .portfolio-card--standard { height: 380px; }
    .portfolio-card--mid { height: 320px; }
    .portfolio-card--wide { grid-column: span 2; height: 360px; }
    .process-timeline { grid-template-columns: repeat(3, 1fr); gap: 40px 20px; }
    .process-timeline::before { display: none; }
    .contact-card { padding: 50px 40px; }
    .contact-layout { grid-template-columns: 1fr; gap: 50px; }
    .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    :root { --header-h: 132px; }

    html,
    body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden !important;
        touch-action: pan-y;
    }
    body > *,
    .header,
    .hero,
    .site-light,
    .section,
    .marquee,
    .stats-strip,
    .footer {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .section { padding: 90px 0; }
    .projects { padding-bottom: 40px; }
    .container { padding: 0 22px; }
    .preloader-logo-img { height: 62px; }

    .header {
        background: rgba(13,16,20,0);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: 1px solid transparent;
        transition: background 0.4s var(--easing), border-color 0.4s var(--easing), backdrop-filter 0.4s var(--easing);
    }
    .header.scrolled {
        background: #0d1015;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom-color: rgba(255,255,255,0.06);
        box-shadow: 0 10px 28px rgba(0,0,0,0.42), 0 1px 0 rgba(255,255,255,0.04);
    }
    .header.menu-open {
        background: rgba(13,16,20,0.98);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom-color: rgba(255,255,255,0.08);
    }
    .header-inner {
        position: relative;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .header .logo {
        justify-content: center;
    }
    .header .logo-img {
        height: 58px;
    }
    .header-icons {
        justify-content: center;
        width: 100%;
    }

    .nav-desktop {
        display: none;
    }

    .mobile-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(13,16,20,0.98);
        padding: 28px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transform-origin: top center;
        transition:
            opacity 0.34s var(--easing),
            transform 0.5s var(--easing-out);
        overflow: hidden;
        z-index: 99;
    }
    .mobile-nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .mobile-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        width: min(100%, 360px);
    }
    .mobile-nav li {
        opacity: 0;
        transition: opacity 0.34s var(--easing);
    }
    .mobile-nav.open li {
        opacity: 1;
    }
    .mobile-nav.open li:nth-child(1) { transition-delay: 0.06s; }
    .mobile-nav.open li:nth-child(2) { transition-delay: 0.1s; }
    .mobile-nav.open li:nth-child(3) { transition-delay: 0.14s; }
    .mobile-nav.open li:nth-child(4) { transition-delay: 0.18s; }
    .mobile-nav.open li:nth-child(5) { transition-delay: 0.22s; }
    .mobile-nav.open li:nth-child(6) { transition-delay: 0.26s; }
    .mobile-nav:not(.open) li {
        transition-delay: 0s;
    }
    .mobile-nav .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 220px;
        min-height: 52px;
        font-size: 1.35rem;
        padding: 0 26px;
        font-family: var(--font-display);
        font-weight: 700;
        letter-spacing: -0.01em;
        border-radius: 999px;
        background: transparent;
        border: 1px solid transparent;
        color: rgba(255,255,255,0.72);
    }
    .mobile-nav .nav-link::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 4px;
        width: 0;
        height: 2px;
        background: var(--accent-2);
        border-radius: 999px;
        transform: translateX(-50%);
        transition: width 0.3s var(--easing);
    }
    .mobile-nav .nav-link:hover {
        color: #ffffff;
        background: transparent;
        border-color: transparent;
    }
    .mobile-nav .nav-link.active {
        background: transparent;
        border-color: transparent;
        color: #ffffff;
        box-shadow: none;
    }
    .mobile-nav .nav-link:hover::after,
    .mobile-nav .nav-link.active::after {
        width: 38px;
    }

    .header-icon { width: 36px; height: 36px; }
    .header-icons { gap: 6px; }

    .menu-toggle {
        display: inline-flex;
        width: 36px;
        height: 36px;
    }

    .hero {
        height: 100svh;
        min-height: 0;
        padding: calc(var(--header-h) + 58px) 0 62px;
    }
    .hero-inner {
        display: flex;
        justify-content: center;
    }
    .hero-content {
        margin: 0 auto;
        text-align: center;
    }
    .hero-title {
        font-size: clamp(2.35rem, 11vw, 3.8rem);
    }
    .hero-title-line {
        display: inline;
        white-space: normal;
    }
    .hero-eyebrow-row {
        display: block;
        height: 38px;
    }
    .hero-eyebrow-row .eyebrow {
        transform: translateY(-22px);
    }
    .hero-sub {
        max-width: 340px;
        margin: 0 auto 40px;
        font-size: 1.04rem;
    }
    .hero-actions {
        justify-content: center;
    }
    .slide-counter,
    .slider-nav {
        display: none;
    }
    .site-light { padding-top: 52px; }
    .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
    .stat-num { font-size: 1.8rem; }
    .stats-strip {
        padding: 30px 0;
    }
    .hero-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 42px;
        grid-template-rows: repeat(2, 1fr);
        align-items: stretch;
        justify-content: stretch;
        gap: 8px;
        width: min(100%, 300px);
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions .btn:not(.btn-scroll) {
        justify-content: center;
        min-width: 0;
        width: 100%;
        padding: 12px 14px;
        font-size: 0.76rem;
    }
    .hero-actions .btn-primary svg { display: none; }
    .hero-actions .btn-scroll {
        grid-column: 2;
        grid-row: 1 / 3;
        width: 42px;
        min-width: 42px;
        min-height: 100%;
        padding: 0;
        margin-top: 0;
    }

    .features { grid-template-columns: 1fr; gap: 22px; }
    .about-text > .section-eyebrow,
    .about-text > .section-title,
    .about-text > .section-lead {
        text-align: center;
    }
    .about-text > .section-lead {
        max-width: 330px;
    }
    .about-text > .section-eyebrow {
        display: table;
        margin-left: auto;
        margin-right: auto;
    }
    .services .section-head {
        max-width: 330px;
    }
    .services .section-title,
    .services .section-lead {
        max-width: 330px;
        margin-left: auto;
        margin-right: auto;
    }
    .features {
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }
    .features li > div {
        text-align: left;
    }
    .features h3 {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        width: 100%;
        padding-left: 14px;
        text-align: left;
    }
    .features p {
        margin-left: 58px;
    }
    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 18px; }
    .portfolio-card--featured,
    .portfolio-card--standard,
    .portfolio-card--mid,
    .portfolio-card--wide { grid-column: span 1; height: 320px; }
    .portfolio-overlay { padding: 22px 22px; }
    .portfolio-card--featured .portfolio-title,
    .portfolio-card--wide .portfolio-title { font-size: 1.5rem; }
    .portfolio-more { margin-top: 44px; }
    .projects-page.site-light { padding-top: calc(var(--header-h) + 6px); }
    .projects-page-head { padding-top: 76px; }
    .project-lightbox {
        padding: 18px;
    }
    .project-lightbox__image-wrap {
        height: 68vh;
        border-radius: 8px;
    }
    .project-lightbox__close {
        top: 10px;
        right: 10px;
    }
    .project-lightbox__nav {
        width: 36px;
        height: 48px;
    }
    .project-lightbox__prev { left: 8px; }
    .project-lightbox__next { right: 8px; }
    .project-lightbox__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .process-timeline { grid-template-columns: 1fr; gap: 30px; }
    .step-content { max-width: 360px; margin: 0 auto; }

    .contact-card {
        width: min(100%, 360px);
        margin-left: auto;
        margin-right: auto;
        padding: 34px 18px;
        border-radius: 18px;
    }
    .contact-card::before {
        width: 220px;
        height: 220px;
    }
    .contact-head {
        margin-bottom: 32px;
        text-align: center;
    }
    .contact-head .section-title,
    .contact-head .section-lead {
        text-align: center;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    .contact-layout { gap: 30px; }
    .contact-list {
        gap: 14px;
        margin-bottom: 28px;
    }
    .contact-list li {
        gap: 12px;
        padding: 13px 12px;
        align-items: flex-start;
    }
    .contact-list li > div {
        min-width: 0;
        flex: 1;
    }
    .contact-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    .contact-list a,
    .contact-list span:not(.contact-label):not(.contact-icon) {
        display: inline-block;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        font-size: 0.95rem;
        line-height: 1.35;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        transform: translateY(-30px);
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom .container { justify-content: center; text-align: center; }

    .quote-card { margin-bottom: 40px; }
    .badge-card { right: 14px; bottom: -44px; padding: 18px 22px; }
    .badge-num { font-size: 1.6rem; }

    .marquee-group { font-size: 0.95rem; gap: 28px; padding-right: 28px; }
}

@media (max-width: 480px) {
    :root { --header-h: 126px; }
    .preloader-logo-img { height: 52px; }
    .header-inner { gap: 6px; }
    .header .logo-img { height: 54px; }
    .header-icon { width: 34px; height: 34px; }
    .menu-toggle {
        width: 34px;
        height: 34px;
    }

    .hero-title { font-size: 2.4rem; }
    .site-light { padding-top: 60px; }
    .projects-page.site-light { padding-top: calc(var(--header-h) + 6px); }
    .stats-strip {
        padding: 24px 0;
    }
    .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
    .stat {
        min-width: 0;
        padding: 0 4px;
        overflow: hidden;
    }
    .stat:not(:last-child)::after {
        display: block;
        top: 14%;
        bottom: 14%;
    }
    .stat:not(:last-child) {
        border-bottom: 0;
        padding-bottom: 0;
    }
    .stat-num {
        min-width: 0;
        font-size: 1.2rem;
        letter-spacing: -0.04em;
        white-space: nowrap;
        margin-bottom: 6px;
    }
    .stat-label {
        font-size: 0.56rem;
        letter-spacing: 0.08em;
        line-height: 1.25;
    }
    .hero-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 40px;
        grid-template-rows: repeat(2, 1fr);
        align-items: stretch;
        justify-content: stretch;
        gap: 8px;
        width: min(100%, 300px);
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions .btn:not(.btn-scroll) {
        justify-content: center;
        min-width: 0;
        width: 100%;
        padding: 11px 12px;
        font-size: 0.72rem;
    }
    .hero-actions .btn-primary svg { display: none; }
    .hero-actions .btn-scroll {
        grid-column: 2;
        grid-row: 1 / 3;
        width: 40px;
        min-width: 40px;
        min-height: 100%;
        padding: 0;
        margin-top: 0;
    }
    .footer-inner { grid-template-columns: 1fr; gap: 36px; }
    .footer,
    .footer-brand,
    .footer-col,
    .footer-col ul,
    .footer-bottom,
    .footer-bottom .container {
        text-align: center;
    }
    .footer-brand .logo {
        justify-content: center;
    }
    .footer-col ul {
        justify-items: center;
    }
    .footer-bottom .container {
        justify-content: center;
    }
    .quote-card { padding: 30px 26px; }
    .quote-card p { font-size: 1.05rem; }
    .contact-card {
        width: min(100%, 330px);
        padding: 30px 14px;
    }
    .contact-list li {
        padding: 12px 10px;
    }
    .contact-icon {
        width: 36px;
        height: 36px;
    }
    .contact-list a,
    .contact-list span:not(.contact-label):not(.contact-icon) {
        font-size: 0.9rem;
    }
    .contact-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
    .contact-whatsapp {
        display: inline-flex;
    }
    .contact-actions .btn {
        width: 100%;
        min-width: 0;
        height: 48px;
        padding: 0;
        justify-content: center;
    }
    .contact-actions .btn svg {
        width: 20px;
        height: 20px;
    }
    .contact-actions .contact-whatsapp {
        color: #25D366;
        border-color: rgba(37,211,102,0.45);
    }
    .contact-action-label {
        display: none;
    }
    .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}
