/* ==========================================================================
   HSINI.DEV — PREMIUM LIGHT-BLUE PORTFOLIO STYLESHEET
   ========================================================================== */

:root {
  --bg:        #f0f7ff; /* Premium light ice-blue background */
  --bg-2:      #e0f2fe; /* Light sky blue */
  --surface:   rgba(255, 255, 255, 0.7); /* Translucent white card body */
  --surface-2: rgba(255, 255, 255, 0.95); /* Solid white surface for hover state */
  --border:    rgba(37, 99, 235, 0.08); /* Soft blue border */
  --border-2:  rgba(37, 99, 235, 0.16); /* Saturated blue border */
  --text:      #0f172a; /* Slate 900 */
  --text-muted:#475569; /* Slate 600 */
  --text-dim:  #64748b; /* Slate 500 */
  --accent:    #2563eb; /* Royal Blue */
  --accent-2:  #0ea5e9; /* Sky Blue */
  --accent-glow: rgba(37, 99, 235, 0.15);
  --cyan:      #0891b2; /* Darker cyan for light bg readability */
  --amber:     #b45309; /* Darker amber for light bg readability */
  --rose:      #be185d; /* Darker rose for light bg readability */
  --green:     #047857; /* Darker green for light bg readability */
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 20px 40px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.02);
  --font:      'Inter', -apple-system, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Animated background ── */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.orb {
  position: fixed; border-radius: 50%; filter: blur(120px);
  pointer-events: none; z-index: 0; animation: orb-drift 20s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: rgba(14, 165, 233, 0.14); top: -200px; right: -100px; animation-delay: 0s; }
.orb-2 { width: 500px; height: 500px; background: rgba(6, 182, 212, 0.1); bottom: -100px; left: -100px; animation-delay: -7s; }
.orb-3 { width: 400px; height: 400px; background: rgba(99, 102, 241, 0.08); top: 40%; left: 40%; animation-delay: -14s; }

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(240, 247, 255, 0.85);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.4rem; font-weight: 700;
  color: var(--text); text-decoration: none; letter-spacing: -0.5px;
}
.logo-bracket { color: var(--accent); }
.nav-links {
  display: flex; gap: 2rem; list-style: none;
}
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: white;
  padding: 0.5rem 1.2rem; border-radius: 8px;
  text-decoration: none; font-size: 0.875rem; font-weight: 600;
  transition: all 0.2s; letter-spacing: 0.02em;
}
.nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translateY(-2px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(2px);
}

/* ── Hero ── */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 100px 2rem 60px;
}
.hero-content {
  max-width: 1200px; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(4, 120, 87, 0.08); border: 1px solid rgba(4, 120, 87, 0.16);
  color: var(--green); padding: 0.4rem 1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 1.5rem;
  animation: fade-up 0.6s ease both;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -2px; margin-bottom: 1rem;
  animation: fade-up 0.6s 0.1s ease both;
  color: var(--text);
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), #06b6d4);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%; animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-role {
  font-size: 1rem; color: var(--text-muted); margin-bottom: 1.5rem;
  font-weight: 500; letter-spacing: 0.03em;
  animation: fade-up 0.6s 0.2s ease both;
}
.role-sep { color: var(--accent); margin: 0 0.3rem; }
.hero-desc {
  font-size: 1.05rem; color: var(--text-muted); line-height: 1.8;
  margin-bottom: 2rem; max-width: 500px;
  animation: fade-up 0.6s 0.3s ease both;
}
.hero-desc strong { color: var(--text); }

.hero-tech-row {
  display: none;
}

.hero-stats {
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 2.5rem;
  animation: fade-up 0.6s 0.4s ease both;
}
.stat { text-align: center; }
.stat-num {
  display: block; font-family: var(--font-head);
  font-size: 2rem; font-weight: 800; color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.stat-divider {
  width: 1px; height: 40px;
  background: var(--border-2);
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fade-up 0.6s 0.5s ease both;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: white;
  padding: 0.85rem 1.8rem; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: all 0.25s; letter-spacing: 0.02em;
  border: none;
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface-2); color: var(--text-muted);
  border: 1px solid var(--border-2);
  padding: 0.85rem 1.8rem; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: all 0.25s;
}
.btn-ghost:hover {
  background: var(--bg); border-color: var(--accent);
  color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,23,42,0.03);
}
.btn-large { padding: 1rem 2.2rem; font-size: 1rem; border-radius: 12px; }

/* ── Hero Visual ── */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  animation: fade-in 1s 0.3s ease both;
}
.photo-container {
  position: relative; width: 420px; height: 480px;
}
.photo-glow {
  position: absolute; inset: -30px;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.12) 0%, transparent 70%);
  border-radius: 50%; animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.photo-ring {
  position: absolute; inset: 10px;
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 40% 60% 60% 40% / 50% 50% 60% 40%;
  animation: ring-morph 8s ease-in-out infinite;
}
@keyframes ring-morph {
  0%, 100% { border-radius: 40% 60% 60% 40% / 50% 50% 60% 40%; }
  25% { border-radius: 60% 40% 40% 60% / 40% 60% 40% 60%; }
  50% { border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%; }
  75% { border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%; }
}
.profile-photo {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 380px; height: 460px;
  object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 20px 40px rgba(37,99,235,0.15)) drop-shadow(0 0 20px rgba(37,99,235,0.06));
  transition: transform 0.4s ease, filter 0.4s ease;
  background: transparent;
}
.profile-photo:hover {
  transform: translateX(-50%) scale(1.03) translateY(-8px);
  filter: drop-shadow(0 30px 60px rgba(37,99,235,0.25)) drop-shadow(0 0 30px rgba(6,182,212,0.12));
}
.photo-container {
  background: transparent !important;
}

.photo-badge {
  position: absolute;
  display: flex; align-items: center; gap: 0.4rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-2);
  padding: 0.45rem 0.85rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600; color: var(--text);
  white-space: nowrap;
  animation: badge-float 6s ease-in-out infinite;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.tech-badge-1 { top: 20%; left: -20px; animation-delay: 0s; }
.tech-badge-2 { top: 50%; right: -15px; animation-delay: -2s; }
.tech-badge-3 { bottom: 15%; left: -15px; animation-delay: -4s; }
.tech-badge-4 { top: 15%; right: -25px; animation-delay: -1s; }
.tech-badge-5 { bottom: 25%; right: -20px; animation-delay: -3s; }
.tech-badge-6 { top: -15px; left: 35%; animation-delay: -5s; }
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text-dim); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  animation: fade-in 1s 1s ease both;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-drop 1.5s ease-in-out infinite;
}
@keyframes scroll-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Sections ── */
.section { position: relative; z-index: 1; padding: 100px 2rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: inline-block;
  background: rgba(37, 99, 235, 0.06); color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.12);
  padding: 0.3rem 1rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -1px; line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text);
}
.section-desc {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 560px; margin: 0 auto;
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
  position: relative; overflow: hidden;
}
.skill-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.skill-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.04);
  background: var(--surface-2);
}
.skill-card:hover::before { opacity: 1; }
.skill-icon {
  width: 48px; height: 48px;
  background: rgba(37, 99, 235, 0.05); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.skill-icon img { width: 28px; height: 28px; }
.skill-card h3 {
  font-family: var(--font-head); font-size: 1rem;
  font-weight: 700; margin-bottom: 0.5rem; color: var(--text);
}
.skill-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.skill-bar {
  height: 3px; background: rgba(37, 99, 235, 0.08); border-radius: 100px; overflow: hidden;
}
.skill-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-fill.animated { width: var(--fill); }

/* ── Projects ── */
.projects-section { background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.02), transparent); }
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, transform 0.35s ease;
}
.project-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: var(--surface-2);
}

.project-info {
  grid-column: 1;
  grid-row: 1;
}

/* ── Project Screenshots Layout (Right Column - Stacked Vertically) ── */
.project-screenshots {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}
.screenshot-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
  width: 100%;
  max-width: 1080px;
  max-height: 1080px;
  aspect-ratio: 16/10;
}
.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}
.screenshot-item:hover img {
  transform: scale(1.03);
}
.screenshot-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: rgba(37, 99, 235, 0.9);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
}

.project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Demo Credentials Panel (Restored) ── */
.demo-creds {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 12px; overflow: hidden;
  text-align: left;
}
.demo-creds-header {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(37, 99, 235, 0.05);
  cursor: pointer;
}
.demo-key-icon { font-size: 1rem; }
.demo-title { flex: 1; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.demo-toggle {
  background: rgba(37, 99, 235, 0.15); color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.3rem 0.8rem; border-radius: 6px;
  font-size: 0.78rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s; letter-spacing: 0.04em;
}
.demo-toggle:hover { background: var(--accent); color: white; }
.demo-creds-body {
  padding: 1rem; display: none;
  flex-direction: column; gap: 1rem;
}
.demo-creds-body.open { display: flex; }
.cred-group {
  background: rgba(255,255,255,0.4); border-radius: 10px;
  padding: 0.85rem 1rem; border: 1px solid var(--border);
}
.cred-group:not(:last-child) {
  margin-bottom: 0.75rem;
}
.cred-role {
  font-size: 0.8rem; font-weight: 700; color: var(--accent);
  margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.cred-row {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.4rem; flex-wrap: wrap;
}
.cred-label {
  font-size: 0.75rem; color: var(--text-dim);
  min-width: 80px; font-weight: 600;
}
.cred-link { font-size: 0.8rem; color: var(--accent); text-decoration: none; }
.cred-link:hover { text-decoration: underline; }
.cred-val {
  background: rgba(37, 99, 235, 0.05); border: 1px solid rgba(37, 99, 235, 0.1);
  color: var(--text); padding: 0.2rem 0.6rem; border-radius: 5px;
  font-size: 0.82rem; font-family: 'Courier New', monospace;
  cursor: pointer; transition: all 0.15s;
}
.cred-val:hover { background: rgba(37, 99, 235, 0.12); color: var(--accent); }
.cred-copy-hint { font-size: 0.7rem; color: var(--text-dim); }

.project-glow {
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(ellipse, var(--glow) 0%, transparent 70%);
  filter: blur(30px); pointer-events: none; opacity: 0.25;
  transition: opacity 0.3s;
}
.project-card:hover .project-glow { opacity: 0.45; }

.project-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.project-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.project-meta { display: flex; align-items: center; gap: 0.75rem; }
.project-tag {
  font-size: 0.75rem; color: var(--text-dim);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}
.project-live {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 700; color: var(--green);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: live-pulse 2s ease infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(4, 120, 87, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(4, 120, 87, 0); }
}
.project-title {
  font-family: var(--font-head); font-size: 1.25rem;
  font-weight: 700; margin-bottom: 0.2rem; color: var(--text);
}
.project-domain {
  font-size: 0.82rem; color: var(--accent);
  font-weight: 600; margin-bottom: 1rem; letter-spacing: 0.03em;
}
.project-desc {
  font-size: 0.9rem; color: var(--text-muted);
  line-height: 1.75; margin-bottom: 1.25rem;
}
.project-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.tech-pill {
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--accent); padding: 0.25rem 0.7rem;
  border-radius: 100px; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.03em; white-space: nowrap;
}
.project-actions { display: flex; gap: 0.75rem; }
.proj-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.2rem; border-radius: 8px;
  text-decoration: none; font-size: 0.875rem; font-weight: 600;
  transition: all 0.25s; letter-spacing: 0.02em;
}
.proj-btn-primary {
  background: var(--accent); color: white;
}
.proj-btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 8px 24px var(--accent-glow);
  transform: translateY(-1px);
}
.proj-btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text-muted);
}
.proj-btn-ghost:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ── Project Categories Filter ── */
.category-tags-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}
.category-anchor {
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}
.category-anchor:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-glow);
}

.category-header {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 700;
}

/* ── About ── */
.about-section { background: linear-gradient(180deg, transparent, rgba(6,182,212,0.02), transparent); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.about-text .section-tag { display: inline-block; text-align: left; }
.about-text .section-title { text-align: left; }
.about-text p {
  color: var(--text-muted); font-size: 1rem;
  line-height: 1.8; margin-bottom: 1.25rem;
}
.about-text strong { color: var(--text); }
.about-highlights {
  display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem;
}
.highlight-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.2s, background-color 0.2s;
}
.highlight-item:hover { border-color: rgba(37, 99, 235, 0.2); background: var(--surface-2); }
.highlight-icon { font-size: 1.5rem; flex-shrink: 0; }
.highlight-item strong { display: block; font-size: 0.9rem; color: var(--text); margin-bottom: 0.2rem; }
.highlight-item span { font-size: 0.82rem; color: var(--text-dim); }

.about-card-wrap { display: flex; justify-content: center; }
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}
.about-card {
  max-width: 360px;
}
.glass-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
}
.about-photo-wrap {
  display: flex; justify-content: center; margin-bottom: 1.5rem;
}
.about-photo {
  width: 140px; height: 160px;
  object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 10px 20px rgba(37,99,235,0.15));
}
.about-card-info { text-align: center; }
.about-card-info h3 {
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 700; margin-bottom: 0.3rem;
}
.about-title-text { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.about-links { display: flex; flex-direction: column; gap: 0.6rem; }
.about-link {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  color: var(--text-muted); text-decoration: none;
  font-size: 0.82rem; font-weight: 500;
  padding: 0.6rem 1rem; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  transition: all 0.2s;
}
.about-link:hover { color: var(--accent); border-color: rgba(37, 99, 235, 0.25); background: var(--surface-2); }

/* ── Contact ── */
.contact-section { padding-bottom: 120px; }
.contact-inner {
  position: relative; overflow: hidden;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 24px; padding: 5rem 3rem;
  box-shadow: var(--shadow);
}
.contact-glow {
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.1) 0%, transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.contact-inner .section-tag { display: inline-block; margin-bottom: 1rem; }
.contact-inner .section-title { margin-bottom: 1rem; }
.contact-inner .section-desc { margin-bottom: 2.5rem; }
.contact-actions { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.contact-note { font-size: 0.85rem; color: var(--text-dim); }
.contact-note strong { color: var(--text-muted); }

/* ── Footer ── */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border); padding: 2rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: var(--font-head); font-size: 1.2rem;
  font-weight: 700; color: var(--text);
}
.footer-copy { font-size: 0.85rem; color: var(--text-dim); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.85rem; color: var(--text-dim);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ── Animations ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-visual { order: -1; }
  .photo-container {
    width: 320px;
    height: 380px;
    margin: 0 auto;
  }
  .profile-photo {
    width: 300px;
    height: 360px;
  }
  .photo-ring {
    inset: 8px;
  }
  .photo-glow {
    inset: -20px;
  }
  .photo-badge {
    display: none !important;
  }
  .hero-tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.5rem 0 2rem;
  }
  .tech-tag-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-2);
    padding: 0.45rem 0.95rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02);
  }
  .tech-tag-inline img {
    width: 16px;
    height: 16px;
  }

  .hero-desc { max-width: 100%; }
  .hero-badge { margin: 0 auto 1.5rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-text .section-title { text-align: center; }
  .about-text .section-tag { display: block; text-align: center; }
  .about-text p { text-align: center; }

  /* Project card responsiveness */
  .project-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.75rem;
  }
  .project-info {
    grid-column: 1;
    grid-row: 2;
  }
  .project-screenshots {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
  }
  .screenshot-item {
    height: auto;
    aspect-ratio: 16/10;
  }
}

@media (max-width: 768px) {
  .hero-scroll {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(240, 247, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-2);
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
    z-index: 99;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }
  .nav-links.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    font-size: 1.05rem;
    padding: 0.5rem;
    display: block;
    color: var(--text);
  }
  
  /* Projects sub-dropdown nested styling on mobile */
  .nav-dropdown-content {
    position: static !important;
    display: none;
    background: rgba(37, 99, 235, 0.04) !important;
    border: none !important;
    box-shadow: none !important;
    min-width: 100% !important;
    margin-top: 0.5rem;
    border-radius: 8px;
    padding: 0.5rem 0 !important;
  }
  .nav-dropdown.active .nav-dropdown-content {
    display: block;
  }
  .nav-dropdown:hover .nav-dropdown-content {
    display: none !important; /* Touch support toggle only */
  }
  .nav-dropdown.active:hover .nav-dropdown-content {
    display: block !important;
  }

  .projects-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: span 1; display: block; }
  .skills-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .contact-inner { padding: 3rem 1.5rem; }

  /* Scale photo container down on standard mobile */
  .photo-container {
    width: 270px;
    height: 325px;
  }
  .profile-photo {
    width: 250px;
    height: 305px;
  }
}

@media (max-width: 576px) {
  .project-screenshots {
    grid-template-columns: 1fr;
  }
  .screenshot-item {
    height: auto;
    aspect-ratio: 16/10;
  }
}

@media (max-width: 480px) {
  .photo-container {
    width: 220px;
    height: 265px;
  }
  .profile-photo {
    width: 200px;
    height: 245px;
  }
  .hero-stats {
    gap: 0.75rem;
  }
  .stat-num {
    font-size: 1.5rem;
  }
  .stat-label {
    font-size: 0.65rem;
  }
}

/* ── FOUC Prevention Unlocking ── */
html {
  visibility: visible !important;
  opacity: 1 !important;
}
