/* ==============================================
   TRIVIKRA TECH — Light Theme Design System
   Clean, white-space driven, premium UX
   ============================================== */

/* ──── Custom Properties ──── */
:root {
    /* Palette */
    --white: #ffffff;
    --bg: #fafbfc;
    --bg-alt: #f3f4f6;
    --bg-card: #ffffff;
    --surface: #f9fafb;

    --text-900: #0f172a;
    --text-700: #334155;
    --text-500: #64748b;
    --text-400: #94a3b8;
    --text-300: #cbd5e1;

    --blue: #213C72;
    --purple: #213C72;
    --teal: #14b8a6;
    --rose: #ec4899;
    --orange: #f97316;
    --sky: #0ea5e9;

    --gradient: linear-gradient(135deg, #213C72 0%, #3f2a71 50%, #e9d1ff 100%);
    --gradient-warm: linear-gradient(135deg, #f97316, #ec4899);
    --gradient-cool: linear-gradient(135deg, #0ea5e9, #6366f1);

    --border: #e5e7eb;
    --border-light: #f1f5f9;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .08);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, .1);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .04);
    --shadow-card-hover: 0 8px 40px rgba(99, 102, 241, .12);

    /* Typography */
    --ff: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ff-display: 'Outfit', 'Inter', sans-serif;

    /* Layout */
    --max-w: 1200px;
    --px: clamp(20px, 5vw, 48px);
    --section-py: clamp(80px, 12vw, 160px);

    /* Radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 9999px;

    /* Transitions */
    --ease: cubic-bezier(.4, 0, .2, 1);
    --t-fast: .2s var(--ease);
    --t-mid: .4s var(--ease);
    --t-slow: .6s var(--ease);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--blue) var(--bg-alt);
}

html::-webkit-scrollbar {
    width: 5px;
}

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

html::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: var(--r-full);
}

body {
    font-family: var(--ff);
    background: var(--white);
    color: var(--text-700);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

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

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

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.preloader-inner .logo-img {
    height: 60px;
    margin-bottom: 24px;
    animation: pulse 1.2s ease-in-out infinite;
}

.preloader-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 1.4rem;
    margin: 0 auto 20px;
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.08);
    }
}

.preloader-bar {
    width: 180px;
    height: 3px;
    background: var(--bg-alt);
    border-radius: var(--r-full);
    overflow: hidden;
    margin: 0 auto;
}

.preloader-fill {
    height: 100%;
    width: 0;
    background: var(--gradient);
    border-radius: var(--r-full);
    animation: fill 1.8s ease-out forwards;
}

@keyframes fill {
    to {
        width: 100%;
    }
}

/* ──── Navigation ──── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: all var(--t-mid);
}

#navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

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

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

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 1.1rem;
}

.logo-text {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-900);
}

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

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

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

.nav-link {
    padding: 8px 16px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-500);
    border-radius: var(--r-full);
    transition: all var(--t-fast);
}

.nav-link:hover {
    color: var(--text-900);
    background: var(--bg-alt);
}

.nav-link.active {
    color: var(--blue);
    font-weight: 600;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cta {
    padding: 10px 24px;
    background: var(--gradient);
    border-radius: var(--r-full);
    font-size: .88rem;
    font-weight: 600;
    color: var(--white);
    transition: all var(--t-mid);
    box-shadow: 0 2px 12px rgba(99, 102, 241, .25);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, .35);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text-900);
    border-radius: 2px;
    transition: all var(--t-mid);
}

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

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

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

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-mid);
}

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

.mobile-nav ul {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-link {
    font-family: var(--ff-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-500);
    padding: 8px;
    transition: all var(--t-mid);
}

.mobile-link:hover {
    color: var(--blue);
}

.mobile-cta {
    margin-top: 16px;
}

/* ──── Buttons ──── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: var(--r-full);
    font-family: var(--ff);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--t-mid);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(99, 102, 241, .25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, .35);
}

.btn-ghost {
    background: transparent;
    color: var(--text-900);
    border: 1.5px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-3px);
}

.btn-white {
    background: var(--white);
    color: var(--blue);
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

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

/* ──── HERO ──── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 60px;
    position: relative;
    background: transparent;
    /* Let Vanta JS handle the background */
}

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

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-center .hero-p {
    margin-left: auto;
    margin-right: auto;
}

.hero-center .hero-btns,
.hero-center .hero-social-proof {
    justify-content: center;
}

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

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-500);
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(20px);
}

.pill-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .4;
    }
}

.hero-h1 {
    font-family: var(--ff-display);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--text-900);
    margin-bottom: 24px;
}

.hero-h1 .line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
}

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

.hero-h1 em {
    font-style: normal;
    position: relative;
}

.hero-h1 em::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    border-radius: var(--r-full);
    opacity: .3;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease .8s;
}

.hero-h1 em.animated::after {
    transform: scaleX(1);
}

.hero-p {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--text-500);
    max-width: 720px;
    line-height: 1.8;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: translateY(20px);
}

.avatars {
    display: flex;
}

.av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c, var(--blue));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .78rem;
    border: 2.5px solid var(--white);
    margin-left: -8px;
}

.av:first-child {
    margin-left: 0;
}

.av-more {
    background: var(--bg-alt);
    color: var(--text-500);
    font-size: .7rem;
}

.proof-text {
    font-size: .88rem;
    color: var(--text-500);
}

.proof-text strong {
    color: var(--text-900);
}

.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    max-height: 600px;
    border-radius: var(--r-xl);
    overflow: hidden;
    opacity: 0;
    transform: translateX(40px);
}

/* Scroll Cue */
.scroll-cue {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-400);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp .8s ease 2.5s forwards;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--blue) 0%, transparent 100%);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
    }
}

/* ──── Logos Strip ──── */
.logos-strip {
    padding: 48px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: var(--white);
}

.logos-label {
    text-align: center;
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-400);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 24px;
}

.logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(32px, 6vw, 72px);
    flex-wrap: wrap;
}

.logo-placeholder {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-300);
    letter-spacing: -.01em;
    transition: color var(--t-mid);
}

.logo-placeholder:hover {
    color: var(--text-500);
}

/* ──── Section shared ──── */
.section-top {
    margin-bottom: 64px;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    background: rgba(99, 102, 241, .06);
    border: 1px solid rgba(99, 102, 241, .12);
    border-radius: var(--r-full);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
}

.section-heading {
    font-family: var(--ff-display);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.025em;
    color: var(--text-900);
    margin-bottom: 16px;
}

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

.section-sub {
    font-size: clamp(.95rem, 1.2vw, 1.1rem);
    color: var(--text-500);
    max-width: 1100px;
    line-height: 1.75;
}

.section-top.center .section-sub {
    margin: 0 auto;
}

/* ──── SERVICES ──── */
.services {
    padding: var(--section-py) 0;
    background: var(--bg);
}

.footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 1200px;
    /* Placeholder to prevent scroll-jitter */
}

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

.svc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
    cursor: default;
    will-change: transform, opacity;
}

.svc-card.anim-ready {
    transition: all var(--t-mid);
}

.svc-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%),
            rgba(99, 102, 241, .04), transparent 50%);
    opacity: 0;
    transition: opacity var(--t-mid);
    pointer-events: none;
}

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

.svc-card:hover {
    border-color: rgba(99, 102, 241, .2);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
}

.svc-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform var(--t-mid);
}

.svc-card:hover .svc-icon {
    transform: scale(1.1) rotate(4deg);
}

.svc-icon svg {
    width: 24px;
    height: 24px;
}

.icon-blue {
    background: rgba(99, 102, 241, .08);
    color: var(--blue);
}

.icon-purple {
    background: rgba(139, 92, 246, .08);
    color: var(--purple);
}

.icon-teal {
    background: rgba(20, 184, 166, .08);
    color: var(--teal);
}

.icon-rose {
    background: rgba(236, 72, 153, .08);
    color: var(--rose);
}

.icon-amber {
    background: rgba(245, 158, 11, .08);
    color: #f59e0b;
}

.svc-card h3 {
    font-family: var(--ff-display);
    font-size: clamp(1.05rem, 3vw, 1.25rem);
    font-weight: 700;
    color: var(--text-900);
    margin-bottom: 12px;
}

.svc-card p {
    font-size: clamp(.85rem, 2.2vw, .92rem);
    color: var(--text-500);
    line-height: 1.7;
    margin-bottom: 20px;
}

.svc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
}

.svc-tags li {
    font-size: clamp(.68rem, 1.8vw, .75rem);
    font-weight: 500;
    color: var(--text-500);
    padding: 4px 10px;
    background: var(--bg-alt);
    border-radius: var(--r-full);
    white-space: nowrap;
}

.svc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(.82rem, 2vw, .88rem);
    font-weight: 600;
    color: var(--blue);
    transition: gap var(--t-fast);
}

.svc-link:hover {
    gap: 12px;
}

#svc-automation .svc-link {
    color: var(--purple);
}

#svc-ai .svc-link {
    color: var(--teal);
}

#svc-dev .svc-link {
    color: var(--rose);
}

#svc-design .svc-link {
    color: #f59e0b;
}

/* Center the 5th card when in a 2-column grid */
.services-grid .svc-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    margin: 0 auto;
}

/* ──── ABOUT ──── */
.about {
    padding: var(--section-py) 0;
    background: var(--white);
}

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

.about-visual {
    position: relative;
}

.about-img-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--bg-alt);
    box-shadow: var(--shadow-lg);
}

.about-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-900);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    animation: float 4s ease-in-out infinite;
}

.float-1 {
    top: 12%;
    left: -16px;
    animation-delay: 0s;
}

.float-2 {
    bottom: 20%;
    right: -24px;
    animation-delay: 1.3s;
}

.float-3 {
    bottom: 2%;
    left: 8%;
    animation-delay: 2.6s;
}

@keyframes float {

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

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

.about-desc {
    font-size: 1.05rem;
    color: var(--text-500);
    line-height: 1.8;
    margin-bottom: 36px;
}

.about-desc em {
    font-style: normal;
    font-weight: 600;
    color: var(--text-900);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feat {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: var(--r-md);
    transition: background var(--t-fast);
}

.feat:hover {
    background: var(--bg-alt);
}

.feat-num {
    flex-shrink: 0;
    font-family: var(--ff-display);
    font-size: 1rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feat h4 {
    font-family: var(--ff-display);
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-900);
    margin-bottom: 4px;
}

.feat p {
    font-size: .85rem;
    color: var(--text-500);
}

/* ──── RESULTS / STATS ──── */
.results {
    padding: var(--section-py) 0;
    background: var(--bg);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
}

.stat.anim-ready {
    transition: all var(--t-mid);
}

.stat::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform var(--t-mid);
}

.stat:hover::after {
    transform: scaleX(1);
}

.stat:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.stat-num {
    font-family: var(--ff-display);
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suf {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--blue);
}

.stat p {
    font-size: .88rem;
    color: var(--text-500);
    margin-top: 8px;
}

/* ──── PROCESS ──── */
.process {
    padding: var(--section-py) 0;
    background: var(--white);
}

.steps-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    text-align: center;
    padding: 32px 24px;
}

.step-num {
    font-family: var(--ff-display);
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.step-card h4 {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-900);
    margin-bottom: 10px;
}

.step-card p {
    font-size: .88rem;
    color: var(--text-500);
    line-height: 1.65;
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 36px;
}

/* ──── TESTIMONIALS ──── */
.testimonials {
    padding: var(--section-py) 0;
    background: var(--bg);
}

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

.t-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    will-change: transform, opacity;
}

.t-card.anim-ready {
    transition: all var(--t-mid);
}

.t-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.t-stars {
    color: #f59e0b;
    font-size: 1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.t-card>p {
    font-size: .95rem;
    color: var(--text-700);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.t-card footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.t-av {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--c, var(--blue));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0;
}

.t-card footer strong {
    display: block;
    font-size: .88rem;
    color: var(--text-900);
}

.t-card footer span {
    font-size: .78rem;
    color: var(--text-400);
}

/* ──── CTA BANNER ──── */
.cta-banner {
    padding: 80px 0;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.cta-banner::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-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-inner h2 {
    font-family: var(--ff-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-inner p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 32px;
}

/* ──── CONTACT ──── */
.contact {
    padding: var(--section-py) 0;
    background: var(--white);
}

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

.contact-desc {
    font-size: 1.02rem;
    color: var(--text-500);
    line-height: 1.8;
    margin-bottom: 36px;
}

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

.cd-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cd-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, .06);
    border: 1px solid rgba(99, 102, 241, .1);
    border-radius: var(--r-sm);
    color: var(--blue);
}

.cd-label {
    display: block;
    font-size: .72rem;
    color: var(--text-400);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 2px;
    font-weight: 500;
}

.cd-item a,
.cd-item span {
    font-size: .92rem;
    color: var(--text-900);
}

.cd-item a:hover {
    color: var(--blue);
}

/* Contact Form */
.contact-form {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-field label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-700);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-family: var(--ff);
    font-size: .92rem;
    color: var(--text-900);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    outline: none;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
}

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

.form-field select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* ──── FOOTER ──── */
.footer {
    padding: 80px 0 0;
    background: var(--text-900);
    color: rgba(255, 255, 255, .6);
}

.footer .logo-mark {
    box-shadow: none;
}

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

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

.footer-brand p {
    font-size: .9rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 320px;
    color: rgba(255, 255, 255, .45);
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .5);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: all var(--t-mid);
}

.footer-socials a:hover {
    color: var(--white);
    background: rgba(99, 102, 241, .3);
    transform: translateY(-3px);
}

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

.footer-col h4 {
    font-family: var(--ff-display);
    font-size: .88rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.footer-col a {
    font-size: .88rem;
    color: rgba(255, 255, 255, .45);
    transition: color var(--t-fast);
}

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

.footer-newsletter-text {
    font-size: .88rem;
    color: rgba(255, 255, 255, .45);
    line-height: 1.5;
}

.footer-newsletter {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--r-full);
    padding: 4px 4px 4px 16px;
    transition: border-color var(--t-fast), background var(--t-fast);
}

.footer-newsletter:focus-within {
    border-color: rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08);
}

.footer-newsletter input {
    background: transparent;
    border: none;
    color: var(--white);
    font-family: var(--ff);
    font-size: .88rem;
    width: 100%;
    outline: none;
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, .3);
}

.footer-newsletter button {
    background: var(--gradient);
    color: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    transition: transform var(--t-fast);
    box-shadow: 0 4px 12px rgba(99, 102, 241, .2);
}

.footer-newsletter button:hover {
    transform: scale(1.08) translateX(2px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .82rem;
    color: rgba(255, 255, 255, .35);
}

.fb-links {
    display: flex;
    gap: 24px;
}

.fb-links a {
    color: rgba(255, 255, 255, .35);
}

.fb-links a:hover {
    color: rgba(255, 255, 255, .7);
}

/* ──── Responsive ──── */
@media (max-width:1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        max-height: 480px;
        aspect-ratio: 4/3;
    }

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

    .services-grid .svc-card:last-child:nth-child(odd) {
        max-width: none;
    }

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

    .about-visual {
        max-width: 480px;
        margin: 0 auto;
    }

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

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

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

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

@media (max-width:768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-visual {
        aspect-ratio: 1/1;
        max-height: 400px;
    }

    .svc-card {
        padding: 28px 22px;
    }

    .svc-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 18px;
    }

    .svc-tags {
        gap: 6px;
        margin-bottom: 16px;
    }

    .about-float {
        display: none;
    }

    .steps-row {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        transform: rotate(90deg);
        padding: 0;
    }

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

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

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

@media (max-width:480px) {
    .hero-btns {
        flex-direction: column;
    }

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

    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat {
        padding: 28px 12px;
    }

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

    /* ── Service card small phone fixes ── */
    .svc-card {
        padding: 22px 16px;
        border-radius: var(--r-md);
    }

    .svc-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 14px;
    }

    .svc-icon svg {
        width: 20px;
        height: 20px;
    }

    .svc-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .svc-card p {
        font-size: .85rem;
        line-height: 1.65;
        margin-bottom: 14px;
    }

    .svc-tags {
        gap: 5px;
        margin-bottom: 14px;
    }

    .svc-tags li {
        font-size: .68rem;
        padding: 3px 9px;
    }

    .svc-link {
        font-size: .82rem;
    }
}