/* ================================================================
   PROFESSIONAL PORTFOLIO — Shaik Abdul Rahiman
   Mobile-First | Dark Navy | Glassmorphism | Premium
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ===============================================================
   1. DESIGN TOKENS
   =============================================================== */
:root {
  /* Backgrounds */
  --bg-0: #03060F;
  --bg-1: #060C1A;
  --bg-2: #080F1F;
  --bg-3: #0C1428;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-h: rgba(255, 255, 255, 0.06);

  /* Text */
  --white: #FFFFFF;
  --text-1: #E2E8F6;
  --text-2: #8892A4;
  --text-3: #525A6A;

  /* Accent palette */
  --cyan: #00C8FF;
  --violet: #7C3AED;
  --green: #00E5A0;

  /* Gradients */
  --grad: linear-gradient(135deg, #00C8FF 0%, #7C3AED 100%);
  --grad-r: linear-gradient(135deg, #7C3AED 0%, #00C8FF 100%);
  --grad-v: linear-gradient(180deg, #00C8FF 0%, #7C3AED 100%);

  /* Glows */
  --glow-c: rgba(0, 200, 255, 0.25);
  --glow-v: rgba(124, 58, 237, 0.2);
  --glow-g: rgba(0, 229, 160, 0.2);

  /* Borders */
  --bdr: rgba(255, 255, 255, 0.06);
  --bdr-h: rgba(0, 200, 255, 0.35);
  --bdr-v: rgba(124, 58, 237, 0.35);

  /* Radius */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Spacing */
  --nav-h: 70px;

  /* Fonts */
  --ff-body: 'Inter', sans-serif;
  --ff-display: 'Space Grotesk', sans-serif;
  --ff-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: all 0.3s var(--ease);
}

/* ===============================================================
   1B. THEMES
   =============================================================== */
body.theme-light {
  --bg-0: #FFFFFF;
  --bg-1: #F8FAFC;
  --bg-2: #F1F5F9;
  --bg-3: #E2E8F0;
  --bg-glass: rgba(0, 0, 0, 0.03);
  --bg-glass-h: rgba(0, 0, 0, 0.06);

  --white: #0F172A;
  --text-1: #1E293B;
  --text-2: #334155;
  --text-3: #475569;

  --bdr: rgba(0, 0, 0, 0.08);
  --glow-c: rgba(0, 200, 255, 0.15);
}

body.theme-light #navbar {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.theme-light #navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.05);
}

body.theme-light .nav-drawer {
  background: rgba(255, 255, 255, 0.97);
}

body.theme-light .float-chip {
  background: rgba(255, 255, 255, 0.88);
}

body.theme-light .info-grid {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.theme-dark {
  --bg-0: #000000;
  --bg-1: #0A0A0A;
  --bg-2: #121212;
  --bg-3: #1A1A1A;
  --bg-glass: rgba(255, 255, 255, 0.02);
  --bg-glass-h: rgba(255, 255, 255, 0.05);
  --bdr: rgba(255, 255, 255, 0.05);
}

body.theme-dark #contact {
  background: var(--bg-0);
  border-top: 1px solid var(--bdr);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

::selection {
  background: var(--cyan);
  color: #000;
}

::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: var(--bg-0);
}

::-webkit-scrollbar-thumb {
  background: var(--grad);
  border-radius: 2px;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: var(--ff-body);
  cursor: pointer;
  border: none;
}

/* ===============================================================
   3. LAYOUT UTILS
   =============================================================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 90px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-1);
}

/* ===============================================================
   4. SECTION HEADERS
   =============================================================== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--grad);
  opacity: 0.6;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--text-3);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ===============================================================
   5. BUTTONS
   =============================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--t);
  white-space: nowrap;
  border: none;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-grad {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 24px var(--glow-c);
}

.btn-grad:hover {
  box-shadow: 0 8px 36px var(--glow-c);
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--bdr-h);
}

.btn-outline:hover {
  background: rgba(0, 200, 255, 0.07);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1.5px solid var(--bdr);
}

.btn-ghost:hover {
  border-color: var(--bdr-h);
  color: var(--white);
}

.theme-toggle-btn {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--t);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
}

.theme-toggle-btn:hover {
  color: var(--cyan);
  background: rgba(0, 200, 255, 0.1);
}

.desktop-theme {
  display: none;
  margin-left: 8px;
}

/* ===============================================================
   6. NAV
   =============================================================== */
#navbar {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 1000;
  transition: var(--t);
  background: rgba(3, 6, 15, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#navbar.scrolled {
  background: rgba(3, 6, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bdr);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-bracket {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
  font-weight: 800;
}

/* Desktop Nav Links */
.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: var(--r-xs);
  transition: var(--t);
}

.nav-link:hover,
.nav-link.active-link {
  color: var(--white);
}

.nav-link.active-link {
  background: rgba(0, 200, 255, 0.1);
  color: var(--cyan);
}

.nav-cta {
  background: var(--grad) !important;
  color: #fff !important;
  border-radius: var(--r-full) !important;
  padding: 8px 20px !important;
  margin-left: 8px;
  font-weight: 600 !important;
  box-shadow: 0 4px 20px var(--glow-c);
}

.nav-cta:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 30px var(--glow-c) !important;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--grad);
  border-radius: 1px;
  transition: var(--t);
}

/* Mobile Nav Drawer */
.nav-drawer {
  position: fixed;
  inset: var(--nav-h) 0 0;
  background: rgba(3, 6, 15, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--bdr);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  z-index: 999;
  overflow-y: auto;
}

.nav-drawer.open {
  transform: translateX(0);
}

.drawer-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 14px 16px;
  border-radius: var(--r-sm);
  transition: var(--t);
  border-left: 2px solid transparent;
}

.drawer-link:hover,
.drawer-link.active-link {
  color: var(--white);
  background: rgba(0, 200, 255, 0.07);
  border-left-color: var(--cyan);
}

.drawer-cta {
  margin-top: 12px;
  background: var(--grad);
  color: #fff;
  border-radius: var(--r-full);
  padding: 14px 20px;
  font-weight: 700;
  text-align: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px var(--glow-c);
}

/* ===============================================================
   7. HERO
   =============================================================== */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 20% 50%, rgba(0, 200, 255, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(124, 58, 237, 0.06) 0%, transparent 60%),
    var(--bg-0);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
}

.hero-inner {
  flex: 1;
  position: relative;
  z-index: 2;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* ---- Hero Photo — Organic Blob Design ---- */
.hero-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  /* Room for the background blob offset */
}

/* Base blob container */
.hero-photo-ring {
  width: 250px;
  height: 250px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Solid blue/cyan background offset blob */
.hero-photo-ring::before {
  content: '';
  position: absolute;
  inset: -6% -6% -4% -10%;
  /* Offset using percentages for perfect scaling */
  background: linear-gradient(135deg, #00C8FF, #0055FF);
  border-radius: 50% 50% 30% 70% / 50% 40% 60% 50%;
  animation: morph-blob1 8s ease-in-out infinite reverse;
  z-index: 0;
  opacity: 0.9;
  filter: blur(8px);
  /* slightly softer glow */
}

/* Thin cyan border line outlining the blob */
.hero-photo-ring::after {
  content: '';
  position: absolute;
  inset: -2% -8% 8% 2%;
  /* Offset differently for the thin line */
  border: 3px solid rgba(0, 200, 255, 0.8);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph-blob2 10s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

/* Inner image container (the photo itself) */
.hero-photo-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-1);
  position: relative;
  z-index: 1;
  /* Blob border radius */
  border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  animation: morph-blob-main 8s ease-in-out infinite;
  border: 4px solid #00C8FF;
  /* Clean cyan separator matching the glow overlay */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: contrast(1.05) saturate(1.05);
  transition: transform 0.5s var(--ease);
}

.hero-photo:hover .hero-photo-inner img {
  transform: scale(1.06);
}

/* Blob Morph Keyframes */
@keyframes morph-blob-main {
  0% {
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  }

  50% {
    border-radius: 60% 40% 30% 70% / 40% 60% 40% 60%;
  }

  100% {
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  }
}

@keyframes morph-blob1 {
  0% {
    border-radius: 50% 50% 30% 70% / 50% 40% 60% 50%;
  }

  50% {
    border-radius: 30% 70% 50% 50% / 60% 50% 50% 40%;
  }

  100% {
    border-radius: 50% 50% 30% 70% / 50% 40% 60% 50%;
  }
}

@keyframes morph-blob2 {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  50% {
    border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%;
  }

  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

/* Hero Content */
.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 680px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  border: 1px solid rgba(0, 200, 255, 0.2);
  background: rgba(0, 200, 255, 0.06);
  padding: 6px 14px;
  border-radius: var(--r-full);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s var(--ease) both;
}

.badge-pulse {
  width: 10px;
  height: 10px;
  font-size: 0.7rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 200, 255, 0.6);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(0, 200, 255, 0);
  }
}

.hero-greeting {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-2);
  margin-bottom: 0.3rem;
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}

.hero-name {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 9vw, 5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  animation: fadeUp 0.8s var(--ease) 0.2s both;
}

.hero-typewriter {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 1.4rem;
  animation: fadeUp 0.8s var(--ease) 0.3s both;
}

.tw-prefix {
  color: var(--text-2);
}

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

.tw-cursor {
  display: inline-block;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-desc {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.85;
  max-width: 500px;
  margin: 0 auto 1.8rem;
  animation: fadeUp 0.8s var(--ease) 0.4s both;
}

.hero-socials {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 1.8rem;
  animation: fadeUp 0.8s var(--ease) 0.5s both;
}

.social-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r-xs);
  color: var(--text-2);
  font-size: 0.95rem;
  transition: var(--t);
  background: var(--bg-glass);
}

.social-icon:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 200, 255, 0.07);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--glow-c);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  animation: fadeUp 0.8s var(--ease) 0.6s both;
}

/* Stats */
.hero-stats {
  width: 100%;
  border-top: 1px solid var(--bdr);
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.013);
  backdrop-filter: blur(4px);
}

.hero-stats-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.stat-item {
  text-align: center;
  padding: 22px 16px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--bdr);
}

.stat-num {
  display: block;
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-num::after {
  content: '+';
  font-size: 1.4rem;
}

.stat-lbl {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  line-height: 1.4;
}

/* ===============================================================
   8. ABOUT
   =============================================================== */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-card-img {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--bdr);
  box-shadow: 0 0 80px rgba(0, 200, 255, 0.06);
}

.about-card-img img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  filter: contrast(1.04) saturate(0.92);
}

.about-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(0, 200, 255, 0.07));
  pointer-events: none;
}

/* Corner accents on image */
.about-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  outline: 1px solid transparent;
  box-shadow:
    inset 14px 14px 0 -13px rgba(0, 200, 255, 0.6),
    inset -14px -14px 0 -13px rgba(124, 58, 237, 0.5);
  border-radius: var(--r-lg);
}

/* Float chips */
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(3, 6, 15, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  padding: 9px 14px;
  font-size: 0.75rem;
  color: var(--text-1);
  white-space: nowrap;
  animation: float 3.5s ease infinite;
}

.float-chip i {
  font-size: 0.85rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.chip-1 {
  top: 8%;
  right: -10%;
  animation-delay: 0s;
}

.chip-2 {
  bottom: 25%;
  right: -12%;
  animation-delay: 0.6s;
}

.chip-3 {
  bottom: 6%;
  left: -8%;
  animation-delay: 1.1s;
}

@keyframes float {

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

  50% {
    transform: translateY(-8px);
  }
}

/* About text side */
.about-lead {
  font-size: 1rem;
  color: var(--text-1);
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.about-lead strong {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-body {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 1.8rem;
}

/* Info grid */
/* Info grid restructured to 2x3 layout with cyan accents */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 28px;
  column-gap: 20px;
  margin-bottom: 2.5rem;
  padding: 28px 24px;
  background: rgba(10, 14, 25, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  position: relative;
}

/* Accent corner top-left */
.info-grid::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 14px;
  height: 14px;
  border-top: 1px solid #00C8FF;
  border-left: 1px solid #00C8FF;
  border-top-left-radius: 8px;
  pointer-events: none;
}

/* Accent corner bottom-right */
.info-grid::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  border-bottom: 1px solid #00C8FF;
  border-right: 1px solid #00C8FF;
  border-bottom-right-radius: 8px;
  pointer-events: none;
}

.info-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-bottom: none;
  padding: 0;
}

.info-key {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.info-key i {
  font-size: 0.8rem;
  color: #3b82f6;
  /* Deeper steel blue icon color from screenshot */
  width: 14px;
  text-align: center;
}

.info-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

.status-cyan {
  color: #00C8FF;
}

.about-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}



.skills-header-centered {
  text-align: center;
  margin-bottom: 2.5rem;
}

.skills-title-main {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.skills-subtitle-pill {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--bdr);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--text-2);
  font-weight: 500;
}

.skills-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.s-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--bdr);
  border-radius: 8px;
  padding: 16px 24px;
  color: var(--text-1);
  font-size: 1.05rem;
  font-weight: 600;
  transition: var(--t);
  flex: 1 1 calc(20% - 16px);
  /* default to 5 across mostly */
  min-width: 180px;
  /* Don't get too small */
}

@media (max-width: 1024px) {
  .s-pill {
    flex: 1 1 calc(25% - 16px);
  }
}

@media (max-width: 768px) {
  .s-pill {
    flex: 1 1 calc(33.333% - 16px);
  }
}

@media (max-width: 639px) {
  .skills-subtitle-pill {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .s-pill {
    flex: 1 1 calc(50% - 16px);
    padding: 14px 16px;
    font-size: 0.95rem;
  }
}

@media (max-width: 380px) {
  .s-pill {
    flex: 1 1 100%;
  }
}

.s-pill:hover {
  background: var(--bg-glass-h);
  border-color: var(--cyan);
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  color: var(--white);
}

.s-pill i {
  font-size: 1.3rem;
  transition: transform 0.3s var(--ease);
}



.wide-pill {
  flex: 1 1 100%;
}

/* ===============================================================
   10. PROJECTS
   =============================================================== */
.proj-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 2.5rem;
}

.f-btn {
  padding: 7px 18px;
  border: 1px solid var(--bdr);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--text-2);
  font-size: 0.8rem;
  transition: var(--t);
}

.f-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.f-btn.active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--glow-c);
}

.proj-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.proj-card {
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: var(--t);
  display: flex;
  flex-direction: column;
}

.proj-card.hidden {
  display: none !important;
}

.proj-card:hover {
  border-color: var(--cyan);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.proj-img-wrap {
  width: 100%;
  height: 220px;
  min-height: 220px;
  flex-shrink: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--bdr);
}

.proj-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.proj-card:hover .proj-img-wrap img {
  transform: scale(1.05);
}

.proj-content-wrap {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.p-title {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.p-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.p-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.p-tag {
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-2);
  font-weight: 500;
}

.proj-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--t);
  flex: 1;
}

body.theme-light .p-tag {
  border-color: rgba(0, 0, 0, 0.2);
}

body.theme-light .p-btn {
  border-color: rgba(0, 0, 0, 0.3);
  color: var(--text-1);
}

.p-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--cyan);
  color: var(--white);
}

body.theme-light .p-btn:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ===============================================================
   11. EXPERIENCE / TIMELINE
   =============================================================== */
.timeline {
  position: relative;
  max-width: 740px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan), var(--violet), transparent);
  opacity: 0.3;
}

.tl-item {
  display: flex;
  gap: 24px;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.tl-item.visible {
  opacity: 1;
  transform: none;
}

.tl-dot {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--bdr);
  background: var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: var(--t);
}

.tl-item.visible .tl-dot {
  border-color: var(--cyan);
  box-shadow: 0 0 16px var(--glow-c);
}

.tl-dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad);
}

.tl-body {
  flex: 1;
  background: var(--bg-glass);
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  padding: 20px;
  transition: var(--t);
}

.tl-body:hover {
  border-color: var(--bdr-h);
  transform: translateX(4px);
  box-shadow: 0 0 24px var(--glow-c);
}

.tl-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.tl-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--lc, var(--cyan));
}

.tl-role {
  font-family: var(--ff-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.tl-company {
  font-size: 0.78rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tl-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: 1rem;
  color: var(--text-3);
  margin-bottom: 10px;
}

.tl-desc {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 12px;
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tl-tag {
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: rgba(0, 200, 255, 0.06);
  border: 1px solid rgba(0, 200, 255, 0.18);
  color: var(--cyan);
}

body.theme-light .tl-tag,
body.theme-light .p-tag,
body.theme-light .edu-tag,
body.theme-light .s-pill,
body.theme-light .c-pill,
body.theme-light .ach-badge {
  background: transparent;
  border-color: #111;
  color: #111;
}

/* ===============================================================
   12. ACHIEVEMENTS
   =============================================================== */
.ach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 1rem;
}

.ach-card {
  display: flex;
  gap: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--bdr);
  border-radius: 8px;
  padding: 20px;
  transition: var(--t);
  position: relative;
  overflow: hidden;
}

.ach-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad);
  opacity: 0.65;
}

.ach-card:hover {
  background: var(--bg-glass-h);
  border-color: var(--cyan);
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  color: var(--white);
}



.ach-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--ac, var(--cyan));
}

.ach-body h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 5px;
}

.ach-badge {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 0.67rem;
  padding: 2px 10px;
  border-radius: var(--r-full);
  margin-bottom: 7px;
}

.ach-badge.gold {
  background: rgba(0, 200, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 200, 255, 0.25);
}

.ach-badge.silver {
  background: rgba(124, 58, 237, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.ach-badge.neutral {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  border: 1px solid var(--bdr);
}

.ach-body p {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* Certs */
.cert-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 2.5rem;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-glass);
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  transition: var(--t);
}

.cert-card:hover {
  background: var(--bg-glass-h);
  border-color: var(--cyan);
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}



.cert-ico {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--cc, var(--cyan));
}

.cert-card h4 {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 2px;
}

.cert-card span {
  font-size: 0.72rem;
  color: var(--text-3);
}

/* ===============================================================
   13. EDUCATION
   =============================================================== */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.edu-card {
  background: var(--bg-glass);
  border: 1px solid var(--bdr);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--t);
  display: flex;
  flex-direction: column;
}

.edu-card:hover {
  background: var(--bg-glass-h);
  border-color: var(--cyan);
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  color: var(--white);
}



.edu-year-bar {
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.1), rgba(124, 58, 237, 0.08));
  border-bottom: 1px solid rgba(0, 200, 255, 0.15);
  padding: 8px 18px;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.edu-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edu-icon {
  font-size: 1.5rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2px;
}

.edu-body h3 {
  font-family: var(--ff-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.edu-place {
  font-size: 0.8rem;
  color: var(--cyan);
}

.edu-grade {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-3);
}

.edu-grade strong {
  font-size: 1rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.edu-body p {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.65;
}

.edu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.edu-tag {
  font-size: 0.7rem;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bdr);
  border-radius: var(--r-full);
  color: var(--text-2);
}

/* ===============================================================
   14. CONTACT
   =============================================================== */
#contact {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  border-top: 1px solid var(--bdr);
}

.relative-z {
  position: relative;
  z-index: 2;
}

.contact-header-centered {
  text-align: center;
  margin-bottom: 3.5rem;
}

.contact-title-main {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.contact-subtitle-main {
  font-size: 1.1rem;
  color: var(--text-2);
  font-weight: 400;
}

.contact-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.c-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--bdr);
  border-radius: 12px;
  padding: 14px 24px;
  color: var(--text-1);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--t);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.c-pill:hover {
  background: var(--bg-glass-h);
  border-color: var(--bdr-h);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  color: var(--white);
}

.c-pill i {
  font-size: 1.2rem;
}

.c-pill .x-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ===============================================================
   15. FOOTER
   =============================================================== */
#footer {
  background: var(--bg-1);
  border-top: 1px solid var(--bdr);
  padding: 3rem 0 1.5rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--bdr);
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-nav a {
  font-size: 0.8rem;
  color: var(--text-3);
  transition: var(--t);
}

.footer-nav a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.footer-bottom span {
  font-size: 0.72rem;
  color: var(--text-3);
}

/* ===============================================================
   16. ANIMATIONS & UTILITIES
   =============================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Read scroll line off hero */
.scroll-hint {
  position: absolute;
  bottom: calc(6rem + 10px);
  right: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 3;
  animation: fadeUp 1s var(--ease) 1.2s both;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scroll-grow 2s ease infinite;
}

@keyframes scroll-grow {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}

/* ===============================================================
   17. DESKTOP RESPONSIVE
   =============================================================== */

/* ≥ 640px — small tablet */
@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }

  .hero-photo-ring {
    width: 255px;
    height: 255px;
  }

  .hero-stats-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-item:not(:last-child)::after {
    display: block;
  }

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

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

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

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

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

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

/* ≥ 900px — tablet/small desktop */
@media (min-width: 900px) {
  .container {
    padding: 0 40px;
  }

  .section {
    padding: 110px 0;
  }

  /* Show desktop nav, hide hamburger */
  .nav-links {
    display: flex;
  }

  .desktop-theme {
    display: flex;
  }

  .mobile-theme {
    display: none;
  }

  .hamburger {
    display: none;
  }

  /* Hero: side-by-side */
  .hero-inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 5rem;
    padding: calc(var(--nav-h) + 60px) 40px 60px;
  }

  .hero-photo {
    order: 2;
    flex-shrink: 0;
  }

  .hero-photo-ring {
    width: 300px;
    height: 300px;
  }

  .hero-content {
    order: 1;
    align-items: flex-start;
    text-align: left;
    max-width: 560px;
  }

  .hero-badge {
    margin-left: 0;
  }

  .hero-socials,
  .hero-actions,
  .hero-desc {
    justify-content: flex-start;
    text-align: left;
  }

  .hero-desc {
    margin: 0 0 1.8rem;
  }

  /* About: side by side */
  .about-wrap {
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
  }

  .chip-1,
  .chip-2,
  .chip-3 {
    display: flex;
  }

  /* Skills: 3 col */
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Projects: 2 col */
  .proj-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Projects: desktop 3D flip */
  .proj-card {
    perspective: 1000px;
    height: auto;
  }

  .proj-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .proj-card:hover .proj-card-inner {
    transform: rotateY(180deg);
  }

  .p-front,
  .p-back {
    position: absolute;
    inset: 0;
    border-radius: var(--r-lg);
    backface-visibility: hidden;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .p-front {
    gap: 8px;
  }

  .p-back {
    transform: rotateY(180deg);
    gap: 14px;
    padding: 24px;
  }

  /* Ach: 3 col */
  .ach-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Edu: 3 col */
  .edu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact: side by side */
  .contact-wrap {
    grid-template-columns: 0.9fr 1.3fr;
    gap: 4rem;
  }

  /* Footer */
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
  }

  .scroll-hint {
    display: flex;
  }
}

/* ≥ 1200px — large desktop */
@media (min-width: 1200px) {
  .hero-photo-ring {
    width: 330px;
    height: 330px;
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .proj-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .edu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===============================================================
   18. MOBILE-SPECIFIC TWEAKS (≤ 639px)
   =============================================================== */
@media (max-width: 639px) {
  .hero-name {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
  }

  .scroll-hint {
    display: none;
  }

  .chip-1,
  .chip-2,
  .chip-3 {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .about-btns {
    justify-content: center;
  }

  .c-form {
    padding: 18px;
  }
}

/* ≤ 380px */
@media (max-width: 380px) {
  .hero-photo-ring {
    width: 185px;
    height: 185px;
  }

  .hero-name {
    font-size: 2.1rem;
  }

  .stat-num {
    font-size: 1.8rem;
  }
}

/* ===============================================================
   16. MODAL (PROTOTYPE VIEW)
   =============================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  visibility: hidden;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 15, 0.9);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 1;
  max-width: 90%;
  max-height: 90%;
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  padding: 4px;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.4s var(--ease);
}

.modal.open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: rgba(3, 6, 15, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 10;
  transition: var(--t);
}

.modal-close:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #000;
  transform: rotate(90deg);
}

.modal-body {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-body img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Prototype button specific */
.p-btn-prototype {
  background: rgba(0, 200, 255, 0.05);
  border-color: rgba(0, 200, 255, 0.3);
  color: var(--cyan);
}

.p-btn-prototype:hover {
  background: var(--cyan) !important;
  color: #000 !important;
  border-color: var(--cyan) !important;
}