/* ============================================================
   3D THINK AHEAD — Design System v2
   Premium engineering aesthetic · Motion-first
   ============================================================ */

/* ===== Design Tokens ===== */
:root {
    /* Brand */
    --primary: #ff3b52;
    --primary-dark: #d92638;
    --primary-soft: rgba(255, 59, 82, 0.08);
    --primary-glow: rgba(255, 59, 82, 0.35);
    --secondary: #12131c;
    --accent: #4f7cff;
    --accent-light: #9db9ff;

    /* Surfaces */
    --dark: #07070b;
    --dark-2: #0c0d14;
    --dark-3: #12141f;
    --gray-900: #16171f;
    --gray-800: #2a2b36;
    --gray-700: #3f414e;
    --gray-600: #5c5f6e;
    --gray-400: #999999;
    --gray-300: #d4d4d4;
    --gray-200: #eaeaea;
    --gray-100: #fafafa;
    --white: #ffffff;

    /* Gradients */
    --gradient: linear-gradient(135deg, #ff3b52 0%, #ff5f45 55%, #ff8c42 100%);
    --gradient-2: linear-gradient(135deg, #12131c 0%, #2b3a67 100%);
    --gradient-surface: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));

    /* Elevation — Vercel-style: crisp hairlines, soft ambient depth */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.05), 0 16px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 6px 16px rgba(0, 0, 0, 0.06), 0 24px 64px rgba(0, 0, 0, 0.14);
    --shadow-glow: 0 8px 32px var(--primary-glow);

    /* Shape */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 100px;

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
    --transition: all 0.3s var(--ease-out);

    /* Type */
    --font-primary: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Geist', sans-serif;
}

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

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

body {
    font-family: var(--font-primary);
    background: var(--white);
    color: var(--gray-700);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

::selection {
    background: var(--primary);
    color: var(--white);
}

/* Accessible focus rings */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 8px;
    border: 2px solid var(--gray-100);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.section {
    padding: 110px 0;
}

/* ===== Preloader ===== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

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

.loader .cube {
    width: 52px;
    height: 52px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 1.8s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

.loader .face {
    position: absolute;
    width: 52px;
    height: 52px;
    border: 2px solid var(--primary);
    background: rgba(255, 59, 82, 0.08);
    box-shadow: inset 0 0 18px rgba(255, 59, 82, 0.15);
}

.loader .front  { transform: translateZ(26px); }
.loader .back   { transform: rotateY(180deg) translateZ(26px); }
.loader .right  { transform: rotateY(90deg) translateZ(26px); }
.loader .left   { transform: rotateY(-90deg) translateZ(26px); }
.loader .top    { transform: rotateX(90deg) translateZ(26px); }
.loader .bottom { transform: rotateX(-90deg) translateZ(26px); }

@keyframes rotateCube {
    0%   { transform: rotateX(0) rotateY(0); }
    50%  { transform: rotateX(180deg) rotateY(180deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* ===== Navigation ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), padding 0.4s var(--ease-out);
    padding: 10px 0;
}

#header.scrolled,
body.no-hero #header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    box-shadow: 0 1px 0 rgba(10, 12, 20, 0.06), 0 8px 32px rgba(10, 12, 20, 0.06);
    padding: 0;
}

/* Page Banner for sub-pages */
.page-banner {
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(255, 59, 82, 0.16), transparent 60%),
        radial-gradient(700px 380px at 5% 110%, rgba(79, 124, 255, 0.12), transparent 60%),
        linear-gradient(160deg, #07070b 0%, #0e1018 55%, #131828 100%);
    padding: 150px 0 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 30%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 30%, transparent 90%);
}

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

.page-banner h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.page-banner p {
    font-size: 1.08rem;
    color: rgba(255,255,255,0.62);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.75;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page-breadcrumb a {
    color: rgba(255,255,255,0.5);
}

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

.page-breadcrumb span {
    color: var(--primary);
    font-weight: 600;
}

.page-breadcrumb i {
    color: rgba(255,255,255,0.28);
    font-size: 0.6rem;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    z-index: 100;
}

.logo-3d {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.75rem;
}

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

#header:not(.scrolled) .logo-text {
    color: var(--white);
}

body.no-hero #header .logo-text {
    color: var(--secondary);
}

.logo-highlight {
    color: var(--primary);
    -webkit-text-fill-color: initial;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
    padding: 12px 0;
    letter-spacing: 0.01em;
    min-height: 44px;
    display: flex;
    align-items: center;
}

#header:not(.scrolled) .nav-links a {
    color: rgba(255,255,255,0.82);
}

body.no-hero #header .nav-links a {
    color: var(--gray-600);
}

body.no-hero #header .nav-links a:hover,
body.no-hero #header .nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease-out);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

#header:not(.scrolled) .nav-links a:hover,
#header:not(.scrolled) .nav-links a.active {
    color: var(--white);
}

.nav-cta {
    padding: 11px 26px !important;
    font-size: 0.85rem !important;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 30px;
    border-radius: var(--radius-pill);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

/* shine sweep */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s var(--ease-out);
    pointer-events: none;
}

.btn:hover::before {
    left: 130%;
}

.btn:active {
    transform: scale(0.97);
}

.btn i {
    transition: transform 0.3s var(--ease-spring);
}

.btn:hover i {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 16px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-outline {
    background: rgba(255,255,255,0.04);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(255,255,255,0.15);
}

.btn-outline-dark {
    background: transparent;
    color: var(--secondary);
    border: 1.5px solid var(--gray-200);
}

.btn-outline-dark:hover {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}

.btn-lg {
    padding: 17px 38px;
    font-size: 1rem;
}

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

/* ===== Hamburger ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 100;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
    border-radius: 2px;
}

#header:not(.scrolled) .hamburger span {
    background: var(--white);
}

/* Sub-pages have a light header from the start — keep the hamburger dark */
body.no-hero #header .hamburger span {
    background: var(--secondary);
}

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

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

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

/* ===== Floating Social Media ===== */
.floating-socials {
    position: fixed;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.social-float {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.15rem;
    box-shadow: 0 6px 20px rgba(7, 7, 11, 0.25);
    transition: transform 0.35s var(--ease-spring), box-shadow 0.3s var(--ease-out);
}

.social-float:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 30px rgba(7, 7, 11, 0.35);
}

.social-float.whatsapp  { background: #25D366; }
.social-float.facebook  { background: #1877F2; }
.social-float.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-float.linkedin  { background: #0A66C2; }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* bottom padding reserves space for the absolute scroll indicator */
    padding: 74px 0 130px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1100px 600px at 80% 10%, rgba(255, 59, 82, 0.12), transparent 55%),
        radial-gradient(900px 600px at 10% 90%, rgba(79, 124, 255, 0.1), transparent 55%),
        linear-gradient(160deg, #07070b 0%, #0d0f1a 50%, #121a2e 100%);
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 95%);
}

.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    will-change: transform;
}

.shape-1 {
    width: 420px;
    height: 420px;
    background: var(--primary);
    top: -110px;
    right: -110px;
    animation: float1 9s ease-in-out infinite;
}

.shape-2 {
    width: 320px;
    height: 320px;
    background: var(--accent);
    bottom: -60px;
    left: -60px;
    animation: float2 11s ease-in-out infinite;
}

.shape-3 {
    width: 220px;
    height: 220px;
    background: #ff8c42;
    top: 50%;
    left: 42%;
    animation: float1 13s ease-in-out infinite reverse;
}

.shape-4 {
    width: 160px;
    height: 160px;
    background: var(--accent-light);
    bottom: 20%;
    right: 22%;
    animation: float2 10s ease-in-out infinite reverse;
    opacity: 0.22;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.08); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    background: rgba(255, 59, 82, 0.1);
    border: 1px solid rgba(255, 59, 82, 0.28);
    border-radius: var(--radius-pill);
    color: #ff8896;
    font-size: 0.84rem;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: 0.03em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.06;
    margin-bottom: 26px;
    letter-spacing: -0.035em;
}

.hero h1 .word {
    display: inline-block;
    will-change: transform;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.16rem;
    color: rgba(255,255,255,0.64);
    line-height: 1.8;
    margin-bottom: 42px;
    max-width: 610px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 44px;
    align-items: center;
    flex-wrap: wrap;
}

.stat {
    text-align: left;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: -4px;
    letter-spacing: 0.02em;
}

.stat-divider {
    width: 1px;
    height: 52px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.25), transparent);
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 68px;
}

.section-tag {
    display: inline-block;
    padding: 7px 18px;
    background: var(--primary-soft);
    border: 1px solid rgba(255, 59, 82, 0.18);
    border-radius: var(--radius-pill);
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 18px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 18px;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== About Section ===== */
.about {
    background: var(--gray-100);
}

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

.about-card {
    background: var(--white);
    padding: 44px 34px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
    border: 1px solid var(--gray-200);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.about-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 26px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.about-card:hover .about-icon {
    background: var(--gradient);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.about-card p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--gray-600);
}

/* ===== Services Section ===== */
.services {
    background: var(--white);
}

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

.service-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 42px 34px;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.45s var(--ease-out);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

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

.service-number {
    position: absolute;
    top: 22px;
    right: 26px;
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(18, 19, 28, 0.1);
    line-height: 1;
    transition: var(--transition);
}

.service-card:hover .service-number {
    -webkit-text-stroke-color: rgba(255, 59, 82, 0.35);
}

.service-icon {
    width: 62px;
    height: 62px;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    font-size: 1.4rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient);
    color: var(--white);
    transform: scale(1.06) rotate(-4deg);
    box-shadow: var(--shadow-glow);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-card > p {
    font-size: 0.92rem;
    color: var(--gray-600);
    margin-bottom: 22px;
    line-height: 1.65;
}

.service-list {
    margin-bottom: 22px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.89rem;
    color: var(--gray-700);
}

.service-list li i {
    font-size: 0.68rem;
    color: var(--primary);
    flex-shrink: 0;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    padding-top: 14px;
    border-top: 1px solid var(--gray-200);
    width: 100%;
    cursor: pointer;
}

.service-link:hover {
    gap: 14px;
}

.service-link i {
    font-size: 0.75rem;
    transition: var(--transition);
}

/* ===== Gallery Section ===== */
.gallery {
    background:
        radial-gradient(800px 500px at 90% 0%, rgba(255, 59, 82, 0.08), transparent 55%),
        linear-gradient(160deg, #07070b 0%, #0e1018 100%);
}

.gallery .section-tag {
    background: rgba(255, 59, 82, 0.14);
    border-color: rgba(255, 59, 82, 0.3);
}

.gallery .section-header h2 {
    color: var(--white);
}

.gallery .section-desc {
    color: rgba(255,255,255,0.6);
}

.gallery.section {
    padding-top: 64px;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 52px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 26px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.7);
    border-radius: var(--radius-pill);
    font-family: var(--font-primary);
    font-size: 0.86rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 18px var(--primary-glow);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out);
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.06);
}

.gallery-item.hidden {
    display: none;
}

.gallery-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.3);
    transition: transform 0.6s var(--ease-out);
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4,4,8,0.9) 0%, rgba(4,4,8,0.25) 50%, transparent 75%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.06);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.45), 0 0 0 1px rgba(255, 59, 82, 0.25);
}

.gallery-overlay h4 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.08rem;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.gallery-overlay span {
    color: var(--primary);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 8, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 84%;
    max-height: 82vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content .gallery-img {
    width: 600px;
    height: 450px;
    border-radius: var(--radius-lg);
    font-size: 5rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.08);
}

.lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

.lightbox-close {
    top: 24px;
    right: 24px;
}

.lightbox-prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

/* ===== Google Reviews Section ===== */
.reviews {
    background: var(--gray-100);
}

.google-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.google-logo {
    width: 32px;
    height: 32px;
}

.rating-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stars {
    color: #fbbc04;
    font-size: 1.1rem;
    display: flex;
    gap: 2px;
}

.rating-text {
    font-size: 0.85rem;
    color: var(--gray-600);
}

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

.review-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 34px;
    border: 1px solid var(--gray-200);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

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

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.review-header h4 {
    font-family: var(--font-display);
    color: var(--secondary);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.review-stars {
    color: #fbbc04;
    font-size: 0.8rem;
    display: flex;
    gap: 1px;
}

.review-google-icon {
    position: absolute;
    top: 0;
    right: 0;
    color: #4285f4;
    font-size: 1.2rem;
}

.review-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 12px;
}

.review-date {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.reviews-cta {
    text-align: center;
    margin-top: 44px;
}

/* ===== CTA Section ===== */
.cta-section {
    background:
        radial-gradient(700px 400px at 15% 0%, rgba(255,255,255,0.14), transparent 55%),
        var(--gradient);
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    color: var(--white);
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cta-content h2 .gradient-text {
    background: linear-gradient(135deg, #fff 0%, #ffd9c9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 36px;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--white);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    border: 1px solid transparent;
    transition: var(--transition);
}

.info-card:hover {
    background: var(--white);
    border-color: var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.info-card h4 {
    font-family: var(--font-display);
    color: var(--secondary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.55;
}

/* Contact Form */
.contact-form {
    background: var(--gray-100);
    padding: 44px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--gray-800);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-400);
}

.contact-form .form-group:last-of-type {
    margin-bottom: 24px;
}

.contact-form .btn {
    margin-top: 8px;
}

.form-status {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 24px;
}

.form-status.success {
    color: #16a34a;
}

.form-status.error {
    color: var(--primary);
}

/* ===== Footer ===== */
.footer {
    background:
        radial-gradient(800px 300px at 80% 0%, rgba(255, 59, 82, 0.05), transparent 60%),
        var(--dark);
    padding: 72px 0 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 52px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-top: 16px;
    line-height: 1.75;
    max-width: 290px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-links h4 {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 22px;
    letter-spacing: 0.01em;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    padding: 26px 0;
    text-align: center;
}

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

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

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 6px 20px var(--primary-glow);
    z-index: 100;
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--primary-glow);
}

/* ===== Reveal fallback (used when Motion lib is unavailable) ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ===== Hero 3D Scene ===== */
.hero-3d-scene {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    perspective: 600px;
    z-index: 1;
}

.scene-cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: heroRotate 16s ease-in-out infinite;
}

.scene-face {
    position: absolute;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 59, 82, 0.55);
    border: 1px solid rgba(255, 59, 82, 0.18);
    background: linear-gradient(145deg, rgba(255, 59, 82, 0.06), rgba(79, 124, 255, 0.04));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 18px;
    box-shadow: inset 0 0 40px rgba(255, 59, 82, 0.05);
}

.scene-front  { transform: translateZ(100px); }
.scene-back   { transform: rotateY(180deg) translateZ(100px); }
.scene-right  { transform: rotateY(90deg) translateZ(100px); }
.scene-left   { transform: rotateY(-90deg) translateZ(100px); }
.scene-top    { transform: rotateX(90deg) translateZ(100px); }
.scene-bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes heroRotate {
    0%   { transform: rotateX(0deg) rotateY(0deg); }
    25%  { transform: rotateX(15deg) rotateY(90deg); }
    50%  { transform: rotateX(-10deg) rotateY(180deg); }
    75%  { transform: rotateX(15deg) rotateY(270deg); }
    100% { transform: rotateX(0deg) rotateY(360deg); }
}

/* Hero Badge Pulse Dot */
.badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse-dot 2s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    animation: fadeInUp 1s var(--ease-out) 1.6s both;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 4px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

.scroll-indicator span {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== 3D Card Tilt ===== */
.card-3d {
    transform-style: preserve-3d;
    will-change: transform;
}

.card-3d:hover {
    box-shadow: 0 24px 64px rgba(10, 12, 20, 0.16);
}

/* ===== Services Preview Section ===== */
.services-preview {
    background: var(--white);
    position: relative;
}

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

.service-preview-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 38px 30px;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.service-preview-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease-out);
}

.service-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

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

.service-preview-icon {
    margin-bottom: 26px;
}

.icon-3d-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.5s var(--ease-out);
    transform-style: preserve-3d;
}

.service-preview-card:hover .icon-3d-wrapper {
    background: var(--gradient);
    color: var(--white);
    transform: rotateY(360deg);
    box-shadow: var(--shadow-glow);
}

.service-preview-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-preview-card > p {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 22px;
}

/* ===== Why Choose Us ===== */
.why-choose {
    background:
        radial-gradient(900px 500px at 15% 10%, rgba(255, 59, 82, 0.08), transparent 55%),
        radial-gradient(700px 500px at 90% 90%, rgba(79, 124, 255, 0.08), transparent 55%),
        linear-gradient(160deg, #07070b 0%, #0e1018 100%);
    overflow: hidden;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.why-choose .section-tag {
    background: rgba(255, 59, 82, 0.14);
    border-color: rgba(255, 59, 82, 0.3);
}

.why-choose-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.9rem);
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.why-choose-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 42px;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.why-feature {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.why-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255, 59, 82, 0.12);
    border: 1px solid rgba(255, 59, 82, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.why-feature:hover .why-feature-icon {
    background: var(--gradient);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.why-feature h4 {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1.02rem;
    margin-bottom: 4px;
}

.why-feature p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
}

/* Floating Card Stack */
.why-choose-visual {
    position: relative;
    height: 400px;
    perspective: 800px;
}

.floating-card-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
    width: 280px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.floating-card:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255, 59, 82, 0.35);
}

.fc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.fc-content h5 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.fc-content span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
}

.fc-1 { top: 10%; left: 5%; animation: floatCard1 6s ease-in-out infinite; }
.fc-2 { top: 35%; right: 5%; animation: floatCard2 7s ease-in-out infinite; }
.fc-3 { bottom: 25%; left: 10%; animation: floatCard1 8s ease-in-out infinite reverse; }
.fc-4 { bottom: 5%; right: 10%; animation: floatCard2 5s ease-in-out infinite reverse; }

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-2deg); }
}

/* ===== Process Timeline ===== */
.process {
    background: var(--gray-100);
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    opacity: 0.3;
    transform-origin: top;
}

.process-step {
    display: flex;
    gap: 32px;
    margin-bottom: 44px;
    position: relative;
    align-items: flex-start;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-dot {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 6px 24px var(--primary-glow), 0 0 0 6px rgba(255, 59, 82, 0.08);
}

.process-dot span {
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
}

.process-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 34px;
    flex: 1;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.process-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.process-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.process-card h3 {
    font-family: var(--font-display);
    font-size: 1.18rem;
    color: var(--secondary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.process-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== Featured Projects ===== */
.featured-projects {
    background: var(--white);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 22px;
    margin-bottom: 48px;
}

.featured-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}

.featured-large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.featured-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}

.featured-item:hover .featured-img img {
    transform: scale(1.07);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4,4,8,0.88) 0%, rgba(4,4,8,0.15) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    opacity: 0;
    transition: opacity 0.45s var(--ease-out);
}

.featured-item:hover .featured-overlay {
    opacity: 1;
}

.featured-cat {
    display: inline-block;
    padding: 5px 14px;
    background: var(--gradient);
    border-radius: var(--radius-pill);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    width: fit-content;
}

.featured-overlay h3 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.12rem;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.featured-overlay p {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    line-height: 1.55;
}

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

/* ===== Clients Marquee ===== */
.clients-marquee {
    overflow: hidden;
}

.marquee-wrapper {
    overflow: hidden;
    padding: 24px 0;
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 64px;
    align-items: center;
    animation: marquee 28s linear infinite;
    width: max-content;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item img {
    max-height: 60px;
    width: auto;
    opacity: 0.85;
    transition: all 0.3s var(--ease-out);
}

.marquee-item img:hover {
    opacity: 1;
    transform: scale(1.1);
}

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

/* ===== Expertise Grid (homepage) ===== */
.our-expertise {
    background: var(--gray-100);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.expertise-block {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 30px;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.expertise-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease-out);
}

.expertise-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.expertise-block:hover::before {
    transform: scaleX(1);
}

.expertise-block h3 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.expertise-block h3 i {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.expertise-block:hover h3 i {
    background: var(--gradient);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.expertise-block p {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.75;
}

.expertise-closing {
    max-width: 820px;
    margin: 48px auto 0;
    text-align: center;
    padding: 34px 38px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-lg);
}

.expertise-closing p {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.85;
}

/* ===== FAQ Accordion ===== */
.faq {
    background: var(--white);
}

.faq-grid {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 59, 82, 0.28);
}

.faq-question {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 26px;
    cursor: pointer;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background 0.3s var(--ease-out);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    background: var(--gray-100);
}

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

.faq-question h3 {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.45;
    letter-spacing: -0.01em;
    margin: 0;
}

.faq-question::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    transition: transform 0.3s var(--ease-out);
    flex-shrink: 0;
    margin-top: -5px;
}

.faq-item[open] .faq-question::after {
    transform: rotate(-135deg);
    margin-top: 5px;
}

.faq-answer {
    padding: 4px 26px 24px;
}

.faq-answer p {
    font-size: 0.94rem;
    color: var(--gray-600);
    line-height: 1.8;
}

/* ===== Clients Logo Grid ===== */
.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px 56px;
    padding: 24px 0;
}

.client-logo {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo img {
    max-height: 90px;
    width: auto;
    transition: transform 0.3s var(--ease-spring);
}

.client-logo:hover img {
    transform: scale(1.06);
}

/* ===== Legal & Utility Content Pages ===== */
.privacy-content,
.terms-content {
    max-width: 820px;
    margin: 0 auto;
}

.privacy-content h3,
.terms-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--secondary);
    letter-spacing: -0.01em;
    margin: 36px 0 12px;
    padding-left: 16px;
    border-left: 3px solid var(--primary);
}

.privacy-content h3:first-child,
.terms-content h3:first-child {
    margin-top: 0;
}

.privacy-content p,
.terms-content p {
    margin-bottom: 18px;
    color: var(--gray-600);
    line-height: 1.85;
}

.privacy-content a,
.terms-content a {
    color: var(--primary);
    font-weight: 500;
}

/* 404 / 500 pages */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
    color: var(--gray-600);
}

.content a:not(.btn) {
    color: var(--primary);
    font-weight: 500;
}

/* CTA button row */
.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== Typography polish ===== */
.hero h1,
.page-banner h1,
.section-header h2,
.why-choose-content h2,
.cta-content h2 {
    text-wrap: balance;
}

.btn,
.filter-btn {
    touch-action: manipulation;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .services-grid,
    .reviews-grid,
    .services-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

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

    .featured-large {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 16/9;
    }

    .hero-3d-scene {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .container {
        padding: 0 20px;
    }

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

    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .expertise-block {
        padding: 26px 22px;
    }

    .expertise-closing {
        margin-top: 32px;
        padding: 26px 22px;
        text-align: left;
    }

    .faq-question {
        padding: 18px 20px;
    }

    .faq-question h3 {
        font-size: 0.96rem;
    }

    .faq-answer {
        padding: 2px 20px 20px;
    }

    .clients-grid {
        gap: 24px 36px;
    }

    .client-logo,
    .client-logo img {
        height: 64px;
        max-height: 64px;
    }

    .marquee-track {
        gap: 44px;
    }

    .marquee-item img {
        max-height: 44px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 82%;
        max-width: 340px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 40px;
        gap: 0;
        transition: right 0.45s var(--ease-out);
        box-shadow: var(--shadow-xl);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--gray-700) !important;
        padding: 15px 0;
        font-size: 1.05rem;
        width: 100%;
        border-bottom: none;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links li {
        border-bottom: 1px solid var(--gray-100);
        width: 100%;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary) !important;
        background: var(--primary-soft);
        padding-left: 14px;
        border-radius: var(--radius-sm);
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span {
        background: var(--secondary) !important;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    /* Scroll indicator is hidden at this size — no reserved space needed */
    .hero {
        padding-bottom: 48px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-grid,
    .services-grid,
    .reviews-grid,
    .services-preview-grid {
        grid-template-columns: 1fr;
    }

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

    .gallery-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 9px 18px;
        font-size: 0.8rem;
    }

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

    .contact-form {
        padding: 28px;
    }

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

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

    .cta-section {
        padding: 68px 0;
    }

    .floating-socials {
        left: 12px;
        bottom: 12px;
        gap: 8px;
    }

    .social-float {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .hero-3d-scene {
        display: none;
    }

    .why-choose-visual {
        height: 320px;
    }

    .floating-card {
        width: 240px;
        padding: 16px 20px;
    }

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

    .featured-large {
        grid-column: span 1;
        aspect-ratio: 16/9;
    }

    .process-step {
        gap: 20px;
    }

    .process-dot {
        width: 44px;
        height: 44px;
    }

    .process-line {
        left: 22px;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 90px;
        padding-bottom: 40px;
    }

    .hero-badge {
        font-size: 0.76rem;
        padding: 8px 16px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 34px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .stat-divider {
        display: none;
    }

    .google-rating {
        flex-direction: column;
        align-items: center;
    }

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

    .why-choose-visual {
        height: 280px;
    }

    .floating-card {
        width: 200px;
        padding: 14px 16px;
        font-size: 0.85rem;
    }

    .fc-icon {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 2000;
    pointer-events: none;
    box-shadow: 0 0 12px var(--primary-glow);
}

/* ===== Card Spotlight (mouse-tracking glow) ===== */
.spotlight-host {
    position: relative;
}

.card-spotlight {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s var(--ease-out);
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 59, 82, 0.08), transparent 65%);
    z-index: 1;
}

.spotlight-dark .card-spotlight {
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.09), transparent 65%);
}

.spotlight-host:hover .card-spotlight {
    opacity: 1;
}

/* ===== Film Grain on dark surfaces ===== */
.hero-bg::after,
.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

/* ===== Custom Cursor Follower ===== */
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: opacity 0.3s var(--ease-out);
    will-change: transform;
}

@media (hover: none), (pointer: coarse) {
    .cursor-ring {
        display: none;
    }
}

/* ===== Rotating hero word ===== */
.hero h1 .gradient-text {
    will-change: transform, opacity;
}

/* ===== Touch devices: show overlays that otherwise need hover ===== */
@media (hover: none) {
    .featured-overlay,
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(4, 4, 8, 0.85) 0%, rgba(4, 4, 8, 0.1) 45%, transparent 65%);
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

    .fade-in {
        opacity: 1;
        transform: none;
    }
}
