/* ============================================
   Velcore — style.css (Redesigned)
   Fonts: Syne (display) + DM Sans (body)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --ink: #050d1a;
    --ink2: #2a3a52;
    --muted: #7a8aa0;
    --teal: #16BBB2;
    --teal2: #0d9a93;
    --bg: #f7f9fb;
    --white: #ffffff;
    --border: #e4eaf2;
    --shadow-sm: 0 4px 12px rgba(5, 13, 26, 0.06);
    --shadow-md: 0 16px 48px rgba(22, 187, 178, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--ink);
}
h1 { font-size: 3.8rem; margin-bottom: 1.25rem; }
h2 { font-size: 2.8rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; }

h1 em { font-style: normal; color: var(--teal); }

p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 1.25rem;
}

/* ============================================
   SECTION LABELS & TAGS
   ============================================ */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 14px;
}
.section-tag::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--teal);
    display: block;
}
.section-head {
    font-family: var(--font-head);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: var(--ink);
    margin-bottom: 14px;
}
.section-sub {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    font-weight: 300;
    max-width: 500px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 1.5px solid transparent;
    white-space: nowrap;
}
.btn-primary {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}
.btn-primary:hover {
    background: var(--teal2);
    border-color: var(--teal2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 187, 178, 0.3);
}
.btn-outline {
    background: transparent;
    color: var(--ink2);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--teal);
    color: var(--teal);
}
.btn-nav-cta {
    background: var(--ink);
    color: #fff !important;
    padding: 9px 22px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}
.btn-nav-cta:hover {
    background: var(--teal);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 68px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.04em;
}
.logo span { color: var(--teal); }

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}
.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink2);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 8px;
    z-index: 2000;
}
.mobile-menu-btn span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--ink);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 68px;
}

.hero-left {
    padding: 88px 56px 88px 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Chip/badge */
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(22, 187, 178, 0.08);
    border: 1px solid rgba(22, 187, 178, 0.22);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 28px;
    width: fit-content;
}
.hero-chip-dot {
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}
.hero-chip span {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 36px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.stat-num {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.04em;
    line-height: 1;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 4px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Hero right dark panel */
.hero-right {
    background: var(--ink);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(22, 187, 178, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 187, 178, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
}
.hero-blob {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 187, 178, 0.22) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.12); }
}

.hero-card-float {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 20px 24px;
}
.hc1 {
    top: 8%;
    left: 8%;
    animation: floatA 5s ease-in-out infinite;
}
.hc2 {
    bottom: 8%;
    right: 6%;
    animation: floatB 6s ease-in-out infinite;
}
@keyframes floatA {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
@keyframes floatB {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
}
.hc-label {
    font-size: 0.68rem;
    opacity: 0.5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 500;
}
.hc-val {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}
.hc-sub {
    font-size: 0.75rem;
    opacity: 0.4;
    margin-top: 4px;
    font-weight: 300;
}

.hero-center-badge {
    background: rgba(22, 187, 178, 0.12);
    border: 1px solid rgba(22, 187, 178, 0.28);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    text-align: center;
    color: #fff;
    z-index: 2;
    position: relative;
}
.badge-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    display: block;
}
.badge-title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.badge-sub {
    font-size: 0.78rem;
    opacity: 0.45;
    font-weight: 300;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background: var(--bg);
    padding: 100px 0;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
    gap: 48px;
}
.services-header-right {
    text-align: right;
}
.services-header-right .section-sub {
    text-align: right;
    margin-left: auto;
}

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

/* Service Cards */
.svc-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.svc-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.svc-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}
.svc-card:hover::before { transform: scaleX(1); }

.svc-arrow {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.svc-arrow svg {
    width: 14px;
    height: 14px;
    stroke: var(--muted);
    transition: stroke 0.3s;
}
.svc-card:hover .svc-arrow { background: var(--teal); }
.svc-card:hover .svc-arrow svg { stroke: #fff; }

.svc-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(22, 187, 178, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}
.svc-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--teal);
    transition: stroke 0.3s;
}
.svc-card:hover .svc-icon { background: var(--teal); }
.svc-card:hover .svc-icon svg { stroke: #fff; }

.svc-title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: -0.025em;
    transition: color 0.25s;
}
.svc-card:hover .svc-title { color: var(--teal); }

.svc-desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 0;
}

/* ============================================
   METRICS BAND
   ============================================ */
.metrics-band {
    background: var(--teal);
    padding: 56px 72px;
}
.metrics-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}
.metric {
    text-align: center;
    color: #fff;
    flex: 1;
}
.metric-num {
    font-family: var(--font-head);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}
.metric-label {
    font-size: 0.78rem;
    opacity: 0.65;
    margin-top: 6px;
    letter-spacing: 0.04em;
    font-weight: 300;
}
.metrics-divider {
    width: 1px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-section {
    background: var(--ink);
    padding: 100px 0;
}
.proc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 72px;
    gap: 48px;
}
.proc-header .section-sub {
    color: rgba(255, 255, 255, 0.35);
    max-width: 420px;
}

.proc-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    gap: 0;
}
.proc-steps::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.proc-step {
    padding: 0 28px;
    position: relative;
}
.proc-num {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(22, 187, 178, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--teal);
    background: rgba(22, 187, 178, 0.06);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}
.proc-step:hover .proc-num {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}
.proc-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 8px;
    display: block;
}
.proc-title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.025em;
}
.proc-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 0;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #040c18;
    padding: 80px 0 36px;
    color: #fff;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 64px;
    margin-bottom: 56px;
}
.footer-logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: -0.04em;
    display: block;
    margin-bottom: 14px;
}
.footer-logo span { color: var(--teal); }
.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 0;
}
.footer-col h5 {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    margin-bottom: 20px;
}
.footer-col a {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
    font-weight: 300;
}
.footer-col a:hover { color: #fff;}
.footer-cta {
    margin-top: 20px;
    font-size: 0.85rem !important;
    padding: 11px 22px;
    display: inline-flex !important;
    width: fit-content;
}
.footer-bottom {
    border-top: 1px solid rgba(73, 64, 64, 0.07);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.22);
    font-weight: 300;
}
.footer-legal {
    display: flex;
    gap: 24px;
}
.footer-legal a {
    color: rgba(255, 255, 255, 0.22);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}
.footer-legal a:hover { color: var(--teal); }

/* ============================================
   FORMS (for contact.html etc.)
   ============================================ */
.form-group { margin-bottom: 24px; }
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 0.9rem;
}
.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--white);
    transition: var(--transition);
    outline: none;
    color: var(--ink);
}
.form-control:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(22, 187, 178, 0.1);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
    .container { padding: 0 32px; }
    h1 { font-size: 3rem; }
    .section-head { font-size: 2.2rem; }

    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-left {
        padding: 60px 32px 60px 32px;
        align-items: center;
        text-align: center;
    }
    .hero-sub { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-chip { margin-left: auto; margin-right: auto; }
    .hero-right { min-height: 360px; }

    .cards-grid { grid-template-columns: 1fr 1fr; }
    .services-header { flex-direction: column; align-items: flex-start; }
    .services-header-right { text-align: left; }
    .services-header-right .section-sub { text-align: left; margin-left: 0; }

    .proc-steps { grid-template-columns: 1fr 1fr; gap: 48px; }
    .proc-steps::before { display: none; }

    .proc-header { flex-direction: column; align-items: flex-start; }

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

    .metrics-band { padding: 48px 32px; }
    .metrics-inner { justify-content: center; gap: 24px; }
    .metrics-divider { display: none; }
}

/* ============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================ */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    h1 { font-size: 2.4rem; }
    .section-head { font-size: 1.9rem; }

    /* Mobile Nav */
    .mobile-menu-btn { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 72%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 32px rgba(5, 13, 26, 0.12);
        z-index: 1500;
        border-left: 1px solid var(--border);
    }
    .nav-links.active { right: 0; }
    .mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Sections */
    .services-section,
    .process-section { padding: 72px 0; }

    .cards-grid { grid-template-columns: 1fr; gap: 16px; }
    .proc-steps { grid-template-columns: 1fr; gap: 36px; }
    .proc-step { padding: 0; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    footer { padding: 60px 0 28px; }

    .hero-right { min-height: 300px; }
    .hero-stats { flex-direction: column; gap: 20px; text-align: center; }

    .metrics-band { padding: 40px 20px; }
    .metric-num { font-size: 2rem; }
}

/* ============================================
   CONTACT PAGE MOBILE FIX
   ============================================ */
@media (max-width: 768px) {

    /* prevent horizontal overflow issues */
    body {
        overflow-x: hidden;
    }

    /* stack contact grid vertically */
    .cards-grid {
        grid-template-columns: 1fr !important;
    }

    /* remove hard split layout */
    .cards-grid > div {
        width: 100%;
    }

    /* left panel (dark section) */
    .cards-grid > div:first-child {
        padding: 40px 24px !important;
    }

    /* right form panel */
    .cards-grid > div:last-child {
        padding: 40px 24px !important;
    }

    /* make form fields stack nicely */
    .cards-grid form div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* improve heading sizes inside contact */
    .cards-grid h3 {
        font-size: 1.5rem !important;
    }

    /* reduce section padding */
    .services-section {
        padding-top: 100px !important;
    }
}