/* ============================================================
   OMULEKHE WYCLIFFE — PORTFOLIO  |  styles.css
   ============================================================ */

/* ---------- RESET & VARIABLES ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette — richer, deeper, more premium */
  --bg:        #050509;
  --bg2:       #0a0a14;
  --bg3:       #0e0e1c;
  --card:      #0c0c1a;
  --card2:     #101020;
  --border:    rgba(130, 100, 255, 0.12);
  --border2:   rgba(130, 100, 255, 0.22);

  /* Primary: refined violet-indigo */
  --purple:    #7c3aed;
  --purple-l:  #9d6ffd;
  --purple-xl: #c4b5fd;
  --purple-d:  #4f1fb8;
  --glow:      rgba(124,58,237,0.28);

  /* Accent: warm amber — breaks up the blue-violet monotony */
  --amber:     #f59e0b;
  --amber-l:   #fbbf24;
  --amber-glow:rgba(245,158,11,0.22);

  --blue:      #3b82f6;
  --cyan:      #06b6d4;
  --green:     #10b981;

  --text:      #ccc8e4;
  --muted:     #6e6888;
  --heading:   #ede9ff;

  /* Typography */
  --font-head: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Sizes */
  --nav-h:     68px;
  --radius:    12px;
  --radius-lg: 18px;

  /* UI surfaces */
  --nav-bg:        rgba(5,5,9,0.92);
  --overlay:       rgba(0,0,0,0.65);
  --float-bg:      rgba(10,10,20,0.94);
  --float-shadow:  0 4px 20px rgba(0,0,0,0.4);
  --pct-url-bg:    rgba(255,255,255,0.04);
  --noise-opacity: 0.018;
  --toggle-bg:     #000000;
  --toggle-ico:    #ffffff;
}

:root[data-theme="light"] {
  --bg:        #f7f7fb;
  --bg2:       #ffffff;
  --bg3:       #f0f1f7;
  --card:      #ffffff;
  --card2:     #f6f7fb;
  --border:    rgba(17,19,33,0.12);
  --border2:   rgba(17,19,33,0.22);

  --purple:    #6d28d9;
  --purple-l:  #7c3aed;
  --purple-xl: #a78bfa;
  --purple-d:  #4c1d95;
  --glow:      rgba(109,40,217,0.22);

  --blue:      #2563eb;
  --cyan:      #06b6d4;
  --green:     #10b981;

  --text:      #1f2333;
  --muted:     #5a6276;
  --heading:   #111321;

  --nav-bg:        rgba(247,247,251,0.92);
  --overlay:       rgba(10,10,20,0.4);
  --float-bg:      rgba(255,255,255,0.86);
  --float-shadow:  0 6px 18px rgba(17,19,33,0.15);
  --pct-url-bg:    rgba(17,19,33,0.06);
  --noise-opacity: 0.03;
  --toggle-bg:     #ffffff;
  --toggle-ico:    #000000;
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
  width: 100%;
}

a, button, input, textarea, select, [role="button"], .btn, .nav-link, .nav-cta, .drawer-cta, .fab-wa, .theme-toggle {
  cursor: none !important;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--purple);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition: width 0.18s ease, height 0.18s ease, box-shadow 0.18s ease, opacity 0.2s ease;
  box-shadow: 0 0 18px rgba(124,58,237,0.35);
}
.custom-cursor.is-hover {
  width: 18px;
  height: 18px;
  box-shadow: 0 0 26px rgba(124,58,237,0.45);
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(124,58,237,0.55);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: width 0.18s ease, height 0.18s ease, border-color 0.18s ease, opacity 0.2s ease;
}
.custom-cursor-ring.is-hover {
  width: 36px;
  height: 36px;
  border-color: rgba(124,58,237,0.85);
}

.custom-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(124,58,237,0.28);
  filter: blur(12px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: width 0.2s ease, height 0.2s ease, opacity 0.25s ease;
}
.custom-cursor-glow.is-hover {
  width: 52px;
  height: 52px;
  opacity: 0.95;
}

@media (pointer: coarse) {
  body { cursor: auto; }
  a, button, input, textarea, select, [role="button"], .btn, .nav-link, .nav-cta, .drawer-cta, .fab-wa, .theme-toggle { cursor: auto; }
  .custom-cursor, .custom-cursor-ring, .custom-cursor-glow { display: none; }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
::selection { background: var(--purple); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple-d); border-radius: 3px; }

/* ---------- NOISE TEXTURE OVERLAY ---------- */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: var(--noise-opacity);
  pointer-events: none;
  z-index: 9000;
}

/* ---------- UTILITY ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-alt{ background: var(--bg2); }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: ''; display: block;
  width: 18px; height: 2px;
  background: var(--amber); border-radius: 2px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}
.accent {
  background: linear-gradient(135deg, var(--amber-l) 0%, var(--purple-l) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header { max-width: 600px; margin-bottom: 3.5rem; }
.section-header.centered, .section-header.reveal { margin: 0 auto 3.5rem; text-align: center; }
.section-header.reveal .section-label { justify-content: center; }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* ---------- REVEAL ANIMATION ---------- */
/* JS drives all reveal animations directly via scroll position.
   Initial opacity:0 is overridden immediately by JS on RAF. */
.reveal {
  opacity: 0;
  will-change: transform, opacity;
}
.reveal.in-view {
  opacity: 1;
  transform: translate(0, 0) scale(1) rotate(0deg);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-d));
  color: #fff;
  border: none;
  box-shadow: 0 4px 24px rgba(124,58,237,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  box-shadow: 0 8px 36px rgba(124,58,237,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-2px);
  background: linear-gradient(135deg, #8b47ff, var(--purple));
}

.btn-wa {
  background: #25d366;
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-wa:hover {
  background: #20b858;
  box-shadow: 0 6px 32px rgba(37,211,102,0.5);
  transform: translateY(-2px);
}
.btn-wa svg { width: 18px; height: 18px; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border2);
}
.btn-outline:hover {
  border-color: var(--purple-l);
  color: var(--purple-l);
  background: rgba(124,58,237,0.06);
}

/* Keep hero CV button bright in light mode over the dark video */
.btn-hero-cv {
  color: #ffffff;
  border-color: #1d4ed8;
  background: var(--blue);
  box-shadow: 0 6px 22px rgba(37,99,235,0.35);
}
.btn-hero-cv,
.btn-hero-cv:visited {
  color: #ffffff;
}
.btn-hero-cv:hover {
  color: #ffffff;
  border-color: #1e40af;
  background: #1d4ed8;
  box-shadow: 0 10px 30px rgba(37,99,235,0.45);
  transform: translateY(-2px);
}

:root[data-theme="light"] .btn-hero-cv,
:root[data-theme="light"] .btn-hero-cv:visited,
:root[data-theme="light"] .btn-hero-cv:hover,
:root[data-theme="light"] .btn-hero-cv:focus,
:root[data-theme="light"] .btn-hero-cv:active {
  color: #ffffff !important;
}

.btn-project {
  background: transparent;
  color: var(--purple-l);
  border: 1.5px solid var(--border2);
  padding: 9px 20px;
  font-size: 0.85rem;
  border-radius: 8px;
}
.btn-project:hover {
  background: rgba(124,58,237,0.1);
  border-color: var(--purple-l);
  transform: translateX(4px);
}

.btn-block { width: 100%; justify-content: center; border-radius: 12px; padding: 14px; font-size: 1rem; }

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 800;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
  /* Force GPU layer — prevents disappearing on mobile during scroll */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: background;
}
#navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(0,0,0,0.3);
  border-bottom-color: var(--border);
}
/* Light mode scrolled state only — at top it's always over the dark video */
:root[data-theme="light"] #navbar.scrolled {
  background: rgba(247,247,251,0.92);
}
/* Mobile always has a subtle dark base so navbar never vanishes */
@media (max-width: 900px) {
  #navbar:not(.scrolled) {
    background: rgba(5,5,9,0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(255,255,255,0.05);
  }
}

.nav-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Logo — always far left */
.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-logo:hover { transform: translateY(-1px); opacity: 0.85; }
.logo-main {
  height: clamp(36px, 6vw, 48px);
  width: auto;
  display: block;
  transition: filter 0.25s ease;
}
.nav-logo:hover .logo-main {
  filter: drop-shadow(0 4px 12px rgba(124,58,237,0.3));
}

/* Nav links — centred in the middle */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s, transform 0.2s;
  position: relative;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
/* In light mode, only darken links once the navbar has scrolled (has bg) */
:root[data-theme="light"] #navbar.scrolled .nav-link { color: var(--muted); text-shadow: none; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--purple-l));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  border-radius: 2px;
}
.nav-link:hover {
  color: #fff;
  transform: translateY(-1px);
}
:root[data-theme="light"] #navbar.scrolled .nav-link:hover { color: var(--heading); }
.nav-link:hover::after { transform: scaleX(1); }

/* ── Services dropdown ── */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-link-dropdown {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown-arrow {
  width: 13px; height: 13px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.nav-dropdown:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 240px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 14px;
  /* Invisible padding-top bridges the gap between button and menu so hover isn't lost */
  padding: 10px 8px 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
  z-index: 900;
}
/* Invisible bridge — fills gap between trigger and menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0; right: 0;
  height: 14px;
  background: transparent;
}
/* Arrow pointer */
.nav-dropdown-menu::after {
  content: '';
  position: absolute;
  top: -5px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: var(--bg2);
  border-left: 1px solid var(--border2);
  border-top: 1px solid var(--border2);
  border-radius: 2px 0 0 0;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.01em;
}
.nav-dropdown-item:hover {
  background: rgba(245,158,11,0.08);
  color: var(--amber-l);
}

/* Mobile drawer — Services accordion */
.drawer-services-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  min-height: 52px;
  transition: color 0.2s, background 0.2s;
  user-select: none;
}
.drawer-services-toggle:hover { color: var(--amber-l); background: rgba(245,158,11,0.05); }
.drawer-services-toggle.open { color: var(--amber-l); }
.drawer-services-arrow {
  width: 16px; height: 16px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  opacity: 0.6;
}
.drawer-services-toggle.open .drawer-services-arrow { transform: rotate(180deg); opacity: 1; }

.drawer-services-sub {
  display: none;
  flex-direction: column;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.drawer-services-sub.open { display: flex; }
.drawer-services-sub a {
  display: block;
  padding: 13px 20px 13px 36px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
  min-height: 46px;
  display: flex;
  align-items: center;
}
.drawer-services-sub a:last-child { border-bottom: none; }
.drawer-services-sub a:hover { color: var(--amber-l); background: rgba(245,158,11,0.05); padding-left: 42px; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.nav-cta {
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--purple), var(--purple-d));
  color: #fff;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: box-shadow 0.25s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  box-shadow: 0 0 28px var(--glow);
  transform: translateY(-2px);
}

/* Theme toggle — always bright over the dark video */
.theme-toggle {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.22);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
:root[data-theme="light"] #navbar.scrolled .theme-toggle {
  background: var(--card);
  color: var(--text);
  border-color: var(--border2);
}
.theme-toggle:hover {
  background: rgba(124,58,237,0.25);
  border-color: var(--purple-l);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
  transform: translateY(-1px);
}
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .tt-sun  { display: block; }
.theme-toggle .tt-moon { display: none; }
:root[data-theme="light"] .theme-toggle .tt-sun  { display: none; }
:root[data-theme="light"] .theme-toggle .tt-moon { display: block; }

/* Hamburger — always bright over dark video */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: rgba(255,255,255,0.92);
  border-radius: 2px;
  transition: all 0.3s;
}
:root[data-theme="light"] #navbar.scrolled .hamburger span { background: var(--text); }
.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); }

/* mobile drawer */
.mobile-drawer {
  position: fixed; top: 0; right: -100%;
  width: min(300px, 88vw); height: 100dvh;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 850;
  display: flex; flex-direction: column;
  padding: 0;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open { right: 0; }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-close {
  background: none; border: none; color: var(--muted);
  font-size: 1.2rem; cursor: pointer; padding: 6px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
}
.drawer-close:hover { color: var(--heading); background: rgba(255,255,255,0.06); }
.mobile-drawer a {
  display: flex; align-items: center;
  padding: 16px 20px;
  font-size: 0.95rem; font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
  letter-spacing: 0.03em;
  min-height: 52px; /* comfortable tap target */
}
.mobile-drawer a:hover { color: var(--amber-l); background: rgba(245,158,11,0.05); padding-left: 26px; }
.drawer-cta {
  margin: 16px 20px !important;
  padding: 14px 20px !important;
  background: #25d366 !important;
  color: #fff !important;
  border-radius: 10px !important;
  text-align: center !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  justify-content: center !important;
  min-height: 48px !important;
}
.drawer-overlay {
  position: fixed; inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(4px);
  z-index: 840;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.show { opacity: 1; pointer-events: all; }

/* ---------- HERO ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

/* ── Video background ── */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(5,5,9,0.55) 0%,
      rgba(5,5,9,0.70) 50%,
      rgba(5,5,9,0.92) 100%
    );
}
/* Hero overlay never changes in light mode */

/* ── Dot grid ── */
.hero-dots-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(rgba(120,90,240,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

/* ── Centered content ── */
.hero-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 24px 120px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

/* ── Entrance animation — fully JS-driven ── */
/* JS immediately sets transform/opacity inline, so CSS just hides initially */
.hero-anim {
  opacity: 0;
}

/* ── Badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 50px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.28);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-l);
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}
.hb-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.5); opacity: 0.5; }
}

/* ── Name ── */
.hero-name {
  font-family: var(--font-head);
  font-size: clamp(3.6rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.045em;
  color: #ede9ff;
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
}
.hero-name-line {
  display: block;
  will-change: transform, opacity;
}
.hero-name em {
  font-style: normal;
  background: linear-gradient(135deg, var(--amber-l) 0%, var(--purple-l) 60%, var(--amber) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroGradientShift 4s linear infinite;
}
@keyframes heroGradientShift {
  to { background-position: 200% center; }
}
.hero-name-dot {
  background: linear-gradient(135deg, var(--amber-l), var(--purple-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Headline ── */
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.01em;
  margin-bottom: 1.4rem;
  line-height: 1.5;
}
.hero-hl-accent {
  color: #fff;
  font-weight: 700;
  position: relative;
}
.hero-hl-accent::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--purple-l));
  border-radius: 2px;
  animation: heroUnderline 2.5s ease-in-out infinite alternate;
}
@keyframes heroUnderline {
  from { opacity: 0.5; transform: scaleX(0.85); }
  to   { opacity: 1;   transform: scaleX(1); }
}

/* ── Sub ── */
.hero-sub {
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  color: rgba(255,255,255,0.55);
  max-width: 600px;
  margin-bottom: 2.6rem;
  line-height: 1.8;
}

/* ── Buttons ── */
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3.5rem;
}

/* ── Stats ── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1.1rem 2rem;
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.hs-stat { text-align: center; padding: 0 1.6rem; }
.hs-stat:first-child { padding-left: 0; }
.hs-stat:last-child  { padding-right: 0; }
.hs-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.hs-stat span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
  display: block;
}
.hs-div {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
}
:root[data-theme="light"] .hs-div { background: var(--border2); }

/* ── Scroll indicator ── */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.35);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4));
  animation: heroScrollLine 1.8s ease-in-out infinite;
}
@keyframes heroScrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── Helper ── */
.d-br { display: block; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-center { padding: calc(var(--nav-h) + 40px) 20px 100px; }
  .hero-name { font-size: clamp(3rem, 12vw, 5rem); }
  .hero-sub { max-width: 90%; }
  .hs-stat { padding: 0 1rem; }
}
@media (max-width: 600px) {
  .hero-center { padding: calc(var(--nav-h) + 28px) 16px 90px; }
  .hero-name { font-size: clamp(2.6rem, 13vw, 4rem); letter-spacing: -0.03em; }
  .hero-headline { font-size: 1rem; }
  .hero-sub { font-size: 0.88rem; }
  .hero-btns { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-stats { padding: 0.85rem 1rem; width: 100%; justify-content: space-between; }
  .hs-stat { padding: 0 0.5rem; flex: 1; }
  .hs-stat strong { font-size: 1.5rem; }
  .hs-stat span { font-size: 0.62rem; }
  .hs-div { height: 28px; }
  .hero-scroll { bottom: 20px; }
}

/* ---------- ABOUT ---------- */
/* Entrance animation */
.about-visual-animate {
  position: relative;
  opacity: 0;
  transform: translateX(-60px) scale(0.96);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-visual-animate.in-view {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Frame container */
.about-profile-desktop {
  position: relative;
  display: block;
  padding: 16px 16px 16px 0;
}

/* Hide all animated decorative elements */
.apd-blob,
.apd-dots,
.apd-ring,
.apd-ring-outer,
.apd-ring-inner,
.apd-corner,
.apd-glow-line,
.apd-shimmer { display: none; }

/* Clean professional frame */
.apd-frame {
  position: relative;
  z-index: 2;
  border-radius: 4px;
  padding: 0;
  background: none;
  box-shadow:
    0 2px 0 0 var(--amber) inset,        /* top amber line */
    -2px 0 0 0 var(--amber) inset,        /* left amber line */
    0 40px 80px rgba(0,0,0,0.55),
    0 8px 24px rgba(0,0,0,0.3);
  animation: none;
}

/* Vertical amber accent bar beside the image */
.apd-frame::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 10%;
  bottom: 10%;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--amber), var(--purple-l));
  z-index: 5;
}

/* Small amber dot at top-left corner */
.apd-frame::after {
  content: '';
  position: absolute;
  top: -3px; left: -3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber-glow);
  z-index: 6;
}

.apd-frame-inner {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg);
}

/* Profile image */
.about-profile-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  border-radius: 3px;
  filter: grayscale(8%) contrast(1.04);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}
.apd-frame:hover .about-profile-img {
  transform: scale(1.03);
  filter: grayscale(0%) contrast(1.06);
}


.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 5rem; align-items: center;
}

.about-visual { position: relative; }


.av-geo {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--border); pointer-events: none;
}
.av-geo-1 { width: 300px; height: 300px; bottom: -60px; right: -40px; z-index: 1; }
.av-geo-2 { width: 180px; height: 180px; top: -30px; left: -30px; z-index: 1; background: rgba(124,58,237,0.04); }

.about-content .section-title { margin-top: 0.5rem; }
.about-p { color: var(--muted); margin-bottom: 1rem; font-size: 0.97rem; }
.about-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 1.6rem 0 2rem; }
.ac-item { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text); }
.ac-tick { color: var(--purple-l); font-weight: 700; flex-shrink: 0; }
.about-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- PROJECTS ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Project cards — animated by dedicated scroll-driven JS, no CSS transition */
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.32s ease, border-color 0.32s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  will-change: transform, opacity;
}
.project-card:hover {
  border-color: rgba(245,158,11,0.3);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,158,11,0.1), 0 0 40px rgba(124,58,237,0.12);
}

.pc-thumb {
  position: relative;
  overflow: hidden;
  background: var(--bg3);
}
.pc-site-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover .pc-site-image { transform: scale(1.05); }
.pct-browser {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.pct-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.pct-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.pct-url {
  flex: 1; background: var(--pct-url-bg);
  border-radius: 4px; padding: 2px 8px;
  font-size: 0.65rem; color: var(--muted);
  border: 1px solid var(--border);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pct-body {
  height: 140px;
  display: flex; align-items: center; justify-content: flex-start;
  gap: 14px; padding: 0 18px;
}
.pct-icon { font-size: 2.2rem; }
.pct-lines { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pl { height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; }
.pl-1 { width: 80%; } .pl-2 { width: 60%; } .pl-3 { width: 40%; }

/* thumb colour accents */
.pct-law    { background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(59,130,246,0.06)); }
.pct-finance{ background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(59,130,246,0.06)); }
.pct-tech   { background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(124,58,237,0.06)); }
.pct-ngo    { background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(124,58,237,0.06)); }
.pct-portal { background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(124,58,237,0.06)); }
.pct-shop   { background: linear-gradient(135deg, rgba(124,58,237,0.1),  rgba(16,185,129,0.06)); }

.pc-num {
  position: absolute; top: 10px; left: 12px;
  font-family: var(--font-head); font-size: 0.7rem; font-weight: 700;
  color: var(--purple-l); background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 6px; padding: 2px 7px; letter-spacing: 0.06em;
  z-index: 2;
}

.pc-body { padding: 1.3rem; }
.pc-tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); margin-bottom: 5px; display: block; }
.pc-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--heading); margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.pc-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }

/* ---------- SKILLS ---------- */
.skills-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: start;
}

.skills-badges {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
}
.skill-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem; font-weight: 500; color: var(--text);
  cursor: default;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, color 0.25s, box-shadow 0.25s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.skill-badge span { font-size: 1rem; }
.skill-badge:hover {
  border-color: var(--amber);
  background: rgba(245,158,11,0.07);
  color: var(--amber-l);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
}

.skills-bars { }
.bars-title {
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 700;
  color: var(--heading); margin-bottom: 1.6rem;
}
.sbar { margin-bottom: 1.4rem; }
.sbar-meta {
  display: flex; justify-content: space-between;
  font-size: 0.88rem; font-weight: 500; color: var(--text);
  margin-bottom: 7px;
}
.sbar-pct { color: var(--purple-l); font-weight: 700; }
.sbar-track {
  height: 7px; background: rgba(255,255,255,0.05);
  border-radius: 4px; overflow: hidden;
}
.sbar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--purple-d), var(--amber));
  border-radius: 4px;
  transition: width 1.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 8px rgba(245,158,11,0.3);
}

/* ============================================================
   SERVICES REDESIGN — ALTERNATING ROWS
   ============================================================ */

/* Remove old grid */
.services-grid { display: none; }

/* Each service row */
.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: visible;
}
.svc-row:last-child { border-bottom: none; padding-bottom: 0; }
.svc-row:first-of-type { padding-top: 0; }

/* Reversed row: swap order so content is left, image is right */
.svc-row-reverse .svc-row-img  { order: 2; }
.svc-row-reverse .svc-row-content { order: 1; }

/* Image side */
.svc-row-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
}

.svc-img-wrap {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 40px rgba(124,58,237,0.1);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s ease;
}
.svc-img-wrap:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(245,158,11,0.25),
    0 28px 70px rgba(0,0,0,0.55),
    0 0 60px rgba(245,158,11,0.1);
}
.svc-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* Real images replacing SVGs */
.svc-real-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-img-wrap:hover .svc-real-img {
  transform: scale(1.04);
}

/* Content side */
.svc-row-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  will-change: transform, opacity;
}

.svc-row-num {
  font-family: var(--font-head);
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--border2);
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1px var(--border2);
  color: transparent;
}

.svc-row-content .section-label {
  margin-bottom: 0.5rem;
}

.svc-row-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.svc-row-desc {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 1.8rem;
}

/* Feature list */
.svc-row-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.svc-row-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0;
}
.srl-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--amber);
  margin-top: 2px;
}
.svc-row-list li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.svc-row-list li strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
}
.svc-row-list li span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}


/* Responsive */
@media (max-width: 1000px) {
  .svc-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3.5rem 0;
  }
  .svc-row-reverse .svc-row-img  { order: 0; }
  .svc-row-reverse .svc-row-content { order: 0; }
  .svc-row-num { font-size: 3rem; }
}

@media (max-width: 600px) {
  .svc-row { padding: 2.5rem 0; gap: 2rem; }
  .svc-row-title { font-size: 1.6rem; }
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem; align-items: start;
}
.ci-title {
  font-family: var(--font-head);
  font-size: 1.35rem; font-weight: 700;
  color: var(--heading); margin-bottom: 0.6rem;
}
.ci-intro { color: var(--muted); font-size: 0.93rem; margin-bottom: 1.8rem; }

.ci-items { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.8rem; }
.ci-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.ci-item:hover { border-color: var(--amber); background: rgba(245,158,11,0.04); transform: translateX(5px); }
.ci-ico { font-size: 1.3rem; flex-shrink: 0; }
.ci-txt strong { display: block; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.ci-txt span { font-size: 0.9rem; color: var(--heading); }

.avail-box {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: rgba(16,185,129,0.07);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.avail-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
.avail-box strong { display: block; font-size: 0.9rem; color: #6ee7b7; margin-bottom: 2px; }
.avail-box p { font-size: 0.8rem; color: var(--muted); }
.btn-wa-full { width: 100%; justify-content: center; border-radius: 12px; padding: 13px; }

/* form */
.contact-form-wrap {
  background: rgba(255,255,255,0.018);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.contact-form-wrap form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.req { color: var(--amber); }
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  background: rgba(245,158,11,0.04);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}
.form-msg {
  display: none; padding: 12px 16px;
  border-radius: 10px; font-size: 0.88rem;
  margin-top: 0.5rem;
}
.form-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.form-error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }

/* ---------- FOOTER ---------- */
#footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 800;
  color: var(--heading); margin-bottom: 0.8rem;
}
.footer-logo span { color: var(--amber); }
.fg-brand p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; max-width: 260px; margin-bottom: 1.2rem; }

.footer-socials { display: flex; gap: 0.7rem; }
.fsoc {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.025); border: 1px solid var(--border);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
.fsoc svg { width: 18px; height: 18px; }
.fsoc:hover { border-color: var(--amber); color: var(--amber); background: rgba(245,158,11,0.07); box-shadow: 0 4px 14px rgba(245,158,11,0.12); }

.fg-col h4 { font-family: var(--font-head); font-size: 0.78rem; font-weight: 700; color: var(--heading); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.fg-col a { display: block; font-size: 0.87rem; color: var(--muted); margin-bottom: 0.55rem; transition: color 0.2s, padding-left 0.2s; }
.fg-col a:hover { color: var(--amber-l); padding-left: 4px; }

.footer-hire-btn {
  display: inline-block; margin-top: 0.7rem !important;
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--amber), #d97706);
  color: #000 !important; border-radius: 8px;
  font-weight: 700 !important; font-size: 0.82rem !important;
  transition: box-shadow 0.25s, transform 0.2s !important;
  letter-spacing: 0.01em !important;
}
.footer-hire-btn:hover { box-shadow: 0 6px 24px var(--amber-glow); transform: translateY(-1px); color: #000 !important; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 0; flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom p { font-size: 0.82rem; color: var(--muted); }
.fb-right { color: var(--muted); }

/* ---------- FLOATING WHATSAPP ---------- */
.fab-stack {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 700;
  display: flex; flex-direction: column; gap: 12px;
  align-items: center;
}
.fab-wa {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  background: #25d366; color: #fff;
  border-radius: 50%;
  font-size: 0.88rem; font-weight: 700;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: fabEntrance 0.6s 1.2s both;
}
.fab-wa svg { width: 24px; height: 24px; flex-shrink: 0; }
.fab-wa:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(37,211,102,0.6);
}
@keyframes fabEntrance {
  from { opacity: 0; transform: translateY(20px) scale(0.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- KEYFRAMES ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  #hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    gap: 2.4rem;
    padding: calc(var(--nav-h) + 28px) 24px 56px;
  }
  .hero-left { align-items: center; display: flex; flex-direction: column; }
  .hero-right { width: 100%; }
  .hero-sub, .hero-name { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .d-br { display: none; }
  .hero-right { order: -1; }
  .hero-avatar-wrap { width: 280px; height: 280px; }
  .ha-float { font-size: 0.72rem; padding: 7px 10px; }
  .haf-1 { right: -10px; } .haf-4 { left: -8px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-checks { grid-template-columns: 1fr; }

  .skills-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-container {
    padding: 0 16px;
    gap: 8px;
    /* Logo left, actions right — nothing overflows */
    justify-content: space-between;
  }
  .nav-logo { flex-shrink: 0; max-width: calc(100% - 100px); }
  .nav-actions { margin-left: 0; gap: 8px; flex-shrink: 0; }
  .nav-logo-img { height: 36px; }
  #hero {
    gap: 1.8rem;
    padding: calc(var(--nav-h) + 20px) 20px 50px;
  }
  .hero-badge { margin-bottom: 1.1rem; }
  .hero-name {
    font-size: clamp(2.1rem, 11vw, 3rem);
    line-height: 1.05;
    margin-bottom: 0.5rem;
  }
  .hero-headline { font-size: clamp(0.96rem, 4.8vw, 1.18rem); }
  .hero-sub {
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 36ch;
    margin-bottom: 1.6rem;
  }
  .hero-btns {
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 1.6rem;
  }
  .hero-btns .btn {
    min-height: 46px;
    padding: 11px 20px;
  }
  .hero-avatar-wrap { width: 250px; height: 250px; }
  .ha-ring-1 { inset: -10px; }
  .ha-ring-2 { display: none; }
  .ha-float { display: none; }
  .ha-mobile-photo { display: block; }
  .mascot-svg { display: none; }
  .mascot-core {
    background: var(--bg);
    box-shadow: 0 0 60px rgba(124,58,237,0.35), inset 0 0 30px rgba(124,58,237,0.08);
  }
  .hero-stats {
    width: 100%;
    max-width: 360px;
    justify-content: space-between;
  }
  .hs-stat { padding: 0 0.5rem; }
  .hs-stat strong { font-size: 1.55rem; }
  .hs-stat span { font-size: 0.68rem; }
  .hs-div { height: 28px; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 70px 0; }
  #hero {
    padding: calc(var(--nav-h) + 16px) 16px 42px;
    gap: 1.4rem;
  }
  .hero-badge {
    font-size: 0.66rem;
    letter-spacing: 0.03em;
  }
  .hero-headline { margin-bottom: 0.85rem; }
  .hero-sub {
    font-size: 0.9rem;
    max-width: 30ch;
    margin-bottom: 1.2rem;
  }
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-btns .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
  .hero-stats {
    max-width: 330px;
    gap: 0.4rem;
  }
  .hs-div { display: none; }
  .hs-stat { flex: 1; padding: 0; }
  .hs-stat strong { font-size: 1.35rem; }
  .hs-stat span { font-size: 0.64rem; letter-spacing: 0.04em; }
  .projects-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .fg-brand { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
  .fg-col { padding: 1rem 0; border-bottom: 1px solid var(--border); }
  .fg-col h4 { margin-bottom: 0.6rem; }
  .fg-col:last-child { border-bottom: none; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; padding: 1.2rem 0; }
  .footer-bottom p { font-size: 0.8rem; }
  .footer-hire-btn { display: block; text-align: center; }
  .hero-avatar-wrap { width: 210px; height: 210px; }
  .ha-ring-1 { inset: -8px; }
  .fab-wa { width: 52px; height: 52px; }
  .section-header.reveal { text-align: left; }
  .section-header.reveal .section-label { justify-content: flex-start; }
  .section-sub { margin: 0; }
}
/* ── Code canvas hero fix ── */
#codeCanvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ============================================================
   POLISH & REFINEMENTS
   ============================================================ */

/* About section checkmarks — amber tick */
.ac-tick { color: var(--amber); font-weight: 700; flex-shrink: 0; }
.ac-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--text);
  padding: 6px 0;
}

/* Sbar track — slightly more visible track */
.sbar-track {
  height: 6px; background: rgba(255,255,255,0.06);
  border-radius: 4px; overflow: hidden;
}
.bars-title {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700;
  color: var(--heading); margin-bottom: 1.6rem;
  letter-spacing: -0.02em;
}
.sbar-pct { color: var(--amber); font-weight: 700; }

/* Section divider subtle gradient line */
.section + .section {
  position: relative;
}
.section-alt {
  background: var(--bg2);
  position: relative;
}
.section-alt::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
}

/* Hero stats number — amber gradient on the number */
.hs-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--amber-l) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* PC-num badge — amber */
.pc-num {
  position: absolute; top: 10px; left: 12px;
  font-family: var(--font-head); font-size: 0.68rem; font-weight: 700;
  color: var(--amber); background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 6px; padding: 2px 7px; letter-spacing: 0.06em;
  z-index: 2;
}

/* svc-row-num — more refined outline text */
.svc-row-num {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 1px rgba(245,158,11,0.2);
  color: transparent;
}

/* Scrollbar — amber thumb */
::-webkit-scrollbar-thumb { background: var(--purple-d); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

/* Selection — amber */
::selection { background: var(--amber); color: #000; }

/* Custom cursor glow — keep purple but slightly less intense */
.custom-cursor-glow {
  background: rgba(124,58,237,0.2);
}

/* Footer bottom text */
.footer-bottom p { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.01em; }

/* About grid content spacing */
.about-content .section-title { margin-top: 0.4rem; }
.about-p { color: var(--muted); margin-bottom: 1rem; font-size: 0.96rem; line-height: 1.8; }

/* Btn outline refinement */
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border2);
  letter-spacing: 0.01em;
}
.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber-l);
  background: rgba(245,158,11,0.05);
  box-shadow: 0 0 20px rgba(245,158,11,0.1);
}

/* Btn project refinement */
.btn-project {
  background: transparent;
  color: var(--amber);
  border: 1.5px solid rgba(245,158,11,0.25);
  padding: 9px 20px;
  font-size: 0.83rem;
  border-radius: 8px;
}
.btn-project:hover {
  background: rgba(245,158,11,0.07);
  border-color: var(--amber);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(245,158,11,0.1);
}

/* ── Extra-small screens (< 380px) ── */
@media (max-width: 380px) {
  :root { --nav-h: 60px; }
  .nav-container { padding: 0 10px; gap: 6px; justify-content: space-between; }
  .nav-logo-img { height: 30px; }
  .nav-logo { max-width: calc(100% - 90px); }
  .nav-actions { gap: 6px; flex-shrink: 0; margin-left: 0; }
  .theme-toggle { width: 32px; height: 32px; }
  .hamburger span { width: 20px; }
  .mobile-drawer { width: 94vw; }
  .drawer-header { padding: 14px 16px; }
  .mobile-drawer a { padding: 14px 16px; font-size: 0.9rem; }
  .drawer-cta { margin: 12px 16px !important; }
}

/* ============================================================
   PRELOADER — Enhanced branded loading screen
   OW. logo · spinning orbital rings · dot grid · particles
   ============================================================ */

body.is-loading { overflow: hidden; }

/* ── Full-screen stage ── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Deep layered background ── */
.pl-bg {
  position: absolute;
  inset: 0;
  background: #060610;
  background-image:
    radial-gradient(ellipse 90% 70% at 50% -10%,  rgba(124,58,237,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 55% 55% at 85% 85%,   rgba(245,158,11,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 45% 45% at 15% 80%,   rgba(99,102,241,0.09) 0%, transparent 55%);
}

/* ── Dot grid ── */
.pl-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148,114,255,0.18) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 0%, transparent 72%);
  pointer-events: none;
  animation: plGridPulse 4s ease-in-out infinite;
}

/* ── Floating particles container ── */
.pl-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.pl-particle {
  position: absolute;
  border-radius: 50%;
  animation: plFloat linear infinite;
}

/* ── Central content ── */
.pl-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

/* ── Logo assembly ── */
.pl-logo-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

/* Core badge */
.pl-logo-core {
  position: relative;
  z-index: 4;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(124,58,237,0.18), rgba(10,8,24,0.9));
  border: 1px solid rgba(124,58,237,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.1),
    0 0 30px rgba(124,58,237,0.25),
    inset 0 1px 0 rgba(255,255,255,0.08);
  animation: plCorePulse 2.4s ease-in-out infinite;
}

.pl-logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 1.95rem;
  font-weight: 800;
  color: #ede9ff;
  letter-spacing: -0.06em;
  line-height: 1;
  text-shadow: 0 0 20px rgba(196,181,253,0.4);
}

.pl-logo-dot {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 45%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Orbital rings ── */
.pl-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border-style: solid;
  border-color: transparent;
}

.pl-ring-outer {
  inset: 0;
  border-width: 1.5px;
  border-top-color:    rgba(124,58,237,0.75);
  border-right-color:  rgba(124,58,237,0.20);
  border-bottom-color: rgba(124,58,237,0.06);
  border-left-color:   rgba(124,58,237,0.20);
  animation: plSpin 2.2s linear infinite;
  filter: drop-shadow(0 0 4px rgba(124,58,237,0.35));
}

.pl-ring-mid {
  inset: 14px;
  border-width: 1.5px;
  border-top-color:    transparent;
  border-right-color:  rgba(245,158,11,0.70);
  border-bottom-color: rgba(245,158,11,0.18);
  border-left-color:   rgba(245,158,11,0.06);
  animation: plSpin 3.1s linear infinite reverse;
  filter: drop-shadow(0 0 4px rgba(245,158,11,0.3));
}

.pl-ring-inner {
  inset: 28px;
  border-width: 1px;
  border-top-color:    rgba(196,181,253,0.50);
  border-right-color:  rgba(196,181,253,0.12);
  border-bottom-color: rgba(196,181,253,0.04);
  border-left-color:   rgba(196,181,253,0.12);
  animation: plSpin 1.8s linear infinite;
}

/* ── Orbiting dots on the rings ── */
.pl-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.pl-orbit-1 { animation: plSpin 2.2s linear infinite; }
.pl-orbit-2 { inset: 14px; animation: plSpin 3.1s linear infinite reverse; }
.pl-orbit-3 { inset: 28px; animation: plSpin 1.8s linear infinite; }

.pl-orb-dot {
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7c3aed;
  box-shadow: 0 0 8px 2px rgba(124,58,237,0.7);
}

.pl-orbit-2 .pl-orb-dot {
  width: 5px;
  height: 5px;
  background: #f59e0b;
  box-shadow: 0 0 7px 2px rgba(245,158,11,0.65);
}

.pl-orbit-3 .pl-orb-dot {
  width: 4px;
  height: 4px;
  background: #c4b5fd;
  box-shadow: 0 0 6px 1px rgba(196,181,253,0.6);
}

/* ── Tagline ── */
.pl-tagline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(196,181,253,0.5);
  margin-bottom: 26px;
  opacity: 0;
  animation: plFadeSlideUp 0.7s 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
}

/* ── Progress bar ── */
.pl-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(280px, 80vw);
  margin-bottom: 14px;
}

.pl-bar-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: visible;
  position: relative;
}

.pl-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, #6d28d9, #8b5cf6, #fbbf24);
  background-size: 200% 100%;
  transition: width 0.25s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  animation: plBarShimmer 2s linear infinite;
}

/* Glowing trailing dot */
.pl-bar-glow {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251,191,36,0.2), 0 0 10px 3px rgba(251,191,36,0.45);
  transition: opacity 0.3s;
}

.pl-pct {
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(251,191,36,0.75);
  letter-spacing: 0.04em;
  min-width: 34px;
  text-align: right;
  opacity: 0;
  animation: plFadeSlideUp 0.5s 0.6s both;
}

/* ── Status text ── */
.pl-status {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148,114,255,0.4);
  height: 1em;
  transition: opacity 0.4s ease;
  opacity: 0;
  animation: plFadeSlideUp 0.5s 0.7s both;
}

/* ── Exit ── */
.preloader.pl-exit {
  animation: plExit 0.7s cubic-bezier(0.55,0,1,0.45) forwards;
}

/* ── Keyframes ── */
@keyframes plSpin {
  to { transform: rotate(360deg); }
}

@keyframes plCorePulse {
  0%,100% {
    box-shadow: 0 0 0 1px rgba(124,58,237,0.1), 0 0 30px rgba(124,58,237,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(124,58,237,0.2), 0 0 48px rgba(124,58,237,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
  }
}

@keyframes plGridPulse {
  0%,100% { opacity: 0.8; }
  50%      { opacity: 1;   }
}

@keyframes plFadeSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes plBarShimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@keyframes plFloat {
  0%   { transform: translateY(0) scale(0.5); opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 0.7; }
  100% { transform: translateY(-220px) scale(1); opacity: 0; }
}

@keyframes plExit {
  0%   { opacity: 1; transform: scale(1); }
  40%  { opacity: 1; transform: scale(1.03); }
  100% { opacity: 0; transform: scale(1.06); }
}