/* ============================================================
   HOMDIGI Consulting – Main Stylesheet
   Dark / Light Theme + Full Design System
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES – DARK THEME (default)
   ============================================================ */
:root,
[data-theme="dark"] {
    --bg-primary: #06091a;
    --bg-secondary: #0d1130;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-stats: #080c22;
    --bg-nav: rgba(6, 9, 26, 0.85);
    --bg-footer: #060818;
    --bg-input: rgba(255, 255, 255, 0.06);
    --bg-input-focus: rgba(0, 102, 255, 0.1);
    --bg-cta: linear-gradient(135deg, #0d1130 0%, #0a1540 100%);

    --text-primary: #f0f4ff;
    --text-secondary: #a8b4d0;
    --text-muted: #6b7899;
    --text-label: #00d4ff;
    --text-nav: #c8d4f0;
    --text-footer: #8899bb;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-card: rgba(0, 102, 255, 0.15);
    --border-input: rgba(255, 255, 255, 0.1);
    --border-focus: rgba(0, 102, 255, 0.5);

    --accent-blue: #0066ff;
    --accent-cyan: #00d4ff;
    --accent-glow: rgba(0, 102, 255, 0.3);
    --accent-glow-lg: rgba(0, 102, 255, 0.15);

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-nav: 0 2px 40px rgba(0, 0, 0, 0.6);
    --shadow-btn: 0 4px 24px rgba(0, 102, 255, 0.4);

    --gradient-text: linear-gradient(135deg, #0066ff, #00d4ff);
    --gradient-hero: linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, rgba(0, 212, 255, 0.08) 100%);
    --gradient-stat: linear-gradient(135deg, #0a0e1a 0%, #0d1130 100%);

    --backdrop: blur(16px) saturate(180%);

    /* step numbers */
    --step-num-color: rgba(0, 102, 255, 0.15);
    --step-num-text: rgba(0, 102, 255, 0.5);
}

/* ============================================================
   CSS CUSTOM PROPERTIES – LIGHT THEME
   ============================================================ */
[data-theme="light"] {
    --bg-primary: #f5f7ff;
    --bg-secondary: #eef1fc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-stats: #e8ecfa;
    --bg-nav: rgba(245, 247, 255, 0.9);
    --bg-footer: #1a1f3a;
    --bg-input: rgba(0, 0, 0, 0.04);
    --bg-input-focus: rgba(0, 102, 255, 0.06);
    --bg-cta: linear-gradient(135deg, #e8f0ff 0%, #dbeafe 100%);

    --text-primary: #0d1130;
    --text-secondary: #3a4570;
    --text-muted: #7084b5;
    --text-label: #0055cc;
    --text-nav: #2a3560;
    --text-footer: #a8b4cc;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-card: rgba(0, 102, 255, 0.12);
    --border-input: rgba(0, 0, 0, 0.1);
    --border-focus: rgba(0, 102, 255, 0.4);

    --accent-blue: #0055cc;
    --accent-cyan: #0095b3;
    --accent-glow: rgba(0, 102, 255, 0.15);
    --accent-glow-lg: rgba(0, 102, 255, 0.06);

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-nav: 0 2px 24px rgba(0, 0, 0, 0.1);
    --shadow-btn: 0 4px 20px rgba(0, 102, 255, 0.3);

    --gradient-text: linear-gradient(135deg, #0055cc, #0095b3);
    --gradient-hero: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(0, 212, 255, 0.04) 100%);
    --gradient-stat: linear-gradient(135deg, #eef1fc 0%, #e0e8ff 100%);

    --step-num-color: rgba(0, 102, 255, 0.08);
    --step-num-text: rgba(0, 85, 204, 0.4);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 3px;
}

/* ============================================================
   UTILITY
   ============================================================ */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    -webkit-backdrop-filter: var(--backdrop);
    backdrop-filter: var(--backdrop);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    box-shadow: 0 8px 40px var(--accent-glow);
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-4px);
}

.section {
    padding: 6rem 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-label);
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    margin-bottom: 1.25rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .section-label {
    margin: 0 auto 1.25rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #ffffff;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.6);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.btn-large {
    padding: 1.1rem 2.25rem;
    font-size: 1.05rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    -webkit-backdrop-filter: var(--backdrop);
    backdrop-filter: var(--backdrop);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-nav);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.logo-accent {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-nav);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--accent-blue);
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #fff !important;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    font-size: 0.88rem;
    box-shadow: 0 2px 16px var(--accent-glow);
}

.nav-cta:hover {
    background: rgba(0, 0, 0, 0) !important;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan)) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 24px var(--accent-glow) !important;
    filter: brightness(1.1);
}

/* Theme Toggle */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--accent-blue);
    border-color: rgba(0, 102, 255, 0.3);
    transform: scale(1.05);
}

.theme-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* Dark theme shows moon, hides sun */
[data-theme="dark"] .sun-icon {
    transform: translateY(0);
    opacity: 1;
}

[data-theme="dark"] .moon-icon {
    transform: translateY(40px);
    opacity: 0;
}

/* Light theme shows moon, hides sun */
[data-theme="light"] .sun-icon {
    transform: translateY(-40px);
    opacity: 0;
}

[data-theme="light"] .moon-icon {
    transform: translateY(0);
    opacity: 1;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: background 0.3s;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-8px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 72px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 70% at 70% 50%, rgba(0, 102, 255, 0.14) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
        var(--bg-primary);
    transition: background 0.4s ease;
}

[data-theme="light"] .hero-gradient {
    background:
        radial-gradient(ellipse 70% 70% at 70% 50%, rgba(0, 102, 255, 0.07) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 60%),
        var(--bg-primary);
}

.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle var(--dur, 8s) var(--delay, 0s) infinite ease-in-out;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* 2-Column Hero Layout */
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 3rem 1.5rem;
    min-height: calc(100vh - 72px);
}

/* Left: Text (left-aligned) */
.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-label);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    padding: 0.4rem 1.1rem;
    margin-bottom: 1.75rem;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.7;
    }
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-tags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.3rem 0.9rem;
}

/* Right: Hero Image */
.hero-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-glow {
    position: absolute;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(0, 102, 255, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

.hero-image-ring {
    position: absolute;
    width: 85%;
    height: 85%;
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 50%;
    animation: ringRotate 20s linear infinite;
    z-index: 0;
}

.hero-image-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 30%;
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-cyan);
}

.hero-illustration {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 540px;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 20px 60px rgba(0, 102, 255, 0.3));
    animation: floatImage 6s ease-in-out infinite;
    transition: filter 0.4s ease;
}

[data-theme="light"] .hero-illustration {
    filter: drop-shadow(0 20px 50px rgba(0, 85, 204, 0.18));
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0px) rotate(0.5deg);
    }

    50% {
        transform: translateY(-18px) rotate(-0.5deg);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--border-color);
    border-radius: 13px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 2px;
    animation: scrollWheel 2s ease infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}

/* ============================================================
   HERO FLOATING CARDS
   ============================================================ */
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    backdrop-filter: blur(20px) saturate(200%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    z-index: 3;
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

[data-theme="light"] .float-card {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(0, 102, 255, 0.15);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.1);
}

.float-card:hover {
    box-shadow: 0 14px 40px rgba(0, 102, 255, 0.25);
}

.float-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 102, 255, 0.08));
    color: var(--accent-blue);
}

.float-card__icon--cyan {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.08));
    color: var(--accent-cyan);
}

.float-card__icon--green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.06));
    color: #22c55e;
}

.float-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.float-card__label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.float-card__value {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Positions & Individual Float Animations */

/* Card 1 — top right of image */
.float-card--1 {
    top: 8%;
    right: -10%;
    animation: floatCard1 5s ease-in-out infinite;
}

@keyframes floatCard1 {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Card 2 — bottom left of image */
.float-card--2 {
    bottom: 18%;
    left: -14%;
    animation: floatCard2 6s ease-in-out infinite 0.9s;
}

@keyframes floatCard2 {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(9px);
    }
}

/* Card 3 — bottom right of image */
.float-card--3 {
    bottom: 6%;
    right: -8%;
    animation: floatCard3 5.5s ease-in-out infinite 1.7s;
}

@keyframes floatCard3 {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Hide cards on mobile to avoid clutter */
@media (max-width: 768px) {

    .float-card--1,
    .float-card--2,
    .float-card--3 {
        display: none;
    }
}

/* ============================================================
   STATS BAR
   ============================================================ */

.stats-bar {
    background: var(--bg-stats);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
    transition: background 0.4s ease;
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
}

.stat-item .stat-number {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item .stat-suffix {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
    font-weight: 500;
}

.divider-v {
    width: 1px;
    height: 50px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* ============================================================
   CLIENTS LOGO MARQUEE
   ============================================================ */
.clients {
    padding: 3rem 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.clients-wrapper {
    max-width: 100%;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 2rem;
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    gap: 4rem;
    animation: scroll-marquee 30s linear infinite;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.client-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.3s ease, color 0.3s ease;
    letter-spacing: -0.02em;
}

.client-logo:hover span {
    opacity: 1;
    color: var(--accent-blue);
}

@keyframes scroll-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
    background: var(--bg-primary);
    transition: background 0.4s;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    display: grid;
    gap: 1.25rem;
}

.about-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.about-card.reveal-delay {
    animation-delay: 0.15s;
}

.about-card-icon {
    margin-bottom: 0.25rem;
}

.about-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.about-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-text .section-label {
    margin-bottom: 1rem;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 1.25rem;
}

.about-desc {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.feature-check {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================================================
   CHALLENGE / URGENCY SECTION
   ============================================================ */
.challenge {
    background: radial-gradient(circle at 10% 20%, rgba(239, 68, 68, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 102, 255, 0.03) 0%, transparent 40%),
        var(--bg-primary);
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

.challenge-card {
    position: relative;
    padding: 3rem 2.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card);
    border: 1px solid var(--border-card);
}

.challenge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #f87171);
    opacity: 0.3;
    transition: opacity 0.3s;
}

.challenge-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.challenge-card:hover::before {
    opacity: 1;
}

.challenge-icon.error {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #ef4444;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    border: 1px solid rgba(239, 68, 68, 0.1);
    transition: all 0.3s ease;
}

.challenge-card:hover .challenge-icon.error {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.2);
}

.challenge-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
}

.challenge-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Red Indicator for the section title */
.challenge .section-label {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
    background: var(--bg-secondary);
    transition: background 0.4s;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(0, 212, 255, 0.12));
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #fff;
    border-color: transparent;
    transform: rotate(-5deg) scale(1.08);
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.service-tags span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-blue);
    background: rgba(0, 102, 255, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 50px;
    padding: 0.2rem 0.65rem;
}

/* ============================================================
   WHY US SECTION
   ============================================================ */
.why-us {
    background: var(--bg-primary);
    transition: background 0.4s;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.why-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.why-card:hover {
    background: var(--bg-card-hover);
    box-shadow: 0 8px 40px var(--accent-glow);
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-4px);
}

.why-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.1));
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.why-card:hover .why-icon {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #fff;
    border-color: transparent;
}

.why-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.process {
    background: var(--bg-secondary);
    transition: background 0.4s;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--step-num-text);
    line-height: 1;
    margin-bottom: 1rem;
    font-variant-numeric: tabular-nums;
}

.step-line {
    position: absolute;
    top: 1.75rem;
    left: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    z-index: 0;
}

.step-line.last {
    display: none;
}

.step-content {
    padding: 1.75rem;
    text-align: left;
    position: relative;
    z-index: 1;
    width: 100%;
}

.step-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.step-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials {
    background: var(--bg-primary);
    transition: background 0.4s;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.testi-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.featured-testi {
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 4px 30px var(--accent-glow);
    transform: translateY(-8px);
}

.testi-quote {
    font-size: 5rem;
    line-height: 0.8;
    font-weight: 900;
    color: var(--accent-blue);
    opacity: 0.2;
    margin-bottom: -1rem;
    font-family: serif;
}

.testi-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.testi-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.testi-info {
    flex-grow: 1;
}

.testi-info strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.testi-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.testi-stars {
    color: #fbbf24;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: var(--bg-secondary);
    transition: background 0.4s;
}

.cta-box {
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-cta);
}

.cta-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(0, 102, 255, 0.15), transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.cta-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
    background: var(--bg-primary);
    transition: background 0.4s;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(0, 212, 255, 0.12));
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.contact-item span {
    font-size: 0.98rem;
    color: var(--text-primary);
}

/* Contact Form */
.contact-form {
    padding: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1.5px solid var(--border-input);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-blue);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-success.show {
    display: flex;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-footer);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand .footer-desc {
    font-size: 0.9rem;
    color: var(--text-footer);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 0.65rem;
}

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-footer);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
    transform: translateY(-2px);
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-links a,
.footer-links span {
    font-size: 0.88rem;
    color: var(--text-footer);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-footer);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: var(--text-footer);
}

.footer-bottom-links a:hover {
    color: var(--accent-cyan);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--accent-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px var(--accent-glow);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children in grids */
.services-grid .reveal:nth-child(2),
.why-grid .reveal:nth-child(2),
.testimonials-grid .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.services-grid .reveal:nth-child(3),
.why-grid .reveal:nth-child(3),
.testimonials-grid .reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.services-grid .reveal:nth-child(4),
.why-grid .reveal:nth-child(4) {
    transition-delay: 0.1s;
}

.services-grid .reveal:nth-child(5),
.why-grid .reveal:nth-child(5) {
    transition-delay: 0.2s;
}

.services-grid .reveal:nth-child(6),
.why-grid .reveal:nth-child(6) {
    transition-delay: 0.3s;
}

.process-steps .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.process-steps .reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.process-steps .reveal:nth-child(4) {
    transition-delay: 0.3s;
}

/* ============================================================
   RESPONSIVE – TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-line {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-visual {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .featured-testi {
        transform: none;
    }
}

/* ============================================================
   RESPONSIVE – MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    /* Navbar */
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg-nav);
        -webkit-backdrop-filter: var(--backdrop);
        backdrop-filter: var(--backdrop);
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem 1.5rem 2rem;
        gap: 0.25rem;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    .nav-cta {
        margin-top: 0.5rem;
        text-align: center;
        justify-content: center;
    }

    .hamburger {
        display: flex;
    }

    /* Hero */
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: left;
        padding: 2rem 1.5rem;
        gap: 2rem;
        min-height: auto;
        padding-top: 2.5rem;
        padding-bottom: 4rem;
    }

    .hero-image-wrap {
        max-width: 420px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* Stats */
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem 0;
    }

    .divider-v {
        display: none;
    }

    /* About */
    .about-visual {
        grid-template-columns: 1fr;
    }

    .about-text .section-title {
        font-size: 1.6rem;
    }

    /* Services & Why */
    .services-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Process */
    .process-steps {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* CTA */
    .cta-box {
        padding: 2.5rem 1.5rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* Back to top */
    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-tags {
        gap: 0.5rem;
    }

    .tag {
        font-size: 0.72rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        /* prevent iOS zoom */
    }
}