/* ==========================================================
   UPNB INFO — Modern Redesign 2025  (v2)
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0b1120;
  --header-bg:  #f7f9fc;   /* light — the two-tone navy logo needs a light
                              ground to read cleanly, it doesn't work on dark */
  --header-text: #101828;  /* near-black text/icons on the light header */
  --navy-2:     #111827;
  --navy-3:     #1e293b;
  --blue:       #2563eb;
  --blue-dark:  #1d4ed8;
  --blue-light: #eff6ff;
  --cyan:       #06b6d4;
  --purple:     #7c3aed;
  --green:      #10b981;
  --white:      #ffffff;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-400:   #94a3b8;
  --gray-600:   #475569;
  --font:       'Inter', sans-serif;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 4px 16px rgba(0,0,0,.1);
  --shadow-lg:  0 16px 40px rgba(0,0,0,.18);
  --tr:         all .3s cubic-bezier(.4,0,.2,1);
  /* live navbar height — kept in sync by JS so the mobile nav panel and
     the hero offset never drift when the logo size changes */
  --navbar-h:   96px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; display: inline-block; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--navy); }
p  { color: var(--gray-600); line-height: 1.7; }

/* ── Scroll reveal ── */
.reveal { opacity:0; transform:translateY(24px); transition:opacity .55s ease,transform .55s ease; }
.reveal.revealed { opacity:1; transform:translateY(0); }

/* ==========================================================
   NAVBAR  — light, so the two-tone navy logo shows exactly as printed
   (the hero section below stays dark navy, unchanged)
   ========================================================== */
.navbar-modern {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(16,24,40,.08);
  padding: 12px 0;
  transition: var(--tr);
}
.navbar-modern.scrolled {
  background: rgba(247,249,252,.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(16,24,40,.1);
  padding: 10px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
/* Brand — plain wordmark image with the tagline set as live text beneath it,
   so the tagline stays crisp and readable at every size. */
.nav-brand {
  display:flex; flex-direction:column; align-items:flex-start;
  flex-shrink:0; gap:5px; line-height:0;
}
.nav-brand .brand-logo {
  height: 75px;                     /* the logo as supplied — navy plaque kept intact */
  width: auto;
  border-radius: 8px;
  display: block;
  transition: height .3s cubic-bezier(.4,0,.2,1);
}
.brand-tagline {
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  color: rgba(16,24,40,.68);        /* dark text on the light header */
  white-space: nowrap;              /* never let the strapline wrap mid-phrase */
  transition: font-size .3s cubic-bezier(.4,0,.2,1);
}
.nav-brand:hover .brand-tagline { color: var(--blue); }
.navbar-modern.scrolled .nav-brand .brand-logo { height: 64px; }

/* Nav links */
.nav-links { display:flex; align-items:center; gap:2px; }
.nav-link-item {
  padding: 8px 15px;
  font-size: .92rem; font-weight: 500;
  color: rgba(16,24,40,.68);
  border-radius: var(--radius-sm);
  transition: var(--tr);
}
.nav-link-item:hover,
.nav-link-item.active {
  color: var(--header-text);
  background: rgba(16,24,40,.06);
}

/* CTA button */
.nav-cta-btn {
  padding: 9px 20px;
  background: var(--blue);
  color: var(--white);
  font-size: .88rem; font-weight: 700;
  border-radius: 50px;
  transition: var(--tr);
  white-space: nowrap;
}
.nav-cta-btn:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37,99,235,.45);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px; gap: 5px;
  background: none;
  border: 2px solid rgba(16,24,40,.18);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--tr);
}
.hamburger span {
  display:block; width:18px; height:2px;
  background: var(--header-text); border-radius:2px; transition: var(--tr);
}
.hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ==========================================================
   HERO  — same dark bg as navbar (seamless)
   ========================================================== */
.hero-section {
  background: var(--navy);          /* exact same as navbar */
  position: relative;
  overflow: hidden;
  padding-top: var(--navbar-h);     /* always matches the real navbar */
  display: flex; flex-direction: column;
}

/* soft coloured blobs */
.hero-bg-shapes { position:absolute; inset:0; pointer-events:none; overflow:hidden; z-index:0; }
.shape { position:absolute; border-radius:50%; filter:blur(70px); }
.shape-1 {
  width:550px; height:550px;
  background: radial-gradient(circle,rgba(37,99,235,.35),transparent 70%);
  top:-150px; right:-80px;
}
.shape-2 {
  width:380px; height:380px;
  background: radial-gradient(circle,rgba(6,182,212,.25),transparent 70%);
  bottom:60px; left:-60px;
}
.shape-3 {
  width:260px; height:260px;
  background: radial-gradient(circle,rgba(124,58,237,.2),transparent 70%);
  top:40%; left:40%; opacity:.5;
}

.hero-section .container { position:relative; z-index:1; padding-top:50px; padding-bottom:20px; }
.hero-section .row { width:100%; margin:0; }

/* Hero text */
.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.14);
  color: var(--cyan); font-size:.82rem; font-weight:600;
  padding:7px 16px; border-radius:50px; margin-bottom:22px;
}
.hero-title {
  font-size: clamp(2rem,4.5vw,3.5rem);
  font-weight: 900; color: var(--white);
  line-height: 1.15; letter-spacing:-.03em; margin-bottom:20px;
}
.gradient-text {
  background: linear-gradient(135deg,var(--cyan),var(--blue));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.hero-desc {
  font-size:1.05rem; color:rgba(255,255,255,.68);
  max-width:480px; margin-bottom:32px; line-height:1.7;
}
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; }
.btn-primary-modern {
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 26px; background:var(--blue); color:var(--white);
  font-size:.97rem; font-weight:700; border-radius:50px;
  transition:var(--tr); box-shadow:0 6px 20px rgba(37,99,235,.4);
}
.btn-primary-modern:hover { background:var(--blue-dark); color:var(--white); transform:translateY(-2px); box-shadow:0 10px 28px rgba(37,99,235,.55); }
.btn-outline-modern {
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 26px; border:2px solid rgba(255,255,255,.28);
  color:var(--white); font-size:.97rem; font-weight:600;
  border-radius:50px; transition:var(--tr);
}
.btn-outline-modern:hover { border-color:var(--white); background:rgba(255,255,255,.08); color:var(--white); transform:translateY(-2px); }

/* ── Hero visual (CSS illustration) ── */
.hero-visual {
  position:relative;
  width:100%; min-height:340px;
  display:flex; align-items:center; justify-content:center;
  margin-top:30px;
}
/* Center wrapper — sized to outermost ring, flex-centered by parent */
.hv-center {
  position:relative;
  width:290px; height:290px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}

/* pulsing rings */
.hv-ring {
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  border-radius:50%;
  border:1px solid rgba(37,99,235,.3);
  animation: hv-pulse 3s ease-in-out infinite;
}
.hv-ring-1 { width:140px; height:140px; animation-delay:0s; }
.hv-ring-2 { width:210px; height:210px; animation-delay:.6s; border-color:rgba(6,182,212,.2); }
.hv-ring-3 { width:290px; height:290px; animation-delay:1.2s; border-color:rgba(124,58,237,.15); }
@keyframes hv-pulse {
  0%,100% { transform:translate(-50%,-50%) scale(1);    opacity:.7; }
  50%      { transform:translate(-50%,-50%) scale(1.06); opacity:1; }
}
/* core */
.hv-core {
  position:relative; z-index:2;
  width:90px; height:90px; border-radius:50%;
  background:linear-gradient(135deg,var(--blue),var(--cyan));
  display:flex; align-items:center; justify-content:center;
  font-size:2.2rem; color:var(--white);
  box-shadow:0 0 40px rgba(37,99,235,.6);
  animation: hv-glow 2.5s ease-in-out infinite;
}
@keyframes hv-glow {
  0%,100% { box-shadow:0 0 40px rgba(37,99,235,.5); }
  50%     { box-shadow:0 0 70px rgba(37,99,235,.85),0 0 120px rgba(6,182,212,.3); }
}
/* floating dot nodes */
.hv-grid { position:absolute; inset:0; z-index:1; }
.hv-dot {
  position:absolute;
  width:10px; height:10px; border-radius:50%;
  background:var(--cyan);
  box-shadow:0 0 12px var(--cyan);
  animation: hv-dot-pulse 2.5s ease-in-out infinite;
  animation-delay:var(--delay);
  left: calc(10% + (var(--c) - 1) * 18%);
  top:  calc(10% + (var(--r) - 1) * 35%);
}
@keyframes hv-dot-pulse {
  0%,100% { transform:scale(1);   opacity:.5; }
  50%      { transform:scale(1.6); opacity:1; }
}
/* floating stat cards */
.hv-card {
  position:absolute; z-index:3;
  display:flex; align-items:center; gap:10px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(10px);
  border-radius:12px; padding:12px 16px;
  color:var(--white); font-size:.85rem;
  animation:float 3s ease-in-out infinite;
}
.hv-card i { font-size:1.3rem; color:var(--cyan); }
.hv-card strong { display:block; font-size:1.05rem; font-weight:800; color:var(--white); line-height:1; }
.hv-card span   { font-size:.75rem; color:rgba(255,255,255,.6); }
.hv-card-tl { top:6%;  left:2%;  animation-delay:0s; }
.hv-card-tr { top:6%;  right:2%; animation-delay:1s; }
.hv-card-br { bottom:6%; left:50%; transform:translateX(-50%); animation-delay:1.8s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* Stats bar — dark, seamless continuation of hero */
.stats-bar {
  position:relative; z-index:1;
  background:rgba(255,255,255,.04);
  border-top:1px solid rgba(255,255,255,.08);
  padding:22px 0;
  margin-top:40px;
}
.stats-grid {
  display:flex; align-items:center; justify-content:center;
  flex-wrap:wrap; gap:0;
}
.stat-item {
  display:flex; flex-direction:column; align-items:center;
  padding:0 44px; gap:3px;
}
.stat-number { font-size:1.9rem; font-weight:900; color:var(--white); line-height:1; }
.stat-label  { font-size:.75rem; color:rgba(255,255,255,.55); font-weight:500; text-transform:uppercase; letter-spacing:.06em; }
.stat-divider { width:1px; height:36px; background:rgba(255,255,255,.12); }

/* ==========================================================
   CTA SECTION  — placed right after hero
   ========================================================== */
.cta-section {
  padding: 60px 0;
  background: linear-gradient(135deg,#1d4ed8 0%,#1e1b4b 60%,#0b1120 100%);
  position: relative; overflow: hidden; text-align: center;
}
.cta-shapes { position:absolute; inset:0; pointer-events:none; }
.cta-shape-1 {
  position:absolute; width:450px; height:450px; border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.06),transparent 70%);
  top:-180px; right:-80px;
}
.cta-shape-2 {
  position:absolute; width:350px; height:350px; border-radius:50%;
  background:radial-gradient(circle,rgba(6,182,212,.12),transparent 70%);
  bottom:-120px; left:-60px;
}
.cta-content { position:relative; z-index:1; max-width:680px; margin:0 auto; }
.cta-content h2 {
  font-size:clamp(1.6rem,3.5vw,2.4rem); font-weight:800;
  color:var(--white); letter-spacing:-.02em; margin-bottom:12px;
}
.cta-content p { font-size:1rem; color:rgba(255,255,255,.72); margin-bottom:30px; }
.cta-actions { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.btn-cta-primary {
  padding:14px 32px; background:var(--white); color:var(--blue);
  font-size:.97rem; font-weight:800; border-radius:50px;
  transition:var(--tr); box-shadow:0 6px 20px rgba(0,0,0,.2);
}
.btn-cta-primary:hover { background:var(--navy); color:var(--white); transform:translateY(-2px); box-shadow:0 12px 30px rgba(0,0,0,.35); }
.btn-cta-outline {
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 32px; border:2px solid rgba(255,255,255,.35);
  color:var(--white); font-size:.97rem; font-weight:700; border-radius:50px; transition:var(--tr);
}
.btn-cta-outline:hover { border-color:var(--white); background:rgba(255,255,255,.1); color:var(--white); transform:translateY(-2px); }

/* ==========================================================
   SHARED SECTION STYLES
   ========================================================== */
.section-header { text-align:center; max-width:600px; margin:0 auto 44px; }
.section-header.light .section-title  { color:var(--white); }
.section-header.light .section-eyebrow{ background:rgba(255,255,255,.1); color:var(--cyan); border-color:rgba(255,255,255,.18); }
.section-header.light .section-desc   { color:rgba(255,255,255,.65); }

.section-eyebrow {
  display:inline-block;
  font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em;
  color:var(--blue); background:var(--blue-light);
  border:1px solid rgba(37,99,235,.2);
  padding:5px 16px; border-radius:50px; margin-bottom:14px;
}
.section-title {
  font-size:clamp(1.7rem,3vw,2.4rem); font-weight:800;
  color:var(--navy); letter-spacing:-.02em; margin-bottom:12px;
}
.section-desc { font-size:1rem; color:var(--gray-600); line-height:1.7; }

/* ==========================================================
   ABOUT
   ========================================================== */
.about-section {
  padding: 70px 0;
  background: var(--gray-50);
}

/* CSS Tech illustration */
.about-visual {
  position:relative;
  background:var(--navy-2);
  border-radius:20px;
  padding:24px 20px 20px;   /* no extra bottom padding needed */
  /* overflow:hidden removed — was clipping badge box */
  border:1px solid rgba(255,255,255,.07);
  display:flex; flex-direction:column; gap:16px;
}
.av-bg {
  position:absolute; inset:0; border-radius:20px; pointer-events:none;
  background:radial-gradient(ellipse at 50% 30%,rgba(37,99,235,.2),transparent 70%);
}
.av-icons-grid {
  position:relative; z-index:1;
  display:grid; grid-template-columns:repeat(3,1fr); gap:10px;
}
.av-icon-cell {
  display:flex; flex-direction:column; align-items:center; gap:6px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px; padding:16px 8px;
  color:var(--white); font-size:.75rem; font-weight:500;
  transition:var(--tr);
  animation: av-fadein .5s ease both;
  animation-delay:var(--d);
}
.av-icon-cell i { font-size:1.7rem; color:var(--cyan); }
.av-icon-cell:hover {
  background:rgba(37,99,235,.2);
  border-color:rgba(37,99,235,.4);
  transform:translateY(-3px);
}
.av-icon-center {
  background:rgba(37,99,235,.15) !important;
  border-color:rgba(37,99,235,.35) !important;
}
.av-icon-center i { color:var(--blue) !important; }
@keyframes av-fadein { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }

/* Badge sits BELOW the grid — no overlap */
.about-badge-box {
  position:relative;               /* normal flow, not absolute */
  z-index:1;
  display:flex; align-items:center; gap:12px;
  background:var(--navy-3); border:1px solid rgba(255,255,255,.1);
  border-radius:12px; padding:14px 18px;
}
.badge-icon {
  width:42px; height:42px; border-radius:10px;
  background:rgba(37,99,235,.25); display:flex; align-items:center; justify-content:center;
  font-size:1.2rem; color:var(--blue); flex-shrink:0;
}
.about-badge-box strong { display:block; font-size:.87rem; color:var(--white); }
.about-badge-box span   { font-size:.74rem; color:var(--gray-400); }

/* About content */
.about-content { padding-left:24px; }
.about-content .section-eyebrow { margin-bottom:10px; }
.about-content .section-title   { margin-bottom:12px; }

.about-tabs { margin:24px 0; }
.tab-nav {
  display:flex; gap:6px;
  background:var(--gray-100); border-radius:10px; padding:5px; flex-wrap:wrap;
  margin-bottom:18px;
}
.tab-btn {
  flex:1; min-width:90px;
  padding:9px 14px; background:none; border:none; border-radius:7px;
  font-size:.87rem; font-weight:600; color:var(--gray-600);
  cursor:pointer; transition:var(--tr);
}
.tab-btn:hover { color:var(--blue); }
.tab-btn.active { background:var(--white); color:var(--blue); box-shadow:var(--shadow); }

.tab-panels { min-height:110px; }
.tab-panel { display:none; }
.tab-panel.active { display:block; }
.tab-panel p { font-size:.94rem; color:var(--gray-600); margin-bottom:12px; line-height:1.7; }
.tab-panel p:last-child { margin:0; }

.about-features {
  display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:22px;
}
.feature-item {
  display:flex; align-items:center; gap:8px;
  font-size:.88rem; font-weight:600; color:var(--navy);
}
.feature-item i { color:var(--green); font-size:.95rem; flex-shrink:0; }

/* ==========================================================
   SERVICES  — dark theme with SHINE + GLOW hover
   ========================================================== */
.services-section {
  padding: 70px 0;
  background: var(--navy);
}
.services-section .section-title  { color:var(--white); }
.services-section .section-eyebrow{ background:rgba(255,255,255,.08); color:var(--cyan); border-color:rgba(255,255,255,.15); }
.services-section .section-desc   { color:rgba(255,255,255,.6); }

.services-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.service-card {
  position:relative;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:32px 26px;
  overflow:hidden;
  cursor:default;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

/* Shine sweep pseudo-element */
.service-shine {
  position:absolute;
  top:-100%; left:-60%;
  width:60%; height:300%;
  background:linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,.12) 50%,
    transparent 70%
  );
  transform:rotate(15deg);
  transition:left .55s ease, top .55s ease;
  pointer-events:none;
  z-index:1;
}
/* hover (desktop) + touch-shine (mobile tap) */
.service-card:hover .service-shine,
.service-card.touch-shine .service-shine {
  left:120%; top:-100%;
}

/* Glow border + lift — hover and touch */
.service-card:hover,
.service-card.touch-shine {
  border-color:var(--card-color, #2563eb);
  box-shadow:
    0 0 0 1px var(--card-color,#2563eb),
    0 0 24px rgba(37,99,235,.3),
    0 12px 40px rgba(0,0,0,.3);
  transform:translateY(-6px);
}

.service-icon-wrap {
  position:relative; z-index:2;
  width:60px; height:60px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.7rem;
  margin-bottom:20px;
  transition:var(--tr);
}
.service-card:hover .service-icon-wrap,
.service-card.touch-shine .service-icon-wrap {
  box-shadow: 0 0 20px currentColor;
  transform:scale(1.1) rotate(-5deg);
}

.service-card h4 {
  position:relative; z-index:2;
  font-size:1.05rem; font-weight:700;
  color:var(--white); margin-bottom:10px;
}
.service-card p {
  position:relative; z-index:2;
  font-size:.88rem; color:rgba(255,255,255,.6); line-height:1.65; margin-bottom:18px;
}

.service-arrow {
  position:relative; z-index:2;
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:50%;
  border:2px solid rgba(255,255,255,.15);
  color:rgba(255,255,255,.4); font-size:.95rem; transition:var(--tr);
}
.service-card:hover .service-arrow,
.service-card.touch-shine .service-arrow {
  border-color:var(--card-color,#2563eb);
  color:var(--white);
  background:var(--card-color,#2563eb);
  transform:translateX(4px);
  box-shadow:0 0 14px var(--card-color,#2563eb);
}

/* individual icon tints */
.service-card:nth-child(1) .service-icon-wrap { background:#1e3a8a33; }
.service-card:nth-child(2) .service-icon-wrap { background:#4c1d9533; }
.service-card:nth-child(3) .service-icon-wrap { background:#0e749133; }
.service-card:nth-child(4) .service-icon-wrap { background:#92400e33; }
.service-card:nth-child(5) .service-icon-wrap { background:#065f4633; }
.service-card:nth-child(6) .service-icon-wrap { background:#7f1d1d33; }

/* ==========================================================
   PORTFOLIO  — dark with SHINE + NEON GLOW hover
   ========================================================== */
.portfolio-section {
  padding: 70px 0;
  background: var(--navy-2);
  position:relative; overflow:hidden;
}
.portfolio-section::before {
  content:''; position:absolute;
  top:-200px; right:-200px; width:500px; height:500px; border-radius:50%;
  background:radial-gradient(circle,rgba(37,99,235,.12),transparent 70%);
}

.portfolio-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.portfolio-card {
  position:relative;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px; overflow:hidden;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
/* Shine sweep */
.portfolio-shine {
  position:absolute;
  top:-100%; left:-60%;
  width:50%; height:300%;
  background:linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,.1) 50%,
    transparent 70%
  );
  transform:rotate(15deg);
  transition:left .6s ease;
  pointer-events:none; z-index:3;
}
/* hover + touch-shine for portfolio */
.portfolio-card:hover .portfolio-shine,
.portfolio-card.touch-shine .portfolio-shine { left:130%; }

.portfolio-card:hover,
.portfolio-card.touch-shine {
  border-color:rgba(37,99,235,.6);
  box-shadow:
    0 0 0 1px rgba(37,99,235,.5),
    0 0 30px rgba(37,99,235,.25),
    0 16px 48px rgba(0,0,0,.35);
  transform:translateY(-6px);
}
.portfolio-card.featured {
  border-color:rgba(37,99,235,.3);
  background:rgba(37,99,235,.07);
}
.portfolio-card.featured:hover,
.portfolio-card.featured.touch-shine {
  border-color:rgba(6,182,212,.7);
  box-shadow:0 0 0 1px rgba(6,182,212,.5),0 0 30px rgba(6,182,212,.25),0 16px 48px rgba(0,0,0,.35);
}

/* Client logo panel (replaces the old gradient/icon panel) */
.portfolio-logo-panel {
  height:170px;
  background:var(--white);
  display:flex; align-items:center; justify-content:center;
  padding:26px 26px 46px;            /* bottom room for the tag pill */
  position:relative; overflow:hidden;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.portfolio-logo-panel .pf-logo {
  --pf-scale: 1;
  max-width:100%; max-height:100%;
  width:auto; height:auto;
  object-fit:contain;
  transform:scale(var(--pf-scale));
  transition:transform .3s cubic-bezier(.4,0,.2,1);
}
.portfolio-card:hover .pf-logo,
.portfolio-card.touch-shine .pf-logo { transform:scale(calc(var(--pf-scale) * 1.05)); }

/* Very wide, short lockups (e.g. SMBC) need less side padding and a small
   optical bump so they don't read as smaller than the squarer logos. */
.portfolio-logo-panel--wide { padding-left:14px; padding-right:14px; }
.portfolio-logo-panel--wide .pf-logo { --pf-scale: 1.06; }
.portfolio-tag {
  position:absolute; bottom:12px; left:14px; z-index:2;
  background:var(--blue); color:var(--white);
  font-size:.72rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.06em; padding:4px 12px; border-radius:50px;
}

.portfolio-body { padding:22px 22px 24px; }
.portfolio-body h4 {
  font-size:1.05rem; font-weight:700; color:var(--white);
  margin-bottom:2px; line-height:1.3; overflow-wrap:break-word;
}
.portfolio-subtitle {
  font-size:.82rem; font-weight:600; color:var(--cyan);
  margin-bottom:14px; line-height:1.4;
}
.portfolio-list { padding:0; }
.portfolio-list li {
  font-size:.85rem; color:rgba(255,255,255,.62);
  padding:6px 0 6px 16px; border-bottom:1px solid rgba(255,255,255,.06);
  position:relative; line-height:1.5;
}
.portfolio-list li:last-child { border-bottom:none; }
.portfolio-list li::before {
  content:''; position:absolute; left:0; top:14px;
  width:5px; height:5px; background:var(--cyan); border-radius:50%;
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-section { padding:70px 0; background:var(--gray-50); }

.contact-grid {
  display:grid; grid-template-columns:1fr; gap:32px; align-items:start;
}
.contact-info {
  display:grid; grid-template-columns:repeat(3,1fr); gap:22px;
  max-width:1080px; margin:0 auto; width:100%;
}

.contact-card {
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:14px;
  background:var(--white); border:1px solid var(--gray-200);
  border-radius:18px; padding:32px 24px; box-shadow:var(--shadow); transition:var(--tr);
}
.contact-card:hover { box-shadow:0 8px 24px rgba(0,0,0,.08); border-color:rgba(37,99,235,.2); transform:translateY(-2px); }

.contact-card-icon {
  width:56px; height:56px; border-radius:16px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:1.3rem;
}
.ci-blue   { background:#eff6ff; color:var(--blue); }
.ci-purple { background:#f5f3ff; color:var(--purple); }
.ci-green  { background:#ecfdf5; color:var(--green); }

.contact-card-body h5 { font-size:1.05rem; font-weight:700; color:var(--navy); margin-bottom:10px; }
.contact-card-body a,
.contact-card-body span {
  display:block; font-size:.9rem; color:var(--gray-600);
  text-decoration:none; margin-bottom:4px; line-height:1.55;
}
.contact-card-body a:hover { color:var(--blue); }

.contact-form-card {
  background:var(--white); border:1px solid var(--gray-200);
  border-radius:18px; padding:36px 32px; box-shadow:var(--shadow);
}
.contact-form-card h4 { font-size:1.4rem; font-weight:800; color:var(--navy); margin-bottom:6px; }
.contact-form-card > p { font-size:.92rem; color:var(--gray-600); margin-bottom:26px; }

.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:.82rem; font-weight:600; color:var(--navy); margin-bottom:6px; }
.form-group input,
.form-group textarea {
  width:100%; padding:12px 16px;
  border:2px solid var(--gray-200); border-radius:9px;
  font-family:var(--font); font-size:.92rem; color:var(--navy);
  background:var(--gray-50); transition:var(--tr); outline:none; resize:vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color:var(--blue); background:var(--white);
  box-shadow:0 0 0 3px rgba(37,99,235,.1);
}
.btn-form-submit {
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 28px; background:var(--blue); color:var(--white);
  font-family:var(--font); font-size:.95rem; font-weight:700;
  border:none; border-radius:50px; cursor:pointer; transition:var(--tr);
  box-shadow:0 6px 18px rgba(37,99,235,.35);
}
.btn-form-submit:hover { background:var(--blue-dark); transform:translateY(-2px); box-shadow:0 10px 26px rgba(37,99,235,.45); }
.btn-form-submit:disabled { background:var(--gray-400); cursor:not-allowed; transform:none; box-shadow:none; }

/* Phone input group */
.phone-input-group {
  display:flex; gap:0;
}
.country-code-select {
  padding:12px 10px;
  border:2px solid var(--gray-200); border-right:none;
  border-radius:9px 0 0 9px;
  font-family:var(--font); font-size:.88rem; color:var(--navy);
  background:var(--gray-50); cursor:pointer; outline:none;
  transition:var(--tr); flex-shrink:0; min-width:100px;
  appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 10px center;
  padding-right:28px;
}
.country-code-select:focus { border-color:var(--blue); background-color:var(--white); box-shadow:0 0 0 3px rgba(37,99,235,.1); }
.phone-input-group input[type="tel"] {
  flex:1; border-radius:0 9px 9px 0 !important;
}
.phone-input-group input[type="tel"]:focus { border-color:var(--blue); }

/* Required star */
.req { color:#ef4444; margin-left:2px; }

/* Form status messages */
.form-status {
  display:none; padding:14px 18px; border-radius:10px;
  font-size:.92rem; font-weight:600; margin-top:12px;
  align-items:center; gap:10px;
}
.form-status.success {
  display:flex; background:#ecfdf5; border:1px solid #6ee7b7; color:#065f46;
}
.form-status.error {
  display:flex; background:#fef2f2; border:1px solid #fca5a5; color:#7f1d1d;
}
.form-status i { font-size:1.1rem; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer-modern { background:var(--navy); padding:60px 0 0; }
.footer-top {
  display:grid; grid-template-columns:1.8fr 1fr 1fr 1.4fr;
  gap:40px; padding-bottom:50px;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.footer-brand {
  display:flex; flex-direction:column; align-items:flex-start;
  gap:7px; margin-bottom:18px; line-height:0;
}
.footer-brand .footer-logo {
  height:34px; width:auto; max-width:100%;
  display:block;
}
.footer-tagline {
  font-size:.72rem; font-weight:600; line-height:1.3;
  letter-spacing:.01em; color:rgba(255,255,255,.62);
}
.footer-brand-col p { font-size:.87rem; color:rgba(255,255,255,.5); line-height:1.7; margin-bottom:0; }
.footer-links-col h6,
.footer-contact-col h6 {
  font-size:.8rem; font-weight:800; text-transform:uppercase;
  letter-spacing:.1em; color:var(--white); margin-bottom:18px;
}
.footer-links-col ul li { margin-bottom:9px; }
.footer-links-col ul li a { font-size:.87rem; color:rgba(255,255,255,.5); transition:var(--tr); }
.footer-links-col ul li a:hover { color:var(--cyan); padding-left:4px; }
.footer-contact-item { display:flex; align-items:flex-start; gap:10px; margin-bottom:12px; }
.footer-contact-item i { color:var(--cyan); font-size:.95rem; margin-top:2px; flex-shrink:0; }
.footer-contact-item span,
.footer-contact-item a { font-size:.87rem; color:rgba(255,255,255,.5); transition:var(--tr); }
.footer-contact-item a:hover { color:var(--cyan); }
.footer-bottom {
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 0;
}
.footer-bottom p { font-size:.82rem; color:rgba(255,255,255,.3); }

/* Scroll to top */
.scroll-top-btn {
  position:fixed; bottom:24px; right:24px;
  width:44px; height:44px; background:var(--blue); color:var(--white);
  border-radius:12px; display:flex; align-items:center; justify-content:center;
  font-size:1.1rem; box-shadow:0 6px 20px rgba(37,99,235,.45);
  transition:var(--tr); opacity:0; pointer-events:none; z-index:99;
}
.scroll-top-btn.visible { opacity:1; pointer-events:auto; }
.scroll-top-btn:hover { background:var(--blue-dark); color:var(--white); transform:translateY(-3px); }

/* ==========================================================
   RESPONSIVE  — tablet (≤1199px)
   ========================================================== */
@media (max-width:1199px) {
  .services-grid  { grid-template-columns:repeat(2,1fr); }
  .portfolio-grid { grid-template-columns:repeat(2,1fr); }
  .footer-top     { grid-template-columns:1fr 1fr; gap:32px; }
  .stat-item      { padding:0 28px; }
}

/* ==========================================================
   RESPONSIVE  — iPad / small desktop (≤991px)
   ========================================================== */
@media (max-width:991px) {
  /* Tablet: the desktop nav still shows here, so the logo, links and CTA all
     have to share one row — tighten everything or the CTA clips off-screen. */
  .nav-brand .brand-logo { height:68px; }
  .navbar-modern.scrolled .nav-brand .brand-logo { height:58px; }
  .brand-tagline { font-size:.62rem; }
  .nav-inner     { gap:12px; }
  .nav-link-item { padding:7px 8px; font-size:.86rem; }
  .nav-cta-btn   { padding:8px 16px; font-size:.84rem; }
  .footer-brand .footer-logo { height:31px; }
  .hero-section .container { padding-top:34px; padding-bottom:10px; }
  .hero-visual { min-height:300px; margin-top:40px; }
  .hv-center   { width:260px; height:260px; }
  .hv-ring-3   { width:260px; height:260px; }
  .hv-ring-2   { width:188px; height:188px; }
  .hv-ring-1   { width:124px; height:124px; }
  .about-content  { padding-left:0; margin-top:32px; }
  .about-features { grid-template-columns:1fr 1fr; }
  .contact-grid   { grid-template-columns:1fr; }
  .contact-info   { grid-template-columns:1fr; max-width:520px; }
  .hv-card-tr     { display:none; }
}

/* ==========================================================
   RESPONSIVE  — mobile (≤767px)
   ========================================================== */
@media (max-width:767px) {
  /* Show hamburger, hide desktop nav */
  .hamburger { display:flex; }
  .nav-cta-btn { display:none; }

  /* The tagline is real text, so it stays legible on phones. Nav panel and
     hero offsets are driven by --navbar-h (kept in sync by JS), so these
     heights are free to change without breaking alignment. */
  .nav-brand { gap:4px; }
  .nav-brand .brand-logo         { height:60px; }
  .navbar-modern.scrolled .nav-brand .brand-logo { height:52px; }
  .brand-tagline { font-size:.6rem; }

  .nav-links {
    position:fixed;
    top:var(--navbar-h); left:0; right:0;   /* sits exactly under the navbar */
    background:var(--header-bg);            /* light, matches the navbar */
    flex-direction:column; align-items:stretch;
    padding:16px 20px; gap:2px;
    transform:translateY(-110%);
    /* closed panel is taller than its 110% offset, so its bottom edge + shadow
       used to bleed back over the navbar and cover the logo — hide it fully */
    opacity:0; pointer-events:none;
    transition:transform .3s ease, opacity .25s ease;
    z-index:999;
    border-bottom:1px solid rgba(16,24,40,.08);
    box-shadow:0 8px 24px rgba(16,24,40,.14);
  }
  .nav-links.open { transform:translateY(0); opacity:1; pointer-events:auto; }
  /* --navbar-h already tracks the scrolled height — no override needed */

  /* keep the brand above the sliding panel no matter what */
  .nav-brand { position:relative; z-index:1000; }
  .nav-link-item { padding:13px 16px; border-radius:8px; }

  /* Hero */
  /* hero offset comes from --navbar-h, set on .hero-section above */
  .hero-title   { font-size:2rem; }
  .hero-desc    { font-size:.95rem; }
  .hero-actions { gap:10px; }

  /* Scale rings down so they fit mobile width */
  .hero-visual  { min-height:300px; margin-top:24px; }
  .hv-center    { width:220px; height:220px; }
  .hv-ring-1 { width:100px; height:100px; }
  .hv-ring-2 { width:160px; height:160px; }
  .hv-ring-3 { width:220px; height:220px; }
  .hv-core   { width:72px;  height:72px;  font-size:1.8rem; }

  /* Hide side float-cards; keep only the bottom one */
  .hv-card-tl, .hv-card-tr { display:none; }
  .hv-card-br {
    bottom:10px; left:50%; transform:translateX(-50%);
    font-size:.82rem; padding:10px 14px; gap:8px;
  }
  .hv-card-br i { font-size:1.1rem; }

  /* Shrink dot nodes on mobile */
  .hv-dot { width:7px; height:7px; }

  /* Stats */
  .stats-bar   { padding:18px 0; }
  .stat-item   { padding:0 18px; }
  .stat-number { font-size:1.5rem; }
  .stat-divider{ height:28px; }

  /* CTA */
  .cta-section { padding:44px 0; }
  .cta-content h2 { font-size:1.5rem; }

  /* About */
  .about-section { padding:54px 0; }
  .av-icons-grid  { grid-template-columns:repeat(3,1fr); gap:8px; }
  .av-icon-cell   { padding:12px 6px; font-size:.7rem; }
  .av-icon-cell i { font-size:1.5rem; }
  .about-features { grid-template-columns:1fr; }
  .about-content  { padding-left:0; }

  /* Services */
  .services-section { padding:54px 0; }
  .services-grid { grid-template-columns:1fr; gap:16px; }
  .service-card { padding:24px 20px; }

  /* Portfolio */
  .portfolio-section { padding:54px 0; }
  .portfolio-grid { grid-template-columns:1fr; gap:18px; }
  .portfolio-logo-panel { height:150px; padding:22px 22px 44px; }
  .portfolio-body h4 { font-size:1rem; }

  /* Contact */
  .contact-section   { padding:54px 0; }
  .contact-form-card { padding:24px 18px; }
  .form-row { grid-template-columns:1fr; gap:0; }

  /* Footer */
  .footer-modern { padding:48px 0 0; }
  .footer-brand .footer-logo { height:29px; }
  .footer-top    { grid-template-columns:1fr; gap:32px; padding-bottom:36px; }
  .footer-bottom { flex-direction:column; gap:6px; text-align:center; padding:16px 0; }
}

/* ==========================================================
   RESPONSIVE  — small mobile (≤480px)
   ========================================================== */
@media (max-width:480px) {
  /* logo stays at the 60px mobile size; only the strapline steps down */
  .brand-tagline { font-size:.55rem; letter-spacing:0; }
  .portfolio-logo-panel { height:140px; padding:18px 18px 42px; }
  .footer-brand .footer-logo { height:27px; }
  .hero-actions    { flex-direction:column; }
  .btn-primary-modern,
  .btn-outline-modern { width:100%; justify-content:center; }

  /* Extra-small rings */
  .hv-center    { width:188px; height:188px; }
  .hv-ring-1 { width:84px;  height:84px; }
  .hv-ring-2 { width:136px; height:136px; }
  .hv-ring-3 { width:188px; height:188px; }
  .hv-core   { width:60px;  height:60px;  font-size:1.5rem; }
  .hero-visual { min-height:240px; }

  .stats-grid  { flex-wrap:wrap; gap:6px; justify-content:center; }
  .stat-divider{ display:none; }
  .stat-item   { padding:10px 18px; }

  .cta-actions { flex-direction:column; align-items:center; }
  .btn-cta-primary,
  .btn-cta-outline { width:100%; justify-content:center; }

  .section-title  { font-size:1.55rem; }
  .av-icons-grid  { grid-template-columns:repeat(3,1fr); }
}
