/* ═══════════════════════════════════════════
   MOHAMED RIZWAN PORTFOLIO — style.css
   Dark · Futuristic · Interactive
═══════════════════════════════════════════ */

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

:root {
  --bg: #030712;
  /* deeper black-blue */
  --bg2: #020617;
  --surface: #0b1224;

  --border: rgba(255, 255, 255, 0.08);

  --text: #f1f5f9;
  /* cleaner white */
  --muted: #94a3b8;
  /* better readability */

  --accent: #22d3ee;
  /* neon cyan */
  --accent2: #8b5cf6;
  /* electric purple */

  --accent-glow: rgba(34, 211, 238, 0.4);
  --accent2-glow: rgba(139, 92, 246, 0.4);

  --green: #22c55e;
  --red: #ef4444;

  --fh: 'Bebas Neue', cursive;
  --fb: 'Outfit', sans-serif;
  --fm: 'JetBrains Mono', monospace;
}

/* light theme overrides */
body.theme-light {
  --bg: #f8fafc;
  --bg2: #ffffff;
  --surface: rgba(255, 255, 255, 0.8);

  --border: rgba(15, 23, 42, 0.08);

  /* 🔥 TEXT SYSTEM FIX */
  --text: #0f172a;
  /* main text (clean dark blue) */
  --text-soft: #334155;
  /* secondary text */
  --muted: #64748b;
  /* labels / small text */

  /* 🔥 ACCENTS (more vibrant) */
  --accent: #2563eb;
  /* strong blue */
  --accent2: #7c3aed;
  /* rich purple */

  --accent-glow: rgba(37, 99, 235, 0.25);

  --green: #16a34a;
  --red: #dc2626;
}

body.theme-light {
  background:
    radial-gradient(800px 500px at 15% 10%, rgba(37, 99, 235, 0.25), transparent 60%),
    radial-gradient(700px 500px at 85% 20%, rgba(147, 51, 234, 0.22), transparent 60%),
    radial-gradient(600px 400px at 50% 100%, rgba(34, 197, 94, 0.18), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  font-family: var(--fb);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}

body {
  background:
    radial-gradient(800px 500px at 20% 0%, rgba(34, 211, 238, 0.15), transparent 60%),
    radial-gradient(700px 500px at 80% 20%, rgba(139, 92, 246, 0.15), transparent 60%),
    radial-gradient(600px 400px at 50% 100%, rgba(34, 197, 94, 0.08), transparent 60%),
    linear-gradient(180deg, #020617 0%, #030712 100%);
}

body.theme-light::before,
body.theme-light::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body.theme-light::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.25), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.22), transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(34, 197, 94, 0.18), transparent 40%);

  filter: blur(60px);
  opacity: 0.7;
}

body.theme-light::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;

  background:
    repeating-linear-gradient(135deg,
      rgba(37, 99, 235, 0.04) 0px,
      rgba(37, 99, 235, 0.04) 1px,
      transparent 1px,
      transparent 80px);

  opacity: 0.5;
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: none;
}

/* ── CURSOR ── */
#cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
  transition: transform .1s, width .25s, height .25s;
}

#cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(0, 212, 255, .4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .3s, height .3s, border-color .3s;
}

body:hover #cursor-dot {
  opacity: 1;
}

/* ── CANVAS & NOISE ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%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)' opacity='0.035'/%3E%3C/svg%3E");
}

body.theme-light .noise-overlay {
  opacity: 0.55;
  mix-blend-mode: multiply;
}

/* crisp “premium” highlight for light mode */
body.theme-light #scroll-bar {
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.35);
}

/* ── SCROLL BAR ── */
#scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 9995;
  transition: width .08s linear;
  box-shadow: 0 0 12px var(--accent);
}

/* ── PRELOADER ── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #020617, var(--bg2));
  transition: opacity .6s ease, visibility .6s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.pre-wrap {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2.2rem 2.4rem;
  border-radius: 26px;
  background:
    radial-gradient(circle at 0 0, rgba(0, 212, 255, .27), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(124, 58, 237, .28), transparent 55%),
    linear-gradient(145deg, rgba(15, 23, 42, .98), rgba(2, 6, 23, .96));
  border: 1px solid rgba(148, 163, 184, .35);
  box-shadow:
    0 30px 90px rgba(15, 23, 42, .9),
    0 0 0 1px rgba(15, 23, 42, .7);
}

body.theme-light #preloader {
  background: radial-gradient(circle at top, #e5f0ff, #ffffff);
}

body.theme-light .pre-wrap {
  background:
    radial-gradient(circle at 0 0, rgba(37, 99, 235, .20), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, .18), transparent 55%),
    linear-gradient(145deg, #ffffff, #eef2ff);
  box-shadow:
    0 24px 70px rgba(15, 23, 42, .12),
    0 0 0 1px rgba(209, 213, 219, .7);
}

.pre-orbit {
  position: relative;
  width: 160px;
  height: 160px;
}

.pre-core {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fh);
  font-size: 1.6rem;
  letter-spacing: .2em;
  background: radial-gradient(circle at 30% 0, var(--accent), var(--accent2));
  box-shadow:
    0 0 30px rgba(0, 212, 255, .45),
    0 18px 40px rgba(0, 0, 0, .7);
  color: #020617;
}

.pre-ring {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, .25);
}

.pre-ring-1::before,
.pre-ring-2::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border-top: 3px solid var(--accent);
  border-right: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 3px solid transparent;
}

.pre-ring-1 {
  animation: pre-spin 2.8s linear infinite;
}

.pre-ring-2 {
  inset: 6px;
  border-color: rgba(124, 58, 237, .4);
}

.pre-ring-2::before {
  border-top-color: var(--accent2);
  animation: pre-spin 3.4s linear infinite reverse;
}

.pre-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  box-shadow: 0 0 14px rgba(226, 232, 240, .9);
}

.pre-spark-1 {
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  animation: pre-orbit-spark 3s ease-in-out infinite;
}

.pre-spark-2 {
  bottom: 18px;
  right: 22px;
  animation: pre-orbit-spark 2s ease-in-out infinite alternate;
}

@keyframes pre-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pre-orbit-spark {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: .3;
  }

  50% {
    transform: translateX(-50%) scale(1.7);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) scale(1);
    opacity: .4;
  }
}

.pre-meta {
  min-width: 230px;
}

.pre-label {
  font-family: var(--fm);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}

.pre-name {
  font-family: var(--fh);
  font-size: 2.1rem;
  letter-spacing: .22em;
  color: var(--accent);
  margin-bottom: .9rem;
}

.pre-bar-wrap {
  height: 3px;
  background: rgba(255, 255, 255, .05);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: .7rem;
}

.pre-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0%;
  transition: width .05s linear;
  box-shadow: 0 0 14px var(--accent);
}

.pre-bottom {
  display: flex;
  align-items: baseline;
  gap: .8rem;
}

.pre-pct {
  font-family: var(--fm);
  font-size: .82rem;
  color: var(--accent);
}

.pre-tip {
  font-size: .8rem;
  color: var(--muted);
}

/* ── NAV ── */
#navbar {
  position: fixed;
  top: 1.1rem;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: .55rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .35);
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, .9), rgba(15, 23, 42, .96));
  box-shadow: 0 18px 40px rgba(15, 23, 42, .7);
  backdrop-filter: blur(18px);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

#navbar.scrolled {
  transform: translateY(-0.4rem) scale(.985);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .9);
}

body.theme-light #navbar {
  border-color: rgba(209, 213, 219, .9);
  background: radial-gradient(circle at 0 0, rgba(239, 246, 255, .9), rgba(255, 255, 255, .96));
  box-shadow: 0 18px 38px rgba(148, 163, 184, .35);
}

body.theme-light #navbar.scrolled {
  box-shadow: 0 14px 30px rgba(148, 163, 184, .4);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;

  filter: drop-shadow(0 0 12px rgba(0, 212, 255, .6));

  transition: transform .35s ease, filter .35s ease;
}

.logo-img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 18px rgba(0, 212, 255, .9));
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0 auto;
}

.nav-links a {
  font-family: var(--fb);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, .7);
  color: var(--muted);
  font-family: var(--fm);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: none;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}

.theme-toggle:hover {
  border-color: rgba(0, 212, 255, .4);
  color: var(--accent);
  transform: translateY(-1px);
}

.theme-toggle .theme-icon {
  font-size: .95rem;
}

.theme-toggle .theme-label {
  opacity: .8;
}

.nav-time {
  font-family: var(--fm);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .05em;
}

/* LIGHT MODE FIX FOR THEME BUTTON */

body.theme-light .theme-toggle {
  background: rgba(255, 255, 255, 0.7);
  color: #1e293b;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

body.theme-light .theme-toggle:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.4);
  color: #0284c7;
  transform: translateY(-1px);
}

body.theme-light .theme-toggle .theme-label {
  opacity: 1;
}

.btn-hire {
  font-family: var(--fb);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .5rem 1.2rem;
  border-radius: 6px;
  background: rgba(0, 212, 255, .1);
  border: 1px solid rgba(0, 212, 255, .3);
  color: var(--accent);
  transition: background .2s, box-shadow .2s;
}

.btn-hire:hover {
  background: rgba(0, 212, 255, .2);
  box-shadow: 0 0 20px rgba(0, 212, 255, .2);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: .3rem;
}

.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.burger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ================= MOBILE MENU MODERN STYLE ================= */

.mob-menu {
  position: fixed;
  inset: 0;
  z-index: 490;

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

  background: radial-gradient(circle at top,
      rgba(0, 212, 255, 0.08),
      rgba(5, 8, 16, .96));

  backdrop-filter: blur(20px);

  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);

  transition: all .35s ease;
}

/* menu open state */
.mob-menu.open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* menu list */
.mob-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

/* menu items animation */
.mob-menu ul li {
  opacity: 0;
  transform: translateY(20px);
  animation: menuFade .6s forwards;
}

/* stagger animation */
.mob-menu.open ul li:nth-child(1) {
  animation-delay: .1s
}

.mob-menu.open ul li:nth-child(2) {
  animation-delay: .2s
}

.mob-menu.open ul li:nth-child(3) {
  animation-delay: .3s
}

.mob-menu.open ul li:nth-child(4) {
  animation-delay: .4s
}

.mob-menu.open ul li:nth-child(5) {
  animation-delay: .5s
}

.mob-menu.open ul li:nth-child(6) {
  animation-delay: .6s
}

.mob-menu.open ul li:nth-child(7) {
  animation-delay: .7s
}

/* menu links */
.mob-menu ul a {

  font-family: var(--fh);
  font-size: 2.2rem;
  letter-spacing: .12em;

  color: var(--text);
  text-decoration: none;

  padding: .6rem 1.6rem;
  border-radius: 10px;

  transition: all .25s ease;
}

/* hover effect */
.mob-menu ul a:hover {

  color: var(--accent);

  background: rgba(0, 212, 255, .08);

  box-shadow:
    0 0 20px rgba(0, 212, 255, .15),
    inset 0 0 10px rgba(0, 212, 255, .15);

  transform: translateY(-3px) scale(1.05);

}

/* animation keyframes */
@keyframes menuFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* light theme support */
body.theme-light .mob-menu {
  background: radial-gradient(circle at top,
      rgba(0, 132, 255, .08),
      rgba(249, 250, 251, .96));
}

/* prevent scroll when menu open */
body.nav-open {
  overflow: hidden;
}

/* ── SECTIONS ── */
.section {
  min-height: 100vh;
  padding: 7rem 5vw 5rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sec-tag {
  font-family: var(--fm);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.sec-tag em {
  color: var(--accent);
  font-style: normal;
}

.sec-tag::before {
  content: '//';
  opacity: .4;
}

.sec-title {
  font-family: var(--fh);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: 1.0;
  letter-spacing: .02em;
  margin-bottom: 1rem;
}

.sec-title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sec-title.centered {
  text-align: center;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--fb);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .06em;
  padding: .9rem 2rem;
  border-radius: 8px;
  background: var(--accent);
  color: #000;
  border: none;
  box-shadow: 0 0 30px rgba(0, 212, 255, .25), 0 6px 20px rgba(0, 0, 0, .3);
  transition: box-shadow .25s, transform .2s;
  cursor: none;
}

.btn-primary:hover {
  box-shadow: 0 0 50px rgba(0, 212, 255, .45), 0 10px 30px rgba(0, 0, 0, .4);
  transform: translateY(-2px);
}

body.theme-light .btn-primary {
  color: #07111f;
  box-shadow:
    0 16px 38px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(2, 132, 199, 0.12);
}

body.theme-light .btn-primary:hover {
  box-shadow:
    0 20px 54px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(2, 132, 199, 0.22);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--fb);
  font-weight: 600;
  font-size: .9rem;
  padding: .9rem 2rem;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  transition: border-color .2s, color .2s;
  cursor: none;
}

.btn-ghost:hover {
  border-color: rgba(0, 212, 255, .4);
  color: var(--accent);
}

body.theme-light .btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

body.theme-light .btn-ghost:hover {
  border-color: rgba(2, 132, 199, 0.30);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

.w100 {
  width: 100%;
  justify-content: center;
}

/* MAGNETIC helper */
.mag {
  position: relative;
  display: inline-flex;
}

/* ── AOS REVEAL ── */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.34, 1.2, .64, 1);
}

[data-aos].aos-on,
[data-aos].in-view {
  opacity: 1;
  transform: none;
}

/* ═════════ HERO ═════════ */

#hero.section.hero {
  display: block;
  padding-top: 6rem;
  min-height: 100vh;
  padding-left: max(5vw, 2rem);
  padding-right: max(2.5vw, 1rem);
}

#hero.section.hero .hero-grid {
  max-width: none;
  width: 100%;
  margin: 0;
  /* start from left edge */
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

#hero.section.hero .hero-copy {
  min-width: 0;
  max-width: 760px;
  padding-top: .6rem;
}

#hero.section.hero .hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  justify-self: end;
  padding-right: 112px;
  /* reserve space for dock + safe gap */
}

#hero.section.hero .hero-visual .ai-orb {
  transform: translateX(-26px);
}

/* right panel: no big square card (keep clean) */
#hero.section.hero .hero-visual::before {
  content: none;
}

/* icon-only social dock pinned to right edge */
#hero.section.hero .hero-social-dock {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 3;
}

@media (max-width: 1150px) {
  #hero.section.hero .hero-visual {
    padding-right: 0;
  }

  #hero.section.hero .hero-visual .ai-orb {
    transform: none;
  }

  #hero.section.hero .hero-social-dock {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin-top: 1.1rem;
  }

  #hero.section.hero .hero-social-dock::before {
    content: none;
  }
}

#hero.section.hero .hero-social-dock::before {
  content: '';
  position: absolute;
  inset: -10px -10px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.10), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.10), transparent 58%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(16px);
  z-index: -1;
}

body.theme-light #hero.section.hero .hero-social-dock::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.12), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.10), transparent 58%),
    rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.16),
    inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

#hero.section.hero .hero-soc-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.10), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.10), transparent 58%),
    rgba(255, 255, 255, 0.02);
  color: var(--muted);
  backdrop-filter: blur(14px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

#hero.section.hero .hero-soc-icon svg {
  color: var(--accent);
  transition: transform .2s ease, filter .2s ease;
}

#hero.section.hero .hero-soc-icon:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(0, 212, 255, 0.28);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(0, 212, 255, 0.12);
}

#hero.section.hero .hero-soc-icon:hover svg {
  transform: scale(1.12);
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.25));
}

body.theme-light #hero.section.hero .hero-soc-icon {
  background:
    radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.12), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.10), transparent 58%),
    rgba(255, 255, 255, 0.74);
  border-color: rgba(15, 23, 42, 0.10);
}

#hero.section.hero .ai-orb {
  position: relative;
  z-index: 1;
}

/* second halo ring + ambient particles */
#hero.section.hero .ai-orb::before {
  content: '';
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg,
      rgba(0, 212, 255, 0.0),
      rgba(0, 212, 255, 0.35),
      rgba(124, 58, 237, 0.28),
      rgba(0, 212, 255, 0.0));
  opacity: 0.75;
  animation: haloSpin 10s linear infinite;
  pointer-events: none;
}

#hero.section.hero .ai-orb::after {
  content: '';
  position: absolute;
  inset: -28%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 18% 22%, rgba(0, 212, 255, 0.35), transparent 40%),
    radial-gradient(circle at 84% 36%, rgba(124, 58, 237, 0.28), transparent 42%),
    radial-gradient(circle at 52% 92%, rgba(0, 255, 157, 0.18), transparent 44%);
  filter: blur(18px);
  opacity: 0.55;
  animation: haloPulse 4.8s ease-in-out infinite alternate;
  pointer-events: none;
}

body.theme-light #hero.section.hero .ai-orb::after {
  opacity: 0.45;
  background:
    radial-gradient(circle at 18% 22%, rgba(14, 165, 233, 0.28), transparent 42%),
    radial-gradient(circle at 84% 36%, rgba(168, 85, 247, 0.22), transparent 44%),
    radial-gradient(circle at 52% 92%, rgba(34, 197, 94, 0.14), transparent 46%);
}

@keyframes haloSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes haloPulse {
  from {
    transform: scale(0.985);
  }

  to {
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {

  #hero.section.hero .ai-orb::before,
  #hero.section.hero .ai-orb::after {
    animation: none !important;
  }
}

/* hero-specific typography guards (prevents photo overlap) */
#hero.section.hero .hero-h1 {
  display: block;
  white-space: nowrap;
  font-size: clamp(3.6rem, 6.8vw, 7.1rem);
  line-height: 0.92;
}

.name-accent {
  position: relative;

  background: linear-gradient(120deg,
      var(--accent),
      var(--accent2),
      var(--accent));

  background-size: 200% auto;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: flow 4s linear infinite;

  font-weight: 800;

  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.hero-h1 .name-accent {
  filter:
    drop-shadow(0 0 15px rgba(0, 212, 255, 0.6)) brightness(1.2);

  transform: scale(1.05);
}


/* ===== FLOW ANIMATION ===== */
@keyframes flow {
  to {
    background-position: 200% center;
  }
}

.name-main {
  color: var(--text);
  opacity: 0.85;
  transition: 0.3s;
}

#hero.section.hero .hero-bio {
  max-width: 580px;
  font-size: 1.05rem;
}

#hero.section.hero .ai-orb {
  --orb: clamp(290px, 32vw, 410px);
  --avatar-y: 22%;
}

/* right panel polish */
#hero.section.hero .orb-ring {
  filter: saturate(1.15) contrast(1.05);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.06) inset,
    0 0 44px rgba(0, 212, 255, 0.16);
}

body.theme-light #hero.section.hero .orb-ring {
  box-shadow:
    0 0 0 2px rgba(15, 23, 42, 0.06) inset,
    0 0 44px rgba(14, 165, 233, 0.12);
}

.inner-ring {
  width: 75%;
  height: 75%;
  border-radius: 50%;
  position: absolute;
  border: 2px solid rgba(255, 255, 255, .15);
  animation: rotateInner 14s linear infinite reverse;
}

@keyframes rotateInner {
  0% {
    transform: rotate(0deg)
  }

  100% {
    transform: rotate(360deg)
  }
}

/* ── HERO: premium left panel polish (both themes) ── */
#hero.section.hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow:
    0 0 10px #22c55e,
    0 0 20px rgba(34, 197, 94, 0.5);

  animation: pulseDot 1.5s infinite;
}

/* DOT ANIMATION */
@keyframes pulseDot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

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

.eyebrow-text {
  color: var(--text-soft, var(--muted));
  font-weight: 500;
}

.hero-eyebrow:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow:
    0 12px 30px rgba(0, 212, 255, 0.2);
}

body.theme-light #hero.section.hero .hero-eyebrow {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow:
    0 10px 25px rgba(15, 23, 42, 0.08);
}

body.theme-light .eyebrow-text {
  color: #334155;
}

#hero.section.hero .hero-h1 {
  position: relative;
}

#hero.section.hero .hero-h1::after {
  content: '';
  display: block;
  width: min(560px, 78%);
  height: 7px;
  margin-top: 1.05rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 14% 50%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.0) 55%),
    radial-gradient(circle at 86% 50%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.0) 55%),
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.0) 0%,
      rgba(255, 255, 255, 0.12) 8%,
      var(--accent) 22%,
      var(--accent2) 52%,
      var(--accent) 78%,
      rgba(255, 255, 255, 0.12) 92%,
      rgba(255, 255, 255, 0.0) 100%);
  background-size: 100% 100%, 100% 100%, 240% 100%;
  background-position: 0 0, 0 0, 0% 50%;
  opacity: 0.9;
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.12),
    0 18px 70px rgba(0, 212, 255, 0.16),
    0 18px 70px rgba(124, 58, 237, 0.12);
  clip-path: polygon(0 52%, 6% 0, 94% 0, 100% 52%, 94% 100%, 6% 100%);
  animation: heroLineShimmer 6.8s ease-in-out infinite;
}

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

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

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

#hero.section.hero .accent-text {
  background: linear-gradient(120deg, var(--accent), var(--accent2), var(--accent));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroGradient 6.5s ease-in-out infinite;
}

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

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

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

#hero.section.hero .hero-role {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: rgba(0, 212, 255, 0.06);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.25);
  font-size: 1.08rem;
}

#hero.section.hero .hero-btns {
  margin-top: .25rem;
}

#hero.section.hero .hero-btns .btn-primary,
#hero.section.hero .hero-btns .btn-ghost {
  padding: 1.05rem 2.4rem;
  font-size: 1rem;
}

body.theme-light #hero.section.hero .hero-role {
  border-color: rgba(14, 165, 233, 0.20);
  background: rgba(14, 165, 233, 0.08);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.10);
}

#hero.section.hero .hero-btns .btn-primary {
  box-shadow:
    0 18px 54px rgba(0, 212, 255, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.35);
}

body.theme-light #hero.section.hero .hero-btns .btn-primary {
  box-shadow:
    0 18px 54px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(14, 165, 233, 0.10);
}

#hero.section.hero .hero-stats {
  gap: 1.7rem;
  margin-top: .15rem;
}

#hero.section.hero .hero-eyebrow {
  font-size: .78rem;
}

#hero.section.hero .hero-bio {
  font-size: 1.12rem;
  line-height: 1.8;
}

#hero.section.hero .hs-n {
  font-size: 2.2rem;
}

#hero.section.hero .hs-div {
  opacity: 0.6;
}

#hero.section.hero .hs-l {
  margin-top: .25rem;
}

@media (prefers-reduced-motion: reduce) {
  #hero.section.hero .accent-text {
    animation: none !important;
  }

  #hero.section.hero .hero-h1::after {
    animation: none !important;
  }
}

#hero.section.hero .hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-family: var(--fm);
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-decoration: none;
  opacity: 0.85;
  transition: transform .2s ease, opacity .2s ease, color .2s ease;
}

#hero.section.hero .hero-scroll:hover {
  transform: translateX(-50%) translateY(-3px);
  opacity: 1;
  color: var(--accent);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .12em;
  margin-top: 10px;
}

/* glowing circle */

.scroll-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, .08);
  border: 1px solid rgba(0, 212, 255, .35);
  box-shadow: 0 0 25px rgba(0, 212, 255, .2);
  font-size: 18px;
  color: #00d4ff;
  animation: scrollBounce 1.8s infinite;
}

/* pulse ring */

.scroll-ring {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, .3);
  animation: scrollPulse 2s infinite;
}

/* bounce arrow */

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(6px)
  }
}

/* pulse effect */

@keyframes scrollPulse {
  0% {
    transform: scale(.8);
    opacity: .7;
  }

  70% {
    transform: scale(1.6);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* hover */

.hero-scroll:hover .scroll-icon {
  box-shadow: 0 0 35px rgba(0, 212, 255, .45);
  transform: translateY(3px);
}

.scroll-text {
  font-size: .65rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  #hero.section.hero .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  #hero.section.hero .hero-copy {
    max-width: 740px;
  }

  #hero.section.hero .hero-btns {
    justify-content: center;
  }

  #hero.section.hero .hero-visual {
    padding-right: 0;
  }

  #hero.section.hero .hero-social-dock {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin-top: 1.1rem;
  }

  #hero.section.hero .hero-social-dock::before {
    content: none;
  }

  #hero.section.hero .hero-stats {
    justify-content: center;
  }

  #hero.section.hero .hero-h1::after {
    margin-left: auto;
    margin-right: auto;
  }

  /* allow wrapping on small screens */
  #hero.section.hero .hero-h1 {
    white-space: normal;
    line-height: 0.98;
  }
}

#hero {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-top: 8rem;
  min-height: 100vh;
  overflow: visible;
}

.hero-btns .btn-primary,
.hero-btns .btn-ghost {
  position: relative;
  overflow: hidden;
}

.hero-btns .btn-primary::after,
.hero-btns .btn-ghost::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -60%;
  width: 55%;
  height: 180%;
  transform: rotate(18deg) translateX(-10%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.hero-btns .btn-primary:hover::after,
.hero-btns .btn-ghost:hover::after {
  opacity: 1;
  animation: shineSweep .85s ease forwards;
}

@keyframes shineSweep {
  0% {
    transform: rotate(18deg) translateX(-20%);
  }

  100% {
    transform: rotate(18deg) translateX(260%);
  }
}

@keyframes auroraShift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(0, -12px, 0) scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero::before {
    animation: none !important;
  }

  .hero-btns .btn-primary::after,
  .hero-btns .btn-ghost::after {
    animation: none !important;
  }
}

.hero-left {
  flex: 1;
  max-width: unset;
  min-width: 0;
  position: relative;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-left::before {
  content: none;
}

.hero-left:hover::before {
  opacity: 0;
}

body.theme-light .hero-left {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* name */

.hero-h1 {
  font-family: var(--fh);
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  perspective: 800px;
}

.hero-h1::before {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: -1;

  background:
    radial-gradient(circle,
      rgba(0, 212, 255, 0.25),
      rgba(124, 58, 237, 0.2),
      transparent 70%);

  filter: blur(50px);
  opacity: 0.7;
  animation: auraPulse 4s ease-in-out infinite;
}

body.theme-light .hero-h1::before {
  background:
    radial-gradient(circle,
      rgba(14, 165, 233, 0.28),
      rgba(168, 85, 247, 0.22),
      transparent 70%);
}

@keyframes auraPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.line-overflow {
  display: block;
  overflow: hidden;
}

.line-inner {
  display: block;
}

.accent-text {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* role */

.hero-role {
  font-family: var(--fm);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
  letter-spacing: .05em;
}

.typed-cursor {
  animation: blink .7s infinite;
}

/* bio */

.hero-bio {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-bio strong {
  color: var(--text);
  font-weight: 600;
}

/* buttons */

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* stats */

.hero-stats {
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: .35s;
  min-width: 110px;
}

.stat-card i {
  font-size: 18px;
  color: #00d4ff;
  margin-bottom: 6px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, .18);
  border-color: rgba(0, 212, 255, .4);
}

.hs {
  display: flex;
  flex-direction: column;
}

.hs-n {
  font-family: var(--fh);
  font-size: 2rem;
  color: var(--accent);
  letter-spacing: .05em;
  line-height: 1;
}

.hs-l {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.hero-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* AI ORB CONTAINER */

.ai-orb {
  position: relative;
  --orb: clamp(260px, 32vw, 360px);
  --ring: calc(var(--orb) * 0.88);
  --avatar: calc(var(--orb) * 0.82);
  --orbit: calc(var(--orb) * 1.12);
  width: var(--orb);
  height: var(--orb);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: orbFloat 6s ease-in-out infinite;
}

/* BACKGROUND GLOW */

.orb-glow {
  position: absolute;
  width: var(--orb);
  height: var(--orb);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, .25), transparent 70%);
  filter: blur(50px);
}

body.theme-light .orb-glow {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25), rgba(168, 85, 247, 0.14), transparent 70%);
  filter: blur(54px);
}

/* ROTATING RING */

.orb-ring {
  position: absolute;
  width: var(--ring);
  height: var(--ring);
  border-radius: 50%;
  background: conic-gradient(#00d4ff, #7c3aed, #00d4ff);
  animation: orbRotate 12s linear infinite;
  filter: saturate(1.2) contrast(1.05);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.05) inset,
    0 0 54px rgba(0, 212, 255, 0.16),
    0 0 64px rgba(124, 58, 237, 0.10);
}

/* AVATAR */

.orb-avatar {
  width: var(--avatar);
  height: var(--avatar);
  border-radius: 50%;
  overflow: hidden;
  z-index: 5;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow:
    0 0 40px rgba(0, 212, 255, .35),
    0 0 80px rgba(124, 58, 237, .25);
  background: rgba(255, 255, 255, 0.92);
  padding: clamp(10px, 1.25vw, 14px);
  box-sizing: border-box;
  position: relative;
}

.orb-avatar::before {
  /* clean white inner ring */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.96) inset;
  pointer-events: none;
}

.orb-avatar::after {
  /* subtle highlight / lens */
  content: '';
  position: absolute;
  inset: -18%;
  border-radius: inherit;
  background:
    radial-gradient(closest-side at 30% 20%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(closest-side at 60% 80%, rgba(0, 212, 255, 0.16), transparent 60%);
  mix-blend-mode: soft-light;
  opacity: 0.9;
  pointer-events: none;
}

body.theme-light .orb-avatar {
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow:
    0 28px 78px rgba(15, 23, 42, 0.18),
    0 0 44px rgba(14, 165, 233, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

.orb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--avatar-y, 18%);
  border-radius: 50%;
}

/* FLOAT */

@keyframes orbFloat {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-14px)
  }
}

/* RING ROTATION */

@keyframes orbRotate {
  0% {
    transform: rotate(0)
  }

  100% {
    transform: rotate(360deg)
  }
}

/* ICON ORBIT */

.orbit-container {
  position: absolute;
  width: var(--orbit);
  height: var(--orbit);
  animation: orbitSpin 18s linear infinite;
}

.orbit-icon {
  position: absolute;
  font-size: 26px;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, .6));
}

.orbit-icon i {
  font-size: 22px;
  color: #00d4ff;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, .6));
}

.orbit-icon:hover i {
  color: #7c3aed;
  transform: scale(1.2);
  transition: .3s;
}

/* ICON POSITIONS */

.python {
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
}

.react {
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
}

.ai {
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
}

.dev {
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ROTATION */

@keyframes orbitSpin {
  0% {
    transform: rotate(0)
  }

  100% {
    transform: rotate(360deg)
  }
}

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-family: var(--fm);
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .12em;
  pointer-events: auto;
  padding: .35rem .6rem;
  border-radius: 999px;
  transition: transform .2s ease, color .2s ease, opacity .2s ease;
  opacity: 0.85;
  z-index: 5;
}

.scroll-hint:hover {
  transform: translateX(-50%) translateY(-3px);
  color: var(--accent);
  opacity: 1;
}

body.theme-light .scroll-hint {
  opacity: 0.95;
}

body.theme-light .scroll-hint:hover {
  opacity: 1;
}

/* scroll mouse icon */
.scroll-wheel-anim {
  width: 18px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.30);
  position: relative;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.10);
}

.scroll-wheel-anim::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateX(-50%);
  animation: wheelDown 1.2s ease-in-out infinite;
  opacity: 0.9;
}

body.theme-light .scroll-wheel-anim {
  border-color: rgba(15, 23, 42, 0.24);
  box-shadow: 0 0 18px rgba(14, 165, 233, 0.10);
}

@keyframes wheelDown {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.35;
  }

  40% {
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(10px);
    opacity: 0.05;
  }
}

/* ═════════ HERO MOBILE FINAL PERFECT ═════════ */
@media (max-width: 768px) {

  /* ===== HERO LAYOUT ===== */
  #hero.section.hero {
    padding-top: 6rem;
    text-align: center;
  }

  #hero.section.hero .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2rem;
  }

  /* ===== HERO COPY ===== */
  #hero.section.hero .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }

  /* NAME FIX */
  #hero.section.hero .hero-h1 {
    white-space: normal;
    line-height: 1.05;
  }

  /* BIO */
  #hero.section.hero .hero-bio {
    text-align: center;
    order: 2;
  }

  /* ===== SOCIAL ICONS (COLUMN BELOW TEXT) ===== */
  #hero.section.hero .hero-social-dock {
    position: static !important;
    transform: none !important;

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

    gap: 0.8rem;
    margin-top: 1.2rem;

    order: 3;
  }

  /* REMOVE FLOATING BG */
  #hero.section.hero .hero-social-dock::before {
    display: none;
  }

  /* ICON SIZE */
  #hero.section.hero .hero-soc-icon {
    width: 42px;
    height: 42px;
  }

  /* ===== BUTTONS ===== */
  #hero.section.hero .hero-btns {
    justify-content: center;
    order: 4;
  }

  /* ===== STATS ===== */
  #hero.section.hero .hero-stats {
    justify-content: center;
    order: 5;
  }

  /* ===== AVATAR (PERFECT CENTER FIX) ===== */
  #hero.section.hero .hero-visual {
    order: 6;
    width: 100%;
    display: flex;
    justify-content: center !important;
    align-items: center;
    padding-right: 0;
    margin: 0 auto;
  }

  /* REMOVE ANY SHIFT */
  #hero.section.hero .hero-visual .ai-orb {
    transform: none !important;
    margin: 0 auto;
  }

  /* ORB SIZE */
  #hero.section.hero .ai-orb {
    --orb: 240px;
  }

  /* ===== SCROLL BUTTON ===== */
  #hero.section.hero .hero-scroll {
    bottom: 10px;
  }
}

/* ═════════════════════════════════════
   ABOUT SECTION – FINAL CLEAN VERSION
═════════════════════════════════════ */

#about {
  padding: -4rem 0;
}

/* GRID */
.about-wrap {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2rem;
  align-items: center;
}

/* ═════ LEFT IMAGE PANEL ═════ */

.about-img-side {
  position: relative;
  display: flex;
  justify-content: center;
}

/* =========================
   IMAGE FRAME (MAIN)
========================= */
/* FRAME */
.a-frame {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3/4;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  margin-top: 70px;

  /* ✅ STRONGER VISIBLE GRADIENT */
  background: linear-gradient(135deg,
      rgba(0, 212, 255, 0.25),
      rgba(124, 58, 237, 0.25));

  border: 1px solid var(--border);

  /* ✅ STRONG VISIBLE GLOW */
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(0, 212, 255, 0.6),
    0 0 50px rgb(124, 58, 237);

  transition: all 0.3s ease;
}


/* =========================
   IMAGE (FULL FIT)
========================= */
.a-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

/* =========================
   LED GLOW BORDER (ALWAYS ON)
========================= */
.a-frame::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;

  background: linear-gradient(120deg,
      #00d4ff,
      #7c3aed,
      #00d4ff);

  filter: blur(16px);
  opacity: 0.9;
  /* 🔥 increased visibility */
  z-index: -1;

  animation: glowMove 5s linear infinite;
}

@keyframes glowMove {
  0% {
    filter: blur(14px) hue-rotate(0deg);
  }

  100% {
    filter: blur(20px) hue-rotate(360deg);
  }
}

/* =========================
   DARK OVERLAY (CINEMATIC)
========================= */
.a-frame::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(to bottom,
      transparent 60%,
      rgba(0, 0, 0, 0.35));

  pointer-events: none;
}


/* =========================
   FALLBACK ICON
========================= */
.af-fb {
  position: absolute;
  inset: 0;
  display: none;

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

  font-size: 3rem;
  color: var(--accent);

  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}


/* =========================
   SCANLINE EFFECT
========================= */
.a-scanline {
  position: absolute;
  inset: 0;

  background: repeating-linear-gradient(to bottom,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.02) 1px,
      transparent 2px);

  opacity: 0.2;
  pointer-events: none;
  z-index: 3;
}


/* =========================
   RESPONSIVE (SAFE)
========================= */
@media (max-width: 768px) {
  .a-frame {
    max-width: 100%;
    margin-top: 40px;
  }
}

/* ═════ BADGES ═════ */

.a-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .6rem;

  padding: .6rem 1rem;
  border-radius: 12px;

  font-size: .75rem;

  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .08);

  background: rgba(15, 23, 42, .6);

  box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
}

/* ICON SIZE */
.a-badge span {
  font-size: 1.4rem;
}

/* TEXT */
.a-badge strong {
  display: block;
  color: var(--text);
}

.a-badge em {
  font-size: .7rem;
  color: var(--muted);
  font-style: normal;
}

/* POSITION */
.a-badge-1 {
  top: 50px;
  right: -13px;
}

.a-badge-2 {
  bottom: 20px;
  left: 10px;
}

/* ═════ RIGHT SIDE ═════ */

.about-text-side h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.1;
}

.about-text-side h2 em {
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ═════ STORY TEXT (IMPORTANT) ═════ */

.about-story {
  margin-top: 1px;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.story-line {
  font-weight: 500;
  padding: .3rem 0.7rem;
  line-height: 1.2;
  color: var(--muted);
  position: relative;
  transition: .3s ease;

}

/* LEFT DOT */
.story-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;

  width: 6px;
  height: 6px;
  border-radius: 50%;

  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* HOVER */
.story-line:hover {
  transform: translateX(6px);
  color: var(--text);
}

/* HIGHLIGHT */
.story-line span {
  color: var(--accent);
  font-weight: 600;
}

.story-line strong {
  color: var(--text);
}

/* LAST LINE */
.story-line.highlight {
  color: var(--text);
  font-weight: 500;
}

/* ═════ CLEAN COMPACT INFO GRID ═════ */

/* Tablet */
@media (max-width: 768px) {
  .about-table {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .at-row {
    padding: 0.6rem 0.7rem;
  }

  .at-row span,
  .at-row strong {
    font-size: 0.75rem;
  }
}

/* ═════ LIGHT MODE ═════ */
body.theme-light .at-row {
  background: rgba(15, 23, 42, .03);
  border: 1px solid rgba(15, 23, 42, .08);
}

.about-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

/* Card */
.info-card {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 0.75rem 0.9rem;
  border-radius: 12px;

  background: var(--surface);
  border: 1px solid var(--border);

  transition: all 0.3s ease;
  cursor: pointer;
}

/* Icon */
.info-card i {
  font-style: normal;
  font-size: 1rem;
  color: var(--accent);
  min-width: 22px;
}

/* Label */
.info-card span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

/* Value */
.info-card strong {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 4px;
}

/* Hover */
.info-card:hover {
  transform: translateY(-4px);

  border-color: var(--accent);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 0 10px var(--accent);
}

/* Icon small animation */
.info-card:hover i {
  transform: scale(1.2);
}

/* Links */
.info-card a {
  color: var(--accent);
  text-decoration: none;
}

/* Mobile */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}


/* ═════ BUTTON ═════ */

#about .btn-primary {
  margin-top: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 212, 255, .2);
}

/* ═════ LIGHT MODE ═════ */

body.theme-light .a-frame {
  background: rgba(255, 0, 0, 0.6);
  border: 1px solid rgb(234, 0, 255);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 25px rgb(0, 0, 0),
    0 0 50px rgb(0, 0, 0);

}

body.theme-light .a-badge {
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
}

body.theme-light .story-line {
  color: #475569;
}

body.theme-light .story-line:hover {
  color: #0f172a;
}

body.theme-light .story-line span {
  color: #2563eb;
}

/* ═════ RESPONSIVE ═════ */
/* ═════════ MOBILE FIX – ABOUT SECTION ═════════ */

@media (max-width: 900px) {

  /* STACK EVERYTHING */
  .about-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  /* IMAGE CENTER */
  .about-img-side {
    flex-direction: column;
    align-items: center;
  }

  .a-frame {
    max-width: 280px;
  }

  /* 🔥 FIX BADGES → CONVERT TO CARDS */
  .a-badge {
    position: static;
    width: 100%;
    max-width: 280px;
    justify-content: center;
    margin-top: .6rem;
    padding: .7rem;
    border-radius: 12px;
    font-size: .8rem;
  }

  /* ICON BIGGER FOR MOBILE */
  .a-badge span {
    font-size: 1.6rem;
  }

  /* 🔥 MAKE BADGES SIDE BY SIDE */
  .about-img-side {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .a-badge {
    flex: 1 1 45%;
  }

  /* 🔥 TITLE FIX */
  .about-text-side h2 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  /* 🔥 STORY TEXT CLEAN */
  .story-line {
    font-size: .95rem;
    padding-left: 1rem;
    text-align: left;
  }

  .story-line::before {
    top: 8px;
  }

  /* INFO GRID → SINGLE */
  .about-table {
    grid-template-columns: 1fr;
  }

  /* CENTER INTEREST */
  .interests {
    justify-content: center;
  }

  /* BUTTONS CENTER */
  .btn-primary,
  .resume-btn {
    justify-content: center;
  }
}

/* ═════════ ULTIMATE SKILLS UI ═════════ */

.skills-clean {
  padding-top: 7rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 🌌 DARK AURORA BACKGROUND */
.skills-clean::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 212, 255, 0.2), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(124, 58, 237, 0.2), transparent 40%);
  filter: blur(60px);
  z-index: 0;
}

/* GRID */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
  z-index: 2;
}

/* CARD */
.skill-item {
  perspective: 1000px;
  animation: float 6s ease-in-out infinite alternate;
}

@keyframes float {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10px);
  }
}

/* INNER CARD */
.skill-inner {
  height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);

  transition: transform 0.2s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  position: relative;
}

/* ✨ ANIMATED BORDER */
.skill-item::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  background: linear-gradient(120deg, #00d4ff, #7c3aed, #00d4ff);
  background-size: 200% 200%;
  animation: borderFlow 6s linear infinite;
  opacity: 0;
  transition: 0.4s;
}

.skill-item:hover::before {
  opacity: 1;
}

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

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

/* 💡 SPOTLIGHT */
.skill-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.2), transparent 60%);
  opacity: 0;
  transition: 0.3s;
}

.skill-item:hover .skill-inner::after {
  opacity: 1;
}

/* IMAGE */
.skill-inner img {
  width: 65px;
  height: 65px;
  margin-bottom: 0.8rem;

  animation: swingZoom 3s ease-in-out infinite;
  transition: 0.4s;
}

/* SWING + ZOOM */
@keyframes swingZoom {
  0% {
    transform: rotate(-10deg) scale(0.95);
  }

  50% {
    transform: rotate(0deg) scale(1.1);
  }

  100% {
    transform: rotate(10deg) scale(0.95);
  }
}

/* HOVER IMAGE */
.skill-item:hover img {
  animation: spin360 0.7s ease forwards;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.9));
}

@keyframes spin360 {
  100% {
    transform: rotate(360deg) scale(1.2);
  }
}

/* CARD HOVER */
.skill-item:hover .skill-inner {
  transform: translateY(-12px) scale(1.06);
  box-shadow:
    0 0 60px rgba(0, 212, 255, 0.35),
    0 0 120px rgba(124, 58, 237, 0.25);
}

/* TEXT */
.skill-inner span {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  transition: 0.3s;
}

.skill-item:hover span {
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

/* ═════════ LIGHT MODE FIX ═════════ */

body.theme-light .skills-clean {
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

body.theme-light .skills-clean::before {
  opacity: 0.4;
  filter: blur(30px);
}

body.theme-light .skill-inner {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body.theme-light .skill-item:hover .skill-inner {
  transform: translateY(-10px) scale(1.05);
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.15),
    0 0 25px rgba(14, 165, 233, 0.25);
}

body.theme-light .skill-item::before {
  background: linear-gradient(120deg, #38bdf8, #818cf8, #38bdf8);
  opacity: 0.3;
}

body.theme-light .skill-inner span {
  color: #334155;
  font-weight: 500;
}

body.theme-light .skill-item:hover span {
  color: #0ea5e9;
  text-shadow: none;
}

body.theme-light .skill-inner img {
  filter: drop-shadow(0 4px 10px rgba(14, 165, 233, 0.3));
}

body.theme-light .skill-item:hover img {
  filter: drop-shadow(0 8px 18px rgba(14, 165, 233, 0.4));
}

body.theme-light .skill-inner::after {
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(14, 165, 233, 0.15), transparent 60%);
}

/* ═════════ RESPONSIVE ═════════ */

@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .skill-inner {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}


/* ================= RESUME SECTION ================= */
.resume-x {
  position: relative;
  padding: 6rem 1rem;
  color: var(--text);
  overflow: hidden;
}

.resume-x::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 20% 20%, var(--accent), transparent 60%),
    radial-gradient(600px 300px at 80% 80%, var(--accent2), transparent 60%);
  opacity: 0.05;
}

/* ================= TAB SWITCH ================= */
.rx-switch {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  max-width: 900px;
  margin: 3rem auto 4rem;
  padding: 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
}

.rx-tab {
  padding: 1.2rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.rx-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  transform: scale(1.05);
}

/* ================= TIMELINE ================= */
.rx-timeline {
  position: relative;
  max-width: 1100px;
  margin: auto;
}

/* CENTER LINE */
.rx-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 3px;
  height: 100%;
  background: linear-gradient(var(--accent), var(--accent2));
  transform: translateX(-50%);
}

/* ================= GROUP ================= */
.rx-group {
  display: none;
}

.rx-group.active {
  display: block;
}

/* ================= ITEM ================= */
.rx-item {
  position: relative;
  width: 100%;
  margin: 3rem 0;
}

/* STATIC BASE CIRCLE */
.rx-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: clamp(45px, 5vw, 60px);
  height: clamp(45px, 5vw, 60px);

  border-radius: 50%;
  z-index: 10;

  background: radial-gradient(circle at 30% 30%, #00d4ff, #7c3aed);
}


/* ================= ICON ================= */
.rx-item::after {
  content: attr(data-icon);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(26px, 3vw, 38px);
  z-index: 11;

  animation: iconFlip 3s linear infinite;

  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(0, 212, 255, 0.8),
    0 0 35px rgba(124, 58, 237, 0.6);
}

@keyframes iconFlip {
  0% {
    transform: translate(-50%, -50%) rotateY(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotateY(360deg);
  }
}

@keyframes energyRing {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
    box-shadow:
      0 0 10px rgba(0, 212, 255, 0.6),
      0 0 20px rgba(124, 58, 237, 0.5);
  }

  70% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0.3;
    box-shadow:
      0 0 30px rgba(0, 212, 255, 0.9),
      0 0 60px rgba(124, 58, 237, 0.8);
  }

  100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
}

/* ================= LIGHT MODE ICON ================= */
body.theme-light .rx-item::before {
  background: linear-gradient(135deg, #2563eb, #7c3aed);

  box-shadow:
    0 0 15px rgba(37, 99, 235, 0.4),
    0 0 25px rgba(124, 58, 237, 0.3);
}

/* ================= CARD ================= */
.rx-card {
  width: 100%;
  max-width: 420px;
  min-height: 150px;

  padding: 1.6rem;
  border-radius: 20px;

  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.02));

  border: 1px solid var(--border);
  backdrop-filter: blur(16px);

  transition: 0.3s ease;
  position: relative;
}

/* ================= PERFECT ZIG-ZAG ================= */

/* LEFT SIDE */
.rx-item:nth-child(odd) {
  display: flex;
  justify-content: flex-end;
}

.rx-item:nth-child(odd) .rx-card {
  margin-right: 30rem;
  /* small gap from center */
}

/* RIGHT SIDE */
.rx-item:nth-child(even) {
  display: flex;
  justify-content: flex-start;
}

.rx-item:nth-child(even) .rx-card {
  margin-left: 30rem;
  /* small gap from center */
}

/* ================= HOVER ================= */
.rx-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 15px 35px rgba(0, 212, 255, 0.2),
    0 0 25px rgba(124, 58, 237, 0.15);
}

/* BORDER GLOW */
.rx-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ================= TEXT ================= */
.rx-top {
  margin-bottom: 0.6rem;
}

.rx-top h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.rx-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.rx-card p:not(.desc) {
  color: var(--text);
  font-weight: 600;
}

.desc {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* BADGE */
.rx-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;

  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 0.75rem;
}

/* HIGHLIGHT */
.highlight {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: var(--accent);
}

/* ================= LIGHT MODE ================= */
body.theme-light .rx-card {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ================= MOBILE FIX ================= */
@media(max-width:768px) {

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

  /* move timeline line to left */
  .rx-timeline::before {
    left: 35px;
  }

  /* item spacing */
  .rx-item {
    padding-left: 80px;
  }

  /* CIRCLE FIX */
  .rx-item::before {
    left: 35px;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  /* ICON FIX (IMPORTANT) */
  .rx-item::after {
    left: 35px;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 35px;
  }

  /* CARD FIX */
  .rx-card {
    margin: 0 !important;
    margin-left: 10px !important;
    max-width: 100%;
    padding: 1.2rem;
  }

}

/* ═════════ PROJECT SECTION ═════════ */

#projects {
  padding: 4rem 1rem;
  position: relative;
  z-index: 2;
}

/* ===== FILTER BUTTONS ===== */
.proj-filter {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.pf-btn {
  font-family: var(--fb);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: all 0.25s ease;
}

.pf-btn:hover,
.pf-btn.active {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== STACK CONTAINER ===== */
.stack-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
  padding-bottom: 6rem;
}

@media (min-width: 900px) {
  .stack-container {
    gap: 6rem;
    padding-bottom: 12rem;
  }
}

/* ===== CARD ===== */
.stack-card {
  position: sticky;
  top: calc(85px + (var(--card-index, 1) * 20px));
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  overflow: hidden;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;

  backdrop-filter: blur(14px);
  box-shadow:
    0 -20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.02);

  transition: transform 0.4s ease, box-shadow 0.4s ease;
  z-index: var(--card-index);
}

/* HOVER EFFECT */
.stack-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 -25px 60px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(0, 212, 255, 0.08);
}

/* ===== LEFT IMAGE ===== */
.st-left {
  flex: 1.1;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.st-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  opacity: 0.9;
}

.stack-card:hover .st-left img {
  transform: scale(1.06);
  opacity: 1;
}

/* ===== RIGHT CONTENT ===== */
.st-right {
  flex: 1;
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* TITLE */
.st-top-bar h3 {
  font-family: var(--fh);
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* TAGS */
.st-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.st-tag {
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

/* DESCRIPTION */
.st-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* BUTTONS */
.st-actions {
  display: flex;
  gap: 1rem;
}

.st-btn,
.st-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: var(--fb);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}

/* PRIMARY BTN */
.st-btn {
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  color: #000;
  border: none;
}

/* HOVER */
.st-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.25);
}

.st-btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
}

/* ===== HIDE FILTER ===== */
.stack-card.hidden {
  display: none !important;
}

/* ═════════ RESPONSIVE ═════════ */

/* TABLET */
@media (max-width: 900px) {
  .stack-card {
    flex-direction: column;
    top: calc(70px + (var(--card-index, 1) * 12px));
  }

  .st-left {
    height: 260px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .st-right {
    padding: 2.2rem;
  }

  .st-top-bar h3 {
    font-size: 1.8rem;
  }
}

/* MOBILE */
@media (max-width: 500px) {
  .st-right {
    padding: 1.6rem;
  }

  .st-top-bar h3 {
    font-size: 1.5rem;
  }

  .st-desc {
    font-size: 0.85rem;
  }

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

  .st-btn,
  .st-btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════
🚀 ULTRA PREMIUM SERVICES SECTION
Dark + Light Mode Supported
═══════════════════════════════════════ */

/* ===== SECTION ===== */
.services {
  padding: 4rem 1rem;
  position: relative;
  z-index: 1;
}

/* ===== GRID ===== */
.svc-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin-inline: auto;
}

/* ===== CARD ===== */
.svc-card {
  position: relative;
  text-align: center;
  padding: 2rem;
  min-height: 360px;
  border-radius: 20px;

  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.01));

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

  backdrop-filter: blur(16px);

  transition: all 0.4s ease;
  overflow: hidden;
}

/* ===== GRADIENT BORDER ===== */
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: linear-gradient(120deg,
      transparent,
      var(--accent),
      var(--accent2),
      transparent);

  opacity: 0;
  transition: 0.4s;
}

/* ===== LIGHT SWEEP ===== */
.svc-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;

  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, 0.15),
      transparent);

  transition: 0.6s;
}

/* ===== HOVER ===== */
.svc-card:hover::before {
  opacity: 0.4;
}

.svc-card:hover::after {
  left: 100%;
}

.svc-card:hover {
  transform: translateY(-12px) scale(1.03);

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.6),
    0 0 30px var(--accent-glow),
    0 0 50px rgba(139, 92, 246, 0.2);

  border-color: rgba(255, 255, 255, 0.2);
}

/* ===== IMAGE ===== */
.svc-img {
  width: 100%;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.2rem;
  position: relative;
  border: 1px solid var(--border);

  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.1));
}

.svc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.svc-img::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.5),
      transparent);

  opacity: 0.3;
  transition: 0.4s;
}

.svc-card:hover .svc-img img {
  transform: scale(1.1);
}

.svc-card:hover .svc-img::after {
  opacity: 0.15;
}

/* ===== TEXT ===== */
.svc-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 600;
}

.svc-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.78);
  /* better for dark mode */
  margin-bottom: 1.3rem;
}

body:not(.theme-light) .svc-card p {
  color: rgba(226, 232, 240, 0.78);
  /* soft white */
}

/* ===== TOOLS ===== */
.svc-tools {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
}

.svc-tools i {
  font-size: 1.3rem;
  width: 40px;
  height: 40px;

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

  border-radius: 12px;

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

  backdrop-filter: blur(8px);

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.4);

  color: var(--text);

  transition: all 0.3s ease;
}

.svc-tools i:hover {
  transform: translateY(-6px) scale(1.1);

  background: linear-gradient(135deg,
      var(--accent),
      var(--accent2));

  color: #fff;

  box-shadow:
    0 12px 30px var(--accent-glow);
}

/* ===== LIGHT MODE ===== */
body.theme-light .svc-card {
  background: rgba(255, 255, 255, 0.85);

  border: 1px solid rgba(15, 23, 42, 0.08);

  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.05);
}

body.theme-light .svc-card:hover {
  transform: translateY(-10px) scale(1.03);

  box-shadow:
    0 25px 50px rgba(15, 23, 42, 0.15),
    0 0 25px rgba(37, 99, 235, 0.2);
}

body.theme-light .svc-card h3 {
  color: #0f172a;
}

body.theme-light .svc-card p {
  color: #334155;
  /* slate-700 → perfect readability */
}

body.theme-light .svc-img {
  background: #f1f5f9;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .svc-grid {
    grid-template-columns: 1fr;
  }

  .svc-card {
    padding: 1.6rem;
  }

  .svc-img {
    height: 130px;
  }

  .svc-card h3 {
    font-size: 1.1rem;
  }

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

/* ═══════════════════════════════
   💎 CONTACT SECTION – FINAL PRO
═══════════════════════════════ */

#contact {
  padding: 6rem 1rem;
}

.contact-sub {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  color: var(--muted);
}

/* GRID */
.contact-container {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: auto;
}

/* LEFT */
.contact-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ccard {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: 0.3s;
}

.ccard:hover {
  transform: translateY(-5px);
  border-color: #00d4ff;
}

.icon-wrap {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #00d4ff, #7b61ff);
  color: #fff;
}

/* MAP */
.map-box {
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
}

.map-box iframe {
  width: 100%;
  height: 100%;
}

/* FORM */
.pro-form {
  padding: 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  backdrop-filter: blur(15px);
}

/* GRID */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fg {
  position: relative;
  margin-bottom: 1rem;
}

/* INPUT */
.fg input,
.fg textarea,
.fg select {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  outline: none;
}

/* FOCUS */
.fg input:focus,
.fg textarea:focus,
.fg select:focus {
  border-color: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* LABEL */
.fg label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.75rem;
  transition: 0.3s;
}

/* FLOAT */
.fg input:focus+label,
.fg textarea:focus+label,
.fg select:focus+label,
.fg input:not(:placeholder-shown)+label,
.fg textarea:not(:placeholder-shown)+label,
.fg select:focus+label {
  top: -8px;
  font-size: 0.65rem;
  color: #00d4ff;
  background: var(--surface);
  padding: 0 5px;
}

/* SELECT FIX */
.select-box {
  position: relative;
}

.select-box::after {
  content: " ";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* OPTION FIX */
select option {
  background: #0f172a;
  color: #fff;
}

body.theme-light select option {
  background: #fff;
  color: #111;
}

/* BUTTON */
.btn-send {
  width: 100%;
  padding: 1rem;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #00d4ff, #7b61ff);
  color: white;
  cursor: pointer;
}

.btn-send:hover {
  transform: translateY(-3px);
}

/* SUCCESS */
.form-ok {
  display: none;
  margin-top: 1rem;
  text-align: center;
  color: #00ffa1;
}

.form-ok.show {
  display: block;
}

/* RESPONSIVE */
@media(max-width:900px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media(max-width:600px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ===== FOOTER BASE ===== */
.footer {
  position: relative;
  padding: 1.5rem 1.5rem;
  margin-top: 4rem;
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* 🔥 Animated Glow Line */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff, #ff00f7, transparent);
  animation: glowMove 4s linear infinite;
}

@keyframes glowMove {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}

/* ===== CONTAINER ===== */
.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ===== LEFT ===== */
.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ===== LOGO (FIXED + PREMIUM) ===== */
.logo-box {
  width: 40px;
  height: 45px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #00f0ff, #ff00f7);
  padding: 4px;
  position: relative;

  box-shadow:
    0 0 20px rgba(0, 240, 255, 0.6),
    0 0 40px rgba(255, 0, 247, 0.3);

  transition: 0.4s ease;
}

/* Inner dark glass */
.logo-box::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
}

/* Logo image FIX */
.logo-box img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  /* ✅ no crop */
  border-radius: 10px;
  background: transparent;
  position: relative;
  z-index: 1;
  transition: 0.4s ease;
}

/* Hover */
.logo-box:hover {
  transform: translateY(-3px) scale(1.05);
}

.logo-box:hover img {
  transform: scale(1.08);
}

/* ===== TEXT ===== */
.footer-text h3 {
  font-size: 1.05rem;
  margin: 0;
  font-weight: 600;
}

.footer-text p {
  font-size: 0.82rem;
  opacity: 0.7;
  margin: 3px 0 0;
}

/* ===== CENTER ===== */
.footer-center {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.4;
}

/* ===== BUTTON ===== */
.footer-right .back-top {
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  background: linear-gradient(135deg, #00f0ff, #ff00f7);
  color: #fff;
  transition: 0.3s ease;

  box-shadow:
    0 0 10px rgba(0, 240, 255, 0.4);
}

/* Hover */
.footer-right .back-top:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow:
    0 5px 20px rgba(255, 0, 247, 0.5),
    0 0 25px rgba(0, 240, 255, 0.4);
}

/* ===== DARK / LIGHT MODE ===== */
body.light .footer {
  background: rgba(255, 255, 255, 0.65);
  color: #111;
}

body.dark .footer {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

/* ===== SMOOTH SCROLL ===== */
html {
  scroll-behavior: smooth;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }

  .footer-left {
    justify-content: center;
  }

  .footer-right {
    margin-top: 0.5rem;
  }
}