/* ============================================
   PRIMELINK SOLUTIONS - Company Website
   Light theme | Teal + Amber | Animated
   ============================================ */

@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    --paper: #F7FBFA;
    --white: #FFFFFF;
    --mist: #E4F3F0;
    --mist-2: #EEF8F6;
    --ink: #0B2B30;
    --text: #3C575C;
    --muted: #5B7277;

    --teal: #0E9F8E;
    --teal-deep: #0A7266;
    --teal-soft: rgba(14, 159, 142, .12);
    --amber: #FFB238;
    --amber-soft: #FFF1D6;

    --line: rgba(11, 43, 48, .10);
    --line-strong: rgba(14, 159, 142, .35);
    --shadow-sm: 0 2px 10px rgba(11, 43, 48, .06);
    --shadow-md: 0 14px 40px rgba(11, 43, 48, .10);
    --shadow-teal: 0 18px 44px rgba(14, 159, 142, .25);

    --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;

    --ease: cubic-bezier(.2, .8, .2, 1);
    --nav-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

html { overflow-x: hidden; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection { background: var(--teal); color: #fff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 4px; }

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

/* ============================================
   BACKGROUND LAYERS
   ============================================ */
#link-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
}

.blob {
    position: fixed;
    z-index: -4;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    opacity: .55;
}
.blob-a {
    width: 46vw; height: 46vw;
    top: -12vw; right: -10vw;
    background: radial-gradient(circle, rgba(14,159,142,.45), rgba(14,159,142,0) 70%);
    animation: drift-a 22s ease-in-out infinite alternate;
}
.blob-b {
    width: 40vw; height: 40vw;
    bottom: -14vw; left: -12vw;
    background: radial-gradient(circle, rgba(255,178,56,.42), rgba(255,178,56,0) 70%);
    animation: drift-b 26s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(-8vw, 10vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(10vw, -12vh) scale(1.1); } }

.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 4px;
    width: 100%;
    z-index: 1100;
    background: linear-gradient(90deg, var(--amber), var(--teal));
    transform-origin: left;
    transform: scaleX(0);
}

/* ============================================
   BUTTONS & SMALL UI
   ============================================ */
.button-primary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border: none;
    border-radius: 999px;
    background: var(--teal-deep);
    color: #fff;
    font: 700 15px/1 var(--font-body);
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(10, 114, 102, .30);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.button-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 60%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-20deg);
}
.button-primary:hover {
    transform: translateY(-3px);
    background: var(--teal);
    box-shadow: 0 16px 34px rgba(14, 159, 142, .38);
}
.button-primary:hover::after { animation: shine .8s ease; }
@keyframes shine { to { left: 130%; } }

.button-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    border: 2px solid var(--line-strong);
    color: var(--ink);
    font: 700 15px/1 var(--font-body);
    background: rgba(255,255,255,.6);
    transition: all .3s var(--ease);
}
.button-ghost i { transition: transform .3s var(--ease); }
.button-ghost:hover { border-color: var(--teal); background: #fff; transform: translateY(-3px); }
.button-ghost:hover i { transform: translateY(4px); }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    width: max-content;
    max-width: 100%;
}
.pulse-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--teal);
    position: relative;
}
.pulse-dot::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    background: var(--teal);
    animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(3); opacity: 0; } }

/* ============================================
   SCROLL REVEAL (uses `translate` so it never fights tilt `transform`)
   ============================================ */
.js [data-reveal] {
    opacity: 0;
    translate: 0 36px;
    transition: opacity .8s var(--ease) var(--d, 0s), translate .8s var(--ease) var(--d, 0s), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, background .35s, color .4s;
}
.js [data-reveal].in { opacity: 1; translate: 0 0; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 40px;
    background: rgba(247, 251, 250, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .3s, box-shadow .3s, border-color .3s, height .3s;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, .9);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 30px rgba(11, 43, 48, .07);
    height: 66px;
}

.navbar-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.navbar-logo { display: inline-flex; align-items: center; gap: 12px; }
.navbar-logo img { transition: transform .6s var(--ease); }
.navbar-logo:hover img { transform: rotate(-20deg) scale(1.08); }

.wordmark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -0.03em;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.wordmark small {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--teal-deep);
    margin-top: 4px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.8);
    border: 1px solid var(--line);
}
.navbar-links a {
    position: relative;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    transition: color .3s, background .3s;
}
.navbar-links a:hover { color: var(--ink); background: var(--mist-2); }
.navbar-links a.active { color: #fff; background: var(--teal-deep); }

.nav-cta { padding: 12px 24px; font-size: 14px; }

.hamburger {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    position: relative;
}
.hamburger span {
    position: absolute;
    left: 12px; right: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease);
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0; width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(11,43,48,.10);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.mobile-menu.active { visibility: visible; opacity: 1; transform: none; }
.mobile-menu a {
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--ink);
    transition: background .2s, padding-left .3s var(--ease);
}
.mobile-menu a:hover { background: var(--mist-2); padding-left: 24px; }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 20px) 0 70px;
}

.hero-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
}

.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

.hero-title {
    font-size: clamp(2.4rem, 4.3vw, 3.9rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.04;
}
.hero-title .line { display: block; }
.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.6em) rotate(3deg);
    animation: word-in .9s var(--ease) both;
    animation-delay: calc(var(--i) * 70ms + 150ms);
}
@keyframes word-in { to { opacity: 1; transform: none; } }

.hero-anim {
    opacity: 0;
    animation: fade-up .9s var(--ease) both;
    animation-delay: calc(var(--i) * 70ms + 200ms);
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

.hero-rotator {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.rotator {
    display: inline-grid;
    padding: 2px 16px 4px;
    background: var(--amber);
    color: var(--ink);
    border-radius: 12px;
    overflow: hidden;
    transform: rotate(-1.5deg);
}
.rot-item {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.rot-item.active { opacity: 1; transform: none; }
.rot-item.leaving { opacity: 0; transform: translateY(-100%); }

.hero-description { max-width: 540px; font-size: 1.08rem; color: var(--text); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-actions .button-primary { animation: cta-glow 2.8s ease-in-out infinite; }
@keyframes cta-glow {
    0%, 100% { box-shadow: 0 10px 26px rgba(10,114,102,.30), 0 0 0 0 rgba(14,159,142,.35); }
    50%      { box-shadow: 0 10px 26px rgba(10,114,102,.30), 0 0 0 14px rgba(14,159,142,0); }
}

/* ---- Hero visual ---- */
.hero-visual { display: flex; justify-content: center; }

.orbit-stage {
    --stage: clamp(300px, 39vw, 540px);
    position: relative;
    width: var(--stage);
    height: var(--stage);
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(14, 159, 142, .35);
    top: 50%; left: 50%;
    translate: -50% -50%;
}
.ring-1 { width: 62%; height: 62%; animation: ring-pulse 5s ease-in-out infinite; }
.ring-2 { width: 88%; height: 88%; border-color: rgba(255,178,56,.55); animation: ring-pulse 5s ease-in-out infinite 1.2s; }
.ring-3 { width: 112%; height: 112%; border: 1px solid rgba(14,159,142,.14); }
@keyframes ring-pulse { 50% { scale: 1.03; opacity: .6; } }

.core {
    position: absolute;
    top: 50%; left: 50%;
    width: 24%; aspect-ratio: 1;
    translate: -50% -50%;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-teal), inset 0 0 0 1px var(--line);
    z-index: 3;
    animation: core-bob 5s ease-in-out infinite;
}
.core img { width: 62%; height: auto; animation: core-spin 14s linear infinite; }
.core-halo {
    position: absolute; inset: -18%;
    border-radius: 50%;
    border: 2px solid rgba(14,159,142,.4);
    animation: halo 3s ease-out infinite;
}
@keyframes halo { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
@keyframes core-bob { 50% { translate: -50% -54%; } }
@keyframes core-spin { 0%, 70% { transform: rotate(0); } 100% { transform: rotate(360deg); } }

.orbit {
    position: absolute;
    top: 50%; left: 50%;
    translate: -50% -50%;
    border-radius: 50%;
    z-index: 2;
}
.orbit-1 { width: 62%; height: 62%; --R: calc(var(--stage) * .31); animation: spin 36s linear infinite; }
.orbit-2 { width: 88%; height: 88%; --R: calc(var(--stage) * .44); animation: spin 52s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }

.sat {
    position: absolute;
    top: 50%; left: 50%;
    width: 58px; height: 58px;
    margin: -29px 0 0 -29px;
    border-radius: 18px;
    background: #fff;
    display: grid;
    place-items: center;
    color: var(--teal-deep);
    font-size: 22px;
    box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line);
    transform: rotate(var(--a)) translateY(calc(var(--R) * -1)) rotate(calc(var(--a) * -1));
}
.sat.amber { color: #B26A00; background: var(--amber-soft); }
.orbit-1 .sat i { animation: spin-rev 36s linear infinite; }
.orbit-2 .sat i { animation: spin 52s linear infinite; }

.float-card {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.95);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    animation: bob 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 17px; line-height: 1.1; }
.float-card span { font-size: 12px; color: var(--muted); font-weight: 600; }

.fc-clients { top: 6%; left: -4%; animation-delay: 0s; }
.fc-deploy  { bottom: 12%; left: -8%; animation-delay: 1.5s; }
.fc-deploy i { color: var(--teal); font-size: 24px; }
.fc-chart   { top: 44%; right: -6%; flex-direction: column; align-items: flex-start; gap: 8px; animation-delay: 3s; }

.fc-avatars { display: flex; }
.fc-avatars b {
    width: 30px; height: 30px;
    margin-left: -8px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 800; color: #fff;
    border: 2px solid #fff;
    background: var(--teal);
}
.fc-avatars b:first-child { margin-left: 0; }
.fc-avatars b:nth-child(2) { background: var(--amber); color: var(--ink); }
.fc-avatars b:nth-child(3) { background: var(--teal-deep); }
.fc-avatars b:nth-child(4) { background: var(--ink); }

.bars { display: flex; align-items: flex-end; gap: 5px; height: 44px; }
.bars i {
    width: 10px; border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, var(--teal), var(--teal-deep));
    transform-origin: bottom;
    animation: bar-grow 2.6s ease-in-out infinite;
}
.bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.bars i:nth-child(2) { height: 65%; animation-delay: .15s; }
.bars i:nth-child(3) { height: 50%; animation-delay: .3s; }
.bars i:nth-child(4) { height: 85%; animation-delay: .45s; }
.bars i:nth-child(5) { height: 70%; animation-delay: .6s; }
.bars i:nth-child(6) { height: 100%; animation-delay: .75s; background: linear-gradient(180deg, var(--amber), #F59E0B); }
@keyframes bar-grow { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }

@keyframes bob { 50% { transform: translateY(-14px); } }

.scroll-hint {
    position: absolute;
    bottom: 22px; left: 50%;
    translate: -50% 0;
    width: 26px; height: 42px;
    border: 2px solid var(--line-strong);
    border-radius: 14px;
}
.scroll-hint span {
    position: absolute;
    top: 8px; left: 50%;
    width: 4px; height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--teal);
    animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* ============================================
   TRUST MARQUEE
   ============================================ */
.trust {
    padding: 34px 0;
    background: rgba(255,255,255,.75);
    border-block: 1px solid var(--line);
    text-align: center;
}
.trust-label {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
}

/* Generic marquee */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee var(--dur, 40s) linear infinite;
}
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 14px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), background .3s, color .3s;
}
.chip i { color: var(--teal); transition: color .3s; }
.chip:hover { transform: translateY(-4px); background: var(--teal-deep); color: #fff; }
.chip:hover i { color: var(--amber); }

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end;
    gap: 24px 60px;
    margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 800; }
.section-head p { font-size: 1.05rem; color: var(--muted); max-width: 460px; }

/* ============================================
   SERVICES
   ============================================ */
.services { padding: 110px 0 90px; }

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

/* ---- Payment gateway featured banner ---- */
.pg-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding: 46px 50px;
    border-radius: 30px;
    background: linear-gradient(120deg, var(--teal-deep) 0%, var(--teal) 65%, #0C8677 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--shadow-teal);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.pg-banner::before {
    content: '';
    position: absolute;
    inset: 0; z-index: -1;
    background:
        radial-gradient(420px circle at 88% 18%, rgba(255,178,56,.35), transparent 60%),
        radial-gradient(360px circle at 6% 92%, rgba(255,255,255,.14), transparent 60%);
}
.pg-banner:hover { box-shadow: 0 26px 60px rgba(10,114,102,.42); transform: translateY(-4px); }

.pg-flag {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: var(--amber);
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .02em;
}
.pg-banner-left h3 {
    color: #fff;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    margin-bottom: 14px;
}
.pg-banner-left p {
    color: rgba(255,255,255,.88);
    max-width: 480px;
    font-size: 1rem;
    margin-bottom: 22px;
}
.pg-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #fff;
    padding-bottom: 3px;
    border-bottom: 2px solid rgba(255,255,255,.55);
    transition: gap .3s var(--ease), border-color .3s;
}
.pg-banner:hover .pg-cta { gap: 16px; border-color: var(--amber); }

.pg-banner-right { position: relative; display: flex; justify-content: center; align-items: center; min-height: 220px; }

.pg-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 300px;
    padding: 22px 24px;
    border-radius: 20px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 24px 50px rgba(0,0,0,.28);
    animation: bob 5.5s ease-in-out infinite;
}
.pg-card-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.pg-card-row span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.pg-card-row strong { font-family: var(--font-display); font-size: 1.4rem; }
.pg-dots { display: flex; gap: 6px; margin-bottom: 16px; }
.pg-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--mist); }
.pg-dots i:nth-child(1) { background: var(--teal); animation: dot-pulse 1.6s ease-in-out infinite; }
.pg-logos { display: flex; gap: 10px; margin-bottom: 16px; }
.pg-logos img { width: 30px; height: 30px; border-radius: 8px; }
.pg-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--teal-deep);
}
.pg-status i { color: var(--teal); }

.pg-orbit-icon {
    position: absolute;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: 18px;
    backdrop-filter: blur(4px);
    animation: bob 4.5s ease-in-out infinite;
}
.pio-1 { top: 4%; left: 4%; animation-delay: .3s; }
.pio-2 { bottom: 10%; right: 6%; animation-delay: 1.2s; }
.pio-3 { top: 40%; right: -2%; animation-delay: 2.1s; }

.tilt {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    will-change: transform;
}

.service-card {
    position: relative;
    overflow: hidden;
    padding: 34px 26px 30px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    isolation: isolate;
    transition: color .4s, box-shadow .35s var(--ease);
}
.service-card::before {
    content: '';
    position: absolute; inset: 0;
    z-index: -1;
    background: linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%);
    transform: translateY(101%);
    transition: transform .55s var(--ease);
}
.service-card::after {
    content: '';
    position: absolute; inset: 0;
    z-index: -1;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.22), transparent 60%);
    opacity: 0;
    transition: opacity .3s;
}
.service-card:hover { box-shadow: var(--shadow-teal); }
.service-card:hover::before { transform: translateY(0); }
.service-card:hover::after { opacity: 1; }
.service-card:hover h3 { color: #fff; }
.service-card:hover p { color: rgba(255,255,255,.88); }

.service-icon {
    width: 64px; height: 64px;
    display: grid; place-items: center;
    margin-bottom: 26px;
    border-radius: 20px;
    background: var(--mist);
    color: var(--teal-deep);
    font-size: 26px;
    transition: transform .5s var(--ease), background .4s, color .4s;
}
.service-card:hover .service-icon {
    background: var(--amber);
    color: var(--ink);
    transform: rotate(-10deg) scale(1.1);
}
.service-card h3 { font-size: 1.22rem; margin-bottom: 12px; transition: color .4s; }
.service-card p { font-size: .95rem; transition: color .4s; }

/* ============================================
   TECHNOLOGIES
   ============================================ */
.skills {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(228,243,240,0) 0%, var(--mist) 22%, var(--mist) 78%, rgba(228,243,240,0) 100%);
    overflow: hidden;
}
.skills-marquees { display: flex; flex-direction: column; gap: 22px; }

.tech {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-right: 18px;
    padding: 12px 24px 12px 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.tech i { font-size: 34px; }
.tech img { width: 34px; height: 34px; object-fit: contain; }
.tech span { font-weight: 700; color: var(--ink); white-space: nowrap; }
.tech:hover { transform: translateY(-6px) scale(1.06); border-color: var(--line-strong); box-shadow: var(--shadow-teal); }
.icon-ink { color: var(--ink) !important; }

/* ============================================
   SECURITY
   ============================================ */
.security { padding: 110px 0; position: relative; }

.security-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 70px;
}

.shield-stage {
    position: relative;
    aspect-ratio: 1;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    place-items: center;
}
.ripple {
    position: absolute;
    width: 46%; aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid var(--teal);
    opacity: 0;
    animation: ripple 4.5s ease-out infinite;
}
.ripple.r2 { animation-delay: 1.5s; }
.ripple.r3 { animation-delay: 3s; }
@keyframes ripple { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.1); opacity: 0; } }

.shield {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 24px 30px rgba(10,114,102,.35));
    animation: shield-bob 5s ease-in-out infinite;
}
@keyframes shield-bob { 50% { transform: translateY(-12px); } }
.shield i {
    position: absolute;
    font-size: 40px;
    color: #fff;
    top: 46px;
    animation: lock-click 3.6s ease-in-out infinite;
}
@keyframes lock-click { 0%, 55%, 100% { transform: translateY(0); } 62% { transform: translateY(5px) scale(.94); } 72% { transform: translateY(0) scale(1.06); } }

.orb {
    position: absolute;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 6px rgba(255,178,56,.22);
    animation: bob 5s ease-in-out infinite;
}
.orb.o1 { top: 14%; left: 16%; }
.orb.o2 { bottom: 16%; right: 12%; background: var(--teal); box-shadow: 0 0 0 6px rgba(14,159,142,.2); animation-delay: 1s; }
.orb.o3 { top: 26%; right: 6%; width: 10px; height: 10px; animation-delay: 2s; }

.security-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 800; }
.security-copy > p { margin-top: 16px; font-size: 1.05rem; color: var(--muted); max-width: 520px; }

.feature-list { margin-top: 34px; display: grid; gap: 14px; }
.feature-list li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 20px 22px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.feature-list li:hover { transform: translateX(8px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.fi {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: var(--mist);
    color: var(--teal-deep);
    font-size: 19px;
    transition: transform .4s var(--ease), background .3s;
}
.feature-list li:hover .fi { transform: rotate(-12deg) scale(1.1); background: var(--amber); color: var(--ink); }
.feature-list h3 { font-size: 1.08rem; margin-bottom: 4px; }
.feature-list p { font-size: .93rem; color: var(--muted); }

/* ============================================
   PROJECTS
   ============================================ */
.projects { padding: 100px 0; }

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

.project-card {
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.project-card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.project-art { height: 230px; overflow: hidden; }
.art-mint  { background: linear-gradient(135deg, #DDF2EE, #F1FAF8); }
.art-amber { background: linear-gradient(135deg, #FFEFD0, #FFF9EC); }
.project-art svg { width: 100%; height: 100%; display: block; transition: transform .7s var(--ease); }
.project-card:hover .project-art svg { transform: scale(1.06); }

.project-body { padding: 24px 26px 30px; }
.tag {
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: var(--mist);
    color: var(--teal-deep);
    font-size: 12.5px;
    font-weight: 800;
}
.project-body h3 { font-size: 1.32rem; margin-bottom: 10px; }
.project-body p { font-size: .95rem; color: var(--muted); }

/* SVG animations inside project art */
.project-art svg * { transform-box: fill-box; }
.phone { animation: phone-float 6s ease-in-out infinite; }
@keyframes phone-float { 50% { transform: translateY(-8px); } }
.pcard { transform-origin: center; animation: pop 4s ease-in-out infinite; }
.pcard.c2 { animation-delay: .25s; } .pcard.c3 { animation-delay: .5s; } .pcard.c4 { animation-delay: .75s; }
@keyframes pop { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.07); } }
.badge-pop { animation: bob 4.5s ease-in-out infinite; }
.coin { animation: bob 3.8s ease-in-out infinite; }

.progress { transform-origin: left; animation: fill-x 5s ease-in-out infinite; }
.bar { transform-origin: left; }
.bar.b1 { animation: fill-x 4s ease-in-out infinite; }
.bar.b2 { animation: fill-x 4s ease-in-out infinite .4s; }
.bar.b3 { animation: fill-x 4s ease-in-out infinite .8s; }
@keyframes fill-x { 0% { transform: scaleX(.05); } 60%, 100% { transform: scaleX(var(--to, .8)); } }
.bar.b1 { --to: .85; } .bar.b2 { --to: .6; } .bar.b3 { --to: .95; }
.progress { --to: .55; }
.play { transform-origin: center; animation: pop 2.4s ease-in-out infinite; }
.cert { animation: bob 5s ease-in-out infinite; }

.line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.area { opacity: 0; }
.dot  { opacity: 0; }
.project-card.in .line { animation: draw 2.6s var(--ease) .3s forwards, redraw 9s linear 4s infinite; }
.project-card.in .area { animation: fade-in .8s ease 1.6s forwards; }
.project-card.in .dot  { animation: fade-in .4s ease 2.6s forwards, dot-pulse 2s ease-in-out 3s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes redraw { 0%, 92% { stroke-dashoffset: 0; } 96% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes dot-pulse { 50% { transform: scale(1.35); } }

/* ============================================
   PROCESS
   ============================================ */
.process { padding: 100px 0; background: linear-gradient(180deg, rgba(228,243,240,0), var(--mist-2) 30%, var(--mist-2) 80%, rgba(228,243,240,0)); }

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.steps-line {
    position: absolute;
    top: 27px;
    left: 10%; right: 10%;
    height: 4px;
    border-radius: 2px;
    background: rgba(14,159,142,.18);
}
.steps-line span {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--teal), var(--amber));
    transform-origin: left;
    transform: scaleX(var(--p, 0));
}

.step { position: relative; text-align: center; padding: 0 6px; }
.step-dot {
    position: relative;
    z-index: 1;
    width: 58px; height: 58px;
    margin: 0 auto 20px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--line-strong);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 21px;
    color: var(--teal-deep);
    transition: all .5s var(--ease);
}
.step.lit .step-dot {
    background: var(--teal-deep);
    border-color: var(--teal-deep);
    color: #fff;
    transform: scale(1.12);
    box-shadow: 0 0 0 8px rgba(14,159,142,.16);
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: .92rem; color: var(--muted); }

/* ============================================
   CLIENTS / ABOUT
   ============================================ */
.about-stats { padding: 100px 0; }

.clients-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 60px;
    padding: 56px 60px;
    margin-bottom: 30px;
    border-radius: 36px;
    background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal) 100%);
    color: rgba(255,255,255,.9);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-teal);
}
.clients-hero::before, .clients-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.16);
    animation: ring-pulse 6s ease-in-out infinite;
}
.clients-hero::before { width: 420px; height: 420px; top: -180px; right: -90px; }
.clients-hero::after  { width: 260px; height: 260px; bottom: -120px; left: 34%; animation-delay: 2s; border-color: rgba(255,178,56,.4); }

.big-count {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(5rem, 13vw, 10rem);
    line-height: .9;
    letter-spacing: -0.05em;
    color: #fff;
}
.big-count::after {
    content: '';
    display: block;
    height: 10px;
    margin-top: 14px;
    border-radius: 5px;
    background: var(--amber);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.2s var(--ease) .4s;
}
.clients-hero.in .big-count::after { transform: scaleX(1); }

.clients-copy { position: relative; z-index: 1; }
.clients-copy h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; }
.clients-copy p { margin-top: 16px; font-size: 1.05rem; max-width: 560px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 80px;
}
.stat-card {
    text-align: center;
    padding: 30px 16px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.stat-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-teal); }
.stat-number {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.7rem;
    line-height: 1;
    color: var(--teal-deep);
    margin-bottom: 8px;
}
.stat-label { font-size: .92rem; font-weight: 600; color: var(--muted); }

.solutions-title { text-align: center; font-size: 1.8rem; font-weight: 800; margin-bottom: 30px; }

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 14px;
}
.solution-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 700;
    color: var(--ink);
}
.solution-item i {
    width: 42px; height: 42px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--mist);
    color: var(--teal-deep);
    font-size: 17px;
    transition: transform .4s var(--ease), background .3s, color .3s;
}
.solution-item:hover { transform: translateX(8px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.solution-item:hover i { background: var(--amber); color: var(--ink); transform: rotate(-12deg) scale(1.1); }

/* ============================================
   CONTACT
   ============================================ */
.contact { padding: 100px 0; }

.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 40px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 34px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-size: 13.5px; font-weight: 700; color: var(--ink); }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font: 500 15px/1.4 var(--font-body);
    outline: none;
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--teal);
    background: #fff;
    box-shadow: 0 0 0 5px rgba(14,159,142,.14);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .button-primary { align-self: flex-start; padding: 16px 40px; }

.contact-info { display: grid; gap: 16px; }
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.contact-info-item:hover { transform: translateX(8px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.contact-info-icon {
    width: 50px; height: 50px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--mist);
    color: var(--teal-deep);
    font-size: 19px;
    transition: transform .4s var(--ease), background .3s;
}
.contact-info-item:hover .contact-info-icon { background: var(--amber); color: var(--ink); transform: rotate(-10deg) scale(1.1); }
.contact-info-text h4 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-info-text p, .contact-info-text a { font-size: .95rem; color: var(--muted); }
.contact-info-text a { color: var(--teal-deep); font-weight: 700; }
.contact-info-text a:hover { text-decoration: underline; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--mist);
    border-top: 1px solid var(--line);
    padding: 56px 24px 26px;
}
.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 300px; }
.footer-column h3 { font-size: 1rem; margin-bottom: 14px; }
.footer-column a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: .95rem;
    font-weight: 600;
    color: var(--text);
    transition: color .25s, transform .25s var(--ease);
}
.footer-column a i { color: var(--teal); width: 18px; text-align: center; }
.footer-column a:hover { color: var(--teal-deep); transform: translateX(6px); }

.footer-copyright {
    max-width: 1152px;
    margin: 40px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: .9rem;
    color: var(--muted);
}
.footer-copyright a { color: var(--teal-deep); font-weight: 800; }

.to-top {
    position: fixed;
    right: 24px; bottom: 24px;
    width: 50px; height: 50px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--teal-deep);
    color: #fff;
    box-shadow: 0 12px 28px rgba(10,114,102,.4);
    opacity: 0;
    transform: translateY(20px) scale(.8);
    pointer-events: none;
    transition: opacity .3s, transform .4s var(--ease), background .3s;
    z-index: 900;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--teal); transform: translateY(-4px); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .navbar { padding: 0 24px; }
    .navbar-links a { padding: 9px 12px; font-size: 13.5px; }
    .services-grid, .services-grid-5 { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .security-grid { gap: 40px; }
    .pg-banner { grid-template-columns: 1fr; text-align: left; padding: 40px; }
    .pg-banner-right { min-height: 180px; }
}

@media (max-width: 960px) {
    .navbar-links, .nav-cta { display: none; }
    .hamburger { display: block; }

    .hero { padding-bottom: 90px; }
    .hero-content { grid-template-columns: 1fr; padding: 0 24px; gap: 50px; }
    .orbit-stage { --stage: min(86vw, 460px); margin: 0 auto; }
    .fc-clients { left: 0; }
    .fc-deploy { left: 0; }
    .fc-chart { right: 0; }

    .section-head { grid-template-columns: 1fr; margin-bottom: 40px; }
    .security-grid { grid-template-columns: 1fr; }
    .shield-stage { max-width: 320px; }

    .steps { grid-template-columns: 1fr; gap: 26px; padding-left: 6px; }
    .steps-line { top: 20px; bottom: 20px; left: 32px; right: auto; width: 4px; height: auto; }
    .steps-line span { transform-origin: top; transform: scaleY(var(--p, 0)); }
    .step { display: grid; grid-template-columns: 58px 1fr; column-gap: 20px; text-align: left; align-items: center; }
    .step-dot { margin: 0; grid-row: span 2; }
    .step h3 { align-self: end; margin-bottom: 2px; }
    .step p { align-self: start; }

    .clients-hero { grid-template-columns: 1fr; gap: 26px; padding: 40px 30px; text-align: left; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .services, .skills, .security, .projects, .process, .about-stats, .contact { padding: 70px 0; }
    .section-container { padding: 0 18px; }
    .services-grid, .services-grid-5, .projects-grid { grid-template-columns: 1fr; }
    .pg-banner { padding: 30px 24px; border-radius: 24px; }
    .pg-orbit-icon { width: 38px; height: 38px; font-size: 15px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 24px 20px; }
    .sat { width: 46px; height: 46px; margin: -23px 0 0 -23px; font-size: 18px; border-radius: 14px; }
    .float-card { padding: 9px 12px; }
    .float-card strong { font-size: 14px; }
    .fc-chart { display: none; }
    .footer-content { grid-template-columns: 1fr; }
    .solutions-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: clamp(2.1rem, 10.5vw, 3rem); }
    .to-top { right: 16px; bottom: 16px; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .js [data-reveal] { opacity: 1; translate: none; }
    .hero-title .word, .hero-anim { opacity: 1; transform: none; }
    .marquee { overflow-x: auto; }
    .line { stroke-dashoffset: 0; }
    .area, .dot { opacity: 1; }
    .blob, #link-canvas { display: none; }
}
