/* ============================================================
   DevServeX – Global Design System  v2.0
   Fonts: Syne (headings) + Inter (body)
   Colors: #0d9488 | #5eead4 | #134e4a
   Dark/Light mode via [data-theme] on <html>
   ============================================================ */
/*
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&display=swap"); */

/* ── Dark Mode (Default) CSS Variables ──────────────────────── */
:root {
    --teal-dark: #134e4a;
    --teal-mid: #0d9488;
    --teal-light: #5eead4;
    --teal-pale: #ccfbf1;
    --ink: #0b1d1c;
    --ink-soft: #1f3b39;
    --muted: #4b7a75;
    --surface: #f8fffe;
    --surface-2: #edfaf8;
    --border: rgba(13, 148, 136, 0.15);
    --white: #ffffff;
    --font-display: "Syne", sans-serif;
    --font-body: "DM Sans", sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --primary: #0d9488;
    --primary-light: #14b8a6;
    --primary-dark: #0f766e;
    --accent: #5eead4;
    --accent-dim: #99f6e4;
    --deep: #134e4a;
    --deep-darker: #0d3d3a;

    --bg: #020b0a;
    --bg-2: #061210;
    --bg-card: #0a1f1d;
    --bg-card-2: #0d2825;
    --border: rgba(94, 234, 212, 0.12);
    --border-hover: rgba(94, 234, 212, 0.35);

    --text-primary: #f0fdfb;
    --text-secondary: #a7f3d0;
    --text-muted: #5eead4;
    --text-dim: #6b7280;
    --font-display: "Syne", sans-serif;
    --gradient-1: linear-gradient(135deg, #0d9488 0%, #134e4a 100%);
    --gradient-2: linear-gradient(135deg, #5eead4 0%, #0d9488 100%);
    --gradient-3: linear-gradient(180deg, #020b0a 0%, #061210 100%);
    --gradient-hero: radial-gradient(
        ellipse 80% 60% at 50% 0%,
        rgba(13, 148, 136, 0.25) 0%,
        transparent 70%
    );

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(13, 148, 136, 0.3);
    --shadow-glow-sm: 0 0 20px rgba(13, 148, 136, 0.2);

    --nav-bg-scrolled: rgba(2, 11, 10, 0.55);
    --nav-border: rgba(255, 255, 255, 0.06);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 36px;
    --radius-full: 9999px;

    --font-heading: "Syne", sans-serif;
    --font-body: "Inter", sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 72px;

    color-scheme: dark;
}

/* ── Light Mode Variables ────────────────────────────────────── */
[data-theme="light"] {
    --bg: #f0fdfa;
    --bg-2: #ffffff;
    --bg-card: #ffffff;
    --bg-card-2: #e6faf8;
    --border: rgba(13, 148, 136, 0.15);
    --border-hover: rgba(13, 148, 136, 0.45);
    --white: #ffffff;

    --text-primary: #0f2421;
    --text-secondary: #1a4a46;
    --text-muted: #0d9488;
    --text-dim: #6b8b88;

    --shadow-sm: 0 2px 8px rgba(13, 148, 136, 0.06);
    --shadow-md: 0 8px 32px rgba(13, 148, 136, 0.1);
    --shadow-lg: 0 24px 64px rgba(13, 148, 136, 0.12);
    --shadow-glow: 0 0 40px rgba(13, 148, 136, 0.12);
    --shadow-glow-sm: 0 0 20px rgba(13, 148, 136, 0.08);

    --nav-bg-scrolled: rgba(240, 253, 250, 0.72);
    --nav-border: rgba(13, 148, 136, 0.15);

    --gradient-hero: radial-gradient(
        ellipse 80% 60% at 50% 0%,
        rgba(13, 148, 136, 0.09) 0%,
        transparent 70%
    );

    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition:
        background 0.35s ease,
        color 0.35s ease;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

input,
textarea,
select {
    font-family: inherit;
    outline: none;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

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

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

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

    50% {
        transform: translateY(10px);
    }
}

/* ── Typography ─────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.8rem, 6.5vw, 5.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

h4 {
    font-size: 1.2rem;
}

p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

/* ── Layout ──────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-sm {
    padding: 60px 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.25);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.section-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    display: block;
    animation: pulse 2s infinite;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header p {
    max-width: 600px;
    margin: 16px auto 0;
    font-size: 1.1rem;
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR — Glassmorphic
══════════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition:
        background 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.navbar.scrolled {
    background: var(--nav-bg-scrolled);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    /* border-bottom: 1px solid var(--nav-border); */
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

@media (max-width: 640px) {
    .nav-logo {
        font-size: 1rem;
        /* 1.5rem - 0.5rem */
    }
}

.nav-logo .logo-icon {
    width: 36px;
    height: 36px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
}

.nav-logo span {
    color: var(--text-primary);
}

.nav-logo span em {
    color: var(--primary);
    font-style: normal;
}

.nav-logo .sub {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    text-transform: uppercase;
    display: block;
    margin-top: -4px;
    font-weight: 500;
}

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

.nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    font-family: var(--font-heading);
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* .nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(13, 148, 136, 0.08);
} */

.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

/* ── Theme Toggle ────────────────────────────────────────────── */
.theme-toggle {
    display: flex;
    align-items: center;
    width: 54px;
    height: 28px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-hover);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--primary);
}

.theme-knob {
    position: absolute;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}

[data-theme="light"] .theme-knob {
    transform: translateX(26px);
}

/* ── Hamburger ───────────────────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: var(--radius-sm);
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════════════════════════════════
   MOBILE MENU — Slide top-to-bottom with header bar
══════════════════════════════════════════════════════════════ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

[data-theme="light"] .mobile-menu {
    background: #f0fdfa;
}

.mobile-menu.open {
    transform: translateY(0);
}

/* ── Mobile Menu Header (logo + close) ────────────────────── */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: var(--nav-height);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition:
        opacity 0.3s ease 0.05s,
        transform 0.3s ease 0.05s;
}

.mobile-menu.open .mobile-menu-header {
    opacity: 1;
    transform: none;
}

.mobile-close {
    position: static;
    background: rgba(13, 148, 136, 0.08);
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: rotate(-90deg);
}

.mobile-menu.open .mobile-close {
    transform: rotate(0deg);
}

.mobile-close:hover {
    background: rgba(13, 148, 136, 0.18);
    border-color: var(--primary);
    color: var(--primary);
}

/* ── Nav Links (centered middle zone) ─────────────────────── */
.mobile-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 20px 0;
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 6vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    padding: 10px 48px;
    width: 100%;
    text-align: center;
    border-radius: 0;
    transition:
        color 0.25s ease,
        background 0.2s ease,
        opacity 0.4s ease,
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translateY(-20px);
    letter-spacing: -0.01em;
}

.mobile-nav a:hover {
    color: var(--primary);
    background: rgba(13, 148, 136, 0.05);
}

.mobile-nav a.active {
    color: var(--primary);
}

/* Stagger animation per child */
.mobile-menu.open .mobile-nav a:nth-child(1) {
    opacity: 1;
    transform: none;
    transition-delay: 0.12s;
}

.mobile-menu.open .mobile-nav a:nth-child(2) {
    opacity: 1;
    transform: none;
    transition-delay: 0.19s;
}

.mobile-menu.open .mobile-nav a:nth-child(3) {
    opacity: 1;
    transform: none;
    transition-delay: 0.26s;
}

.mobile-menu.open .mobile-nav a:nth-child(4) {
    opacity: 1;
    transform: none;
    transition-delay: 0.33s;
}

.mobile-menu.open .mobile-nav a:nth-child(5) {
    opacity: 1;
    transform: none;
    transition-delay: 0.4s;
}

.mobile-menu.open .mobile-nav a:nth-child(6) {
    opacity: 1;
    transform: none;
    transition-delay: 0.47s;
}

.mobile-menu.open .mobile-nav a:nth-child(7) {
    opacity: 1;
    transform: none;
    transition-delay: 0.54s;
}

/* ── CTA at bottom ────────────────────────────────────────── */
.mobile-cta-wrap {
    padding: 24px 32px 40px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.4s ease 0.6s,
        transform 0.4s ease 0.6s;
}

.mobile-menu.open .mobile-cta-wrap {
    opacity: 1;
    transform: none;
}

.mobile-cta-wrap .btn {
    min-width: 240px;
    justify-content: center;
}

/* ══════════════════════════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════════════════════════ */
.marquee-section {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    background: var(--bg-2);
    position: relative;
    z-index: 1;
}

.marquee-wrapper {
    display: flex;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}

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

.marquee-track {
    display: flex;
    align-items: center;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    padding: 0 36px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-dim);
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.marquee-item:hover {
    color: var(--primary);
}

.marquee-item .m-icon {
  font-size: 2.1em;
  display: inline-flex;
  align-items: center;
}

.marquee-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-hover);
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-family: var(--font-heading);
    letter-spacing: 0.01em;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: var(--transition);
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(13, 148, 136, 0.5);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: rgba(13, 148, 136, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(94, 234, 212, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(94, 234, 212, 0.12);
    border-color: var(--border-hover);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn .icon {
    font-size: 1.05em;
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 50%),
        rgba(13, 148, 136, 0.07) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.5s;
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow-sm);
    transform: translateY(-4px);
}

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

.card-icon {
    width: 52px;
    height: 52px;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
    transition: var(--transition);
}

.card:hover .card-icon {
    background: rgba(13, 148, 136, 0.18);
    box-shadow: 0 0 16px rgba(13, 148, 136, 0.25);
}

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

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

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

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* ── Divider ───────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--border-hover),
        transparent
    );
}

/* ── Badge ───────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.badge-teal {
    background: rgba(13, 148, 136, 0.12);
    color: var(--primary);
    border: 1px solid rgba(13, 148, 136, 0.28);
}

.badge-green {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

/* ── Glow Orbs ───────────────────────────────────────────────── */
.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.25;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #0d9488, transparent);
    top: -150px;
    left: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #134e4a, transparent);
    bottom: -100px;
    right: -100px;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #5eead4, transparent);
    top: 40%;
    left: 60%;
}

[data-theme="light"] .orb {
    opacity: 0.12;
}

/* Noise */
.noise::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.35;
}

/* Gradient Border */
.grad-border {
    position: relative;
    z-index: 0;
}

.grad-border::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--accent),
        var(--deep),
        var(--primary)
    );
    background-size: 300% 300%;
    animation: borderGlow 4s linear infinite;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Shape rings */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-rev {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.shape-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(13, 148, 136, 0.12);
    pointer-events: none;
}

.shape-ring-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: -100px;
    animation: spin-slow 30s linear infinite;
}

.shape-ring-2 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: -80px;
    animation: spin-rev 20s linear infinite;
}

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    /* background-image:
        linear-gradient(var(--primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary) 1px, transparent 1px); */
    background-size: 60px 60px;
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(13, 148, 136, 0.08);
    border: 1.5px solid rgba(13, 148, 136, 0.28);
    padding: 7px 18px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 28px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.hero-eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s infinite;
}

.hero h1 {
    margin-bottom: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 52px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.stat-accent {
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* ── Code Editor Card ─────────────────────────────────────────── */
.code-editor-wrap {
    position: relative;
}

.code-editor-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.editor-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card-2);
    border-bottom: 1px solid var(--border);
}

.editor-dots {
    display: flex;
    gap: 7px;
}

.editor-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.editor-body {
    padding: 20px 24px;
    font-family: "Courier New", monospace;
    font-size: 0.88rem;
    line-height: 1.85;
}

.code-line {
    display: flex;
    gap: 16px;
}

.ln {
    color: var(--text-dim);
    font-size: 0.78rem;
    user-select: none;
    min-width: 16px;
    text-align: right;
    padding-top: 1px;
}

.kw {
    color: #c678dd;
}

.var {
    color: #e06c75;
}

.fn {
    color: #61afef;
}

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

.str {
    color: #98c379;
}

.cm {
    color: var(--text-dim);
    font-style: italic;
}

[data-theme="light"] .kw {
    color: #7c3aed;
}

[data-theme="light"] .var {
    color: #dc2626;
}

[data-theme="light"] .fn {
    color: #2563eb;
}

[data-theme="light"] .str {
    color: #16a34a;
}

/* Floating badges on editor */
.editor-badge {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-md);
    font-size: 0.82rem;
    min-width: 180px;
}

.editor-badge-1 {
    top: -20px;
    right: -20px;
    animation: floatBadge 4s ease-in-out infinite;
}

.editor-badge-2 {
    bottom: 20px;
    left: -20px;
    animation: floatBadge 4s ease-in-out infinite 2s;
}

.badge-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-ico {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.badge-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.badge-sub {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 1px;
}

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

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

/* \u2500\u2500 Floating Cards (hero alternative visual) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.hero-card-float {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-md);
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-card-float:hover {
    box-shadow: var(--shadow-glow-sm);
    border-color: var(--border-hover);
}

.hero-card-float:nth-child(1) {
    animation: floatCard 5s ease-in-out infinite;
}

.hero-card-float:nth-child(2) {
    animation: floatCard 6s ease-in-out infinite 1s;
}

.hero-card-float:nth-child(3) {
    animation: floatCard 7s ease-in-out infinite 0.5s;
}

.hero-card-float:nth-child(4) {
    animation: floatCard 5.5s ease-in-out infinite 1.5s;
}

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

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

/* hero visual */
.hero-visual {
    position: relative;
    /* padding: 24px; */
}

/* ── Page Hero (inner pages) ──────────────────────────────────── */
.page-hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

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

/* ── Services Section ────────────────────────────────────────── */
.service-card {
    cursor: default;
}

.service-card h4 {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.65;
    margin: 0;
}

.service-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.service-card .tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.2);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
}

/* ── Tech Stack ───────────────────────────────────────────────── */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tech-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: default;
    font-family: var(--font-heading);
}

.tech-pill:hover {
    border-color: var(--border-hover);
    color: var(--primary);
    background: var(--bg-card-2);
    transform: translateY(-2px);
}

.tech-pill .t-icon {
    font-size: 1.2em;
}

/* ── Portfolio ────────────────────────────────────────────────── */
.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow-sm);
}

.portfolio-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.portfolio-img > div {
    height: 100%;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-body {
    padding: 22px;
}

.portfolio-body h4 {
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.portfolio-body p {
    font-size: 0.84rem;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.6;
}

.portfolio-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

/* ── Testimonials ─────────────────────────────────────────────── */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 5rem;
    line-height: 1;
    color: rgba(13, 148, 136, 0.12);
    font-family: Georgia, serif;
    pointer-events: none;
}

.testimonial-card:hover {
    border-color: var(--border-hover);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 0.88rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 22px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
    font-family: var(--font-heading);
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.testimonial-role {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ── Pricing ──────────────────────────────────────────────────── */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--primary);
    background: var(--bg-card-2);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured::after {
    content: "MOST POPULAR";
    position: absolute;
    top: 20px;
    right: -28px;
    background: var(--gradient-1);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-family: var(--font-heading);
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-name {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.pricing-desc {
    font-size: 0.84rem;
    color: var(--text-dim);
    margin-bottom: 22px;
}

.pricing-amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-currency {
    font-size: 1.5rem;
    vertical-align: super;
    color: var(--primary);
    font-weight: 700;
}

.pricing-period {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-left: 4px;
}

.pricing-note {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 26px;
}

.pricing-divider {
    height: 1px;
    background: var(--border);
    margin: 22px 0;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 28px;
}

.pricing-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.pricing-feat .check {
    color: var(--primary);
    font-weight: 700;
}

/* ── Blog ─────────────────────────────────────────────────────── */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.blog-img {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.blog-body {
    padding: 22px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.blog-cat {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-heading);
}

.blog-date {
    font-size: 0.76rem;
    color: var(--text-dim);
}

.blog-body h4 {
    font-size: 0.98rem;
    margin-bottom: 7px;
    line-height: 1.4;
    transition: var(--transition);
}

.blog-card:hover .blog-body h4 {
    color: var(--primary);
}

.blog-body p {
    font-size: 0.83rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0;
}

.blog-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-read {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
    font-family: var(--font-heading);
}

.blog-card:hover .blog-read {
    color: var(--accent);
}

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.open {
    border-color: var(--border-hover);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: color 0.25s ease;
    gap: 14px;
    font-family: var(--font-heading);
}

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

.faq-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    background: rgba(13, 148, 136, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq-item.open .faq-icon {
    background: rgba(13, 148, 136, 0.18);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 22px 18px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

/* ── Contact ──────────────────────────────────────────────────── */
.input-group {
    margin-bottom: 18px;
}

.input-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 7px;
    letter-spacing: 0.03em;
    font-family: var(--font-heading);
}

.input-field {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-card-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.92rem;
    transition: var(--transition);
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
    background: var(--bg-card);
}

.input-field::placeholder {
    color: var(--text-dim);
}

textarea.input-field {
    resize: vertical;
    min-height: 130px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-info-item:hover {
    border-color: var(--border-hover);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(13, 148, 136, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.contact-info-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 3px;
    font-family: var(--font-heading);
}

.contact-info-val {
    font-size: 0.84rem;
    color: var(--text-dim);
}

/* ── Map ─────────────────────────────────────────────────────── */
.map-placeholder {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    height: 280px;
    background: var(--bg-card-2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Footer ───────────────────────────────────────────────────── */
footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 72px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 56px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin: 14px 0 22px;
    line-height: 1.7;
}

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

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(94, 234, 212, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-btn:hover {
    background: rgba(13, 148, 136, 0.12);
    border-color: var(--border-hover);
    color: var(--primary);
}

.footer-col h5 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    margin-bottom: 18px;
    font-family: var(--font-heading);
}

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

.footer-col ul a {
    font-size: 0.86rem;
    color: var(--text-dim);
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin: 0;
}

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

/* ── About / Team ─────────────────────────────────────────────── */
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}

.team-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.team-img {
    height: 200px;
    background: linear-gradient(135deg, var(--deep), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.team-body {
    padding: 22px;
}

.team-name {
    font-size: 1.05rem;
    margin-bottom: 3px;
}

.team-role {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.team-desc {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0;
}

.team-socials {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    justify-content: center;
}

.value-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.value-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(13, 148, 136, 0.15);
    line-height: 1;
    flex-shrink: 0;
    width: 44px;
}

.value-content h4 {
    margin-bottom: 5px;
}

.value-content p {
    font-size: 0.86rem;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.7;
}

/* ── Filter Tabs ──────────────────────────────────────────────── */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 44px;
}

.filter-tab {
    padding: 9px 20px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--gradient-1);
    color: #fff;
    border-color: transparent;
}

/* ── Scroll Animations ────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-28px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(28px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: none;
}

/* ── Cursor glow ──────────────────────────────────────────────── */
.cursor-glow {
    position: fixed;
    width: 280px;
    height: 280px;
    background: radial-gradient(
        circle,
        rgba(13, 148, 136, 0.06) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
}

[data-theme="light"] .cursor-glow {
    background: radial-gradient(
        circle,
        rgba(13, 148, 136, 0.04) 0%,
        transparent 70%
    );
}

/* ── Progress bar ─────────────────────────────────────────────── */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    z-index: 9999;
    background: var(--gradient-2);
    width: 0%;
    transition: width 0.1s;
}

/* ── Back to top ──────────────────────────────────────────────── */
.back-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--gradient-1);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-sm);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.back-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-top:hover {
    transform: translateY(-3px);
}

/* ── Toast ────────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 13px 22px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: var(--font-heading);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast .t-icon {
    font-size: 1.1rem;
    color: var(--primary);
}

/* ── Pulse animation ──────────────────────────────────────────── */
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.4);
    }
}

/* ── Utility ──────────────────────────────────────────────────── */
.text-center {
    text-align: center;
}

.mt-8 {
    margin-top: 8px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mt-32 {
    margin-top: 32px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-8 {
    gap: 8px;
}

.gap-16 {
    gap: 16px;
}

.gap-24 {
    gap: 24px;
}

.relative {
    position: relative;
}

.overflow-hidden {
    overflow: hidden;
}

.w-full {
    width: 100%;
}

.hidden {
    display: none !important;
}

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

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

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

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .nav-hamburger {
    display: flex;
  }

  .hero-stats {
    gap: 24px;
  }

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

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

  .hero>.container>div {
    grid-template-columns: 1fr !important;
  }

  .hero-visual {
    display: none;
  }
} */

@media (max-width: 992px) {
    .nav-links,
    .nav-cta .btn-outline {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

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

    .hero > .container > div {
        grid-template-columns: 1fr !important;
    }

    .hero-visual {
        display: none;
    }

    .section {
        padding: 72px 0;
    }
    .hero-stats {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 1.9rem;
    }

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

    .btn-lg {
        width: 100%;
    }

    .mobile-nav a {
        font-size: 1.8rem;
    }
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
}

/* Horizontal line (desktop only) */
.process-line {
    position: absolute;
    top: 32px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(
        90deg,
        var(--primary),
        var(--accent),
        var(--primary)
    );
    opacity: 0.3;
}

/* Step card */
.process-item {
    text-align: center;
    padding: 32px 24px;
}

.icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-glow-sm);
}

.icon.bordered {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.step {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.process-item p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ========================= */
/* 📱 Tablet (2 columns) */
/* ========================= */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .process-line {
        display: none;
    }
}

/* ========================= */
/* 📱 Mobile (1 column) */
/* ========================= */
@media (max-width: 640px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .process-item {
        padding: 24px 16px;
    }
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--teal-mid);
    color: var(--bg-card);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 10px;
    transition:
        background 0.25s,
        transform 0.25s var(--ease-spring),
        box-shadow 0.25s;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.35);
}

.btn-outline {
    display: inline-flex;
    white-space: nowrap;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--teal-mid);
    color: var(--teal-mid);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 4px 28px;
    border-radius: 10px;
    transition:
        background 0.25s,
        color 0.25s,
        transform 0.25s var(--ease-spring);
}

.hero-h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.5;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 60px rgba(19, 78, 74, 0.08);
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.hc-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.99rem;
    font-family: "Courier New", monospace;
}

.cl-num {
    color: var(--muted);
    width: 20px;
}

.cl-keyword {
    color: var(--teal-mid);
}

.cl-var {
    color: var(--teal-dark);
}

.cl-fn {
    color: #7c6af7;
}

.fb-1 {
    top: -24px;
    right: -24px;
    animation: float1 4s ease-in-out infinite;
}

.floating-badge {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.fb-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.fb-text-main {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
}

.fb-text-sub {
    font-size: 0.72rem;
    color: var(--muted);
}

.fb-2 {
    bottom: -20px;
    left: -24px;
    animation: float2 5s ease-in-out infinite;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}

@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1.4fr;
    }
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: 24px;
    /* updated */
    border: 1px solid var(--border);
    background: var(--bg-card);
    margin-bottom: 48px;

    /* NEW: soft modern shadow */
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Left section (emoji/banner) */
.featured-card > div:first-child {
    background: linear-gradient(135deg, #134e4a, #0d9488);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    min-height: 280px;
}

/* Right content */
.featured-card > div:last-child {
    padding: 40px;
}

/* ---------------- MOBILE ---------------- */
@media (max-width: 768px) {
    .featured-card {
        grid-template-columns: 1fr;
        /* stack */
    }

    .featured-card > div:first-child {
        min-height: 180px;
        font-size: 3rem;
    }

    .featured-card > div:last-child {
        padding: 24px;
    }

    .featured-card h2 {
        font-size: 1.3rem;
    }
}

/* ---------------- SMALL MOBILE ---------------- */
@media (max-width: 480px) {
    .featured-card > div:last-child {
        padding: 20px;
    }

    .featured-card h2 {
        font-size: 1.1rem;
    }

    .featured-card p {
        font-size: 0.85rem;
    }
}

/* ── Continuous logo animation — no HTML changes needed ── */

.nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
}

/* ── Image: continuous float + rotate ── */
.nav-logo img {
    object-fit: contain;
    border-radius: 12px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-5px) rotate(-3deg);
    }

    66% {
        transform: translateY(-2px) rotate(2deg);
    }
}

/* ── "ServeX" continuous gradient shimmer ── */
.nav-logo em {
    font-style: normal;

    background: linear-gradient(135deg, #5eead4 0%, #0d9488 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* ── "Software Agency" subtle pulse ── */
.nav-logo .sub {
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* underline (hidden by default) */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* hover effect */
.nav-links a:hover {
    color: var(--primary);
}

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

/* active state */
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}


/* Brand / semantic colors */
.text-blue { color: #3b82f6; }
.text-sky { color: #38bdf8; }
.text-pink { color: #ec4899; }
.text-purple { color: #a855f7; }
.text-green { color: #22c55e; }
.text-red { color: #ef4444; }
.text-orange { color: #f97316; }
.text-yellow { color: #eab308; }
.text-indigo { color: #6366f1; }
.text-gold { color: #fbbf24; }
.text-black { color: #e5e7eb; }


.service-card {
  position: relative;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.35s ease;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at top left,
    rgba(20, 251, 232, 0.15),
    transparent 60%
  );

  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);

  border-color: rgba(20, 251, 232, 0.4);

  /* box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 40px rgba(20, 251, 232, 0.15); */
}

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

.card-icon {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;
  font-size: 18px;

  margin-bottom: 18px;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);

  transition: all 0.3s ease;
}
.card-icon.blue { color: #3b82f6; }
.card-icon.pink { color: #ec4899; }
.card-icon.purple { color: #a855f7; }
.card-icon.green { color: #22c55e; }
.card-icon.cyan { color: #06b6d4; }
.card-icon.orange { color: #f97316; }

.t-icon {
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.react { color: #61dafb; }
.next { color: #ffffff; }
.vue { color: #42b883; }
.js { color: #f7df1e; }
.ts { color: #3178c6; }
.php { color: #8892be; }
.laravel { color: #ff2d20; }
.node { color: #3c873a; }
.db { color: #4db33d; }
.mongo { color: #47a248; }
.flutter { color: #38bdf8; }
.aws { color: #ff9900; }
.docker { color: #2496ed; }
.firebase { color: #ffcb2b; }
.figma { color: #f24e1e; }
.ai { color: #a855f7; }
