/* ============================================
   GROWTHIUM - Design System & Styles
   Growth, Engineered.
   ============================================ */

/* ----------------------------------------
   CSS VARIABLES / DESIGN TOKENS
   ---------------------------------------- */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #0d0d0d;
    --bg-card-hover: #151515;

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #666666;
    --text-muted: #444444;

    --accent-primary: #CB13E5;
    --accent-secondary: #9B0FBF;
    --accent-tertiary: #E040FB;
    --accent-glow: rgba(203, 19, 229, 0.15);
    --accent-glow-strong: rgba(203, 19, 229, 0.3);

    --border-color: #222222;
    --border-accent: #333333;
    --grid-color: rgba(255, 255, 255, 0.03);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(203, 19, 229, 0.25);

    /* Typography */
    --font-primary: 'Orbitron', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Orbitron', 'JetBrains Mono', 'Fira Code', monospace;

    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 2rem;
    --fs-4xl: 2.5rem;
    --fs-5xl: 3.5rem;
    --fs-6xl: 5rem;
    --fs-hero: clamp(3rem, 12vw, 8rem);

    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    --lh-tight: 1.1;
    --lh-snug: 1.25;
    --lh-normal: 1.5;
    --lh-relaxed: 1.75;

    --ls-tight: -0.03em;
    --ls-normal: 0;
    --ls-wide: 0.05em;
    --ls-wider: 0.1em;
    --ls-widest: 0.2em;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    --space-section: clamp(4rem, 10vh, 8rem);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-slower: 600ms ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;

    /* Logo */
    --logo-url: url('../assets/logo/growthium.logo-white-no-background.png');
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #fafafa;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #eeeeee;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f8f8;

    --text-primary: #0a0a0a;
    --text-secondary: #555555;
    --text-tertiary: #888888;
    --text-muted: #bbbbbb;

    --accent-primary: #A010C0;
    --accent-secondary: #8A0DA5;
    --accent-tertiary: #C040E0;
    --accent-glow: rgba(160, 16, 192, 0.12);
    --accent-glow-strong: rgba(160, 16, 192, 0.22);

    --border-color: #e0e0e0;
    --border-accent: #d0d0d0;
    --grid-color: rgba(0, 0, 0, 0.03);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(160, 16, 192, 0.2);

    --logo-url: url('../assets/logo/growthium.logo-black-no-background.png');
}

/* ----------------------------------------
   RESET & BASE
   ---------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-accent);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ----------------------------------------
   LAYOUT & CONTAINERS
   ---------------------------------------- */
.container {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: var(--space-xl);
}

.container--narrow {
    max-width: 900px;
}

.container--wide {
    max-width: 1600px;
}

section {
    padding-block: var(--space-section);
    position: relative;
}

/* Grid Background Pattern */
.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.grid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--bg-primary) 70%);
}

/* ----------------------------------------
   TYPOGRAPHY
   ---------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
}

.heading-display {
    font-size: var(--fs-hero);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-tight);
    line-height: 0.95;
}

.heading-xl {
    font-size: var(--fs-5xl);
}

.heading-lg {
    font-size: var(--fs-4xl);
}

.heading-md {
    font-size: var(--fs-3xl);
}

.heading-sm {
    font-size: var(--fs-2xl);
}

.text-mono {
    font-family: var(--font-mono);
    letter-spacing: var(--ls-wide);
}

.text-accent {
    color: var(--accent-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-tertiary);
}

.text-center {
    text-align: center;
}

/* ----------------------------------------
   NAVIGATION
   ---------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: var(--space-lg) 0;
    transition: background-color var(--transition-base), backdrop-filter var(--transition-base);
}

.nav.scrolled {
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .nav.scrolled {
    background-color: rgba(250, 250, 250, 0.8);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav__logo-text {
    font-family: var(--font-primary);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-wide);
    color: var(--text-primary);
    text-transform: uppercase;
}

.nav__logo-dot {
    color: var(--accent-primary);
    font-weight: var(--fw-bold);
}

.nav__logo img {
    height: 44px;
    width: auto;
}

.nav__controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-switcher__btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-sm);
    font-family: var(--font-mono);
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.lang-switcher__btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.lang-switcher__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-sm);
    min-width: 120px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown);
}

[dir="rtl"] .lang-switcher__dropdown {
    right: auto;
    left: 0;
}

.lang-switcher.active .lang-switcher__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher__option {
    display: block;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    text-align: start;
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.lang-switcher__option:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.lang-switcher__option.active {
    color: var(--accent-primary);
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
}

.theme-toggle__indicator {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--accent-primary);
    border-radius: 50%;
    transition: transform var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .theme-toggle__indicator {
    transform: translateX(20px);
}

.theme-toggle__icon {
    width: 12px;
    height: 12px;
    fill: var(--bg-primary);
}

/* ----------------------------------------
   HERO SECTION
   ---------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero__content {
    position: relative;
    z-index: var(--z-base);
}

.hero__wordmark {
    font-size: var(--fs-hero);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-wide);
    line-height: 0.95;
    margin-bottom: var(--space-xl);
    position: relative;
    text-transform: uppercase;
}

.hero__wordmark-text {
    display: inline-block;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__wordmark-dot {
    color: var(--accent-primary);
    -webkit-text-fill-color: var(--accent-primary);
}

.hero__wordmark .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: charReveal 0.6s ease forwards;
}

.hero__tagline {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-semibold);
    color: var(--accent-primary);
    margin-bottom: var(--space-lg);
    letter-spacing: var(--ls-wide);
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 0.8s forwards;
}

.hero__subtitle {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    max-width: 600px;
    margin-inline: auto;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 1s forwards;
}

.hero__scroll-hint {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-tertiary);
    font-size: var(--fs-xs);
    font-family: var(--font-mono);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 0.8s ease 1.5s forwards;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scrollPulse 2s ease infinite;
}

/* Hero Background Effects */
.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    opacity: 0;
    animation: glowPulse 4s ease infinite;
    animation-delay: 1.2s;
}

.hero__scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.3;
    animation: scanline 3s linear infinite;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
<<<<<<< ours
    background: transparent;
<<<<<<< ours
    opacity: 0.7;
=======
    opacity: 0.35;
>>>>>>> theirs
    animation: none;
}

.glitch::before {
<<<<<<< ours
    left: 2px;
    text-shadow: -2px 0 var(--accent-secondary);
=======
    left: 1px;
    text-shadow: -1px 0 var(--accent-secondary);
>>>>>>> theirs
=======
    background: var(--bg-primary);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-secondary);
>>>>>>> theirs
    clip-path: inset(0 0 0 0);
    animation: glitchBefore 3s infinite linear alternate-reverse;
}

.glitch::after {
<<<<<<< ours
<<<<<<< ours
    left: -2px;
    text-shadow: 2px 0 var(--accent-primary);
=======
    left: -1px;
    text-shadow: 1px 0 var(--accent-primary);
>>>>>>> theirs
=======
    left: -2px;
    text-shadow: 2px 0 var(--accent-primary);
>>>>>>> theirs
    clip-path: inset(0 0 0 0);
    animation: glitchAfter 2s infinite linear alternate-reverse;
}

/* ----------------------------------------
   PHILOSOPHY SECTION
   ---------------------------------------- */
.philosophy {
    background: var(--bg-secondary);
    position: relative;
}

.philosophy__content {
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
}

.philosophy__heading {
    font-size: var(--fs-4xl);
    margin-bottom: var(--space-2xl);
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slower);
}

.philosophy__heading.revealed {
    opacity: 1;
    transform: translateY(0);
}

.philosophy__statements {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.philosophy__statement {
    font-size: var(--fs-xl);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-slower);
}

.philosophy__statement.revealed {
    opacity: 1;
    transform: translateY(0);
}

.philosophy__statement strong {
    color: var(--accent-primary);
    font-weight: var(--fw-semibold);
}

.philosophy__statement--highlight {
    font-size: var(--fs-2xl);
    color: var(--text-primary);
    font-weight: var(--fw-medium);
    padding: var(--space-xl);
    background: var(--bg-tertiary);
    border-left: 3px solid var(--accent-primary);
    border-radius: var(--radius-md);
}

[dir="rtl"] .philosophy__statement--highlight {
    border-left: none;
    border-right: 3px solid var(--accent-primary);
}

/* ----------------------------------------
   SERVICES SECTION
   ---------------------------------------- */
.services {
    position: relative;
}

.services__header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.services__label {
    font-size: var(--fs-sm);
    font-family: var(--font-mono);
    color: var(--accent-primary);
    letter-spacing: var(--ls-widest);
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.services__title {
    font-size: var(--fs-4xl);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-slower);
}

.services__title.revealed {
    opacity: 1;
    transform: translateY(0);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.service-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

[dir="rtl"] .service-card::before {
    transform-origin: right;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.service-card__number {
    font-size: var(--fs-xs);
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-lg);
    color: var(--accent-primary);
    transition: transform var(--transition-base);
}

.service-card:hover .service-card__icon {
    transform: scale(1.1);
}

.service-card__title {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-md);
}

.service-card__description {
    font-size: var(--fs-base);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
}

.service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.service-card__tag {
    font-size: var(--fs-xs);
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

/* ----------------------------------------
   PROCESS SECTION
   ---------------------------------------- */
.process {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.process__header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.process__label {
    font-size: var(--fs-sm);
    font-family: var(--font-mono);
    color: var(--accent-primary);
    letter-spacing: var(--ls-widest);
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.process__title {
    font-size: var(--fs-4xl);
}

.process__timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 1200px;
    margin-inline: auto;
}

.process__timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--border-color);
}

.process__step {
    position: relative;
    flex: 1;
    text-align: center;
    padding: 0 var(--space-md);
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slower);
}

.process__step.revealed {
    opacity: 1;
    transform: translateY(0);
}

.process__step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-2xl);
    font-family: var(--font-mono);
    font-weight: var(--fw-bold);
    color: var(--accent-primary);
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    z-index: var(--z-base);
    transition: all var(--transition-base);
}

.process__step:hover .process__step-number {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.process__step-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-sm);
}

.process__step-desc {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Terminal Style Variant */
.process__terminal {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 700px;
    margin: var(--space-3xl) auto 0;
}

.process__terminal-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.process__terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.process__terminal-dot--red {
    background: #ff5f57;
}

.process__terminal-dot--yellow {
    background: #ffbd2e;
}

.process__terminal-dot--green {
    background: #28c940;
}

.process__terminal-body {
    padding: var(--space-lg);
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
}

.process__terminal-line {
    margin-bottom: var(--space-sm);
    opacity: 0;
    animation: terminalType 0.5s ease forwards;
}

.process__terminal-line::before {
    content: '>';
    color: var(--accent-primary);
    margin-inline-end: var(--space-sm);
}

.process__terminal-line--output {
    color: var(--text-secondary);
    padding-inline-start: var(--space-lg);
}

.process__terminal-line--output::before {
    display: none;
}

.process__terminal-line--success {
    color: var(--accent-primary);
}

/* ----------------------------------------
   WORK / PORTFOLIO SECTION
   ---------------------------------------- */
.work {
    position: relative;
}

.work__header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.work__label {
    font-size: var(--fs-sm);
    font-family: var(--font-mono);
    color: var(--accent-primary);
    letter-spacing: var(--ls-widest);
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.work__title {
    font-size: var(--fs-4xl);
}

.work__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.work__item {
    position: relative;
    aspect-ratio: 9/16;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.95);
    transition: all var(--transition-slow);
}

.work__item.revealed {
    opacity: 1;
    transform: scale(1);
}

.work__item:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
}

.work__item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work__item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
}

.work__item:hover .work__item-overlay {
    opacity: 1;
}

.work__item-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-base);
}

.work__item:hover .work__item-play {
    opacity: 1;
}

.work__item-play svg {
    width: 24px;
    height: 24px;
    fill: var(--text-primary);
    margin-inline-start: 4px;
}

/* ----------------------------------------
   CTA SECTION
   ---------------------------------------- */
.cta {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta__content {
    position: relative;
    z-index: var(--z-base);
    max-width: 700px;
    margin-inline: auto;
}

.cta__title {
    font-size: var(--fs-4xl);
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-slower);
}

.cta__title.revealed {
    opacity: 1;
    transform: translateY(0);
}

.cta__subtitle {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
}

.cta__button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--bg-primary);
    background: var(--accent-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.cta__button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.cta__button:hover::before {
    left: 100%;
}

.cta__button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.cta__button svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
}

[dir="ltr"] .cta__button:hover svg {
    transform: translateX(4px);
}

[dir="rtl"] .cta__button:hover svg {
    transform: translateX(-4px) scaleX(-1);
}

[dir="rtl"] .cta__button svg {
    transform: scaleX(-1);
}

.cta__glow {
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

/* ----------------------------------------
   FOOTER
   ---------------------------------------- */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-2xl) 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__logo {
    height: 28px;
    opacity: 0.7;
    transition: opacity var(--transition-base);
}

.footer__logo:hover {
    opacity: 1;
}

.footer__logo img {
    height: 100%;
    width: auto;
}

.footer__text {
    font-size: var(--fs-sm);
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.footer__text span {
    color: var(--accent-primary);
}

/* ----------------------------------------
   ANIMATIONS / KEYFRAMES
   ---------------------------------------- */
@keyframes charReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) rotateX(-90deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.5;
        transform: scaleY(0.6);
    }
}

@keyframes scanline {
    0% {
        top: -2px;
    }

    100% {
        top: 100%;
    }
}

@keyframes glitchBefore {
    0% {
        clip-path: inset(40% 0 61% 0);
    }

    20% {
        clip-path: inset(92% 0 1% 0);
    }

    40% {
        clip-path: inset(43% 0 1% 0);
    }

    60% {
        clip-path: inset(25% 0 58% 0);
    }

    80% {
        clip-path: inset(54% 0 7% 0);
    }

    100% {
        clip-path: inset(58% 0 43% 0);
    }
}

@keyframes glitchAfter {
    0% {
        clip-path: inset(25% 0 58% 0);
    }

    20% {
        clip-path: inset(54% 0 7% 0);
    }

    40% {
        clip-path: inset(58% 0 43% 0);
    }

    60% {
        clip-path: inset(40% 0 61% 0);
    }

    80% {
        clip-path: inset(92% 0 1% 0);
    }

    100% {
        clip-path: inset(43% 0 1% 0);
    }
}

@keyframes terminalType {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.cursor-blink::after {
    content: '▋';
    animation: blink 1s infinite;
    color: var(--accent-primary);
}

/* ----------------------------------------
   RESPONSIVE
   ---------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services__grid .service-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin-inline: auto;
    }

    .process__timeline {
        flex-wrap: wrap;
        gap: var(--space-xl);
        justify-content: center;
    }

    .process__timeline::before {
        display: none;
    }

    .process__step {
        flex: 0 0 45%;
    }

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

/* Mobile */
@media (max-width: 768px) {
    :root {
        --fs-hero: clamp(2.5rem, 15vw, 4rem);
        --fs-5xl: 2.5rem;
        --fs-4xl: 2rem;
        --fs-3xl: 1.5rem;
        --space-section: clamp(3rem, 8vh, 5rem);
    }

    .container {
        padding-inline: var(--space-lg);
    }

    .nav__controls {
        gap: var(--space-sm);
    }

    .lang-switcher__btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--fs-xs);
    }

    .hero__tagline {
        font-size: var(--fs-xl);
    }

    .hero__subtitle {
        font-size: var(--fs-base);
        padding-inline: var(--space-md);
    }

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

    .services__grid .service-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .process__step {
        flex: 0 0 100%;
    }

    .work__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-inline: auto;
    }

    .footer__inner {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero__wordmark {
        padding-inline: var(--space-sm);
    }

    .service-card {
        padding: var(--space-lg);
    }

    .cta__button {
        width: 100%;
        justify-content: center;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Print */
@media print {

    .nav,
    .hero__scroll-hint,
    .cta__button {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}