/* ==========================================================================
   Peak Media — Cinematic Agency Styles v2.0
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Brand palette */
    --peak-black: #0D0D0D;
    --peak-dark: #1A1A1A;
    --peak-charcoal: #2A2A2A;
    --peak-red: #E31E24;
    --peak-red-hover: #c41920;
    --peak-red-glow: rgba(227, 30, 36, 0.25);
    --peak-red-soft: rgba(227, 30, 36, 0.08);
    --peak-red-mist: rgba(227, 30, 36, 0.04);
    --peak-silver: #B0B0B0;
    --peak-light: #F7F8FA;
    --peak-white: #FFFFFF;
    --peak-gray: #6B7280;
    --peak-gray-light: #9CA3AF;
    --peak-border: rgba(255,255,255,0.08);
    --peak-border-light: rgba(0,0,0,0.06);

    /* Glass */
    --glass-bg: rgba(255,255,255,0.55);
    --glass-border: rgba(255,255,255,0.18);
    --glass-blur: 20px;
    --glass-dark: rgba(255,255,255,0.04);
    --glass-dark-border: rgba(255,255,255,0.06);

    /* Typography */
    --font-en: 'Poppins', sans-serif;
    --font-ar: 'Cairo', sans-serif;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Shadows — layered for depth */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-xl: 0 32px 80px rgba(0,0,0,0.16);
    --shadow-glow: 0 0 40px var(--peak-red-glow);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.03), 0 6px 24px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 12px 48px rgba(0,0,0,0.11), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-card-premium: 0 20px 60px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.06);

    /* Motion tokens */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.6s;
    --duration-reveal: 0.8s;
    --duration-cinematic: 1.2s;

    --transition: all 0.4s var(--ease-out-quart);
    --transition-fast: all 0.2s var(--ease-out-quart);
    --transition-slow: all 0.6s var(--ease-out-expo);
    --transition-color: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* ---------- Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-en);
    color: var(--peak-dark);
    overflow-x: hidden;
    background: var(--peak-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-en);
    font-weight: 700;
    line-height: 1.15;
    color: var(--peak-dark);
}

a {
    text-decoration: none;
    transition: var(--transition-color);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--peak-red);
    color: var(--peak-white);
}

/* ---------- Section Common ---------- */
.section-padding {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--peak-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    position: relative;
}

/* Gradient variant for section titles */
.section-title-grad {
    background: linear-gradient(135deg, var(--peak-dark) 30%, var(--peak-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-divider {
    width: 50px;
    height: 3px;
    background: var(--peak-red);
    margin-bottom: 1.25rem;
    border-radius: 2px;
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--peak-red);
    border-radius: 2px;
    animation: dividerPulse 2.5s ease-in-out infinite;
    opacity: 0;
}

@keyframes dividerPulse {
    0%, 100% { opacity: 0; transform: scaleX(1); }
    50% { opacity: 0.3; transform: scaleX(1.6); }
}

.section-subtitle {
    color: var(--peak-gray);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.9;
}

/* Section accent — subtle top border */
.section-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--peak-border-light), transparent);
}

/* ---------- Reveal Animation System ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-reveal) var(--ease-out-expo),
                transform var(--duration-reveal) var(--ease-out-expo);
    will-change: opacity, transform;
}

.reveal.reveal-left {
    transform: translateX(-40px);
}

.reveal.reveal-right {
    transform: translateX(40px);
}

.reveal.reveal-scale {
    transform: scale(0.92);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.08s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.08s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.16s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.24s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.32s; }
.stagger-children .reveal:nth-child(7) { transition-delay: 0.40s; }
.stagger-children .reveal:nth-child(8) { transition-delay: 0.48s; }

/* ---------- Buttons ---------- */
.btn-peak {
    background: var(--peak-red);
    color: var(--peak-white);
    border: none;
    padding: 16px 44px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: transform var(--duration-normal) var(--ease-out-expo),
                box-shadow var(--duration-normal) var(--ease-out-expo),
                background-color var(--duration-fast) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-peak::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--peak-red-hover), #ff3338);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
}

/* Glow halo */
.btn-peak::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    background: var(--peak-red);
    z-index: -2;
    opacity: 0;
    filter: blur(18px);
    transition: opacity var(--duration-normal) ease;
}

.btn-peak:hover {
    color: var(--peak-white);
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(227, 30, 36, 0.4);
}

.btn-peak:hover::before {
    opacity: 1;
}

.btn-peak:hover::after {
    opacity: 0.45;
}

.btn-peak:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.3);
}

.btn-peak:focus-visible {
    outline: 2px solid var(--peak-red);
    outline-offset: 3px;
}

.btn-peak i {
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.btn-peak:hover i {
    transform: translateX(3px);
}

.btn-outline-peak {
    background: transparent;
    color: var(--peak-white);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 14px 38px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-peak:hover {
    color: var(--peak-white);
    border-color: var(--peak-red);
    background: var(--peak-red);
    transform: translateY(-2px);
}

.bg-peak {
    background-color: var(--peak-red) !important;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
#mainNav {
    padding: 20px 0;
    transition: padding var(--duration-slow) var(--ease-out-expo),
                background var(--duration-slow) var(--ease-out-expo),
                box-shadow var(--duration-slow) var(--ease-out-expo),
                border-color var(--duration-slow) var(--ease-out-expo);
    background: transparent;
    z-index: 1000;
    border-bottom: 1px solid transparent;
}

#mainNav.scrolled {
    background: rgba(13, 13, 13, 0.92) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border-bottom-color: rgba(255,255,255,0.04);
}

#mainNav .navbar-brand img {
    transition: height var(--duration-slow) var(--ease-out-expo),
                max-height var(--duration-slow) var(--ease-out-expo);
}

.navbar-logo {
    height: 100px;
    width: auto;
    max-height: 100px;
    object-fit: contain;
}

#mainNav.scrolled .navbar-logo {
    height: 32px;
    max-height: 32px;
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    font-size: 0.86rem;
    padding: 8px 16px;
    transition: color var(--duration-fast) ease;
    position: relative;
    letter-spacing: 0.4px;
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--peak-red);
    transition: width var(--duration-normal) var(--ease-out-expo),
                left var(--duration-normal) var(--ease-out-expo);
    border-radius: 2px;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--peak-white);
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
    width: 60%;
    left: 20%;
}

.lang-switch {
    border: 1.5px solid rgba(227, 30, 36, 0.5) !important;
    border-radius: var(--radius-full) !important;
    margin-left: 10px;
    padding: 6px 20px !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    transition: var(--transition) !important;
}

.lang-switch:hover {
    background: var(--peak-red) !important;
    border-color: var(--peak-red) !important;
    transform: translateY(-1px);
}

/* Burger */
.navbar-toggler {
    border: none !important;
    padding: 8px;
    position: relative;
    z-index: 1001;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    transition: var(--transition);
}

.logo-dark { display: none; }

/* ==========================================================================
   HERO — Cinematic Entrance
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--peak-black);
    overflow: hidden;
}

/* Multi-layer gradient background */
.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(227, 30, 36, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 100%, rgba(227, 30, 36, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 10% 60%, rgba(227, 30, 36, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #0D0D0D 0%, #151515 50%, #0D0D0D 100%);
}

/* Grid overlay with fade mask */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, rgb(0,0,0) 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgb(0,0,0) 20%, transparent 70%);
    animation: heroGridDrift 25s linear infinite;
}

/* Film grain noise overlay */
.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    z-index: 1;
}

/* Horizontal shimmer sweep */
.hero-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(227, 30, 36, 0.04) 45%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(227, 30, 36, 0.04) 55%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: heroShimmer 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes heroShimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

@keyframes heroGridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-overlay { display: none; }

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

/* Mouse-tracking ambient light — position set via JS */
.hero-mouse-light {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227,30,36,0.06), transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease;
    will-change: left, top;
}

.hero-mouse-light.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* Mountain logo */
.hero-mountain {
    margin-bottom: 2.5rem;
}

.mountain-svg {
    width: 140px;
    height: auto;
    transform-origin: center bottom;
    animation:
        mountainGlow 3s ease-in-out infinite alternate,
        mountainFloat 5s ease-in-out 2.2s infinite;
}

@keyframes mountainGlow {
    0%   { filter: drop-shadow(0 0 20px rgba(227, 30, 36, 0.3)); }
    100% { filter: drop-shadow(0 0 55px rgba(227, 30, 36, 0.65)); }
}

@keyframes mountainFloat {
    0%, 100% { transform: translateY(0)    scale(1); }
    50%       { transform: translateY(-12px) scale(1.04); }
}

.mountain-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawMountain 2s var(--ease-out-expo) forwards;
}

.mountain-inner {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation:
        drawMountain 2s var(--ease-out-expo) 0.5s forwards,
        mountainInnerBreath 3.5s ease-in-out 2.6s infinite;
}

@keyframes drawMountain {
    to { stroke-dashoffset: 0; }
}

@keyframes mountainInnerBreath {
    0%, 100% { stroke-opacity: 1; }
    50%       { stroke-opacity: 0.2; }
}

/* Hero text */
.hero-title {
    font-size: clamp(2.2rem, 6vw, 5rem);
    font-weight: 800;
    color: var(--peak-white);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.2rem;
    line-height: 1.08;
    opacity: 0;
    animation: heroTextReveal 1.2s var(--ease-out-expo) 0.8s forwards;
}

/* Title accent word — colored span inside hero title */
.hero-title .accent {
    color: var(--peak-red);
}



.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.4);
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0;
    animation: heroTextReveal 1.2s var(--ease-out-expo) 1.2s forwards;
}

@keyframes heroTextReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--peak-red), transparent);
    margin: 2.5rem auto 0;
    opacity: 0;
    animation: heroLineGrow 1s var(--ease-out-expo) 1.5s forwards;
}

@keyframes heroLineGrow {
    from { opacity: 0; height: 0; }
    to { opacity: 1; height: 60px; }
}

.hero-section .btn-peak {
    opacity: 0;
    animation: heroTextReveal 1s var(--ease-out-expo) 1.8s forwards;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0;
    animation: heroTextReveal 1s var(--ease-out-expo) 2.2s forwards;
}

.scroll-indicator a {
    color: rgba(255,255,255,0.3);
    font-size: 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: color var(--duration-fast) ease;
}

.scroll-indicator a i {
    animation: scrollBounce 2.2s var(--ease-in-out-cubic) infinite;
}

.scroll-indicator a i:last-child {
    animation-delay: 0.15s;
    opacity: 0.5;
}

.scroll-indicator a:hover {
    color: var(--peak-red);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
#about {
    background: var(--peak-white);
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--peak-red-soft), transparent 70%);
    pointer-events: none;
}

.about-text {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--peak-gray);
}

.about-vm-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--peak-dark);
}

.about-vm-text {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--peak-gray);
}

/* Counter boxes — elevated glass cards */
.counter-box {
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    background: var(--peak-white);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform var(--duration-normal) var(--ease-out-expo),
                box-shadow var(--duration-normal) var(--ease-out-expo),
                border-color var(--duration-normal) ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.counter-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--peak-red), rgba(227,30,36,0.15));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.counter-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.counter-box:hover::before {
    transform: scaleX(1);
}

.counter {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--peak-red);
    display: inline-block;
    line-height: 1;
}

.counter-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--peak-red);
}

.counter-box p {
    color: var(--peak-gray);
    margin-top: 10px;
    font-size: 0.88rem;
    font-weight: 500;
}

/* ==========================================================================
   SERVICES — Premium Numbered Cards
   ========================================================================== */
#services {
    background: var(--peak-light);
    position: relative;
    overflow: hidden;
}

/* Faint radial accent behind services */
#services::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--peak-red-mist), transparent 65%);
    pointer-events: none;
}

.service-card {
    background: var(--peak-white);
    border-radius: var(--radius-lg);
    padding: 44px 28px 36px;
    text-align: center;
    transition: transform var(--duration-normal) var(--ease-out-expo),
                box-shadow var(--duration-normal) var(--ease-out-expo);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    /* Counter for auto-numbering */
    counter-increment: service-count;
}

/* Auto-numbered large background number */
.service-card::before {
    content: counter(service-count, decimal-leading-zero);
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 5rem;
    font-weight: 900;
    color: var(--peak-dark);
    opacity: 0.07;
    line-height: 1;
    pointer-events: none;
    transition: opacity var(--duration-normal) ease, color var(--duration-normal) ease;
}

/* Bottom accent line */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--peak-red), rgba(227,30,36,0.2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

/* Reset counter at container level */
#services .row {
    counter-reset: service-count;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card:hover::before {
    opacity: 0.12;
    color: var(--peak-red);
}

.service-icon {
    width: 72px;
    height: 72px;
    background: var(--peak-dark);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: transform var(--duration-normal) var(--ease-out-expo),
                background-color var(--duration-normal) ease,
                box-shadow var(--duration-normal) ease;
    position: relative;
}

.service-card:hover .service-icon {
    background: var(--peak-red);
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(227, 30, 36, 0.3);
}

.service-icon i {
    font-size: 1.6rem;
    color: var(--peak-white);
    transition: transform var(--duration-normal) var(--ease-spring);
}

.service-card:hover .service-icon i {
    transform: scale(1.15);
}

.service-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--peak-dark);
    transition: color var(--duration-fast) ease;
}

.service-card:hover h4 {
    color: var(--peak-red);
}

.service-card p {
    font-size: 0.88rem;
    color: var(--peak-gray);
    line-height: 1.8;
    margin: 0;
}

/* ==========================================================================
   CLIENTS
   ========================================================================== */
#clients {
    background: var(--peak-white);
    position: relative;
}

/* Logo Carousel Dual Row */
.logo-carousel-outer {
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0.5rem 0;
    position: relative;
    direction: ltr; /* force LTR so the animation works identically in RTL pages */
}

.logo-carousel-row {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 18px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.logo-carousel-track {
    display: flex;
    gap: 24px;
    width: max-content;
    align-items: center;
    animation: logoCarousel 60s linear infinite;
    will-change: transform;
}

.logo-carousel-row--reverse .logo-carousel-track {
    animation-direction: reverse;
}

@keyframes logoCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pause on hover for premium feel */
.logo-carousel-row:hover .logo-carousel-track {
    /* animation-play-state: paused; -- disabled for testing/production, always animates */
}

@media (max-width: 991px) {
    .logo-carousel-track { gap: 16px; }
    .client-logo { min-width: 120px; }
}
@media (max-width: 576px) {
    .logo-carousel-track { gap: 10px; }
    .client-logo { min-width: 90px; padding: 10px; }
}

/* Individual logo card */
.client-logo {
    background: var(--peak-white);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    min-width: 160px;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform var(--duration-normal) var(--ease-out-expo),
                box-shadow var(--duration-normal) var(--ease-out-expo),
                border-color var(--duration-normal) ease;
    box-shadow: var(--shadow-card);
}

.client-logo:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.client-logo.premium {
    min-height: 130px;
    min-width: 200px;
    border: 1px solid rgba(0,0,0,0.05);
    background: linear-gradient(135deg, var(--peak-white), #fafafa);
}

.client-logo.premium:hover {
    border-color: var(--peak-red);
    box-shadow: 0 12px 40px rgba(227, 30, 36, 0.12);
}

.client-logo img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    filter: none;
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.client-logo:hover img {
    transform: scale(1.06);
}

.client-logo.premium img {
    max-height: 90px;
}

/* ==========================================================================
   PORTFOLIO — Showcase
   ========================================================================== */
.section-space {
    padding: 8rem 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--peak-dark) 30%, var(--peak-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-heading p {
    color: var(--peak-gray);
    font-size: 1.05rem;
    line-height: 1.9;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.86rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--peak-red);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-kicker::before,
.section-kicker::after {
    content: "";
    width: 44px;
    height: 1px;
    background: rgba(227,30,36,0.35);
}

.portfolio-section {
    background:
        radial-gradient(circle at top right, rgba(227,30,36,.05), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    overflow: hidden;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.filter-chip {
    border: 0;
    border-radius: var(--radius-full);
    background: #f1f1f1;
    color: #444;
    font-weight: 600;
    padding: 0.65rem 1.15rem;
    transition: background var(--duration-fast) ease,
                color var(--duration-fast) ease,
                transform var(--duration-fast) var(--ease-out-expo),
                box-shadow var(--duration-fast) ease;
    cursor: pointer;
    font-size: 0.85rem;
}

.filter-chip:hover {
    background: #e4e4e4;
    transform: translateY(-1px);
}

.filter-chip.active {
    background: var(--peak-red);
    color: #fff;
    box-shadow: 0 4px 18px rgba(227,30,36,0.3);
    transform: translateY(-1px);
}

/* Portfolio Cards — Elevated with 3D hover */
.portfolio-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--peak-border-light);
    box-shadow: var(--shadow-card);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--duration-normal) var(--ease-out-expo),
                box-shadow var(--duration-normal) var(--ease-out-expo);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-premium);
}

.portfolio-media {
    position: relative;
    overflow: hidden;
}

.portfolio-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform var(--duration-cinematic) var(--ease-out-expo);
}

.portfolio-card:hover .portfolio-media img {
    transform: scale(1.08);
}

/* Gradient overlay */
.portfolio-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,13,13,0.55), transparent 55%);
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
}

.portfolio-card:hover .portfolio-media::after {
    opacity: 1;
}

/* Clickable media overlay */
.portfolio-media-clickable {
    cursor: pointer;
}

.portfolio-media-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 13, 13, 0.5);
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
    z-index: 2;
}

.portfolio-media-overlay i {
    color: var(--peak-white);
    font-size: 2rem;
    transform: scale(0.7);
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.portfolio-media-clickable:hover .portfolio-media-overlay {
    opacity: 1;
}

.portfolio-media-clickable:hover .portfolio-media-overlay i {
    transform: scale(1);
}

.portfolio-tag {
    position: absolute;
    left: 1rem;
    top: 1rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-full);
    background: rgba(13,13,13,0.65);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    z-index: 1;
    transition: background var(--duration-fast) ease,
                transform var(--duration-fast) var(--ease-out-expo);
}

.portfolio-card:hover .portfolio-tag {
    background: var(--peak-red);
    transform: translateY(-2px);
}

.portfolio-body {
    position: relative;
    padding: 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-client {
    display: inline-block;
    color: var(--peak-red);
    font-weight: 700;
    font-size: 0.84rem;
    margin-bottom: 0.6rem;
}

.portfolio-body h3 {
    font-size: 1.15rem;
    font-weight: 750;
    margin-bottom: 0.6rem;
    min-height: 58px;
    line-height: 1.35;
}

.portfolio-body p {
    color: var(--peak-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    min-height: 115px;
    font-size: 0.9rem;
}

.portfolio-link {
    color: var(--peak-dark);
    font-weight: 700;
    text-decoration: none;
    padding: 0;
    position: static;
    transition: color var(--duration-fast) ease, gap var(--duration-fast) ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.portfolio-link::after {
    display: none;
}

.portfolio-link:hover {
    color: var(--peak-red);
    gap: 10px;
}

/* Filter animation */
.portfolio-item {
    transition: opacity var(--duration-normal) var(--ease-out-expo),
                transform var(--duration-normal) var(--ease-out-expo);
}

.portfolio-item.is-hidden {
    display: none;
}

.portfolio-item.is-hiding {
    opacity: 0;
    transform: scale(0.95);
}

.portfolio-item.is-showing {
    animation: portfolioFadeIn var(--duration-normal) var(--ease-out-expo) forwards;
}

@keyframes portfolioFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Portfolio Modal */
.portfolio-modal .modal-content {
    border-radius: var(--radius-lg);
    border: none;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.portfolio-modal .modal-header {
    padding: 1.5rem 2rem 0.5rem;
}

.portfolio-modal .modal-body {
    padding: 1rem 2rem 2rem;
}

.modal-kicker {
    display: inline-block;
    color: var(--peak-red);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.modal-image {
    border-radius: var(--radius-md);
    width: 100%;
}

.modal-client {
    color: var(--peak-red);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.modal-description {
    color: var(--peak-gray);
    line-height: 1.9;
    font-size: 1rem;
}

/* ==========================================================================
   STATS — Dramatic Dark Section
   ========================================================================== */
.stats-section {
    padding: 8rem 0;
    position: relative;
    background: var(--peak-black);
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(227, 30, 36, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(227, 30, 36, 0.06) 0%, transparent 60%);
}

.stats-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 80px 80px;
}

.stat-item {
    padding: 32px 24px;
    position: relative;
    border-radius: var(--radius-lg);
    transition: background var(--duration-normal) ease,
                transform var(--duration-normal) var(--ease-out-expo);
}

.stat-item:hover {
    background: rgba(255,255,255,0.03);
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 2rem;
    color: var(--peak-red);
    margin-bottom: 18px;
    display: block;
    transition: transform var(--duration-normal) var(--ease-spring);
    filter: drop-shadow(0 0 8px rgba(227,30,36,0.3));
}

.stat-item:hover .stat-icon {
    transform: scale(1.18);
    filter: drop-shadow(0 0 14px rgba(227,30,36,0.5));
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    display: inline-block;
    line-height: 1;
    background: linear-gradient(135deg, var(--peak-white), rgba(255,255,255,0.75));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--peak-red);
}

.stat-item p {
    font-size: 0.93rem;
    opacity: 0.5;
    margin-top: 10px;
    font-weight: 400;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
#contact {
    background: var(--peak-light);
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--peak-red-soft), transparent 70%);
    pointer-events: none;
}

.contact-form .form-control {
    border: 1.5px solid #e2e5ea;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 0.95rem;
    transition: border-color var(--duration-fast) ease,
                box-shadow var(--duration-fast) ease,
                transform var(--duration-fast) ease;
    background: var(--peak-white);
}

.contact-form .form-control:focus {
    border-color: var(--peak-red);
    box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.08);
    transform: translateY(-1px);
}

.contact-form .form-floating > label {
    transition: all var(--duration-fast) ease;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--peak-white);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform var(--duration-normal) var(--ease-out-expo),
                box-shadow var(--duration-normal) var(--ease-out-expo),
                border-color var(--duration-normal) ease;
    box-shadow: var(--shadow-card);
}

.contact-info-item:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
    transform: translateY(-4px);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: var(--peak-dark);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--duration-normal) ease,
                transform var(--duration-normal) var(--ease-spring);
}

.contact-info-item:hover .contact-info-icon {
    background: var(--peak-red);
    transform: scale(1.05) rotate(-3deg);
}

.contact-info-icon i {
    color: var(--peak-white);
    font-size: 1.1rem;
    transition: color var(--duration-fast) ease;
}

.contact-info-item:hover .contact-info-icon i {
    color: var(--peak-white);
}

.contact-info-item h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--peak-dark);
}

.contact-info-item p {
    color: var(--peak-gray);
    margin: 0;
    font-size: 0.9rem;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
    transition: box-shadow var(--duration-normal) ease,
                transform var(--duration-normal) var(--ease-out-expo);
}

.map-container:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-section {
    background: var(--peak-black);
    color: var(--peak-white);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--peak-red), transparent);
}

.footer-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227,30,36,0.06), transparent 70%);
    pointer-events: none;
}

.footer-tagline {
    color: var(--peak-silver);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--peak-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--peak-red);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--duration-fast) ease,
                padding-left var(--duration-fast) var(--ease-out-expo);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--peak-red);
    padding-left: 5px;
}

.footer-contact li {
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--peak-red);
    margin-inline-end: 10px;
    font-size: 0.85rem;
}

.social-links a {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin-inline-end: 8px;
    transition: transform var(--duration-normal) var(--ease-out-expo),
                background var(--duration-fast) ease,
                border-color var(--duration-fast) ease,
                color var(--duration-fast) ease;
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--peak-red);
    border-color: var(--peak-red);
    color: var(--peak-white);
    transform: translateY(-4px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.06);
    margin: 40px 0 20px;
}

.footer-copyright {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
    margin: 0;
}

/* ==========================================================================
   PAGE LOADER — Branded
   ========================================================================== */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--peak-black);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.6s var(--ease-out-expo),
                visibility 0.6s var(--ease-out-expo);
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.06);
    border-top-color: var(--peak-red);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--peak-red), #ff4d52);
    z-index: 9998;
    transition: width 0.05s linear;
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--peak-dark);
    color: var(--peak-white);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity var(--duration-normal) var(--ease-out-expo),
                visibility var(--duration-normal) var(--ease-out-expo),
                transform var(--duration-normal) var(--ease-out-expo),
                background var(--duration-fast) ease;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--peak-red);
    border-color: var(--peak-red);
    transform: translateY(-4px);
}

/* ==========================================================================
   DECORATIVE BUBBLES — Per-section backgrounds
   ========================================================================== */

/* Container inside each section */
.section-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Ensure parent sections can hold absolute children */
#about,
#services,
#portfolio,
#contact {
    position: relative;
    overflow: hidden;
}

/* Ensure section content sits above bubbles */
#about > .container,
#services > .container,
#portfolio > .container,
#contact > .container {
    position: relative;
    z-index: 1;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

/* Large glossy filled bubble */
.bubble--solid {
    background: radial-gradient(circle at 35% 30%,
        rgba(227, 30, 36, 0.30),
        rgba(227, 30, 36, 0.14) 50%,
        rgba(180, 20, 25, 0.05) 80%,
        transparent);
    animation: bubbleDrift1 18s ease-in-out infinite alternate;
}

/* Outlined ring bubbles */
.bubble--ring {
    background: transparent;
    border: 2px solid rgba(227, 30, 36, 0.10);
    animation: bubbleDrift2 22s ease-in-out infinite alternate;
}

/* Soft pink/salmon gradient bubble */
.bubble--soft {
    background: radial-gradient(circle at 40% 35%,
        rgba(227, 80, 80, 0.18),
        rgba(227, 30, 36, 0.08) 55%,
        rgba(200, 60, 60, 0.03) 80%,
        transparent);
    animation: bubbleDrift3 20s ease-in-out infinite alternate;
}

/* Dark accent bubbles */
.bubble--dark {
    background: radial-gradient(circle at 30% 25%,
        rgba(13, 13, 13, 0.18),
        rgba(26, 26, 26, 0.08) 55%,
        rgba(13, 13, 13, 0.02) 80%,
        transparent);
    animation: bubbleDrift4 24s ease-in-out infinite alternate;
}

/* Glossy highlight overlay for solid & soft */
.bubble--solid::after,
.bubble--soft::after {
    content: '';
    position: absolute;
    top: 12%;
    left: 18%;
    width: 35%;
    height: 25%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.20), transparent 70%);
    pointer-events: none;
}

/* Slow drifting animations */
@keyframes bubbleDrift1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(25px, -18px) scale(1.04); }
}
@keyframes bubbleDrift2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-20px, 15px) scale(1.02); }
}
@keyframes bubbleDrift3 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15px, 22px) scale(1.03); }
}
@keyframes bubbleDrift4 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-18px, -25px) scale(1.05); }
}

/* Ensure key elements stay above section backgrounds */\nmain, .page-loader, .scroll-progress, .back-to-top, .footer-section {\n    position: relative;\n    z-index: 1;\n}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
    .hero-title {
        letter-spacing: 0.1em;
    }
}

@media (max-width: 991px) {
    .hero-subtitle {
        letter-spacing: 0.1em;
    }

    .section-padding {
        padding: 5.5rem 0;
    }

    .section-space {
        padding: 5.5rem 0;
    }

    .stats-section {
        padding: 5.5rem 0;
    }

    .navbar-collapse {
        background: rgba(13, 13, 13, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 24px;
        border-radius: var(--radius-md);
        margin-top: 12px;
        border: 1px solid rgba(255,255,255,0.05);
        box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    }

    .navbar-collapse .nav-link {
        padding: 12px 16px !important;
        border-radius: var(--radius-sm);
        margin-bottom: 2px;
    }

    .navbar-collapse .nav-link:hover {
        background: rgba(255,255,255,0.04);
    }

    .navbar-collapse .lang-switch {
        margin-left: 0;
        margin-top: 8px;
        display: inline-block;
    }

    /* Hide hero decorative layers on mobile for performance */
    .hero-noise,
    .hero-shimmer,
    .hero-mouse-light {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4.5rem 0;
    }

    .section-space {
        padding: 4.5rem 0;
    }

    .stats-section {
        padding: 4.5rem 0;
    }

    .clients-marquee__track {
        gap: 16px;
        padding-inline-end: 16px;
    }

    .client-logo {
        padding: 18px;
        min-height: 80px;
        min-width: 130px;
    }

    .client-logo.premium {
        min-height: 100px;
        min-width: 160px;
    }

    .filter-bar {
        gap: 0.4rem;
    }

    .filter-chip {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .counter {
        font-size: 2.4rem;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .mountain-svg {
        width: 100px;
    }

    .hero-shimmer {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-subtitle {
        letter-spacing: 0.05em;
    }

    .section-padding {
        padding: 3.5rem 0;
    }

    .section-space {
        padding: 3.5rem 0;
    }

    .client-logo {
        padding: 14px;
        min-height: 70px;
        min-width: 110px;
    }

    .client-logo.premium {
        min-height: 85px;
        min-width: 140px;
    }

    .client-logo img {
        max-height: 50px;
    }

    .client-logo.premium img {
        max-height: 65px;
    }

    .counter {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .service-card {
        padding: 28px 20px;
    }

    .service-card::before {
        font-size: 3.5rem;
    }

    .contact-form .form-control {
        font-size: 16px; /* Prevent iOS zoom */
    }

    .mountain-svg {
        width: 80px;
    }

    .hero-mountain {
        margin-bottom: 1.5rem;
    }
}

/* ---------- Utility ---------- */
.btn:focus-visible,
.form-control:focus-visible,
.form-check-input:focus-visible {
    box-shadow: 0 0 0 2px var(--peak-white), 0 0 0 4px var(--peak-red);
}

.btn:focus:not(:focus-visible),
.form-control:focus:not(:focus-visible) {
    box-shadow: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--peak-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--peak-red);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--peak-red-hover);
}

/* ==========================================================================
   PREFERS REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Always animate logo carousel — override the wildcard above */
    .logo-carousel-outer .logo-carousel-track {
        animation: logoCarousel 60s linear infinite !important;
        animation-play-state: running !important;
    }
    .logo-carousel-outer .logo-carousel-row--reverse .logo-carousel-track {
        animation-direction: reverse !important;
    }

    .hero-title,
    .hero-subtitle,
    .hero-line,
    .hero-section .btn-peak,
    .scroll-indicator {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }

    .hero-shimmer,
    .hero-noise,
    .hero-mouse-light {
        display: none !important;
    }

    .section-bubbles {\n        display: none !important;\n    }

    .mountain-path,
    .mountain-inner {
        stroke-dashoffset: 0 !important;
        animation: none !important;
    }

    .mountain-svg {
        animation: none !important;
        filter: drop-shadow(0 0 20px rgba(227, 30, 36, 0.3)) !important;
        transform: none !important;
    }

    .page-loader {
        display: none !important;
    }
}
