/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #1e293b;
    --accent-color: #06b6d4;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --background-white: #ffffff;
    --background-gray: #f8fafc;
    --background-dark: #0f172a;
    --border-color: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1em;
    color: var(--text-secondary);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    min-width: 140px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Outline button on dark hero: glass styling for legibility */
.hero .btn-outline {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.18);
    color: white;
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

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

.navbar-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

/* Vector wordmark in the navbar (Soryn Labs Inc.), viewBox trimmed to the text */
.navbar-wordmark {
    height: 34px;
    width: auto;
    display: block;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Dropdown Menu Styles */
.nav-item {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 280px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    padding: 0.75rem;
    margin-top: 0.75rem;
    list-style: none;
    border: 1px solid var(--border-color);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

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

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    background: var(--background-gray);
}

.dropdown-link-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-link-icon i {
    font-size: 1.125rem;
    color: white;
}

.dropdown-link-content {
    display: flex;
    flex-direction: column;
}

.dropdown-link-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.dropdown-link-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-secondary);
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    will-change: transform;
}

.mesh-blob-1 {
    width: 680px;
    height: 680px;
    background: #2563eb;
    top: -180px;
    left: -120px;
    opacity: 0.9;
    animation: drift-1 22s ease-in-out infinite alternate;
}

.mesh-blob-2 {
    width: 600px;
    height: 600px;
    background: #22d3ee;
    top: 25%;
    right: -150px;
    opacity: 0.8;
    animation: drift-2 28s ease-in-out infinite alternate;
}

.mesh-blob-3 {
    width: 540px;
    height: 540px;
    background: #3b82f6;
    bottom: -180px;
    left: 20%;
    opacity: 0.85;
    animation: drift-3 26s ease-in-out infinite alternate;
}

.mesh-blob-4 {
    width: 460px;
    height: 460px;
    background: #1e40af;
    top: 5%;
    left: 35%;
    opacity: 0.65;
    animation: drift-4 32s ease-in-out infinite alternate;
}

@keyframes drift-1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, 80px) scale(1.15); }
}

@keyframes drift-2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-140px, 100px) scale(0.9); }
}

@keyframes drift-3 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, -120px) scale(1.1); }
}

@keyframes drift-4 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-80px, 90px) scale(1.2); }
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    opacity: 0;
    animation: hero-enter 0.9s ease-out 0.1s forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: hero-enter 0.9s ease-out 0.3s forwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: hero-enter 0.9s ease-out 0.5s forwards;
}

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mesh-blob,
    .hero-title,
    .hero-subtitle,
    .hero-cta {
        animation: none;
        opacity: 1;
    }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

/* About visual — standalone spinning logo with ground shadow */
.about-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 460px;
    margin: 0 auto;
}

/* Ground shadow that pulses with the coin spin */
.about-visual::after {
    content: '';
    position: absolute;
    bottom: 4%;
    left: 50%;
    width: 70%;
    max-width: 320px;
    height: 28px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0) 65%);
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
    animation: about-shadow-pulse 6s linear infinite;
    transform-origin: 50% 50%;
}

@keyframes about-shadow-pulse {
    0%, 100% { transform: translateX(-50%) scaleX(1);    opacity: 0.55; }
    25%      { transform: translateX(-50%) scaleX(0.35); opacity: 0.25; }
    50%      { transform: translateX(-50%) scaleX(1);    opacity: 0.55; }
    75%      { transform: translateX(-50%) scaleX(0.35); opacity: 0.25; }
}

.about-visual-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
}

.about-visual-logo {
    width: 95%;
    max-width: 440px;
    height: auto;
    filter: drop-shadow(0 24px 50px rgba(15, 23, 42, 0.22));
    animation: about-logo-coin-spin 6s linear infinite;
    transform-origin: 50% 50%;
    transform-style: preserve-3d;
    backface-visibility: visible;
}

@keyframes about-logo-coin-spin {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(360deg); }
}

.about-visual:hover .about-visual-logo,
.about-visual:hover::after {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .about-visual-logo,
    .about-visual::after {
        animation: none;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.75rem;
}

.service-card {
    position: relative;
    grid-column: span 2;
    background: white;
    padding: 2.5rem 2rem 2rem;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease,
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    overflow: hidden;
}

/* 3 + 2 layout: center the last two cards */
.service-card:nth-child(4) { grid-column: 2 / span 2; }
.service-card:nth-child(5) { grid-column: 4 / span 2; }

/* Stagger entrance */
.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.08s; }
.service-card:nth-child(3) { transition-delay: 0.16s; }
.service-card:nth-child(4) { transition-delay: 0.24s; }
.service-card:nth-child(5) { transition-delay: 0.32s; }

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient border on hover (uses mask trick) */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1.5px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(white 0 0) content-box, linear-gradient(white 0 0);
            mask: linear-gradient(white 0 0) content-box, linear-gradient(white 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Soft gradient wash on hover */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(6, 182, 212, 0.04));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.service-card.animate-in:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px -18px rgba(37, 99, 235, 0.28);
    border-color: transparent;
}

.service-card:hover::before { opacity: 1; }
.service-card:hover::after  { opacity: 1; }

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-number {
    position: absolute;
    top: 1.5rem;
    right: 1.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.55;
    z-index: 2;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.45);
}

.service-icon i {
    font-size: 1.4rem;
    color: white;
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.85rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.service-card p {
    margin-bottom: 1.5rem;
    font-size: 0.97rem;
    line-height: 1.65;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.42rem 0 0.42rem 1.4rem;
    color: var(--text-secondary);
    position: relative;
    font-size: 0.93rem;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient-primary);
}

/* Services footer CTA block */
.services-footer {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(6, 182, 212, 0.06));
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 50%, rgba(37, 99, 235, 0.12), transparent 45%),
                radial-gradient(circle at 85% 50%, rgba(6, 182, 212, 0.12), transparent 45%);
    pointer-events: none;
}

.services-footer-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.services-footer-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

.services-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    background: var(--gradient-primary);
    box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.55);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.services-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -10px rgba(37, 99, 235, 0.65);
}

.services-cta i {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

.services-cta:hover i {
    transform: translateX(6px);
}

/* How We Work Section */
.how-we-work {
    background: var(--background-gray);
    overflow: hidden;
}

.process-stepper {
    position: relative;
    padding: 2.5rem 0 1rem;
}

.process-track {
    position: absolute;
    top: calc(2.5rem + 32px);
    left: calc(100% / 12);
    right: calc(100% / 12);
    height: 3px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    z-index: 1;
}

.process-progress {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transform-origin: left center;
    transform: scaleX(0);
    animation: process-progress-fill 24s linear infinite;
    will-change: transform, opacity;
}

@keyframes process-progress-fill {
    0%    { transform: scaleX(0);  opacity: 1; }
    83%   { transform: scaleX(1);  opacity: 1; }
    91%   { transform: scaleX(1);  opacity: 1; }
    96%   { transform: scaleX(1);  opacity: 0; }
    97%   { transform: scaleX(0);  opacity: 0; }
    100%  { transform: scaleX(0);  opacity: 1; }
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.process-step {
    text-align: center;
    padding: 0 0.5rem;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
}

.process-circle {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    position: relative;
    z-index: 3;
}

/* Per-step activation timing: each step activates as the progress line reaches it */
.process-step:nth-child(1) .process-circle { animation: process-step-1 24s linear infinite; }
.process-step:nth-child(2) .process-circle { animation: process-step-2 24s linear infinite; }
.process-step:nth-child(3) .process-circle { animation: process-step-3 24s linear infinite; }
.process-step:nth-child(4) .process-circle { animation: process-step-4 24s linear infinite; }
.process-step:nth-child(5) .process-circle { animation: process-step-5 24s linear infinite; }
.process-step:nth-child(6) .process-circle { animation: process-step-6 24s linear infinite; }

@keyframes process-step-1 {
    0%, 91% {
        background: var(--gradient-primary);
        border-color: transparent;
        color: white;
        box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.45);
    }
    92%, 100% {
        background: white;
        border-color: var(--border-color);
        color: var(--text-secondary);
        box-shadow: none;
    }
}

@keyframes process-step-2 {
    0%, 16% {
        background: white;
        border-color: var(--border-color);
        color: var(--text-secondary);
        box-shadow: none;
    }
    17%, 91% {
        background: var(--gradient-primary);
        border-color: transparent;
        color: white;
        box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.45);
    }
    92%, 100% {
        background: white;
        border-color: var(--border-color);
        color: var(--text-secondary);
        box-shadow: none;
    }
}

@keyframes process-step-3 {
    0%, 33% {
        background: white;
        border-color: var(--border-color);
        color: var(--text-secondary);
        box-shadow: none;
    }
    34%, 91% {
        background: var(--gradient-primary);
        border-color: transparent;
        color: white;
        box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.45);
    }
    92%, 100% {
        background: white;
        border-color: var(--border-color);
        color: var(--text-secondary);
        box-shadow: none;
    }
}

@keyframes process-step-4 {
    0%, 49% {
        background: white;
        border-color: var(--border-color);
        color: var(--text-secondary);
        box-shadow: none;
    }
    50%, 91% {
        background: var(--gradient-primary);
        border-color: transparent;
        color: white;
        box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.45);
    }
    92%, 100% {
        background: white;
        border-color: var(--border-color);
        color: var(--text-secondary);
        box-shadow: none;
    }
}

@keyframes process-step-5 {
    0%, 66% {
        background: white;
        border-color: var(--border-color);
        color: var(--text-secondary);
        box-shadow: none;
    }
    67%, 91% {
        background: var(--gradient-primary);
        border-color: transparent;
        color: white;
        box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.45);
    }
    92%, 100% {
        background: white;
        border-color: var(--border-color);
        color: var(--text-secondary);
        box-shadow: none;
    }
}

@keyframes process-step-6 {
    0%, 82% {
        background: white;
        border-color: var(--border-color);
        color: var(--text-secondary);
        box-shadow: none;
    }
    83%, 91% {
        background: var(--gradient-primary);
        border-color: transparent;
        color: white;
        box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.45);
    }
    92%, 100% {
        background: white;
        border-color: var(--border-color);
        color: var(--text-secondary);
        box-shadow: none;
    }
}

.process-number {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.process-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.process-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* Pause on hover anywhere in the stepper, so users can read in peace */
.process-stepper:hover .process-progress,
.process-stepper:hover .process-circle {
    animation-play-state: paused;
}

/* Pause when section is off-screen (class toggled by JS) */
.how-we-work:not(.in-view) .process-progress,
.how-we-work:not(.in-view) .process-circle {
    animation-play-state: paused;
}

/* Reduced motion: lock everything in the "all complete" state */
@media (prefers-reduced-motion: reduce) {
    .process-progress {
        animation: none;
        transform: scaleX(1);
    }
    .process-circle {
        animation: none !important;
        background: var(--gradient-primary);
        border-color: transparent;
        color: white;
        box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.45);
    }
}

/* Shared animate-in pattern for other observed elements */
.project-card,
.stat-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.project-card.animate-in,
.stat-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Recent Projects Section */
.projects {
    background: var(--background-gray);
}

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

.project-card {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    overflow: hidden;
    background: var(--secondary-color);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
    transition: opacity 0.6s ease,
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease;
    cursor: pointer;
    isolation: isolate;
}

.project-card.animate-in:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 56px -18px rgba(37, 99, 235, 0.35);
}

/* Stagger entrance */
.project-card:nth-child(1) { transition-delay: 0s; }
.project-card:nth-child(2) { transition-delay: 0.08s; }
.project-card:nth-child(3) { transition-delay: 0.16s; }
.project-card:nth-child(4) { transition-delay: 0.24s; }

/* Animated gradient placeholder (until a <video> replaces it) */
.project-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-placeholder::before,
.project-placeholder::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(55px);
    will-change: transform;
}

.project-placeholder::before {
    width: 320px;
    height: 320px;
    background: #2563eb;
    opacity: 0.7;
    top: -40px;
    left: -60px;
    animation: project-blob-1 14s ease-in-out infinite alternate;
}

.project-placeholder::after {
    width: 280px;
    height: 280px;
    background: #22d3ee;
    opacity: 0.6;
    bottom: -40px;
    right: -50px;
    animation: project-blob-2 18s ease-in-out infinite alternate;
}

@keyframes project-blob-1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 60px) scale(1.15); }
}

@keyframes project-blob-2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, -50px) scale(0.95); }
}

.project-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.35);
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-placeholder i {
    transform: scale(1.08);
}

/* Video — drops in when ready, auto-hides placeholder */
.project-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.project-card:has(.project-video) .project-placeholder {
    display: none;
}

/* Status pill */
.project-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    z-index: 4;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.project-status-ongoing {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(34, 211, 238, 0.95));
}

.project-status-active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.95), rgba(34, 211, 238, 0.95));
}

.project-status-live {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(52, 211, 153, 0.95));
}

.project-status-soon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(251, 191, 36, 0.95));
}

/* Title bar at the bottom (default state) */
.project-titlebar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.75rem 1.25rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 100%);
    z-index: 2;
    transition: opacity 0.35s ease;
}

.project-title {
    color: white;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
}

.project-location {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Hover overlay — reveals feature + tech */
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.94));
    backdrop-filter: blur(8px);
    padding: 2rem 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 3;
}

.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover .project-titlebar { opacity: 0; }

.project-feature {
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
    font-weight: 500;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.tech-chip {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    align-self: flex-start;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(6, 182, 212, 0.8));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.5);
}

.project-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(4px);
}

/* Sites We Host & Maintain — dedicated subsection below the projects grid */
.hosted-sites {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color, rgba(15, 23, 42, 0.1));
}

.hosted-sites-header {
    text-align: center;
    margin-bottom: 2rem;
}

.hosted-sites-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-color, #0f172a);
    margin: 0 0 0.5rem;
}

.hosted-sites-subtitle {
    font-size: 1rem;
    color: var(--text-light, #64748b);
    margin: 0 auto;
    max-width: 46ch;
    line-height: 1.6;
}

.hosted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.hosted-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--border-color, rgba(15, 23, 42, 0.1));
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.hosted-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -18px rgba(37, 99, 235, 0.35);
    border-color: rgba(37, 99, 235, 0.35);
}

.hosted-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--gradient-primary);
    color: white;
    font-size: 1rem;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.5);
}

.hosted-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex-grow: 1;
}

.hosted-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color, #0f172a);
}

.hosted-item-domain {
    font-size: 0.85rem;
    color: var(--text-light, #64748b);
    overflow-wrap: anywhere;
}

/* Small green "live" dot, inline in the row just before the arrow */
.hosted-item-status {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
    /* hide the "Live" label visually but keep it for screen readers */
    overflow: hidden;
    text-indent: -9999px;
}

@media (prefers-reduced-motion: no-preference) {
    .hosted-item-status {
        animation: hosted-live-pulse 2.4s ease-in-out infinite;
    }
}

@keyframes hosted-live-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
    50%      { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
}

.hosted-item-arrow {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.35);
    transition: color 0.3s ease, transform 0.3s ease;
}

.hosted-item:hover .hosted-item-arrow {
    color: var(--primary-color, #2563eb);
    transform: translate(2px, -2px);
}

/* Align all project cards to the top of the grid */
.projects-grid {
    align-items: start;
}

/* How We Engage Section */
.engage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.engage-text h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.engage-text p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    font-size: 1.02rem;
}

.engage-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

.engage-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    padding: 0.9rem 1.85rem;
    border-radius: 10px;
    background: var(--gradient-primary);
    box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 0.5rem;
}

.engage-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -10px rgba(37, 99, 235, 0.6);
}

.engage-cta i {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

.engage-cta:hover i {
    transform: translateX(6px);
}

/* Invoice mockup */
.engage-invoice {
    position: relative;
}

.invoice-stack {
    position: relative;
}

/* Back pages that "peek out" from behind the front invoice */
.invoice-stack-page {
    position: absolute;
    inset: 0;
    background: #fdfcf7;
    border: 1px solid #ebe5d6;
    border-radius: 8px;
    box-shadow: 0 6px 18px -8px rgba(15, 23, 42, 0.12);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.55s ease;
    pointer-events: none;
}

/* Faint horizontal lines to suggest "blank page with content" */
.invoice-stack-page::before {
    content: '';
    position: absolute;
    inset: 2rem 2rem auto 2rem;
    height: 50%;
    background-image:
        linear-gradient(to bottom, rgba(15, 23, 42, 0.08) 1px, transparent 1px);
    background-size: 100% 18px;
    opacity: 0.6;
}

.invoice-stack-page-1 {
    z-index: 1;
    transform: translate(7px, 7px);
}

.invoice-stack-page-2 {
    z-index: 0;
    transform: translate(15px, 13px);
    opacity: 0.85;
}

.invoice-stack-page-3 {
    z-index: -1;
    transform: translate(23px, 19px);
    opacity: 0.65;
}

.invoice-mockup {
    position: relative;
    z-index: 2;
    background: #fdfcf7;
    border: 1px solid #ebe5d6;
    border-radius: 8px;
    padding: 2rem 2.25rem 1.75rem;
    box-shadow: 0 18px 50px -15px rgba(15, 23, 42, 0.2),
                0 6px 16px -6px rgba(15, 23, 42, 0.08);
    color: #1e293b;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.55s ease;
}

.invoice-stack:hover .invoice-mockup {
    transform: translate(-18px, -14px);
    box-shadow: 0 28px 60px -15px rgba(15, 23, 42, 0.28),
                0 10px 24px -8px rgba(15, 23, 42, 0.12);
}

/* Pages slide a touch further on hover for extra reveal */
.invoice-stack:hover .invoice-stack-page-1 {
    transform: translate(12px, 11px);
}

.invoice-stack:hover .invoice-stack-page-2 {
    transform: translate(22px, 19px);
    opacity: 0.9;
}

.invoice-stack:hover .invoice-stack-page-3 {
    transform: translate(32px, 27px);
    opacity: 0.75;
}

.invoice-sample-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.45);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    z-index: 2;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #ebe5d6;
}

.invoice-from-name {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.invoice-from-line {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.55;
}

.invoice-meta {
    text-align: right;
}

.invoice-label {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.25em;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.invoice-id,
.invoice-date {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.55;
}

.invoice-bill-to {
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    line-height: 1.85;
    color: #1e293b;
}

.invoice-meta-label {
    display: inline-block;
    min-width: 60px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    margin-right: 0.5rem;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.82rem;
}

.invoice-table th {
    text-align: left;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #94a3b8;
    padding: 0.6rem 0.4rem;
    border-bottom: 1px solid #ebe5d6;
}

.invoice-col-num { width: 28px; text-align: left; }
.invoice-col-hrs { width: 50px; text-align: right; }
.invoice-col-rate { width: 50px; text-align: right; }
.invoice-col-total { width: 72px; text-align: right; }

.invoice-table th.invoice-col-hrs,
.invoice-table th.invoice-col-rate,
.invoice-table th.invoice-col-total {
    text-align: right;
}

.invoice-table td {
    padding: 0.55rem 0.4rem;
    border-bottom: 1px solid rgba(235, 229, 214, 0.55);
    color: #475569;
}

.invoice-table td.invoice-col-num {
    color: #94a3b8;
    font-size: 0.78rem;
}

.invoice-table td.invoice-col-total {
    font-weight: 700;
    color: #0f172a;
}

.invoice-notes {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.65;
    margin-top: 0.9rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ebe5d6;
}

.invoice-totals {
    text-align: right;
}

.invoice-totals-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1.5rem;
    font-size: 0.85rem;
    padding: 0.35rem 0;
    color: #64748b;
    align-items: baseline;
}

.invoice-totals-label {
    text-align: right;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #94a3b8;
}

.invoice-totals-hrs {
    text-align: right;
    color: #64748b;
}

.invoice-totals-amount {
    text-align: right;
    min-width: 72px;
    font-variant-numeric: tabular-nums;
}

.invoice-totals-row-final {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    padding-top: 0.7rem;
    border-top: 2px solid #0f172a;
    margin-top: 0.35rem;
}

.invoice-totals-row-final .invoice-totals-label {
    color: #0f172a;
    font-size: 0.9rem;
}

.invoice-totals-row-final .invoice-totals-amount {
    color: #0f172a;
}

.invoice-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1.5rem;
    font-style: italic;
}

@media (max-width: 968px) {
    .engage-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .invoice-mockup {
        padding: 1.5rem 1.5rem 1.25rem;
    }

    /* Hide stack pages on narrow screens to keep things clean */
    .invoice-stack-page {
        display: none;
    }

    .invoice-stack:hover .invoice-mockup {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .invoice-table {
        font-size: 0.75rem;
    }

    .invoice-col-hrs,
    .invoice-col-rate {
        width: 42px;
    }

    .invoice-col-total {
        width: 62px;
    }
}

/* "I wish there was an app for that" Banner */
.wish-banner {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    overflow: hidden;
    padding: 5rem 0;
}

.wish-banner-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.wish-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    will-change: transform;
}

.wish-blob-1 {
    width: 460px;
    height: 460px;
    background: #2563eb;
    top: -80px;
    left: -100px;
    opacity: 0.55;
    animation: wish-drift-1 24s ease-in-out infinite alternate;
}

.wish-blob-2 {
    width: 420px;
    height: 420px;
    background: #22d3ee;
    bottom: -80px;
    right: -80px;
    opacity: 0.5;
    animation: wish-drift-2 28s ease-in-out infinite alternate;
}

.wish-blob-3 {
    width: 340px;
    height: 340px;
    background: #1e40af;
    top: 30%;
    left: 45%;
    opacity: 0.4;
    animation: wish-drift-3 32s ease-in-out infinite alternate;
}

@keyframes wish-drift-1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 50px) scale(1.12); }
}

@keyframes wish-drift-2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, -60px) scale(0.92); }
}

@keyframes wish-drift-3 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 70px) scale(1.15); }
}

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

.wish-banner-prompt {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.wish-banner-title {
    font-size: 2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.35;
    margin-bottom: 1rem;
}

.wish-banner-highlight {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.wish-banner-tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 2.25rem;
    font-weight: 500;
}

.wish-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1rem;
}

.wish-banner-cta i {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

.wish-banner-cta:hover i {
    transform: translateX(6px);
}

@media (prefers-reduced-motion: reduce) {
    .wish-blob {
        animation: none;
    }
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.4);
}

.contact-icon i {
    font-size: 1.25rem;
    color: white;
}

.contact-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.contact-details p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.contact-details p a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details p a:hover {
    color: var(--primary-color);
}

.contact-secondary {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Form Styles */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 14px 40px -12px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--border-color);
}

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

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
    letter-spacing: 0.01em;
}

.form-required {
    color: var(--primary-color);
    font-weight: 700;
}

.form-optional {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.78rem;
    margin-left: 0.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.95rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.97rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--background-gray);
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: #ef4444;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.55;
}

.form-field-error {
    display: block;
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    min-height: 0;
}

.form-field-error:empty {
    display: none;
}

.form-feedback {
    margin-top: 1.25rem;
}

.form-success {
    display: none;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.1rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    color: #065f46;
    font-size: 0.92rem;
    line-height: 1.5;
}

.form-success[data-fs-success].show,
[data-fs-success]:not(:empty) {
    display: flex;
}

.form-success i {
    color: #10b981;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.form-error {
    color: #b91c1c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.form-error:empty {
    display: none;
}

#contact-form button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
.footer {
    background: var(--background-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #64748b;
    margin: 0;
}

/* Utility Classes */
.img-responsive {
    max-width: 100%;
    height: auto;
}

/* Tablet: services collapses from 3+2 to 2+2+1 */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card,
    .service-card:nth-child(4) {
        grid-column: auto;
    }

    .service-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: calc(50% - 0.875rem);
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .navbar-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: var(--shadow-lg);
        padding: 2rem;
        transform: translateY(-100vh);
        transition: transform 0.3s ease;
    }

    .navbar-menu.active {
        transform: translateY(0);
    }

    .navbar-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-toggle {
        display: flex;
    }

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

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

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

    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--background-gray);
        margin-top: 0.5rem;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        border: none;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .dropdown-menu::before {
        display: none;
    }

    .nav-item.active .dropdown-menu {
        max-height: 200px;
        padding: 0.5rem;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 3rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

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

    .service-card,
    .service-card:nth-child(4),
    .service-card:nth-child(5) {
        grid-column: auto;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .services-footer {
        padding: 2rem 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        aspect-ratio: 16 / 11;
    }

    .project-title {
        font-size: 1.15rem;
    }

    .project-feature {
        font-size: 0.92rem;
    }

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

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

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

    .wish-banner {
        padding: 3.5rem 0;
    }

    .wish-banner-title {
        font-size: 1.4rem;
    }

    .wish-banner-highlight {
        font-size: 2rem;
    }

    .wish-banner-tagline {
        font-size: 1.05rem;
    }

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

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* How We Work: vertical timeline on mobile */
    .process-stepper {
        padding: 1rem 0;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .process-step {
        display: grid;
        grid-template-columns: 64px 1fr;
        column-gap: 1.5rem;
        align-items: start;
        text-align: left;
        padding: 0;
    }

    .process-step:hover {
        transform: none;
    }

    .process-circle {
        margin: 0;
        grid-row: 1 / 4;
        align-self: start;
    }

    .process-number {
        margin-bottom: 0.25rem;
    }

    .process-track {
        top: 1rem;
        bottom: 1rem;
        left: 31px;
        right: auto;
        width: 3px;
        height: auto;
    }

    .process-progress {
        transform-origin: top center;
        transform: scaleY(0);
        animation-name: process-progress-fill-v;
    }

    @keyframes process-progress-fill-v {
        0%    { transform: scaleY(0); opacity: 1; }
        83%   { transform: scaleY(1); opacity: 1; }
        91%   { transform: scaleY(1); opacity: 1; }
        96%   { transform: scaleY(1); opacity: 0; }
        97%   { transform: scaleY(0); opacity: 0; }
        100%  { transform: scaleY(0); opacity: 1; }
    }
}

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

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
