/* ==========================================================================
   BHAVANI — DEVELOPER PORTFOLIO STYLESHEET
   Aesthetics: Sophisticated Editorial Dark + Architectural Champagne Gold
   Frontend • QA • AI-Assisted Development
   ========================================================================== */

/* --- CSS Reset & Custom Properties --- */
:root {
  /* Core Color Palette */
  --bg-black: #060607;
  --bg-primary: #0a0a0c;
  --bg-secondary: #111114;
  --bg-tertiary: #18181d;
  --bg-card: rgba(18, 18, 22, 0.75);
  --bg-card-hover: rgba(26, 26, 32, 0.95);

  /* Architectural Gold Accent (derived from Bhavani's Monogram Logo) */
  --gold: #d4af37;
  --gold-light: #e6c587;
  --gold-muted: #bfa15f;
  --gold-dark: #8c7026;
  --gold-glow: rgba(212, 175, 55, 0.18);
  --gold-border: rgba(212, 175, 55, 0.3);
  --gold-subtle: rgba(212, 175, 55, 0.08);

  /* Typography Colors */
  --text-white: #ffffff;
  --text-light: #f4f4f6;
  --text-secondary: #a0a0a8;
  --text-muted: #6e6e78;
  --text-faint: #44444c;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-active: rgba(212, 175, 55, 0.45);

  /* Typography Families */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Spacing & Layout */
  --container-max: 1280px;
  --container-padding: 2rem;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.35s var(--ease-smooth);
  --transition-slow: 0.6s var(--ease-smooth);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.8);
  --shadow-gold: 0 10px 35px rgba(212, 175, 55, 0.12);
}

/* Light Theme / Reduced Motion Safeguards */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
  background-color: var(--bg-black);
  color: var(--text-light);
}

body {
  font-family: var(--font-body);
  background-color: #1c1c33;
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--gold);
  color: var(--bg-black);
}

/* Accessibility Focus Ring */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* --- Ambient Luxury Background --- */

 #particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}


/* .ambient-background { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ambient-glow { position: absolute; border-radius: 50%; filter: blur(130px); opacity: 0.35; transition: opacity 1s ease; }
.glow-top { width: 600px; height: 600px; top: -150px; right: -100px; background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0) 70%); }
.glow-mid { width: 700px; height: 700px; top: 40%; left: -200px; background: radial-gradient(circle, rgba(160, 130, 40, 0.12) 0%, rgba(0, 0, 0, 0) 70%); }
.ambient-noise { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 32px 32px; opacity: 0.4; } */

/* --- Container & Layout Utilities --- */
.section-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  position: relative;
  z-index: 2;
}

.section-padding {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 820px;
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 700px;
}

.gold-text {
  color: var(--gold) !important;
}

/* --- Custom Cursor --- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  display: none;
  transition: opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    display: block;
  }
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--gold);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s var(--ease-smooth), height 0.3s var(--ease-smooth), border-color 0.3s ease, background-color 0.3s ease;
}

.cursor-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--bg-black);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Cursor Active / Hover States */
.custom-cursor.is-hovering .cursor-ring {
  width: 72px;
  height: 72px;
  background-color: var(--gold);
  border-color: var(--gold);
}

.custom-cursor.is-hovering .cursor-dot {
  opacity: 0;
}

.custom-cursor.is-hovering .cursor-label {
  opacity: 1;
  transform: scale(1);
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-black);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-smooth), visibility 0.6s var(--ease-smooth);
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.preloader-logo-wrap {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  padding: 4px;
  margin-bottom: 1.25rem;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 80%);
  animation: preloaderPulse 2s infinite ease-in-out;
}

.preloader-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.preloader-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.preloader-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-white);
}

.preloader-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.preloader-progress-track {
  width: 180px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.preloader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-muted), var(--gold-light));
  transition: width 0.15s linear;
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(212, 175, 55, 0); }
  50% { transform: scale(1.04); box-shadow: 0 0 24px rgba(212, 175, 55, 0.25); }
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  padding:20px 20px;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

/* .site-header.scrolled {
  background-color: rgba(6, 6, 7, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
} */
.nav-container {padding:40px 25px; height: 100%; max-width: var(--container-max); margin-left: auto; margin-right: auto; border-radius: 50px; border: 1px solid rgb(255 255 255 / 24%);  backdrop-filter: blur(18px); display: flex; background-color: transparent; align-items: center; justify-content: space-between; }

/* .nav-container {
  height: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
} */

/* Brand Link with Logo */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: opacity var(--transition-fast);
}

.brand-link:hover {
  opacity: 0.88;
}

.brand-logo-frame {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--gold-border);
  overflow: hidden;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-white);
  line-height: 1.1;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

/* Desktop Nav Items */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}

.nav-item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--gold);
  transition: width var(--transition-fast);
}

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

.nav-item:hover::after,
.nav-item.active::after {
  width: 100%;
}

.nav-item-cta {
  color: var(--gold);
  font-weight: 600;
}

/* Nav Status Pill */
.nav-status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-full);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulseGreen 2s infinite ease-in-out;
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-light);
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Mobile Toggle Hamburger */
.mobile-toggle { display: none; width: 35px; height: 35px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; border-radius: var(--radius-sm); border: 1px solid rgb(255 255 255 / 26%); background: #11111400; z-index: 1001; }

.hamburger-line {
  width: 16px;
  height: 2px;
  background-color: var(--text-white);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.mobile-toggle.is-open .line-1 {
  transform: translateY(4px) rotate(45deg);
}

.mobile-toggle.is-open .line-2 {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile Menu Fullscreen Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: #06060773;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1.25rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-menu.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  width: 90%;
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Close (X) button inside the mobile menu */
.mobile-close {
  margin-left: auto;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-secondary);
  color: var(--text-white);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.mobile-close:hover,
.mobile-close:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
  transform: rotate(90deg);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 20px;
  border-bottom: 1px solid #ffffff42;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-item {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.mobile-nav-item span {
  font-family: var(--font-mono);
  font-size:20px;
  color: var(--gold);
}

.mobile-nav-item:hover {
  color: var(--gold);
  transform: translateX(8px);
}

.mobile-menu-footer {
  padding-top: 1.5rem;
  border-top: 1px solid #ffffff42;
}

.mobile-status {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-socials {
  display: flex;
  gap: 1.5rem;
}

.mobile-socials a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
  text-decoration: underline;
}

/* --- Buttons & Interactive Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--bg-black);
  border: 1px solid var(--gold);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.22);
}

.btn-primary:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(212, 175, 55, 0.35);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--border-medium);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background-color: var(--gold-subtle);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section { min-height: 100vh; padding-top: calc(var(--header-height) + 3rem); padding-bottom: 5rem; display: flex; flex-direction: column; justify-content: center; position: relative; }
.hero-container { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 3.5rem; width: 100%; }
.hero-content { display: flex; flex-direction: column; gap: 1.6rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.95rem; background-color: rgba(212, 175, 55, 0.08); border: 1px solid rgba(212, 175, 55, 0.25); border-radius: var(--radius-full); align-self: flex-start; }
.badge-icon { color: var(--gold); display: flex; align-items: center; }
.badge-text { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.05em; color: var(--gold-light); }
.hero-title { display: flex; flex-direction: column; gap: 0.5rem; }
.hero-name-label { font-family: var(--font-mono); font-size: clamp(1rem, 1.8vw, 1.35rem); letter-spacing: 0.22em; color: var(--gold); font-weight: 600; }
.hero-statement { font-family: var(--font-display); font-size: clamp(2.4rem, 4.4vw, 4.2rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; color: var(--text-white); }
.hero-subtext { font-size: clamp(1.05rem, 1.25vw, 1.22rem); color: var(--text-secondary); line-height: 1.7; max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.15rem; margin-top: 0.5rem; }

/* Hero Metrics Bar */
.hero-meta { display: flex; align-items: center; gap: 1.5rem; padding-top: 1.85rem; margin-top: 0.5rem; border-top: 1px solid var(--border-subtle); }
.meta-item { display: flex; flex-direction: column; }
.meta-val { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text-white); line-height: 1.1; }
.meta-lbl { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.04em; }
.meta-divider { width: 1px; height: 28px; background-color: var(--border-subtle); }

/* Hero Visual: Browser Preview */
.hero-visual { position: relative; display: flex; justify-content: center; }
.browser-mockup { width: 100%; max-width: 560px; background: var(--bg-secondary); border: 1px solid var(--border-medium); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(212, 175, 55, 0.08); position: relative; transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth); }
.browser-mockup:hover { transform: translateY(-6px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(212, 175, 55, 0.16); border-color: var(--gold-border); }
.browser-header { height: 40px; background: #141418; display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; border-bottom: 1px solid var(--border-subtle); }
.browser-dots { display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-close { background-color: #ff5f56; }
.dot-minimize { background-color: #ffbd2e; }
.dot-maximize { background-color: #27c93f; }
.browser-address-bar { display: flex; align-items: center; gap: 6px; background: #0d0d10; padding: 0.25rem 0.85rem; border-radius: var(--radius-full); border: 1px solid var(--border-subtle); }

.lock-icon { color: var(--gold); }
.address-text { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-secondary); }
.browser-status-tag { display: flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 0.65rem; color: #34d399; }
.status-pulse { width: 6px; height: 6px; border-radius: 50%; background-color: #34d399; }
.browser-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background-color: #000; }
.browser-screen-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-smooth); }
.browser-mockup:hover .browser-screen-img { transform: scale(1.03); }
.browser-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 40%, rgba(6, 6, 7, 0.95) 100%); display: flex; align-items: flex-end; padding: 1.5rem; }
.overlay-card { width: 100%; background: rgba(18, 18, 22, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border-medium); border-radius: var(--radius-md); padding: 1rem 1.25rem; }
.card-eyebrow { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em; color: var(--gold); }
.card-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--text-white); margin: 0.2rem 0 0.5rem 0; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.card-tags span { font-family: var(--font-mono); font-size: 0.65rem; background: rgba(255, 255, 255, 0.06); padding: 0.2rem 0.5rem; border-radius: 4px; color: var(--text-light); }
.overlay-link { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); font-weight: 600; display: inline-block; transition: transform var(--transition-fast); }
.overlay-link:hover { transform: translateX(4px); }

/* Floating Badges */
.float-chip { position: absolute; display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.95rem; background: rgba(14, 14, 18, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border-medium); border-radius: var(--radius-full); font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-white); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); pointer-events: none; }
.chip-bottom-left { bottom: -15px; left: -20px; border-color: rgba(52, 211, 153, 0.4); }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background-color: #34d399; }
.chip-top-right { top: -15px; right: -20px; border-color: var(--gold-border); color: var(--gold-light); }
/* Scroll Indicator */
.scroll-indicator { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.65rem; opacity: 0.75; transition: opacity var(--transition-fast), transform var(--transition-fast); }
.scroll-indicator:hover { opacity: 1; transform: translateX(-50%) translateY(3px); }
.mouse-icon { width: 22px; height: 36px; border: 2px solid #fff; border-radius: 14px; display: flex; justify-content: center; padding-top: 6px; }
.mouse-wheel { width: 3px; height: 6px; background-color: var(--gold); border-radius: 2px; animation: mouseWheelMove 2s infinite ease-in-out; }
.scroll-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.16em; color: #fff; }

@keyframes mouseWheelMove {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: start; }
.about-text-col { display: flex; flex-direction: column; gap: 1.35rem; }
.about-lead { font-size: 1.25rem; color: var(--text-white); font-weight: 500; line-height: 1.6; }
.about-body { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.75; }
.about-body strong { color: var(--gold-light); font-weight: 600; }
/* Three Pillars Cards */
.pillars-container { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.pillar-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.5rem; position: relative; transition: transform var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal); }
.pillar-card:hover {transform: skewX(18deg); border-color: var(--gold-border); background: var(--bg-card-hover); }
.pillar-number { position: absolute; top: 1.25rem; right: 1.5rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }
.pillar-icon { color: var(--gold); margin-bottom: 0.75rem; }
.pillar-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text-white); margin-bottom: 0.4rem; }
.pillar-desc { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }

/* Portrait & Editorial Card */
.portrait-card { background: var(--bg-card); border: 1px solid var(--border-medium); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); position: sticky; top: calc(var(--header-height) + 2rem); }
.portrait-image-wrapper { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background-color: #000; }
.portrait-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-smooth); }
.portrait-card:hover .portrait-img { transform: scale(1.03); }
.portrait-badge-overlay { position: absolute; top: 1rem; left: 1rem; background: rgba(6, 6, 7, 0.8); backdrop-filter: blur(8px); border: 1px dashed var(--gold-border); padding: 0.3rem 0.7rem; border-radius: var(--radius-sm); }
.badge-label { font-family: var(--font-mono); font-size: 0.68rem; color: var(--gold-light); }
.portrait-info { padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; }
.portrait-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-subtle); padding-bottom: 1rem; }
.portrait-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--text-white); }
.portrait-role { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); }
.portrait-logo-small { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold-border); overflow: hidden; }
.mini-logo { width: 100%; height: 100%; object-fit: cover; }
.portrait-specs { display: flex; flex-direction: column; gap: 0.75rem; }
.spec-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.85rem; border-bottom: 1px dotted var(--border-subtle); padding-bottom: 0.4rem; }
.spec-label { font-family: var(--font-mono); color: var(--text-muted); }
.spec-value { color: var(--text-light); font-weight: 500; }
.spec-link { color: var(--gold); font-family: var(--font-mono); font-size: 0.8rem; text-decoration: underline; }
.portrait-quote { font-style: italic; font-size: 0.88rem; color: var(--text-secondary); border-left: 2px solid var(--gold); padding-left: 0.85rem; line-height: 1.5; }

/* ==========================================================================
   SKILLS SECTION (Interactive, NO fake percentages)
   ========================================================================== */
.skill-category-tabs { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 2.5rem; }
.skill-tab { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; padding: 0.6rem 1.25rem; border-radius: var(--radius-full); border: 1px solid var(--border-medium); background-color: var(--bg-secondary); color: var(--text-secondary); transition: all var(--transition-fast); }
.skill-tab:hover { border-color: var(--gold-border); color: var(--text-white); }
.skill-tab.active { background-color: var(--gold); border-color: var(--gold); color: var(--bg-black); font-weight: 600; box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.skill-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.4rem; display: flex; flex-direction: column; transition: transform var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal); position: relative; }
.skill-card:hover { transform: translateY(-4px); border-color: var(--gold-border); background: var(--bg-card-hover); box-shadow: var(--shadow-gold); }
.skill-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.skill-cat-tag { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; color: var(--gold); }
.skill-status-tag { font-family: var(--font-mono); font-size: 0.65rem; padding: 0.2rem 0.5rem; background: rgba(255, 255, 255, 0.05); border-radius: 4px; color: var(--text-muted); }
.skill-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--text-white); margin-bottom: 0.5rem; }
.skill-description { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; flex-grow: 1; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; }
.skill-tags span { font-family: var(--font-mono); font-size: 0.68rem; padding: 0.2rem 0.5rem; background-color: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-subtle); border-radius: 4px; color: var(--text-muted); }

/* ==========================================================================
   FEATURED WORK (SELECTED WORK)
   ========================================================================== */
.projects-list { display: flex; flex-direction: column; gap: 5rem; }

.project-card { background: var(--bg-card); border: 1px solid var(--border-medium); border-radius: var(--radius-xl); overflow: hidden; padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-md); transition: border-color var(--transition-normal); }

.project-card:hover { border-color: var(--gold-border); }

.project-grid { display: grid; grid-template-columns:minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3.5rem; align-items: center; }

/* Invert every alternate project on wide screens */
.project-card:nth-child(even) .project-grid { grid-template-columns: 0.85fr 1.15fr; }
.project-card:nth-child(even) .project-media-col { order: 2; }
.project-card:nth-child(even) .project-info-col { order: 1; }
/* Project Browser Frame */
.project-browser-frame { background: #111114; border: 1px solid var(--border-medium); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); position: relative; }
.browser-frame-bar { height: 38px; background: #16161c; display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; border-bottom: 1px solid var(--border-subtle); }
.frame-dots { display: flex; align-items: center; gap: 6px; }
.frame-url { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); background: rgba(0, 0, 0, 0.4); padding: 0.2rem 0.8rem; border-radius: var(--radius-full); }
.frame-badge { font-family: var(--font-mono); font-size: 0.65rem; color: var(--gold); }
.project-img-wrapper { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background-color: #000; cursor: pointer; }
.project-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-smooth); }
.project-img-wrapper:hover .project-img { transform: scale(1.03); }
.project-hover-overlay { position: absolute; inset: 0; background: rgba(6, 6, 7, 0.55); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition-fast); }
.project-img-wrapper:hover .project-hover-overlay { opacity: 1; }
.overlay-cta-pill { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; padding: 0.6rem 1.2rem; background: var(--gold); color: var(--bg-black); border-radius: var(--radius-full); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6); }
.slot-edit-indicator { margin-top: 0.85rem; display: flex; }
.edit-badge { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold-light); background: rgba(212, 175, 55, 0.1); border: 1px dashed var(--gold-border); padding: 0.35rem 0.75rem; border-radius: var(--radius-sm); }
.edit-badge code { color: var(--text-white); font-weight: 600; }

/* Project Info Column */
.project-info-col { display: flex; flex-direction: column; gap: 1.25rem; }
.project-meta-header { display: flex; align-items: center; gap: 1rem; }
.project-index { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.14em; color: var(--gold); font-weight: 600; }
.project-category { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); border-left: 1px solid var(--border-medium); padding-left: 0.75rem; }
.project-name { font-family: var(--font-display); font-size: clamp(1.8rem, 2.5vw, 2.4rem); font-weight: 700; color: var(--text-white); line-height: 1.15; }
.project-description { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; }
.project-features-list { display: flex; flex-direction: column; gap: 0.5rem; background: rgba(255, 255, 255, 0.02); border-left: 2px solid var(--gold); padding: 0.85rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.feature-bullet { display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.88rem; color: var(--text-light); }
.bullet-icon { color: var(--gold); font-size: 0.8rem; }
.project-tech-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-pill { font-family: var(--font-mono); font-size: 0.72rem; padding: 0.35rem 0.75rem; background-color: var(--bg-tertiary); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); color: var(--text-light); }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.project-role-note { font-size: 0.82rem; color: var(--text-muted); font-style: italic; border-top: 1px solid var(--border-subtle); padding-top: 0.85rem; }
.project-role-note strong { color: var(--text-light); font-style: normal; }

/* ==========================================================================
   HOW I WORK (MY APPROACH)
   ========================================================================== */
.timeline-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.timeline-stages::before { content: ''; position: absolute; top: 28px; left: 2rem; right: 2rem; height: 2px; background: linear-gradient(90deg, var(--gold-border) 0%, var(--gold) 50%, var(--border-medium) 100%); z-index: 1; }
.stage-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.85rem 1.4rem; display: flex; flex-direction: column; position: relative; z-index: 2; transition: transform var(--transition-normal), border-color var(--transition-normal); }
.stage-card:hover { transform: translateY(-6px); border-color: var(--gold-border); }
.stage-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.stage-step { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 700; color: var(--gold); }
.stage-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--bg-black); border: 2px solid var(--gold); box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }
.stage-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--text-white); margin-bottom: 0.75rem; letter-spacing: 0.04em; }
.stage-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 1.25rem; }
.stage-checks { display: flex; flex-direction: column; gap: 0.4rem; margin-top: auto; border-top: 1px solid var(--border-subtle); padding-top: 0.85rem; }
.stage-checks li { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); position: relative; padding-left: 1rem; }
.stage-checks li::before { content: '•'; position: absolute; left: 0; color: var(--gold); }

/* ==========================================================================
   AI-ASSISTED WORKFLOW SECTION
   ========================================================================== */
.pipeline-wrapper { overflow-x: auto; padding: 1.5rem 0 2rem 0; scrollbar-width: thin; scrollbar-color: var(--gold) var(--bg-secondary); }
.pipeline-track { display: flex; align-items: center; min-width: 900px; justify-content: space-between; background: var(--bg-card); border: 1px solid var(--border-medium); border-radius: var(--radius-lg); padding: 2rem 1.5rem; }
.pipeline-node { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; transition: transform var(--transition-fast); }
.pipeline-node:hover { transform: translateY(-4px); }
.node-number { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.node-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-secondary); border: 1px solid var(--border-medium); color: var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 0.65rem; transition: all var(--transition-fast); }
.node-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-white); }
.node-caption { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-secondary); margin-top: 0.2rem; }
.highlight-node .node-icon { border-color: var(--gold); background: rgba(212, 175, 55, 0.12); box-shadow: 0 0 16px rgba(212, 175, 55, 0.2); }
.pipeline-connector { font-family: var(--font-mono); font-size: 1.1rem; color: var(--gold-muted); opacity: 0.6; }
.ai-philosophy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.philosophy-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 2rem; }
.philosophy-card.highlight-card { border-color: var(--gold-border); background: rgba(212, 175, 55, 0.04); }
.philosophy-badge { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; padding: 0.3rem 0.75rem; border-radius: var(--radius-full); margin-bottom: 1rem; }
.ai-badge { background: rgba(255, 255, 255, 0.08); color: var(--text-light); }
.human-badge { background: var(--gold); color: var(--bg-black); font-weight: 600; }
.philosophy-card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--text-white); margin-bottom: 0.75rem; }
.philosophy-card p { color: var(--text-secondary); font-size: 0.98rem; line-height: 1.7; }

/* ==========================================================================
   QA MINDSET & LIVE VIEWPORT SIMULATOR (BEYOND THE PIXELS)
   ========================================================================== */
.qa-simulator-wrap { background: var(--bg-card); border: 1px solid var(--border-medium); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.simulator-controls { background: #141418; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-bottom: 1px solid var(--border-subtle); }
.controls-label { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--gold); font-weight: 600; }
.control-icon { font-size: 0.65rem; }
.viewport-buttons { display: flex; gap: 0.5rem; }
.vp-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.95rem; background: var(--bg-secondary); border: 1px solid var(--border-medium); border-radius: var(--radius-sm); color: var(--text-secondary); font-family: var(--font-mono); font-size: 0.75rem; transition: all var(--transition-fast); }
.vp-btn:hover { border-color: var(--gold-border); color: var(--text-white); }
.vp-btn.active { background: var(--gold); border-color: var(--gold); color: var(--bg-black); font-weight: 600; }
.current-width-display { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }

/* Simulator Stage */
.simulator-stage { padding: 2rem 1.5rem; background: #09090b; display: flex; justify-content: center; min-height: 480px; overflow: hidden; }
.simulator-frame { max-width: 100%; transition: width 0.5s var(--ease-smooth); border: 1px solid var(--border-medium); border-radius: var(--radius-md); background: #0f0f13; overflow: hidden; box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7); }

/* Inner Simulated App */
.sim-inner-app { display: flex; flex-direction: column; min-height: 440px; }
.sim-app-header { height: 52px; background: #18181e; border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; }
.sim-brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--text-white); }
.sim-brand-dot { width: 8px; height: 8px; background-color: var(--gold); border-radius: 50%; }
.sim-nav-desktop { display: flex; gap: 1.25rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-secondary); }
.sim-nav-mobile-btn { display: none; font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); background: rgba(212, 175, 55, 0.1); padding: 0.3rem 0.6rem; border-radius: 4px; }
.sim-app-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; flex-grow: 1; }
.sim-hero { background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 1.25rem; }
.sim-pill { display: inline-block; font-family: var(--font-mono); font-size: 0.65rem; background: rgba(52, 211, 153, 0.15); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); padding: 0.2rem 0.6rem; border-radius: var(--radius-full); margin-bottom: 0.6rem; }
.sim-hero h4 { font-family: var(--font-display); font-size: 1.25rem; color: var(--text-white); margin-bottom: 0.35rem; }
.sim-hero p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.sim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.sim-card { background: #141419; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; }
.sim-card-title { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--text-white); margin-bottom: 0.35rem; }
.sim-card p { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.4; margin-bottom: 0.75rem; }
.sim-check-tag { align-self: flex-start; font-family: var(--font-mono); font-size: 0.65rem; color: #34d399; background: rgba(52, 211, 153, 0.1); padding: 0.15rem 0.5rem; border-radius: 4px; }
.sim-app-footer { height: 38px; background: #121216; border-top: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); }

/* Simulator Viewport Adaptations */

/* Scenarios Row */
.qa-scenarios-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 1.5rem; background: #111115; border-top: 1px solid var(--border-subtle); }
.scenario-item { display: flex; gap: 0.85rem; align-items: flex-start; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.scenario-icon { color: var(--gold); font-weight: bold; }
.scenario-item strong { color: var(--text-white); }

/* ==========================================================================
   CURRENTLY EXPLORING SECTION
   ========================================================================== */
.exploring-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1.5rem; }
.exploring-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.85rem; display: flex; flex-direction: column; transition: transform var(--transition-normal), border-color var(--transition-normal); }
.exploring-card:hover { transform: translateY(-4px); border-color: var(--gold-border); }
.exploring-status-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
.exploring-category { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--gold); }
.exploring-tag { font-family: var(--font-mono); font-size: 0.65rem; padding: 0.2rem 0.6rem; border-radius: var(--radius-full); }
.exploring-tag.in-progress { background: rgba(52, 211, 153, 0.12); color: #34d399; }
.exploring-tag.experimenting { background: rgba(212, 175, 55, 0.15); color: var(--gold-light); }
.exploring-tag.integrating { background: rgba(96, 165, 250, 0.12); color: #93c5fd; }
.exploring-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--text-white); margin-bottom: 0.6rem; }
.exploring-desc { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 1.25rem; flex-grow: 1; }
.exploring-topics { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.exploring-topics span { font-family: var(--font-mono); font-size: 0.7rem; background: rgba(255, 255, 255, 0.04); padding: 0.25rem 0.6rem; border-radius: 4px; color: var(--text-light); }

/* ==========================================================================
   EXPERIENCE / JOURNEY SECTION
   ========================================================================== */
.editable-hint { display: inline-block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); margin-left: 0.5rem; }
.timeline-container { display: flex; flex-direction: column; gap: 2rem; position: relative; max-width: 860px; margin-left: auto; margin-right: auto; padding-left: 2rem; }
.timeline-container::before { content: ''; position: absolute; top: 1rem; bottom: 1rem; left: 5px; width: 2px; background: linear-gradient(180deg, var(--gold) 0%, var(--border-medium) 100%); }
.timeline-entry { position: relative; }
.timeline-dot { position: absolute; top: 1.5rem; left: -2rem; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: var(--bg-black); border: 2px solid var(--gold); box-shadow: 0 0 12px rgba(212, 175, 55, 0.5); }
.timeline-content { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.85rem; transition: transform var(--transition-normal), border-color var(--transition-normal); }
.timeline-content:hover { transform: translateX(6px); border-color: var(--gold-border); }
.timeline-badge-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.timeline-role { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--gold); font-weight: 600; }
.timeline-period { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.timeline-company { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--text-white); margin-bottom: 0.75rem; }
.timeline-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.25rem; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.timeline-tags span { font-family: var(--font-mono); font-size: 0.7rem; background: rgba(255, 255, 255, 0.04); padding: 0.25rem 0.6rem; border-radius: 4px; color: var(--text-muted); }

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-card { background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.12) 0%, rgba(14, 14, 18, 0.85) 60%); border: 1px solid var(--gold-border); border-radius: var(--radius-xl); padding: clamp(2.5rem, 6vw, 5rem); text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.08); position: relative; overflow: hidden; }
.contact-content { max-width: 720px; margin-left: auto; margin-right: auto; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.contact-headline { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; line-height: 1.08; color: var(--text-white); letter-spacing: -0.02em; }
.contact-subtext { font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: var(--text-secondary); line-height: 1.65; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; margin-top: 1rem; }

/* Copy Email Bar */
.copy-email-bar { display: inline-flex; align-items: center; gap: 1rem; padding: 0.6rem 1.25rem; background: rgba(0, 0, 0, 0.6); border: 1px solid var(--border-medium); border-radius: var(--radius-full); margin-top: 1.5rem; }
.email-address { font-family: var(--font-mono); font-size: 0.88rem; color: var(--text-light); }
.copy-email-btn { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold); padding: 0.35rem 0.75rem; background: rgba(212, 175, 55, 0.1); border-radius: var(--radius-full); transition: all var(--transition-fast); }
.copy-email-btn:hover { background: var(--gold); color: var(--bg-black); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #040405; border-top: 1px solid var(--border-subtle); padding-top: 5rem; }
.footer-container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; padding-bottom: 4rem; }
.footer-brand-col { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-logo-link { display: flex; align-items: center; gap: 1rem; }
.footer-logo-img { width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--gold-border); object-fit: cover; }
.footer-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-white); display: block; }
.footer-role { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold); }
.footer-tagline { font-size: 0.95rem; color: var(--text-secondary); max-width: 420px; line-height: 1.6; }
.footer-links-col { display: flex; gap: 4rem; justify-content: flex-end; }
.footer-links-group { display: flex; flex-direction: column; gap: 1rem; }
.footer-links-title { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--text-white); text-transform: uppercase; }
.footer-links-group ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links-group a { font-size: 0.88rem; color: #bcbcc5; transition: color var(--transition-fast); }
.footer-links-group a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding: 1.5rem 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; }
.copyright-text { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.back-to-top-btn { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); display: inline-flex; align-items: center; gap: 0.4rem; transition: transform var(--transition-fast); }
.back-to-top-btn:hover { transform: translateY(-2px); }
/* ==========================================================================
   MODAL / LIGHTBOX
   ========================================================================== */
.project-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 2rem; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.project-modal.is-open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 6, 0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.modal-container { position: relative; z-index: 2; background: var(--bg-secondary); border: 1px solid var(--gold-border); border-radius: var(--radius-lg); max-width: 760px; width: 100%; max-height: 85vh; overflow-y: auto; box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9); padding: 2.5rem; }
.modal-close-btn { position: absolute; top: 1.25rem; right: 1.25rem; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-tertiary); border: 1px solid var(--border-medium); color: var(--text-white); font-size: 1.5rem; display: flex; align-items: center; justify-content: center; line-height: 1; transition: all var(--transition-fast); }

.modal-close-btn:hover { background: var(--gold); color: var(--bg-black); }

/* Toast Notification */
.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--gold); color: var(--bg-black); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; padding: 0.75rem 1.25rem; border-radius: var(--radius-sm); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6); z-index: 99999; transform: translateY(100px); opacity: 0; transition: transform 0.3s var(--ease-smooth), opacity 0.3s ease; pointer-events: none; }
.toast.show { transform: translateY(0); opacity: 1; }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Pixel-Tested)
   ========================================================================== */
   @media (max-width: 1100px) {
  .portrait-card { margin-left: auto; margin-right: auto; width: 100%; }
  .hero-visual { margin-left: auto; margin-right: auto; width: 100%; display: flex; justify-content: center; }
  .hero-container {grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual {order: 2; }
  .about-grid {grid-template-columns: 1fr; gap: 3rem; }
  .portrait-card {position: static; max-width: 580px; }
  .timeline-stages {grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .timeline-stages::before {display: none; }
  .about-grid, .hero-container {grid-template-columns: minmax(0, 1fr); }
  .project-grid { gap: 30px;}
  .site-footer { padding-top: 60px;}
}
/* Pipeline 901–1000px: track needs ~900px, so wrap it rather than scroll */
@media (min-width: 901px) and (max-width: 1000px) {
  .pipeline-wrapper { overflow: visible; }
  .pipeline-track { min-width: 0; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 1.5rem 1rem; }
  .pipeline-node { width: calc(25% - 1rem); min-width: 120px; padding: 10px; border: 1px solid #d3af37;}
  .pipeline-connector { display: none; }
}
@media (max-width: 991px) {
  .nav-links, .nav-status-pill { display: none; }
  .mobile-toggle { display: flex; }
  .project-grid, .project-card:nth-child(even) .project-grid { grid-template-columns: 1fr; gap: 2rem; }
  .projects-list { gap: 30px;}
  .footer-links-col { justify-content: flex-start;}
  .nav-container {
    padding: 30px 20px;}
}
@media (max-width: 900px) {
  .project-grid, .project-card:nth-child(even) .project-grid, .footer-container, .qa-scenarios-row, .ai-philosophy-grid {grid-template-columns: minmax(0, 1fr); }
  .pipeline-wrapper { overflow: visible; padding: 1rem 0 1.5rem; }
  .pipeline-track {min-width: 0; flex-direction: column; align-items: stretch; gap: 0.25rem; padding: 1.5rem 1rem; }
  .pipeline-node { width: 100%; }
  .pipeline-node:hover { transform: none; }
  .pipeline-connector {align-self: center; transform: rotate(90deg); line-height: 1; padding: 0.35rem 0; }
  .node-caption { max-width: 100%; overflow-wrap: anywhere; }
  .pipeline-track {flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 1.5rem 1rem;}
  .pipeline-node { width: calc(25% - 1rem); min-width: 120px; padding: 10px; border: 1px solid #d3af37;}
  .pipeline-connector { display: none; }
  .project-card:nth-child(even) .project-media-col {order: 1; }
  .project-card:nth-child(even) .project-info-col {order: 2; }
  .footer-container {grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-links-col { width: 100%; max-width: 350px; margin: auto; justify-content: center; border: 1px solid #d4af3a; padding: 20px 21px; gap: 30px;}
  .qa-scenarios-row {grid-template-columns: 1fr; gap: 1rem; }
  .ai-philosophy-grid {grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-logo-link { justify-content: center;}
  .footer-tagline { max-width: 100%; text-align: center;}
}
@media (max-width: 640px) {
.copy-email-bar { padding: 0.9rem 1rem; gap: 0.75rem; }
.email-address { font-size: clamp(0.72rem, 3.6vw, 0.88rem); }
.copy-email-bar { padding: 0.9rem 1rem; gap: 0.75rem; }
.email-address { font-size: clamp(0.72rem, 3.6vw, 0.88rem); }
:root {--container-padding: 1.25rem; }
.hero-actions {flex-direction: column; align-items: stretch; }
.btn {width: 100%; }
.timeline-stages {grid-template-columns: 1fr; }
.hero-meta {flex-direction: column; align-items: flex-start; gap: 1rem; }
.meta-divider {display: none; }
.float-chip {display: none; }
.skills-grid {grid-template-columns: 1fr; }
.exploring-grid {grid-template-columns: 1fr; }
.contact-actions {flex-direction: column; width: 100%; }
.copy-email-bar {width: 100%; flex-direction: column; text-align: center; }
.footer-bottom-inner {flex-direction: column; gap: 1rem; text-align: center; }
.timeline-container {padding-left: 1.5rem; }
.timeline-dot {left: -1.5rem; }
.modal-container {padding: 1.5rem; }
.section-padding { padding-top: 40px; padding-bottom: 40px;}
.timeline-stages, .skills-grid, .exploring-grid {grid-template-columns: minmax(0, 1fr); }
.simulator-controls { padding: 1rem; }
.viewport-buttons { width: 100%; }
.vp-btn { flex: 1 1 100%; justify-content: center; padding: 0.55rem 0.75rem; }
.simulator-stage { padding: 1rem 0.75rem; min-height: 0; }
.qa-scenarios-row { padding: 1rem; }
.pipeline-node { min-width: 250px;}
.ai-philosophy-grid { margin-top: 10px;}
.skill-card { width: 100%; max-width: 320px; margin: auto; }
.brand-logo-frame { width: 35px; height: 35px;}
.brand-name { letter-spacing: 1px; font-size: 15px;}
.mobile-toggle { width: 30px; height: 30px;}

}

@media (max-width: 800px){
    .pipeline-node { width: calc(34% - 1rem); min-height: 165px;}
}

@container simframe (max-width: 860px) {
  .sim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sim-nav-desktop { gap: 0.8rem; flex-wrap: wrap; }
}
@container simframe (max-width: 560px) {
  .sim-nav-desktop { display: none; }
  .sim-nav-mobile-btn { display: block; }
  .sim-grid { grid-template-columns: minmax(0, 1fr); }
  .sim-app-body { padding: 1rem; gap: 1rem; }
  .sim-app-header, .sim-app-footer { padding-left: 1rem; padding-right: 1rem; }
  .sim-app-footer { flex-direction: column; text-align: center; gap: 0.3rem; }
  .sim-hero { padding: 1rem; }
  .sim-hero h4 { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  /* .spec-row { flex-direction: column; align-items: flex-start; gap: 0.2rem; } */
  .spec-value, .spec-link { text-align: left; flex: none; width: 100%; }
  .browser-header, .browser-frame-bar { padding: 0 0.75rem; }
  .browser-status-tag, .frame-badge { display: none; }
  .browser-address-bar, .frame-url { margin-left: auto; max-width: 70%; }
  .project-card { padding: 15px;}
  .portrait-info { padding: 10px;}
  .about-lead { font-size: 16px; line-height: 1.4;}
  .about-body {font-size: 15px; line-height: 1.4;}
  .exploring-card, .philosophy-card{ padding: 20px 20px;}
  .timeline-container::before, .timeline-dot {display: none;}
  .timeline-container { padding-left: 0px; }
  .contact-content { gap: 15px;}
  .contact-card { padding: 30px 20px;}
  .copy-email-bar { margin-top: 10px;}
  .footer-container { padding:40px 20px;}
  .site-footer { padding:0;}
  .nav-container { padding: 25px 20px; }
  .hamburger-line { height: 1px;}
  .hero-section { padding-top: 100px;}

}
@media (max-width: 374px) {
  :root { --container-padding: 1rem; }
  .brand-tag { display: none; }
  .mobile-nav-item,.mobile-nav-item span { font-size:17px;}
  .pillar-card, .modal-container { padding: 1.1rem; }
  .btn { padding: 10px 15px; }
  .toast { left: 1rem; right: 1rem; bottom: 1rem; text-align: center; }
  .section-title { font-size: 24px; }

}

/* ==========================================================================
   RESPONSIVE HARDENING (320px → desktop)
   ========================================================================== */
/* Grid/flex children may shrink below their content width -> no sideways scroll */
.about-grid,
.hero-container,
.project-grid,
.footer-container,
.pillars-container,
.skills-grid,
.exploring-grid,
.timeline-stages {
  min-width: 0;
}
.about-grid > *,
.hero-container > *,
.project-grid > *,
.footer-container > *,
.pillars-container > *,
.skills-grid > *,
.exploring-grid > *,
.timeline-stages > * {
  min-width: 0;
}

img, svg, video, canvas { max-width: 100%; }
h1, h2, h3, h4, p { overflow-wrap: break-word; }

/* ==========================================================================
   FIXES v2 — real-device issues (nav, specs, pipeline, simulator, email)
   ========================================================================== */

/* Nav: never break words inside links/brand */
.nav-item, .brand-name, .brand-tag, .status-text { white-space: nowrap; }
.brand-info { min-width: 0; }
.nav-status-pill { flex-shrink: 0; }
.nav-links { gap: clamp(0.9rem, 1.6vw, 1.85rem); }

/* About card: label / value rows */
.spec-row { gap: 1rem; flex-wrap: wrap; }
.spec-label { flex: 0 0 auto; }
.spec-value, .spec-link { flex: 1 1 0; min-width: 0; text-align: right; overflow-wrap: anywhere; }

/* Viewport simulator controls */
.viewport-buttons { flex-wrap: wrap; }
.current-width-display { overflow-wrap: anywhere; }

/* Simulator inner app responds to ITS OWN width (container queries),
   so desktop/tablet/mobile modes stay readable on any real screen. */
.simulator-frame { container-type: inline-size; container-name: simframe; }
.sim-pill { max-width: 100%; border-radius: 12px; line-height: 1.4; }
.sim-app-header { height: auto; min-height: 52px; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem 1.25rem; }
.sim-brand { min-width: 0; }
.sim-brand-text { overflow-wrap: anywhere; }
.sim-app-footer { height: auto; min-height: 38px; flex-wrap: wrap; gap: 0.25rem 1rem; padding: 0.5rem 1.25rem; }

/* Contact: email bar wraps instead of overflowing */
.copy-email-bar { display: flex; flex-wrap: wrap; justify-content: center; max-width: 100%; border-radius: 1.5rem; }
.email-address { min-width: 0; text-align: center; overflow-wrap: anywhere; word-break: break-all; }

/* Hero chips: keep inside the mockup so overflow:hidden never cuts them */
.chip-bottom-left { bottom: 0.85rem; left: 0.85rem; max-width: calc(100% - 1.7rem); }
.chip-top-right { top: 3.4rem; right: 0.85rem; max-width: calc(100% - 1.7rem); }

/* Contact headline: scale down on tiny screens */
.contact-headline { font-size: clamp(1.75rem, 8.5vw, 4rem); overflow-wrap: break-word; max-width: 100%; }
/* ==========================================================================
   FIXES v3 — full-screen sweep (title bars, status rows, timeline)
   ========================================================================== */
/* Browser-style title bars: single line, ellipsis, hide badge when tight */
.browser-header, .browser-frame-bar { gap: 0.6rem; min-width: 0; }
.browser-dots, .frame-dots { flex-shrink: 0; }
.browser-address-bar, .frame-url { min-width: 0; flex: 0 1 auto; overflow: hidden; white-space: nowrap; }
.address-text, .frame-url { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.address-text { min-width: 0; }
.browser-status-tag, .frame-badge { flex-shrink: 0; white-space: nowrap; }

/* "Currently Exploring" cards + timeline: label and pill wrap instead of overlapping */
.exploring-status-row, .timeline-badge-row { flex-wrap: wrap; gap: 0.4rem 0.75rem; }
.exploring-category, .exploring-tag, .timeline-role, .timeline-period { white-space: normal; }
.exploring-tag { white-space: nowrap; }
.timeline-period { white-space: nowrap; }
.exploring-title, .timeline-company, .skill-card h3, .project-title { overflow-wrap: break-word; }