/* ============================================================================
   ALUCARD GROUP — Premium Design System
   Full-Service Digital Company · Global Presence
   Brand: #a80000 Red · #1a1a1a Black · #ffffff White
   ============================================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Brand Palette */
    --color-primary: #a80000;
    --color-primary-dark: #700000;
    --color-primary-light: #d40000;
    --color-primary-glow: rgba(168, 0, 0, 0.45);
    --color-primary-subtle: rgba(168, 0, 0, 0.08);

    /* Surfaces */
    --color-bg: #050505;
    --color-bg-surface: #0c0c0c;
    --color-bg-elevated: #141414;
    --color-bg-glass: rgba(255, 255, 255, 0.025);
    --color-bg-glass-hover: rgba(255, 255, 255, 0.05);

    /* Text */
    --color-text: #ffffff;
    --color-text-secondary: #b0b0b0;
    --color-text-muted: #707070;

    /* Borders */
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    --color-border-active: rgba(168, 0, 0, 0.4);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    /* Spacing */
    --container-max: 1280px;
    --container-padding: 2rem;
    --section-padding: 7rem;
    --section-padding-sm: 4rem;

    /* Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--color-primary-glow);
    --shadow-glow-sm: 0 0 15px rgba(168, 0, 0, 0.3);

    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-snap: cubic-bezier(0.85, 0, 0.15, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;

    /* Z-index layers */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-header: 900;
    --z-overlay: 1000;
    --z-modal: 1100;
}

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

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 0.95rem;
}

p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) var(--ease-smooth);
}

a:hover {
    color: var(--color-primary);
}

ul,
ol {
    list-style: none;
}

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

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

/* ---------- Utilities ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section--dark {
    background-color: var(--color-bg-surface);
}

.section--elevated {
    background-color: var(--color-bg-elevated);
}

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

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

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

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

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

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

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-xs {
    gap: 0.5rem;
}

.gap-sm {
    gap: 1rem;
}

.gap-md {
    gap: 1.5rem;
}

.gap-lg {
    gap: 2rem;
}

.gap-xl {
    gap: 3rem;
}

.gap-2xl {
    gap: 4rem;
}

.grid {
    display: grid;
}

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

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

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

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

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-header p {
    margin-top: 1.25rem;
    font-size: 1.1rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--color-primary);
}

.divider {
    height: 1px;
    background: var(--color-border);
    border: none;
    margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-xs);
    border: 1px solid transparent;
    transition: all var(--duration-normal) var(--ease-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    box-shadow: var(--shadow-glow-sm);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    color: #fff;
}

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

.btn--outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-subtle);
}

.btn--ghost {
    background: transparent;
    color: var(--color-primary);
    padding: 0.5rem 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
}

.btn--ghost::after {
    content: '→';
    margin-left: 0.25rem;
    transition: transform var(--duration-fast) var(--ease-smooth);
}

.btn--ghost:hover {
    color: var(--color-primary-light);
}

.btn--ghost:hover::after {
    transform: translateX(4px);
}

.btn--lg {
    padding: 1.1rem 2.8rem;
    font-size: 1rem;
}

.btn--sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    padding: 1.25rem 0;
    transition: all 0.4s var(--ease-smooth);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
}

.site-header .nav-link,
.site-header .lang-btn,
.site-header .logo img {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.site-header.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
}

.site-header.scrolled .nav-link,
.site-header.scrolled .lang-btn {
    text-shadow: none;
    filter: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

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

.logo img {
    height: 48px;
    width: auto;
    transition: height var(--duration-normal) var(--ease-smooth);
}

.scrolled .logo img {
    height: 38px;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
}

.desktop-nav>ul {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1.1rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--duration-fast) var(--ease-smooth);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
}

.nav-link .chevron {
    font-size: 0.6rem;
    transition: transform var(--duration-fast) var(--ease-smooth);
    margin-top: 1px;
}

.nav-item:hover .chevron {
    transform: rotate(180deg);
}

/* Dropdown Menus */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    background: rgba(15, 15, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
    z-index: var(--z-dropdown);
    box-shadow: var(--shadow-lg);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.nav-dropdown a:hover {
    background: var(--color-primary-subtle);
    color: var(--color-text);
}

.nav-dropdown a i {
    width: 18px;
    color: var(--color-primary);
    font-size: 0.85rem;
}

/* Mega Menu for Services */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 620px;
    background: rgba(12, 12, 12, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
    z-index: var(--z-dropdown);
    box-shadow: var(--shadow-lg);
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.mega-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.mega-menu-item:hover {
    background: var(--color-primary-subtle);
}

.mega-menu-item .mm-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-subtle);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.mega-menu-item .mm-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: var(--color-text);
}

.mega-menu-item .mm-text p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

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

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xs);
    transition: all var(--duration-fast) var(--ease-smooth);
    cursor: pointer;
    background: transparent;
}

.lang-btn:hover {
    border-color: var(--color-border-hover);
    color: var(--color-text);
}

.lang-btn .chevron {
    font-size: 0.55rem;
    transition: transform var(--duration-fast) var(--ease-smooth);
}

.lang-switcher.open .lang-btn .chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 140px;
    background: rgba(15, 15, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all var(--duration-fast) var(--ease-smooth);
    z-index: var(--z-dropdown);
    box-shadow: var(--shadow-md);
}

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

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    border-radius: var(--radius-xs);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
    background: var(--color-primary-subtle);
    color: var(--color-text);
}

.lang-dropdown a .flag {
    font-size: 1.1rem;
    line-height: 1;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    color: var(--color-text);
    font-size: 1.3rem;
    padding: 0.5rem;
    z-index: var(--z-modal);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: var(--z-overlay);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-snap);
    display: flex;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
    border-left: 1px solid var(--color-border);
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: calc(var(--z-overlay) - 1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav .close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
    color: var(--color-text-secondary);
    transition: color var(--duration-fast);
}

.mobile-nav .close-btn:hover {
    color: var(--color-text);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-links>li {
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--duration-fast);
}

.mobile-nav-links a:hover {
    color: var(--color-text);
}

.mobile-nav-sub {
    padding-left: 1rem;
    display: none;
}

.mobile-nav-sub.open {
    display: block;
}

.mobile-nav-sub a {
    font-size: 0.95rem;
    padding: 0.6rem 0;
    color: var(--color-text-muted);
}

.mobile-nav-cta {
    margin-top: 2rem;
}

.mobile-lang-switcher {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.mobile-lang-switcher a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xs);
    transition: all var(--duration-fast);
}

.mobile-lang-switcher a:hover,
.mobile-lang-switcher a.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(168, 0, 0, 0.08) 0%, transparent 70%),
        linear-gradient(180deg, rgba(5, 5, 5, 0.3) 0%, rgba(5, 5, 5, 0.7) 50%, var(--color-bg) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--color-primary), #ff3333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--color-text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
}

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

.hero-stat .number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.03em;
    line-height: 1;
}

.hero-stat .number span {
    color: var(--color-primary);
}

.hero-stat .label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.35rem;
}

/* ---------- Clients / Logo Wall ---------- */
.clients-section {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.clients-track img {
    height: 32px;
    width: auto;
    opacity: 0.4;
    filter: grayscale(100%) brightness(2);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.clients-track img:hover {
    opacity: 0.8;
    filter: grayscale(0%) brightness(1);
}

/* Static client logos */
.logo-wall {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.logo-wall .client-logo {
    height: 36px;
    width: auto;
    opacity: 0.35;
    filter: grayscale(100%) brightness(2);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.logo-wall .client-logo:hover {
    opacity: 0.8;
    filter: grayscale(0%) brightness(1);
}

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

    100% {
        transform: translateX(-50%);
    }
}

/* ---------- Cards ---------- */
.card {
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all var(--duration-slow) var(--ease-bounce);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(168, 0, 0, 0.03) 100%);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.card:hover {
    border-color: var(--color-border-active);
    background: var(--color-bg-glass-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    opacity: 1;
}

/* Service Card */
.service-card {
    padding: 2.5rem 2rem;
    text-align: left;
}

.service-card .card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-size: 1.3rem;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.service-card:hover .card-icon {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-glow-sm);
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: gap var(--duration-fast) var(--ease-smooth);
}

.service-card:hover .card-link {
    gap: 0.7rem;
}

/* Project Card */
.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card .card-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.project-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.project-card:hover .card-image img {
    transform: scale(1.05);
}

.project-card .card-image .status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.status-badge--active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge--dev {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge--done {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.project-card .card-body {
    padding: 1.75rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card .card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.project-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-card p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Team Card */
.team-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.team-card .avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.25rem;
    border: 3px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image: linear-gradient(var(--color-bg-glass), var(--color-bg-glass)),
        linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    transition: all var(--duration-normal) var(--ease-smooth);
}

.team-card:hover .avatar {
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.team-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.team-card .role {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* Testimonial Card */
.testimonial-card {
    padding: 2.5rem;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    position: relative;
}

.testimonial-card .quote-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    opacity: 0.3;
    margin-bottom: 1rem;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card blockquote {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card .author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card .author-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

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

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(168, 0, 0, 0.06), transparent);
}

.cta-section .cta-inner {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
}

/* ---------- Contact Section ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-info>p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: auto;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.contact-detail:hover {
    border-color: var(--color-border-hover);
    background: rgba(255, 255, 255, 0.04);
}

.contact-detail .icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-subtle);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    flex-shrink: 0;
    font-size: 1.1rem;
}

.contact-detail .detail-text a,
.contact-detail .detail-text span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.contact-detail .detail-text a:hover {
    color: var(--color-primary);
}

.contact-detail .detail-text p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 0.15rem;
}

.contact-locations-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.location-card {
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.location-card:hover {
    border-color: var(--color-border-hover);
    background: rgba(255, 255, 255, 0.04);
}

.location-card .flag {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.location-card h4 {
    font-size: 0.88rem;
    margin-bottom: 0.15rem;
}

.location-card p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Contact Form */
.contact-form {
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    height: 100%;
}

.contact-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}

.contact-form-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--duration-fast) var(--ease-smooth);
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-subtle);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-note {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
    text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: #000;
    padding-top: 4rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo img {
    height: 42px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xs);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.footer-social a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-subtle);
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    margin-bottom: 1.25rem;
}

.footer-col a {
    display: block;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    padding: 0.3rem 0;
    transition: color var(--duration-fast);
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-bottom-links a:hover {
    color: var(--color-primary);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate {
    opacity: 0;
}

.animate.in-view {
    animation: fadeInUp 0.6s var(--ease-smooth) forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

.animate-delay-6 {
    animation-delay: 0.6s;
}

/* ---------- Number Counter Animation ---------- */
.counter-value {
    display: inline-block;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 0;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background: var(--color-border);
}

.stat-item .stat-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-item .stat-number span {
    color: var(--color-primary);
}

.stat-item .stat-label {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* ---------- Values / Features List ---------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.value-item:hover {
    background: var(--color-bg-glass);
}

.value-item .value-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-subtle);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.value-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.value-item p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ---------- Image Placeholder ---------- */
.img-placeholder {
    background: var(--color-bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px dashed var(--color-border);
}

/* ---------- Scroll Top Button ---------- */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    z-index: var(--z-sticky);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--duration-normal) var(--ease-smooth);
    box-shadow: var(--shadow-glow-sm);
}

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

.scroll-top:hover {
    background: var(--color-primary-light);
    color: #fff;
    transform: translateY(-3px);
}

/* ---------- Page Hero (Sub-pages) ---------- */
.page-hero {
    padding: 10rem 0 4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(168, 0, 0, 0.10) 0%, transparent 70%),
        linear-gradient(180deg, rgba(5, 5, 5, 0.75) 0%, var(--color-bg) 100%);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.page-hero h1 .highlight {
    background: linear-gradient(135deg, var(--color-primary), #ff3333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero .page-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--color-text-secondary);
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.page-hero .hero-cta {
    margin-top: 2rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: var(--color-text-muted);
    transition: color var(--duration-fast);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb .separator {
    color: var(--color-text-muted);
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--color-primary);
    font-weight: 500;
}

/* ---------- Feature Grid (Services) ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2rem;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.feature-card:hover {
    border-color: var(--color-border-active);
    background: var(--color-bg-glass-hover);
    transform: translateY(-4px);
}

.feature-card .feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-subtle);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.feature-card:hover .feature-icon {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-glow-sm);
}

.feature-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ---------- Process / Timeline ---------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    counter-reset: process-counter;
}

.process-step {
    position: relative;
    padding: 2rem;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
    counter-increment: process-counter;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.process-step:hover {
    border-color: var(--color-border-active);
    transform: translateY(-4px);
}

.process-step .step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    background: var(--color-primary-subtle);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    border: 2px solid rgba(168, 0, 0, 0.2);
}

.process-step:hover .step-number {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-glow-sm);
    border-color: var(--color-primary);
}

.process-step h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Connector lines between steps (desktop only) */
.process-connector {
    display: none;
}

@media (min-width: 769px) {
    .process-grid {
        position: relative;
        grid-template-columns: repeat(5, 1fr);
    }

    .process-step::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -1rem;
        width: calc(2rem);
        height: 2px;
        background: linear-gradient(90deg, var(--color-border-hover), transparent);
    }

    .process-step:last-child::after {
        display: none;
    }
}

/* ---------- Tech Stack Grid ---------- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

@media (min-width: 769px) {

    /* 6 items → single row of 6 (project pages) */
    .tech-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    /* More than 6 items → 5 per row for balanced layout (e.g. 10 → 5+5) */
    .tech-grid:has(:nth-child(7)) {
        grid-template-columns: repeat(5, 1fr);
    }
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    min-width: 100px;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.tech-item:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-3px);
}

.tech-item i {
    font-size: 1.8rem;
    color: var(--color-text-secondary);
}

.tech-item span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---------- Results / Metrics Section ---------- */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

@media (min-width: 769px) {
    .results-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* More than 4 items → 3 per row for balanced layout (e.g. 6 → 3+3) */
    .results-grid:has(:nth-child(5)) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.result-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.result-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.result-card .result-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.result-card .result-label {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--duration-normal) var(--ease-smooth);
}

.faq-item.active {
    border-color: var(--color-border-active);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: color var(--duration-fast);
    gap: 1rem;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question .faq-icon {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    transition: transform var(--duration-normal) var(--ease-smooth);
    flex-shrink: 0;
}

.faq-item.active .faq-question .faq-icon {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-smooth), padding 0.3s var(--ease-smooth);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ---------- Comparison / Why Choose Section ---------- */
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 769px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.why-card {
    padding: 2rem;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.why-card:hover {
    border-color: var(--color-border-active);
    transform: translateY(-4px);
}

.why-card .why-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    background: var(--color-primary-subtle);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    font-size: 1.3rem;
}

.why-card:hover .why-icon {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-glow-sm);
}

.why-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ---------- Portfolio Filter ---------- */
.portfolio-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: transparent;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.filter-btn:hover {
    border-color: var(--color-border-hover);
    color: var(--color-text);
}

.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    opacity: 1;
    transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

.portfolio-item.hidden {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

/* ---------- Blog Filters (Pills) ---------- */
.portfolio-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
    max-width: 100%;
}

/* ---------- Blog Cards ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.blog-card:hover {
    border-color: var(--color-border-active);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.blog-card .blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-card .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-card .blog-body {
    padding: 1.75rem;
}

.blog-card .blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.blog-card .blog-category {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.blog-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    transition: color var(--duration-fast);
}

.blog-card:hover h3 {
    color: var(--color-primary);
}

.blog-card .blog-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: gap var(--duration-fast);
}

.blog-card:hover .read-more {
    gap: 0.7rem;
}

/* ---------- Career / Job Listings ---------- */
.job-list {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-smooth);
    gap: 1rem;
    flex-wrap: wrap;
}

.job-card:hover {
    border-color: var(--color-border-active);
    transform: translateX(4px);
}

.job-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.job-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.job-tag {
    padding: 0.25rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius-full);
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.job-tag--primary {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    border-color: rgba(168, 0, 0, 0.2);
}

/* ---------- Benefits Grid ---------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.benefit-item:hover {
    border-color: var(--color-border-hover);
}

.benefit-item .benefit-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-subtle);
    border-radius: var(--radius-xs);
    color: var(--color-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.benefit-item span {
    font-size: 0.92rem;
    font-weight: 500;
}

/* ---------- Timeline (About page) ---------- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-border));
}

.timeline-item {
    position: relative;
    padding: 0 0 3rem 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid var(--color-bg);
    box-shadow: 0 0 0 3px rgba(168, 0, 0, 0.2);
}

.timeline-item .timeline-year {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.timeline-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.timeline-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ---------- Map Placeholder ---------- */
.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }

    .header-inner {
        position: relative;
    }

    /* Logo: centered absolutely so it's truly centered regardless of sibling widths */
    .header-inner>.logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-inner>.logo img {
        height: 56px;
    }

    .scrolled .header-inner>.logo img {
        height: 44px;
    }

    /* Lang switcher moves to far left */
    .header-actions {
        order: -1;
        width: 100%;
        justify-content: space-between;
    }

    .header-actions>.lang-switcher {
        order: -1;
    }

    .menu-toggle {
        display: flex;
        order: 99;
    }

    .header-actions>.btn--primary {
        display: none;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 6vw, 3.5rem);
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .mega-menu {
        display: none !important;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4.5rem;
        --container-padding: 1.25rem;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-6 {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 8rem 0 4rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .stat-item::after {
        display: none !important;
    }

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

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

    .logo-wall {
        gap: 2rem;
    }

    .logo-wall .client-logo {
        height: 28px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .logo img {
        height: 36px;
    }

    .scrolled .logo img {
        height: 32px;
    }

    h2 {
        font-size: 1.75rem;
    }

    .btn--lg {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }

    .mobile-nav {
        max-width: 100%;
    }
}

/* ---------- Blog Content (alt layout) ---------- */
.blog-card .blog-content {
    padding: 1.75rem;
}

.blog-card .blog-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: gap var(--duration-fast);
}

.blog-card:hover .blog-link {
    gap: 0.7rem;
}

.blog-date {
    color: var(--color-text-muted);
    font-size: 0.78rem;
}

/* ---------- Contact Standalone Page ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-md);
    background: var(--color-primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.contact-item p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin: 0;
}

.contact-item a {
    color: var(--color-primary);
    font-weight: 500;
}

.text-sm {
    font-size: 0.82rem !important;
}

.contact-form-wrap {
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-text-secondary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color var(--duration-fast);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(168, 0, 0, 0.1);
}

/* ---------- Job Listings (extended) ---------- */
.job-listings {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card {
    flex-direction: column;
    align-items: stretch;
}

.job-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.job-header h4 {
    font-size: 1.1rem;
    margin: 0;
}

.job-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.job-salary {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.job-salary i {
    color: var(--color-primary);
}

/* ---------- Map Placeholder ---------- */
.map-placeholder {
    height: 350px;
    background: var(--color-bg-glass);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--color-text-muted);
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.5;
}

/* ---------- Blog Article Page ---------- */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.article-header {
    margin-bottom: 2.5rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.article-meta .category-badge {
    background: var(--color-primary);
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-xs);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.article-meta i {
    color: var(--color-primary);
    margin-right: 0.3rem;
}

.article-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-header .article-excerpt {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    border-left: 3px solid var(--color-primary);
    padding-left: 1.25rem;
}

/* Article Body — prose typography */
.article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text-secondary);
}

.article-body h2 {
    font-size: 1.6rem;
    color: var(--color-text);
    margin: 3rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.article-body h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin: 2rem 0 0.75rem;
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body li::marker {
    color: var(--color-primary);
}

.article-body strong {
    color: var(--color-text);
    font-weight: 600;
}

.article-body blockquote {
    border-left: 4px solid var(--color-primary);
    background: var(--color-bg-glass);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--color-text-secondary);
}

.article-body code {
    background: var(--color-bg-glass);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'JetBrains Mono', monospace;
    color: var(--color-primary);
}

.article-body pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: var(--color-text-secondary);
}

.article-body img {
    width: 100%;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.article-body .info-box {
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.article-body .info-box h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-body .comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.article-body .comparison-table th,
.article-body .comparison-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    text-align: left;
}

.article-body .comparison-table th {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

.article-body .comparison-table tr:nth-child(even) {
    background: var(--color-bg-glass);
}

.article-body .stat-highlight {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.article-body .stat-highlight span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

/* Table of Contents */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: color var(--duration-fast);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.toc-list a::before {
    content: '—';
    color: var(--color-primary);
    flex-shrink: 0;
}

.toc-list a:hover {
    color: var(--color-primary);
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.author-info .author-name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

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

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: all var(--duration-fast);
    cursor: pointer;
}

.share-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(190, 30, 45, 0.1);
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.article-tags a {
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-xs);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    transition: all var(--duration-fast);
}

.article-tags a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Related posts */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Article responsive */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .article-body h2 {
        font-size: 1.35rem;
    }

    .article-body .comparison-table {
        font-size: 0.85rem;
    }

    .article-body .comparison-table th,
    .article-body .comparison-table td {
        padding: 0.5rem 0.6rem;
    }
}

/* ---------- Print Styles ---------- */
@media print {

    .site-header,
    .mobile-nav,
    .mobile-nav-overlay,
    .scroll-top {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .section {
        padding: 2rem 0;
    }
}