/* ============================================
   KG Solutions Ltd. — Dark Theme
   Grey bg + Yellow-Green (#BAFF39) accent
   ============================================ */

@font-face {
    font-family: 'Grift';
    src: url('fonts/grift-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Grift';
    src: url('fonts/grift-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Grift';
    src: url('fonts/grift-semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Grift';
    src: url('fonts/grift-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --bg: #6E6E6E;
    --bg-off: #5e5e5e;
    --bg-dark: #4a4a4a;
    --blue-deep: #4a4a4a;
    --blue-dark: #3a3a3a;
    --blue-mid: #BAFF39;
    --blue-bright: #BAFF39;
    --gold: #BAFF39;
    --gold-light: #c8ff5a;
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(255, 255, 255, 0.25);

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Literata', Georgia, serif;

    --nav-height: 80px;
    --container-width: 1200px;
    --section-padding: 120px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (pointer: fine) {
    html { cursor: none; }
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 60%, #7a7a7a 0%, #5e5e5e 40%, #4a4a4a 75%, #3a3a3a 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.preloader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Title with subtle fade-in animation */
.loader_title {
    font-family: 'Grift', var(--font-sans);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: #BAFF39;
    letter-spacing: 0.03em;
    display: flex;
    gap: 0.3em;
    margin-bottom: clamp(4rem, 10vh, 8rem);
}

.loader_word {
    display: inline-flex;
    overflow: hidden;
}

.loader_char {
    display: inline-block;
    position: relative;
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
}

/* Visible state — gentle fade up with deblur */
.loader_char.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Counter number — large, centered like Spylt */
.loader_bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: clamp(280px, 40vw, 500px);
}

.loader_number {
    font-family: 'Grift', var(--font-sans);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    color: #BAFF39;
    letter-spacing: 0.08em;
}

.loader_bar {
    width: 100%;
    height: 1px;
    background: rgba(186, 255, 57, 0.2);
    overflow: hidden;
}

.loader_progress {
    width: 0%;
    height: 100%;
    background: #BAFF39;
}

/* Hide page content until preloader finishes */
body.loading > *:not(.preloader) {
    opacity: 0;
}

body.loaded > *:not(.preloader) {
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* Custom cursor */
.custom-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(186, 255, 57, 0.5);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
    mix-blend-mode: normal;
}

.custom-cursor.hovering {
    width: 44px;
    height: 44px;
    background: rgba(186, 255, 57, 0.3);
}

@media (pointer: fine) {
    a, button, input, textarea, .nav-toggle { cursor: none; }
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, opacity 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--blue-mid);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Scroll Reveal Animations --- */

/* Everything starts hidden */
.scroll-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide from left */
.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right */
.scroll-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up */
.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Keep old fade-up for hero text reveal compat */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 24px;
    background: #4a4a4a;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background: #3a3a3a;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav.scrolled .nav-link--cta {
    background: #BAFF39;
    color: #3a3a3a !important;
}

.nav.scrolled .nav-link--cta:hover {
    background: #a8e633;
}


.nav-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav-logo-text {
    font-family: 'Grift', var(--font-sans);
    font-size: 1.2rem;
    font-weight: 600;
    color: #BAFF39;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #BAFF39;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #BAFF39;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #BAFF39;
    opacity: 1;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link--cta {
    background: #BAFF39;
    color: #3a3a3a !important;
    padding: 10px 24px;
    border-radius: 100px;
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    background: var(--blue-dark);
    opacity: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 1.5px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 0%, rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 120px 24px 80px;
}

.hero-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 0;
    letter-spacing: -0.03em;
    color: var(--blue-deep);
    text-transform: none;
}

.title-line {
    display: block;
}

/* --- Glitch Words --- */
.glitch-word {
    position: relative;
    display: inline-block;
}

.glitch-word--accent {
    color: transparent;
    border: 2px solid transparent;
    border-radius: 60px;
    padding: 0.05em 0.35em;
    letter-spacing: 0.15em;
}

/* Glitch pseudo-elements */
.glitch-word::before,
.glitch-word::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.glitch-word::before {
    color: #BAFF39;
    z-index: -1;
}

.glitch-word::after {
    color: #6E6E6E;
    z-index: -1;
}

/* Active glitch state */
.glitch-word.glitching::before {
    opacity: 0.8;
    animation: glitch-1 0.3s steps(2) forwards;
}

.glitch-word.glitching::after {
    opacity: 0.8;
    animation: glitch-2 0.3s steps(2) forwards;
}

.glitch-word.glitching {
    animation: glitch-skew 0.3s steps(2) forwards;
}

@keyframes glitch-1 {
    0%   { clip-path: inset(20% 0 60% 0); transform: translate(-4px, -2px); }
    25%  { clip-path: inset(60% 0 10% 0); transform: translate(4px, 2px); }
    50%  { clip-path: inset(40% 0 30% 0); transform: translate(-3px, 1px); }
    75%  { clip-path: inset(10% 0 70% 0); transform: translate(2px, -1px); }
    100% { clip-path: inset(0 0 0 0); transform: translate(0); opacity: 0; }
}

@keyframes glitch-2 {
    0%   { clip-path: inset(70% 0 5% 0); transform: translate(4px, 2px); }
    25%  { clip-path: inset(15% 0 55% 0); transform: translate(-3px, -1px); }
    50%  { clip-path: inset(50% 0 20% 0); transform: translate(3px, -2px); }
    75%  { clip-path: inset(5% 0 65% 0); transform: translate(-2px, 1px); }
    100% { clip-path: inset(0 0 0 0); transform: translate(0); opacity: 0; }
}

@keyframes glitch-skew {
    0%   { transform: skewX(-2deg); }
    20%  { transform: skewX(3deg); }
    40%  { transform: skewX(-1deg); }
    60%  { transform: skewX(2deg); }
    80%  { transform: skewX(-1deg); }
    100% { transform: skewX(0deg); }
}

.hero-bottom {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 60px;
    width: 100%;
}

.hero-description {
    font-size: 1rem;
    max-width: 480px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
}

.hero-description .block-reveal {
    display: block;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.hero-established {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hero-scroll-cta {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.hero-scroll-cta:hover {
    color: var(--blue-deep);
    opacity: 1;
}

/* Text reveal animation */
/* --- Block Wipe Reveal --- */
.block-reveal {
    position: relative;
    display: inline-block;
    overflow: hidden;
    color: transparent;
}

.block-reveal em {
    color: inherit;
}

.block-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--blue-mid);
    transform: translateX(-101%);
}

.hero.loaded .block-reveal {
    color: transparent;
    animation: block-reveal-text 0s forwards;
    animation-delay: calc(var(--delay) + 0.6s);
}

.hero.loaded .block-reveal::after {
    animation: block-wipe 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    animation-delay: var(--delay);
}

@keyframes block-wipe {
    0%   { transform: translateX(-101%); }
    45%  { transform: translateX(0); }
    100% { transform: translateX(101%); }
}

@keyframes block-reveal-text {
    to { color: inherit; }
}

.hero.loaded .block-reveal em {
    animation: block-reveal-em-hero 0s forwards;
    animation-delay: calc(var(--delay) + 0.6s);
}

@keyframes block-reveal-em-hero {
    to { color: var(--blue-mid); }
}

.hero.loaded .block-reveal .glitch-word--accent {
    color: transparent;
    border-color: transparent;
    animation: reveal-accent 0s forwards;
    animation-delay: calc(0.95s + 0.65s);
}

@keyframes reveal-accent {
    to {
        color: var(--blue-mid);
        border-color: var(--blue-deep);
    }
}

/* Scroll-triggered block reveal */
.block-reveal-scroll {
    position: relative;
    display: inline-block;
    overflow: hidden;
    color: transparent;
}

.block-reveal-scroll em,
.block-reveal-scroll * {
    color: inherit;
}

.block-reveal-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--blue-mid);
    transform: translateX(-101%);
}

.block-reveal-scroll.visible {
    animation: block-reveal-text 0s forwards;
    animation-delay: calc(var(--delay, 0s) + 0.65s);
}

.block-reveal-scroll.visible::after {
    animation: block-wipe 1.1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    animation-delay: var(--delay, 0s);
}

/* Restore em color after reveal */
.block-reveal-scroll.visible em {
    animation: block-reveal-em 0s forwards;
    animation-delay: calc(var(--delay, 0s) + 0.65s);
}

@keyframes block-reveal-em {
    to { color: var(--blue-mid); }
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-indicator .hero-scroll-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(180deg, var(--blue-deep) 0%, transparent 100%);
    animation: scrollLine 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    20% { opacity: 0.4; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 0.4; }
    50.1% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.btn--primary {
    background: #BAFF39;
    color: #3a3a3a;
}

.btn--primary:hover {
    background: #a8e633;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(186, 255, 57, 0.2);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--text);
}

.btn--outline:hover {
    border-color: var(--blue-deep);
    opacity: 1;
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* --- Sections --- */
.section {
    padding: var(--section-padding) 0;
    position: relative;
    font-family: var(--font-body);
}

.section-header {
    margin-bottom: 80px;
}

.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Grift', var(--font-sans);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--blue-deep);
}

/* --- Services --- */
.services {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}

.service-card {
    padding: 48px 36px;
    background: var(--bg);
    transition: background 0.4s ease;
    text-align: center;
}

.service-card.scroll-reveal,
.fact.scroll-reveal,
.work-card.scroll-reveal,
.testimonial.scroll-reveal {
    transform: none;
    transition: opacity 1s ease;
}

.service-card:hover {
    background: var(--bg-off);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--blue-mid);
}

.service-number {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--blue-mid);
    display: block;
    margin-bottom: 20px;
}

.service-title {
    font-family: 'Grift', var(--font-sans);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    color: var(--blue-deep);
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* --- About --- */
.about {
    background: var(--bg-off);
}

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

.about-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
    margin-top: 24px;
}

.about-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.fact {
    text-align: center;
    padding: 32px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.fact:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 30px rgba(13, 5, 53, 0.04);
}

.fact-number {
    font-family: 'Grift', var(--font-sans);
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    color: var(--blue-deep);
}

.fact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

/* --- Work / Portfolio --- */
.work {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.work-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s ease;
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-hover);
    box-shadow: 0 25px 70px rgba(13, 5, 53, 0.12), 0 8px 24px rgba(13, 5, 53, 0.06);
}

.work-card-image {
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    background-color: #f7f6f3;
    aspect-ratio: 16 / 10;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top left;
}

.work-card-image .work-card-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
}



@keyframes card-shine {
    from { left: -60%; }
    to   { left: 120%; }
}

.work-card-tag {
    font-family: 'Grift', var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 100px;
    color: var(--blue-deep);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    transition: background 0.4s ease;
}

.work-card:hover .work-card-tag {
    background: rgba(255, 255, 255, 0.25);
}

.work-card-image--contain {
    background-size: contain !important;
    background-position: center !important;
}

.work-card-image--contain::before {
    background-size: contain !important;
    background-position: center !important;
}

.work-card-client {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--blue-mid);
    margin-bottom: 8px;
    font-weight: 500;
}

.work-card-content {
    padding: 32px;
    transition: background 0.4s ease;
}

.work-card:hover .work-card-content {
    background: rgba(13, 5, 96, 0.02);
}

.work-card-title {
    font-family: 'Grift', var(--font-sans);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--blue-deep);
    transition: color 0.4s ease;
}

.work-card:hover .work-card-title {
    color: var(--blue-mid);
}

.work-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* --- Clients --- */
.clients {
    background: var(--bg-off);
}

.clients-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
    max-width: 600px;
    margin-bottom: 60px;
}

.clients-logos {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 100px;
    animation: clients-scroll 30s linear infinite;
    width: max-content;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.client-logo img {
    height: 90px;
    width: auto;
    object-fit: contain;
    opacity: 0.6;
    filter: brightness(0) invert(1);
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.client-logo img:hover {
    opacity: 1;
}

.client-logo img[alt="Zara"],
.client-logo img[alt="Zara Home"] {
    height: 60px;
}

@keyframes clients-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}

/* --- Testimonials --- */
.testimonials {
    background: var(--bg-off);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial {
    padding: 40px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 30px rgba(13, 5, 53, 0.04);
}

.testimonial-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 28px;
    font-style: italic;
    color: var(--text);
}

.testimonial-author strong {
    display: block;
    font-family: 'Grift', var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--blue-deep);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Tech Stack Marquee --- */
.tech {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--section-padding) 0 80px;
    background: var(--bg);
}

.tech-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.tech-track {
    display: flex;
    gap: 48px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    padding: 12px 0;
    transition: transform 0.3s ease;
}

.tech-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tech-item span {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.tech-item:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

.tech-item:hover span {
    color: var(--blue-deep);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Contact --- */
.contact {
    background: var(--blue-deep);
    color: #fff;
}

.contact .section-label {
    color: rgba(255,255,255,0.5);
}

.contact .section-title {
    color: #fff;
}

.contact .section-title em {
    color: transparent;
}

.contact .block-reveal-scroll.visible em {
    animation: block-reveal-em-contact 0s forwards;
    animation-delay: calc(var(--delay, 0s) + 0.65s);
}

@keyframes block-reveal-em-contact {
    to { color: var(--gold); }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-description {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    font-weight: 300;
    margin-top: 24px;
}

.contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-link:hover { opacity: 1; }

.contact-link-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
}

.contact-link-value {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #fff;
    transition: color 0.3s ease;
}

.contact-link:hover .contact-link-value {
    color: var(--gold);
}

/* --- Form --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
}

.form-group input,
.form-group textarea {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 16px 20px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #fff;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
}

.contact .btn--primary {
    background: var(--gold);
    color: var(--blue-deep);
}

.contact .btn--primary:hover {
    background: var(--gold-light);
    box-shadow: 0 8px 30px rgba(186, 255, 57, 0.2);
}

/* --- Footer --- */
.footer {
    padding: 80px 0 40px;
    background: var(--blue-deep);
    color: #fff;
    font-family: var(--font-body);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: rgba(255,255,255,0.5);
}

.footer-nav h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-nav a {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
    font-weight: 300;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.footer-legal a:hover {
    color: #fff;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
        --nav-height: 64px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        font-size: 1.5rem;
        text-transform: none;
        color: #BAFF39;
    }

    .nav-link::after { display: none; }

    .nav-link--cta {
        background: #BAFF39;
        color: #3a3a3a !important;
        padding: 12px 28px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-content {
        padding: 100px 24px 60px;
    }

    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        padding-top: 40px;
    }

    .hero-meta {
        align-items: flex-start;
        flex-direction: row;
        gap: 24px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .work-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .clients-track {
        gap: 40px;
        animation-duration: 15s;
    }

    .client-logo img {
        height: 60px;
    }

    .client-logo img[alt="Zara"],
    .client-logo img[alt="Zara Home"] {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .about-facts {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .fact { padding: 24px 16px; }
    .fact-number { font-size: 2rem; }
    .work-card-image { aspect-ratio: 16 / 9; }
    .service-card { padding: 32px 24px; }
}
