/* ============================================================
   Ramagoma Muthuhadini | WEB DEVELOPER & AI SOLUTIONS CREATOR
   style.css — Main Stylesheet
   Color palette: midnight black · electric cyan · deep purple · SA gold
   ============================================================ */

/* ===== DESIGN TOKENS (CSS Variables) ===== */
:root {
    --bg-base:      #050510;
    --bg-layer:     #09091e;
    --bg-glass:     rgba(255, 255, 255, 0.04);
    --bg-glass-hov: rgba(255, 255, 255, 0.08);

    --cyan:         #00d4ff;
    --purple:       #7b2fff;
    --gold:         #ffd60a;
    --green:        #00ff88;

    --text-hi:      #f0f0ff;
    --text-mid:     #8888aa;
    --text-lo:      #787896;   /* lightened from #44445a — old value failed WCAG AA (2.14:1); this passes at 4.76:1 */

    --border:       rgba(255, 255, 255, 0.08);
    --border-glow:  rgba(0, 212, 255, 0.25);

    --grad:         linear-gradient(135deg, #00d4ff, #7b2fff);
    --grad-rev:     linear-gradient(135deg, #7b2fff, #00d4ff);
    --grad-gold:    linear-gradient(135deg, #ffd60a, #ff6b35);

    --f-display:    'Syne', sans-serif;
    --f-body:       'Outfit', sans-serif;

    --t:            all 0.3s cubic-bezier(.4,0,.2,1);
    --t-slow:       all 0.65s cubic-bezier(.4,0,.2,1);

    --max-w:        1200px;
    --section-gap:  110px 0;
}

/* ===== RESET ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
/* overflow-x:hidden on BOTH html and body — body alone doesn't contain
   position:fixed elements (e.g. .mobile-menu below), which are clipped
   relative to the viewport/initial containing block, not body. Without
   the html-level guard too, a fixed off-canvas panel positioned via
   right:-100% could still inflate document.documentElement.scrollWidth
   and cause real horizontal scroll on some pages/devices even though
   body itself stayed correctly clipped (Milestone 24 mobile audit). */
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--f-body);
    background: var(--bg-base);
    color: var(--text-hi);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Defensive word-wrap for headings — the Syne display font is very wide,
   so a single long word at large mobile font-sizes could in theory overflow
   its container instead of wrapping. overflow-wrap only breaks a word when
   there's truly no other way to fit it (unlike word-break: break-word,
   which breaks words prematurely even when they'd fit fine on their own
   line — verified via screenshot that it was doing exactly that here). */
h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--f-body); }

/* Respect the visitor's reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--grad); border-radius: 4px; }

/* ===== UTILITY ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

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

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .6s ease, visibility .6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Single stable wrapper for the avatar image + its ring, so they are
   always sized/centred off the same box and can never drift apart. */
.loader-avatar-wrap {
    position: relative;
    width: 64px; height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Spinning ring — an absolutely-positioned circle that exactly fills
   .loader-avatar-wrap (inset:0), which is ~6px larger in diameter than
   the 52px image centred inside it, giving a clean uniform gap. */
.loader-ring {
    position: absolute;
    inset: 0;
    border: 3px solid var(--border);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.loader-logo-img {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0,212,255,.4);
    animation: loaderPulse 1.5s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

/* Loading text — separate from the avatar wrapper so the ring only
   ever surrounds the picture, never the text underneath it. */
.loader-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.loader-logo span {
    font-family: var(--f-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-mid);
    letter-spacing: 3px;
    text-transform: uppercase;
}
.loader-dots { color: var(--cyan); animation: dotPulse 1.2s step-start infinite; }

@keyframes dotPulse { 0%,100%{content:"."} 33%{content:".."} 66%{content:"..."} }
@keyframes loaderPulse {
    0%,100%{ box-shadow: 0 0 0 0 rgba(0,212,255,.4); }
    50%    { box-shadow: 0 0 0 10px rgba(0,212,255,0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--t);
}
#navbar.scrolled {
    background: rgba(5, 5, 16, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    box-shadow: 0 8px 40px rgba(0,0,0,.35);
}

.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ✅ Logo with small circular image */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}
.nav-logo-img {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid rgba(0,212,255,.35);
    box-shadow: 0 0 12px rgba(0,212,255,.25);
    transition: var(--t);
}

/* ── Logo pill container — wraps the image + text into a
       glowing WhatsApp-green clickable pill button ──────────── */
.nav-logo-pill {
    padding: 5px 16px 5px 5px;        /* tight left so image sits on edge */
    background: rgba(37, 211, 102, .06);
    border: 1px solid rgba(37, 211, 102, .22);
    border-radius: 50px;               /* full pill shape */
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
}

.nav-logo-pill:hover {
    background: rgba(37, 211, 102, .13);
    border-color: rgba(37, 211, 102, .45);
    box-shadow: 0 0 22px rgba(37, 211, 102, .25);
    transform: translateY(-2px);
}

/* Image inside the pill — stays circular */
.nav-logo-pill .nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid rgba(37, 211, 102, .4);
    box-shadow: 0 0 10px rgba(37, 211, 102, .3);
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    flex-shrink: 0;
}

.nav-logo-pill:hover .nav-logo-img {
    border-color: #25D366;
    box-shadow: 0 0 18px rgba(37, 211, 102, .5);
}

/* Column wrapper for the two lines of text */
.nav-logo-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
}

/* Main name text — unchanged look */
.nav-logo-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #f0f0ff;
    letter-spacing: -.3px;
}

/* Sub-label "Try AI Auto-Reply" — WhatsApp green accent */
.nav-logo-sublabel {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: .62rem;
    font-weight: 700;
    color: #25D366;
    letter-spacing: .4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-logo-sublabel i {
    font-size: .6rem;
    animation: waPulse 2s ease infinite;
}

@keyframes waPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .55; }
}

/* ── Mobile: hide the sublabel on very small screens
       to keep the nav bar clean ──────────────────────────────── */
@media (max-width: 380px) {
    .nav-logo-sublabel { display: none; }
    .nav-logo-pill     { padding: 5px 10px 5px 5px; }
}
.nav-logo:hover .nav-logo-img {
    border-color: var(--cyan);
    box-shadow: 0 0 24px rgba(0,212,255,.5);
}
.nav-logo-text {
    font-family: var(--f-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-hi);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    flex: 1;
    justify-content: center;
}
.nav-links a {
    padding: 8px 16px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-mid);
    border-radius: 8px;
    position: relative;
    transition: var(--t);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 3px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--grad);
    border-radius: 2px;
    transition: var(--t);
}
.nav-links a:hover        { color: var(--text-hi); }
.nav-links a:hover::after { width: 55%; }
.nav-links a.active-link  { color: var(--cyan); }
.nav-links a.active-link::after { width: 55%; }

/* ── Nav dropdowns (Websites / AI & Automation) ── */
.nav-links li.has-dropdown { position: relative; }

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}
.dropdown-toggle .chevron {
    font-size: .6rem;
    transition: transform .3s ease;
}
.has-dropdown:hover .chevron,
.has-dropdown.open .chevron { transform: rotate(180deg); }

.dropdown-menu {
    list-style: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 230px;
    background: rgba(9, 9, 30, .98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.45);
    transition: var(--t);
    z-index: 1001;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 10px 14px;
    font-size: .82rem;
    white-space: nowrap;
    border-radius: 8px;
}
.dropdown-menu li a::after { display: none; }
.dropdown-menu li a:hover { background: var(--bg-glass-hov); color: var(--text-hi); }

/* Mobile slide-out menu: grouped sub-links under Websites / AI & Automation */
.mobile-group-label {
    display: block;
    padding: 14px 12px 6px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--text-mid);
}
.mobile-sublist {
    list-style: none;
    border-left: 1px solid var(--border);
    margin-left: 12px;
}
.mobile-sublist a { font-size: .92rem; padding: 10px 16px; }

.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.nav-cta {
    padding: 10px 26px;
    background: var(--grad);
    color: #fff;
    font-weight: 600;
    font-size: .875rem;
    border-radius: 100px;
    transition: var(--t);
    box-shadow: 0 0 24px rgba(0,212,255,.28);
    white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(0,212,255,.5); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    min-width: 44px;
    min-height: 44px;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text-hi);
    border-radius: 2px;
    transition: var(--t);
}

/* ===== MOBILE SIDE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 300px; height: 100vh;
    background: rgba(9,9,30,.98);
    backdrop-filter: blur(24px);
    z-index: 1100;
    padding: 80px 32px 40px;
    transition: var(--t-slow), visibility 0s linear .65s;
    visibility: hidden;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-menu.open {
    right: 0;
    visibility: visible;
    transition: var(--t-slow), visibility 0s linear 0s;
}

.mobile-close {
    position: absolute;
    top: 9px; right: 11px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none;
    color: var(--text-mid);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--t);
}
.mobile-close:hover { color: var(--cyan); }

.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-link {
    display: block;
    padding: 12px 16px;
    color: var(--text-mid);
    font-size: .95rem;
    font-weight: 500;
    border-radius: 10px;
    transition: var(--t);
}
.mobile-link:hover { color: var(--text-hi); background: var(--bg-glass); }

.mobile-whatsapp {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    border-radius: 100px;
    margin-top: auto;
    justify-content: center;
    transition: var(--t);
}
.mobile-whatsapp:hover { transform: translateY(-2px); }

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--t-slow);
    backdrop-filter: blur(4px);
}
.menu-overlay.active { opacity: 1; visibility: visible; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    background: var(--grad);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 28px rgba(0,212,255,.3);
    transition: var(--t);
    white-space: nowrap;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-rev);
    opacity: 0;
    transition: var(--t);
}
.btn-primary span, .btn-primary i { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 50px rgba(0,212,255,.5); }
.btn-primary:hover::after { opacity: 1; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    background: transparent;
    color: var(--text-hi);
    font-weight: 600;
    font-size: .9rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--t);
    white-space: nowrap;
}
.btn-secondary:hover {
    border-color: #25D366;
    color: #25D366;
    background: rgba(37,211,102,.06);
    transform: translateY(-3px);
}

/* ============================================================
   SECTION CHROME
   ============================================================ */
section { padding: var(--section-gap); position: relative; }

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

.section-tag {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(0,212,255,.08);
    border: 1px solid rgba(0,212,255,.2);
    color: var(--cyan);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--f-display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}

.section-subtitle {
    color: var(--text-mid);
    font-size: .95rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 80px 80px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 60px;
    position: relative;
    overflow: hidden;
}

#particleCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 660px;   /* widened from 580px so the longer hero headline has room to wrap on word boundaries */
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(0,255,136,.07);
    border: 1px solid rgba(0,255,136,.2);
    color: var(--green);
    font-size: .82rem;
    font-weight: 500;
    border-radius: 100px;
    margin-bottom: 22px;
    animation: fadeUp .7s ease both;
}

.badge-dot {
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulseDot 2s ease infinite;
    flex-shrink: 0;
}
@keyframes pulseDot {
    0%,100% { box-shadow: 0 0 0 0 rgba(0,255,136,.5); }
    50%      { box-shadow: 0 0 0 7px rgba(0,255,136,0); }
}

.hero-title {
    font-family: var(--f-display);
    font-size: clamp(2.4rem, 4.2vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    animation: fadeUp .7s .1s ease both;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    color: var(--text-mid);
    margin-bottom: 18px;
    min-height: 2.2em;
    animation: fadeUp .7s .2s ease both;
}

.typed-text   { color: var(--cyan); font-weight: 600; }
.cursor-blink { color: var(--cyan); animation: blinkCursor 1s step-start infinite; }
@keyframes blinkCursor { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-description {
    color: var(--text-mid);
    font-size: .95rem;
    line-height: 1.85;
    margin-bottom: 34px;
    max-width: 470px;
    animation: fadeUp .7s .3s ease both;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    animation: fadeUp .7s .4s ease both;
}

.hero-view-work-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 32px;
    transition: var(--t);
}
.hero-view-work-link i { font-size: .75rem; }
.hero-view-work-link:hover { color: var(--cyan); gap: 11px; }

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    animation: fadeUp .7s .5s ease both;
}

.stat { display: flex; flex-direction: column; gap: 3px; }

.stat-number {
    font-family: var(--f-display);
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stat-plus {
    font-family: var(--f-display);
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: .72rem; color: var(--text-lo); text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 38px; background: var(--border); }

.hero-image {
    flex: 0 0 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    animation: fadeRight .9s .3s ease both;
}

.glow-ring {
    position: absolute;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,212,255,.16) 0%, transparent 70%);
    animation: glowPulse 3.5s ease-in-out infinite;
}
@keyframes glowPulse {
    0%,100% { transform: scale(1); opacity: .8; }
    50%      { transform: scale(1.12); opacity: 1; }
}

.hero-avatar-wrap { position: relative; width: 280px; height: 280px; }

.avatar-box {
    width: 100%; height: 100%;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(0,212,255,.1), rgba(123,47,255,.1));
    border: 1px solid rgba(0,212,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 60px rgba(0,212,255,.1), inset 0 0 60px rgba(0,212,255,.03);
    overflow: hidden;
}

/* ✅ Real photo fills the avatar box perfectly */
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 26px;
    transition: transform .4s ease;
}
.avatar-box:hover .avatar-img { transform: scale(1.04); }

.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(9,9,30,.92);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-hi);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    white-space: nowrap;
}

.b1 { top:-18px; right:-32px; color: var(--cyan);   animation: floatY 3s       ease-in-out infinite; }
.b2 { bottom:16px; right:-44px; color:#3776ab;       animation: floatY 3s .5s   ease-in-out infinite; }
.b3 { top:36px; left:-52px;    color: var(--purple); animation: floatY 3s 1s    ease-in-out infinite; }
.b4 { bottom:-18px; left:-32px; color:#68a063;       animation: floatY 3s 1.5s  ease-in-out infinite; }

@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
    background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-layer) 100%);
}

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

/* Center a single orphan card when total cards isn't divisible by 3 */
.services-grid .service-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
}

.services-grid--2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    margin: 0 auto;
}

/* ── Service category blocks (Website Dev / SEO / AI & Automation) ── */
.service-category { margin-bottom: 64px; }
.service-category:last-child { margin-bottom: 0; }

/* "Enhance Your Website" — deliberately smaller/secondary vs. Website Development */
.enhance-website {
    padding-top: 48px;
    border-top: 1px solid var(--border);
}
.section-title-sm {
    font-family: var(--f-display);
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 10px;
}

.service-category-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    max-width: 720px;
    margin: 0 0 28px;
}
.service-category-icon {
    flex-shrink: 0;
    width: 52px; height: 52px;
    background: linear-gradient(135deg, rgba(0,212,255,.15), rgba(123,47,255,.15));
    border: 1px solid rgba(0,212,255,.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--cyan);
}
.service-category-header h3 {
    font-family: var(--f-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.service-category-header p {
    color: var(--text-mid);
    font-size: .9rem;
    line-height: 1.7;
}

.seo-feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.seo-feature-grid span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: .85rem;
    color: var(--text-mid);
}
.seo-feature-grid span i { color: var(--green); font-size: .75rem; }

.service-category-cta {
    display: inline-flex;
}

.service-category-footnote {
    margin-top: 26px;
    padding: 18px 22px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: .85rem;
    color: var(--text-mid);
    line-height: 1.7;
}
.service-category-footnote strong { color: var(--text-hi); }
.service-category-footnote a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    color: var(--cyan);
    font-weight: 600;
    white-space: nowrap;
}
.service-category-footnote a:hover { gap: 9px; }

/* ── Personal Services (secondary section) ── */
.personal-services {
    background: var(--bg-base);
    border-top: 1px solid var(--border);
}
.personal-services .service-card {
    padding: 26px 22px;
}
.personal-services .service-icon {
    width: 44px; height: 44px;
    font-size: .95rem;
}
.personal-services .service-card h3 { font-size: .95rem; }

.service-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 34px 26px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--t);
    backdrop-filter: blur(10px);
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    background: var(--bg-glass-hov);
}
.service-card:hover .card-glow { opacity: 1; }

.card-glow {
    position: absolute;
    bottom: -60px; left: 50%;
    transform: translateX(-50%);
    width: 160px; height: 100px;
    background: var(--cyan);
    filter: blur(70px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}

/* AI Chatbots — "Most Popular" (cyan-purple gradient) */
.featured-service {
    border-color: rgba(0,212,255,.25);
    background: linear-gradient(135deg, rgba(0,212,255,.06), rgba(123,47,255,.06));
}
.featured-label {
    position: absolute;
    top: 16px; right: 16px;
    padding: 3px 12px;
    background: var(--grad);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
}

/* ✅ CV card — gold "Popular" badge */
.cv-service {
    border-color: rgba(255,214,10,.2);
    background: linear-gradient(135deg, rgba(255,214,10,.05), rgba(255,107,53,.05));
}
.popular-label {
    position: absolute;
    top: 16px; right: 16px;
    padding: 3px 12px;
    background: var(--grad-gold);
    color: #111;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
}

/* ✅ WhatsApp card — green "Popular" badge */
.whatsapp-service {
    border-color: rgba(37,211,102,.2);
    background: linear-gradient(135deg, rgba(37,211,102,.05), rgba(18,140,126,.05));
}
.whatsapp-popular-label {
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
    color: #fff !important;
}

.service-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, rgba(0,212,255,.15), rgba(123,47,255,.15));
    border: 1px solid rgba(0,212,255,.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--cyan);
    margin-bottom: 18px;
    transition: var(--t);
}
.whatsapp-icon { color: #25D366; }
.seo-icon, .academic-icon { color: var(--gold); }      
.redesign-icon             { color: #8b5cf6; }  
.matric-icon { color: #3b82f6; }
.cv-icon       { color: var(--gold); }

.service-card:hover .service-icon { transform: scale(1.12); }

.service-card h3 {
    font-family: var(--f-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.service-card p {
    font-size: .875rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 18px;
}

.service-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.service-tags span {
    padding: 3px 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: .7rem;
    color: var(--text-lo);
    font-weight: 500;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about { background: var(--bg-base); }

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

.about-visual { display: flex; justify-content: center; }

.about-frame {
    position: relative;
    width: 340px; height: 420px;
}

/* ✅ Main photo — ana.jpg fills the frame */
.about-photo-placeholder {
    width: 100%; height: 100%;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0,212,255,.07), rgba(123,47,255,.07));
    border: 1px solid rgba(0,212,255,.14);
    overflow: hidden;
}
.about-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 22px;
    transition: transform .4s ease;
}
.about-frame:hover .about-main-img { transform: scale(1.03); }

/* Decorative spinning ring */
.about-ring {
    position: absolute;
    width: 180px; height: 180px;
    border: 2px dashed rgba(0,212,255,.12);
    border-radius: 50%;
    top: -24px; right: -24px;
    animation: spinSlow 25s linear infinite;
    pointer-events: none;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ✅ Secondary floating photo — muthu.jpg */
.about-secondary-photo {
    position: absolute;
    bottom: 30px;
    right: -44px;
    width: 90px; height: 90px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid var(--bg-base);
    box-shadow: 0 0 0 2px rgba(0,212,255,.25), 0 8px 30px rgba(0,0,0,.4);
    animation: floatY 4s ease-in-out infinite;
}
.about-secondary-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* ✅ Third accent photo — rama.jpg */
.about-accent-photo {
    position: absolute;
    top: 30px;
    left: -40px;
    width: 80px; height: 80px;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid var(--bg-base);
    box-shadow: 0 0 0 2px rgba(123,47,255,.3), 0 8px 30px rgba(0,0,0,.4);
    animation: floatY 4s 1s ease-in-out infinite;
}
.about-accent-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Experience badge */
.exp-badge {
    position: absolute;
    bottom: -16px; right: -16px;
    padding: 14px 18px;
    background: var(--grad);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 40px rgba(0,212,255,.3);
}
.exp-num { font-family: var(--f-display); font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1; }
.exp-txt  { font-size: .65rem; color: rgba(255,255,255,.8); text-align: center; white-space: nowrap; margin-top: 4px; }

/* About text side */
.about-text {
    color: var(--text-mid);
    font-size: .93rem;
    line-height: 1.85;
    margin-bottom: 14px;
}

.skills-list { display: flex; flex-direction: column; gap: 14px; margin: 26px 0; }

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: .8rem;
    color: var(--text-mid);
}

.skill-track {
    height: 6px;
    background: rgba(255,255,255,.06);
    border-radius: 100px;
    overflow: hidden;
}
.skill-fill {
    height: 100%;
    background: var(--grad);
    border-radius: 100px;
    width: 0%;
    transition: width 1.6s cubic-bezier(.4,0,.2,1);
}

.tech-stack { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tech-label { font-size: .82rem; color: var(--text-lo); white-space: nowrap; }
.tech-pills { display: flex; gap: 7px; flex-wrap: wrap; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: .78rem;
    color: var(--text-mid);
    transition: var(--t);
    cursor: default;
}
.pill:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0,212,255,.05); }

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
.portfolio {
    background: linear-gradient(180deg, var(--bg-layer) 0%, var(--bg-base) 100%);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 7px 22px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-mid);
    font-size: .85rem;
    font-weight: 500;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--t);
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
}

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

.portfolio-cta {
    text-align: center;
    margin-top: 40px;
}
.portfolio-cta p {
    font-size: .9rem;
    color: var(--text-mid);
    margin-bottom: 18px;
}

.project-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: var(--t);
}
.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.project-card.hidden { display: none; }

.project-img {
    height: 196px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--t);
}
.project-card:hover .project-img { filter: brightness(.75); }

.project-ico { font-size: 2.8rem; color: rgba(255,255,255,.25); transition: var(--t); }

.concept-badge {
    position: absolute;
    top: 12px; left: 12px;
    padding: 3px 12px;
    background: rgba(9,9,30,.85);
    border: 1px solid var(--border);
    color: var(--text-mid);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .3px;
    border-radius: 100px;
    z-index: 2;
}

.real-badge {
    position: absolute;
    top: 12px; left: 12px;
    padding: 3px 12px;
    background: rgba(0,255,136,.12);
    border: 1px solid rgba(0,255,136,.4);
    color: var(--green);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .3px;
    border-radius: 100px;
    z-index: 2;
}

/* ── Leave a Review — compact toggle row ── */
.review-toggle-row { text-align: center; margin-top: 40px; }

/* ── Leave a Review form — collapsed by default, expands on toggle ── */
.review-form-wrap {
    max-width: 620px;
    margin: 0 auto 0;
    background: var(--bg-glass);
    border: 1px solid transparent;
    border-radius: 22px;
    padding: 0 36px;
    text-align: center;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .4s ease, opacity .3s ease, padding .4s ease, margin .4s ease;
}
.review-form-wrap.open {
    max-height: 900px;
    opacity: 1;
    padding: 38px 36px;
    margin: 20px auto 0;
    border-color: var(--border);
}
.review-form-wrap h3 {
    font-family: var(--f-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.review-form-sub {
    color: var(--text-mid);
    font-size: .88rem;
    margin-bottom: 24px;
}
.review-form .field { text-align: left; }
.review-form .submit-btn { align-self: center; margin-top: 6px; }

/* 5-star rating input — pure CSS, radio-driven */
.star-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 6px;
    font-size: 2rem;
    margin-bottom: 22px;
}
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label {
    color: var(--border);
    cursor: pointer;
    transition: color .15s ease;
    line-height: 1;
}
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
    color: var(--gold);
}
.star-input input:focus-visible + label {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
    border-radius: 4px;
}

.project-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: rgba(5,5,16,.55);
    transition: var(--t);
}
.project-card:hover .project-hover { opacity: 1; }

.view-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 22px;
    background: var(--grad);
    color: #fff;
    font-weight: 600;
    font-size: .85rem;
    border-radius: 100px;
    transition: var(--t);
}
.view-link:hover { transform: scale(1.06); box-shadow: 0 0 30px rgba(0,212,255,.4); }

.project-body { padding: 18px 22px 22px; }

.project-chips { display: flex; gap: 7px; margin-bottom: 10px; flex-wrap: wrap; }
.project-chips span {
    padding: 3px 10px;
    background: rgba(0,212,255,.07);
    border: 1px solid rgba(0,212,255,.15);
    color: var(--cyan);
    font-size: .7rem;
    font-weight: 600;
    border-radius: 100px;
}

.project-body h3 { font-family: var(--f-display); font-size: 1rem; font-weight: 700; margin-bottom: 7px; }
.project-body p  { font-size: .84rem; color: var(--text-mid); line-height: 1.65; }

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials { background: var(--bg-base); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
/* Center gracefully when there are exactly 2 testimonials instead of 3 */
.testimonials-grid:has(.testi-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    margin: 0 auto;
}
/* Center gracefully when there is only 1 real approved review so far */
.testimonials-grid:has(.testi-card:only-child) {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
}

/* Shown by default until at least one real review is approved */
.testimonials-empty {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    padding: 44px 30px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 20px;
}
.testimonials-empty i { font-size: 1.8rem; color: var(--cyan); margin-bottom: 14px; display: block; }
.testimonials-empty p { font-size: .95rem; color: var(--text-mid); margin-bottom: 20px; }

.testi-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px 26px;
    position: relative;
    overflow: hidden;
    transition: var(--t);
}
.testi-card:hover { transform: translateY(-6px); border-color: var(--border-glow); }

.featured-testi {
    background: linear-gradient(135deg, rgba(0,212,255,.06), rgba(123,47,255,.06));
    border-color: rgba(0,212,255,.2);
}

.quote-mark {
    position: absolute;
    top: -8px; left: 16px;
    font-size: 7rem;
    font-family: Georgia, serif;
    line-height: 1;
    color: rgba(0,212,255,.06);
    pointer-events: none;
}

.stars { color: var(--gold); font-size: .95rem; letter-spacing: 3px; margin-bottom: 14px; }

.testi-card p {
    font-size: .875rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 22px;
    font-style: italic;
}

.client-row { display: flex; align-items: center; gap: 12px; }

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

.client-row strong { display: block; font-size: .88rem; font-weight: 600; }
.client-row span   { display: block; font-size: .75rem; color: var(--text-lo); margin-top: 2px; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
    background: linear-gradient(180deg, var(--bg-layer) 0%, var(--bg-base) 100%);
}

.budget-note {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
    padding: 28px 30px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 20px;
}
.budget-note i {
    font-size: 1.3rem;
    color: var(--cyan);
    margin-bottom: 12px;
    display: block;
}
.budget-note p {
    font-size: .88rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 20px;
}
.budget-note-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.budget-note-actions .btn-secondary,
.budget-note-actions .whatsapp-btn {
    min-height: 44px;
}

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

.contact-info { display: flex; flex-direction: column; gap: 16px; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: var(--t);
}
.contact-item:hover { border-color: var(--border-glow); background: var(--bg-glass-hov); }

.c-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, rgba(0,212,255,.15), rgba(123,47,255,.15));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--cyan);
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-lo);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}
.contact-item a, .contact-item p { font-size: .9rem; color: var(--text-mid); transition: var(--t); }
.contact-item a:hover { color: var(--cyan); }

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 22px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    border-radius: 100px;
    transition: var(--t);
    box-shadow: 0 0 28px rgba(37,211,102,.25);
}
.whatsapp-btn i { font-size: 1.15rem; }
.whatsapp-btn:hover { transform: translateY(-3px); box-shadow: 0 0 48px rgba(37,211,102,.45); }

/* Social icons */
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }

.s-icon {
    width: 42px; height: 42px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    color: var(--text-mid);
    transition: var(--t);
}
.s-icon:hover {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 18px rgba(0,212,255,.3);
}

/* ✅ Facebook icon gets its own brand hover colour */
.facebook-icon:hover {
    background: #1877f2 !important;
    box-shadow: 0 0 18px rgba(24,119,242,.4) !important;
}

/* Map placeholder */
.map-placeholder {
    height: 140px;
    background: linear-gradient(135deg, rgba(0,212,255,.04), rgba(123,47,255,.04));
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-lo);
}
.map-placeholder i    { font-size: 1.8rem; color: var(--cyan); }
.map-placeholder span { font-size: .82rem; }

/* Visually hidden but screen-reader accessible — used for form <label>s
   that would otherwise duplicate the visible placeholder text */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Contact form */
.contact-form-wrap {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 38px 36px;
    backdrop-filter: blur(12px);
}

.contact-form { display: flex; flex-direction: column; gap: 22px; }

/* ── Package/service selection banner (Milestone 16) ── */
.selection-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    background: rgba(0,212,255,.07);
    border: 1px solid rgba(0,212,255,.25);
    border-radius: 12px;
    font-size: .85rem;
    color: var(--text-hi);
}
.selection-banner i.fa-check-circle { color: var(--cyan); flex-shrink: 0; }
.selection-banner span { flex: 1; }
.selection-banner button {
    background: none; border: none; color: var(--text-lo); cursor: pointer;
    padding: 4px; font-size: .85rem; transition: var(--t);
}
.selection-banner button:hover, .selection-banner button:focus-visible { color: var(--cyan); }

.form-required-note {
    font-size: .78rem;
    color: var(--text-lo);
    margin-bottom: 18px;
    line-height: 1.6;
}

/* ── Stronger success state (Milestone 16) ── */
.form-success-panel {
    text-align: center;
    padding: 20px 10px;
}
.form-success-panel i.fa-circle-check { font-size: 2.4rem; color: var(--green); margin-bottom: 14px; }
.form-success-panel h3 { font-family: var(--f-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.form-success-panel p { font-size: .9rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 24px; }
.form-success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.field { position: relative; }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-hi);
    font-family: var(--f-body);
    font-size: .9rem;
    outline: none;
    resize: none;
    transition: var(--t);
}

/* ── Native <select> dropdown readability (site-wide) ──────────────
   The closed select is styled above (dark, transparent, light text),
   but the native OPEN option popup is rendered by the browser/OS, not
   by our CSS — without an explicit color-scheme it can fall back to a
   light system popup with near-white text, which is unreadable.
   color-scheme tells Chrome/Edge to draw the native popup using dark
   system colours; the explicit option background/color below is a
   fallback for engines that ignore color-scheme on <option>. Applies
   to every <select> on the site (contact form, review form, admin
   lead/project selects) since they all share this base styling. */
select { color-scheme: dark; }
select option {
    background: var(--bg-layer);
    color: var(--text-hi);
}
select option:disabled { color: var(--text-lo); }
select option:checked { background: var(--bg-layer); color: var(--cyan); }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-lo); }

.field-line {
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1.5px;
    background: var(--grad);
    transition: width .4s ease;
}
.field:focus-within .field-line    { width: 100%; }
.field:focus-within input,
.field:focus-within textarea       { border-bottom-color: transparent; }

/* Keyboard focus indicator — outline only shows for keyboard navigation,
   not mouse clicks, so it doesn't clash with the underline animation above */
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
    border-radius: 4px;
}

.submit-btn { align-self: flex-start; border: none; }

.form-msg {
    font-size: .85rem;
    padding: 10px 16px;
    border-radius: 10px;
    display: none;
}
.form-msg.success {
    display: block;
    background: rgba(0,255,136,.08);
    border: 1px solid rgba(0,255,136,.2);
    color: var(--green);
}
.form-msg.error {
    display: block;
    background: rgba(255,80,80,.08);
    border: 1px solid rgba(255,80,80,.2);
    color: #ff8080;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #030309;
    border-top: 1px solid var(--border);
    padding: 64px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

/* ✅ Footer logo with small circular image */
.footer-logo {
    font-family: var(--f-display);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-logo-img {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid rgba(0,212,255,.3);
}

.footer-brand p {
    font-size: .85rem;
    color: var(--text-lo);
    line-height: 1.75;
    margin-bottom: 20px;
}

.footer-col h3 {
    font-family: var(--f-display);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-hi);
    margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a, .footer-col ul li { font-size: .85rem; color: var(--text-lo); transition: var(--t); }
.footer-col ul a:hover { color: var(--cyan); }

.footer-col p {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .85rem;
    color: var(--text-lo);
    margin-bottom: 9px;
}
.footer-col p i { color: var(--cyan); width: 14px; }
.footer-col p a:hover { color: var(--cyan); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom p { font-size: .8rem; color: var(--text-lo); }

.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; align-items: center; font-size: .8rem; color: var(--text-lo); }
.footer-legal a { transition: var(--t); }
.footer-legal a:hover { color: var(--cyan); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#backToTop {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 46px; height: 46px;
    background: var(--grad);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: .9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: var(--t);
    box-shadow: 0 0 20px rgba(0,212,255,.35);
}
#backToTop.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#backToTop:hover   { transform: translateY(-4px); box-shadow: 0 0 38px rgba(0,212,255,.6); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal, .reveal-card { transition: opacity .75s ease, transform .75s ease; }

.sr-ready .reveal,
.sr-ready .reveal-card { opacity: 0; transform: translateY(36px); }

.reveal.visible,
.reveal-card.visible { opacity: 1 !important; transform: translateY(0) !important; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp   { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeRight{ from{opacity:0;transform:translateX(36px)} to{opacity:1;transform:translateX(0)} }

/* ============================================================
   RESPONSIVE — TABLET ≤ 1024 px
   ============================================================ */
@media (max-width: 1024px) {
    .services-grid    { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid   { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid{ grid-template-columns: repeat(2, 1fr); }

    /* reset orphan rule for 2-col layout */
    .services-grid .service-card:last-child:nth-child(3n + 1) { grid-column: auto; }

    .hero          { padding: 110px 40px 70px; gap: 40px; }
    .hero-image    { flex: 0 0 300px; }
    .hero-avatar-wrap{ width: 240px; height: 240px; }
    .glow-ring     { width: 280px; height: 280px; }

    .about-grid    { gap: 52px; }
    .about-frame   { width: 300px; height: 360px; }

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

/* ============================================================
   RESPONSIVE — MOBILE ≤ 768 px
   ============================================================ */
@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .hamburger            { display: flex; }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 22px 60px;
    }
    .hero-content {
        max-width: 100%;
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .hero-description { text-align: center; }
    .hero-buttons     { justify-content: center; }
    .hero-stats       { justify-content: center; }
    .hero-image       { flex: 0 0 auto; max-width: 260px; width: 100%; }
    .hero-avatar-wrap { width: 220px; height: 220px; }
    .float-badge      { display: none; }

    .services-grid     { grid-template-columns: 1fr; }
    .services-grid .service-card:last-child:nth-child(3n + 1) { grid-column: auto; }
    .service-category-header { flex-direction: column; }
    .seo-feature-grid  { gap: 8px; }

    .about-grid        { grid-template-columns: 1fr; gap: 40px; }
    .about-visual      { order: -1; }
    .about-frame       { width: 100%; max-width: 300px; height: 320px; margin: 0 auto; }
    .about-secondary-photo { right: -8px; }
    .about-accent-photo    { left: -8px; }

    .portfolio-grid    { grid-template-columns: 1fr; }
    .testimonials-grid,
    .testimonials-grid:has(.testi-card:nth-child(2):last-child),
    .testimonials-grid:has(.testi-card:only-child) {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .testi-card         { padding: 24px 20px; word-wrap: break-word; overflow-wrap: break-word; }
    .client-row         { flex-wrap: wrap; }
    .quote-mark         { font-size: 5rem; }

    .testimonials-empty { padding: 32px 22px; }

    .review-form-wrap        { padding: 0 20px; max-width: 100%; }
    .review-form-wrap.open   { padding: 30px 20px; }
    .star-input               { font-size: 1.6rem; gap: 4px; }

    .contact-grid      { grid-template-columns: 1fr; gap: 40px; }
    .contact-form-wrap { padding: 28px 20px; }

    /* 16px minimum prevents iOS Safari auto-zooming the page on input focus */
    .field input,
    .field select,
    .field textarea { font-size: 16px; }

    .budget-note       { padding: 22px 20px; margin-bottom: 32px; }

    .footer-grid       { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom     { flex-direction: column; text-align: center; }

    section { padding: 70px 0; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE ≤ 480 px
   ============================================================ */
@media (max-width: 480px) {
    .hero-title    { font-size: 2.1rem; }
    .hero-stats    { gap: 16px; }
    .stat-number   { font-size: 1.4rem; }
    .stat-divider  { height: 30px; }

    .btn-primary,
    .btn-secondary { padding: 12px 22px; font-size: .85rem; }

    /* Full-width, cleanly stacked hero CTAs — clear primary/secondary
       hierarchy without crowding on narrow phones. */
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary { width: 100%; justify-content: center; }
    .hero-view-work-link { display: inline-block; margin-top: 4px; }

    .budget-callout .btn-secondary {
        white-space: normal;
        text-align: left;
        height: auto;
    }

    .budget-note-actions,
    .budget-callout-actions { flex-direction: column; align-items: stretch; }
    .budget-note-actions a,
    .budget-callout-actions a { justify-content: center; }

    .about-ring { display: none; }

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

    .nav-logo-text { display: none; } /* show only image on very small screens */
}
/* ── Base badge container (Desktop pill) ──────────────────── */
.wa-autoreply-badge {
    /* Fixed to the right side of the viewport, below the navbar */
    position: fixed;
    top: 88px;                   /* sits just below the sticky nav */
    right: 20px;
    z-index: 998;                /* below modals, above everything else */

    /* Pill shape */
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 8px;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;

    /* Dark premium glass background */
    background: rgba(5, 5, 16, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(37, 211, 102, 0.35);
    box-shadow:
        0 0 28px rgba(37, 211, 102, 0.15),
        0 4px 24px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(255,255,255,.03);

    /* Smooth transitions */
    transition: all 0.35s cubic-bezier(.4, 0, .2, 1);

    /* Gentle floating animation */
    animation: waBadgeFloat 3.5s ease-in-out infinite;
}

/* Hover — badge glows brighter and lifts */
.wa-autoreply-badge:hover {
    border-color: rgba(37, 211, 102, 0.7);
    background: rgba(5, 5, 16, 0.96);
    box-shadow:
        0 0 45px rgba(37, 211, 102, 0.35),
        0 8px 32px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px) scale(1.02);
    animation-play-state: paused;  /* pause float on hover */
}

@keyframes waBadgeFloat {
    0%, 100% { transform: translateY(0px);  }
    50%       { transform: translateY(-5px); }
}


/* ── Pulsing live-indicator dot ───────────────────────────── */
.wa-badge-dot {
    position: absolute;
    top: 7px;
    right: 9px;
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
    border: 1.5px solid rgba(5,5,16,.8);
    animation: waDotPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes waDotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
    60%       { box-shadow: 0 0 0 7px rgba(37,211,102,0); }
}


/* ── Bot image — circular ─────────────────────────────────── */
.wa-badge-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;         /* perfect circle */
    object-fit: cover;
    object-position: center;
    border: 2px solid rgba(37, 211, 102, 0.5);
    box-shadow: 0 0 14px rgba(37, 211, 102, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.wa-autoreply-badge:hover .wa-badge-img {
    border-color: #25D366;
    box-shadow: 0 0 22px rgba(37, 211, 102, 0.55);
    transform: scale(1.06);
}


/* ── Text block: title + subtitle ────────────────────────── */
.wa-badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.wa-badge-title {
    font-family: 'Syne', sans-serif;
    font-size: .72rem;
    font-weight: 800;
    color: #25D366;
    letter-spacing: .6px;
    white-space: nowrap;
    text-transform: uppercase;
}

.wa-badge-sub {
    font-family: 'Outfit', sans-serif;
    font-size: .6rem;
    font-weight: 500;
    color: rgba(136, 136, 170, 0.75);
    white-space: nowrap;
    letter-spacing: .2px;
}


/* ── WhatsApp icon ────────────────────────────────────────── */
.wa-badge-icon {
    font-size: 1.25rem;
    color: #25D366;
    flex-shrink: 0;
    animation: waIconBounce 2.5s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.wa-autoreply-badge:hover .wa-badge-icon {
    animation-play-state: paused;
    transform: scale(1.2) rotate(-5deg);
}

@keyframes waIconBounce {
    0%, 100% { transform: scale(1);    }
    50%       { transform: scale(1.18); }
}


/* ════════════════════════════════════════════════════════════
   MOBILE — Converts to a circular FAB in the bottom-right
   corner so it never crowds the hero text or nav on phones.
════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    .wa-autoreply-badge {
        /* Lift off the right rail, switch to bottom FAB position */
        top: auto;
        right: 18px;
        bottom: 92px;           /* above the back-to-top button  */

        /* Collapse pill into a circle */
        padding: 10px;
        border-radius: 50%;     /* full circle */
        gap: 0;

        /* Stronger glow on mobile so it stands out */
        box-shadow:
            0 0 32px rgba(37,211,102,.28),
            0 4px 24px rgba(0,0,0,.55);

        animation: waBadgeFloat 3.5s ease-in-out infinite;

        /* Hidden until the visitor scrolls past the hero — on tall hero
           content this fixed FAB can otherwise sit on top of the hero's
           own CTA buttons on first paint. Mirrors #backToTop's pattern. */
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease, transform 0.35s ease;
    }
    .wa-autoreply-badge.wa-shown {
        opacity: 1;
        pointer-events: all;
    }

    .wa-autoreply-badge:hover,
    .wa-autoreply-badge:active {
        transform: scale(1.1);
        box-shadow: 0 0 46px rgba(37,211,102,.45), 0 4px 28px rgba(0,0,0,.55);
        animation-play-state: paused;
    }

    /* Hide the text content — FAB only shows the image */
    .wa-badge-text,
    .wa-badge-icon {
        display: none;
    }

    /* Larger tap target image on mobile */
    .wa-badge-img {
        width: 44px;
        height: 44px;
    }

    /* Reposition the live dot on the circular FAB */
    .wa-badge-dot {
        top: 5px;
        right: 5px;
        width: 10px;
        height: 10px;
        border-width: 2px;
    }

    /* ── Tooltip label appears to the LEFT of the FAB on tap ─── */
    .wa-autoreply-badge::after {
        content: 'Try AI Auto-Reply!!';
        position: absolute;
        right: 66px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(5, 5, 16, .96);
        border: 1px solid rgba(37,211,102,.35);
        color: #25D366;
        font-family: 'Outfit', sans-serif;
        font-size: .7rem;
        font-weight: 700;
        letter-spacing: .4px;
        text-transform: uppercase;
        padding: 5px 12px;
        border-radius: 20px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        box-shadow: 0 0 14px rgba(37,211,102,.2);
        transition: opacity .25s ease;
    }

    /* Show tooltip on hover / tap */
    .wa-autoreply-badge:hover::after,
    .wa-autoreply-badge:active::after {
        opacity: 1;
    }
}


/* ============================================================
   MOBILE STICKY CONTACT BAR
   Mobile-only (hidden ≥768px). Three actions max: Call, WhatsApp
   (normal business number — never the AI WhatsApp assistant), and
   Get Quote (scrolls/links to the homepage enquiry form). Sits
   below the mobile-menu overlay (z-index 1050) so an open menu
   always visually covers it rather than the two competing for
   attention.
   ============================================================ */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    background: rgba(9,9,30,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
}
.sticky-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 48px;
    border-radius: 12px;
    color: var(--text-mid);
    font-size: .68rem;
    font-weight: 600;
    transition: var(--t);
}
.sticky-bar-item i { font-size: 1.05rem; }
.sticky-bar-item:active,
.sticky-bar-item:focus-visible { background: var(--bg-glass); }
.sticky-bar-item:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.sticky-bar-cta { background: var(--grad); color: #fff; }
.sticky-bar-cta:active, .sticky-bar-cta:focus-visible { background: var(--grad); }

@media (max-width: 768px) {
    .mobile-sticky-bar { display: flex; }
    /* Room at the bottom of every page so content/footer never
       hides behind the fixed bar. */
    body { padding-bottom: 74px; }
    /* Lift the back-to-top button and AI WhatsApp FAB clear of the bar. */
    #backToTop { bottom: 90px; }
    .wa-autoreply-badge { bottom: 154px; }

    /* Chatbase widget (embed.min.js, index.html) positions itself via
       inline styles it sets directly — confirmed by inspecting the live
       rendered DOM (#chatbase-bubble-button / #chatbase-message-bubbles),
       not guessed. Its native mobile position (bottom:16px, left:1rem)
       sits on top of our fixed .mobile-sticky-bar and covers the Call
       button. Left offset is already fine (1rem, within 12-16px); only
       the vertical position needs lifting clear of the bar. !important
       is required to win over Chatbase's own inline (non-!important)
       styles. The chat window itself is already full-screen/responsive
       on mobile natively, so it isn't touched here — only the closed
       launcher button and its message-preview bubble. Desktop has no
       sticky bar, so desktop positioning is intentionally left alone. */
    #chatbase-bubble-button {
        bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    }
    #chatbase-message-bubbles {
        bottom: calc(157px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* ── Extra-small phones (≤ 380px) ────────────────────────── */
@media (max-width: 380px) {

    .mobile-sticky-bar { padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); }
    .sticky-bar-item { font-size: .62rem; min-height: 44px; }
    .sticky-bar-item i { font-size: .95rem; }

    .wa-autoreply-badge {
        right: 14px;
        bottom: 148px;
    }

    .wa-badge-img {
        width: 40px;
        height: 40px;
    }

    .testi-card       { padding: 20px 16px; }
    .testi-card p     { font-size: .82rem; }
    .quote-mark       { font-size: 4rem; }
    .client-avatar    { width: 36px; height: 36px; font-size: .7rem; }

    .review-form-wrap.open { padding: 24px 14px; }
    .star-input             { font-size: 1.4rem; gap: 3px; }

    .testimonials-empty { padding: 26px 16px; }
    .testimonials-empty p { font-size: .88rem; }

    }

/* ============================================================
   CLIENT LOGIN NAV BUTTON
   ============================================================ */
.client-login-btn {
    padding: 9px 22px;
    background: transparent;
    color: var(--cyan);
    font-family: var(--f-body);
    font-weight: 600;
    font-size: .875rem;
    border-radius: 100px;
    border: 1.5px solid rgba(0, 212, 255, 0.4);
    cursor: pointer;
    transition: var(--t);
    white-space: nowrap;
    letter-spacing: .2px;
}
.client-login-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--cyan);
    box-shadow: 0 0 22px rgba(0, 212, 255, 0.28);
    transform: translateY(-2px);
}

/* ============================================================
   CLIENT LOGIN MODAL
   ============================================================ */
.login-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 8, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-modal-overlay.active {
    display: flex;
}

.login-modal-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: rgba(10, 10, 28, 0.92);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 24px;
    padding: 40px 32px 36px;
    box-shadow:
        0 0 0 1px rgba(123, 47, 255, 0.1),
        0 24px 64px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(0, 212, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: loginModalIn .3s cubic-bezier(.4,0,.2,1) both;
}

@keyframes loginModalIn {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close button */
.login-modal-close {
    position: absolute;
    top: 16px; right: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-mid);
    width: 34px; height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--t);
}
.login-modal-close:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.4);
    color: var(--cyan);
    transform: rotate(90deg);
}

/* Header */
.login-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    text-align: center;
}
.login-modal-logo {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 212, 255, 0.35);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.22);
}
.login-modal-title {
    font-family: var(--f-display);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-hi);
    margin: 0;
}
.login-modal-sub {
    font-size: .82rem;
    color: var(--text-mid);
    margin: 0;
}

/* Body — vertical stack */
.login-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Social auth buttons */
.login-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 13px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-hi);
    font-family: var(--f-body);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--t);
}
.login-social-btn i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.login-social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.login-google i  { color: #4285F4; }
.login-google:hover  { border-color: rgba(66,133,244,.4); box-shadow: 0 4px 20px rgba(66,133,244,.12); }

.login-apple i   { color: #e8e8f0; }
.login-apple:hover   { border-color: rgba(232,232,240,.3); box-shadow: 0 4px 20px rgba(232,232,240,.07); }

.login-facebook i { color: #1877F2; }
.login-facebook:hover { border-color: rgba(24,119,242,.4); box-shadow: 0 4px 20px rgba(24,119,242,.12); }

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0;
}
.login-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}
.login-divider-text {
    font-size: .78rem;
    color: var(--text-mid);
    letter-spacing: .5px;
}

/* Email / phone input */
.login-input {
    width: 100%;
    padding: 13px 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-hi);
    font-family: var(--f-body);
    font-size: .9rem;
    outline: none;
    transition: var(--t);
}
.login-input::placeholder { color: var(--text-mid); }
.login-input:focus {
    border-color: rgba(0, 212, 255, 0.45);
    background: rgba(0, 212, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Continue CTA */
.login-continue-btn {
    width: 100%;
    padding: 13px 20px;
    background: var(--grad);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-family: var(--f-body);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--t);
    letter-spacing: .3px;
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.28);
}
.login-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.45);
}

/* ── Mobile: bottom sheet on small screens ──────────────── */
@media (max-width: 768px) {
    .login-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .login-modal-box {
        border-radius: 24px 24px 0 0;
        max-width: 100%;
        width: 100%;
        padding: 32px 20px 40px;
        animation: loginModalInMobile .32s cubic-bezier(.4,0,.2,1) both;
    }
    @keyframes loginModalInMobile {
        from { opacity: 0; transform: translateY(100%); }
        to   { opacity: 1; transform: translateY(0); }
    }
}

/* ── Keep nav clean on very small screens ───────────────── */
@media (max-width: 400px) {
    .client-login-btn {
        padding: 8px 14px;
        font-size: .78rem;
    }
}