/* =====================================================
   Justine Recto | Portfolio — styles.css
   Theme: Modern 2026 · Glassmorphism & Minimalist Design
   Fonts: Inter + Space Grotesk + JetBrains Mono
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Boldonse&display=swap');

/* =====================================================
   CSS VARIABLES — 2026 MODERN PALETTE
   ===================================================== */
:root {
  /* Arctic Depths — exact image gradient: #193546 · #065B98 · #1B7FDC · #0DB8D3 */
  --bg-primary:    #0e2535;
  --bg-secondary:  rgba(14, 37, 53, 0.6);
  --bg-card:       rgba(15, 35, 55, 0.55);
  --bg-card-hover: rgba(18, 42, 64, 0.7);
  --bg-glass:      rgba(14, 34, 54, 0.45);

  --accent:        #0DB8D3;
  --accent-warm:   #1B7FDC;
  --accent-muted:  #065B98;
  --accent-glow:   rgba(13, 184, 211, 0.2);
  --accent-green:  #0DB8D3;
  --accent-purple: #1B7FDC;

  --text-primary:   #e8f6fb;
  --text-secondary: #b8dff0;
  --text-muted:     #6a9fba;
  --text-code:      #0DB8D3;

  --border-color:  rgba(13, 184, 211, 0.18);
  --border-hover:  rgba(13, 184, 211, 0.45);
  --border-subtle: rgba(255, 255, 255, 0.07);

  --nav-bg:        rgba(14, 37, 53, 0.7);
  --nav-shadow:    0 1px 0 rgba(13,184,211,0.15);

  --shadow-card:   0 8px 32px rgba(0,0,0,0.4);
  --shadow-hover:  0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(13,184,211,0.3);
  --shadow-glow:   0 0 60px rgba(13,184,211,0.25);

  --section-alt-bg: rgba(10, 28, 45, 0.3);
  --glass-border:   rgba(13,184,211,0.18);

  --gradient-primary:  linear-gradient(135deg, #0DB8D3 0%, #1B7FDC 55%, #065B98 100%);
  --gradient-vivid:    linear-gradient(90deg,  #0DB8D3 0%, #1B7FDC 50%, #065B98 100%);
  --gradient-diagonal: linear-gradient(135deg, #0DB8D3 0%, #065B98 100%);
  --gradient-reverse:  linear-gradient(135deg, #065B98 0%, #1B7FDC 50%, #0DB8D3 100%);
  --gradient-green:    linear-gradient(135deg, #1B7FDC 0%, #065B98 100%);
  --gradient-soft:     linear-gradient(180deg, rgba(14,37,53,0.8) 0%, rgba(10,28,45,0.6) 100%);
  --gradient-bg:       linear-gradient(135deg, #193546 0%, #065B98 50%, #0DB8D3 100%);
  --gradient-card:     linear-gradient(145deg, rgba(14,34,54,0.6) 0%, rgba(18,42,64,0.7) 100%);
  --gradient-text:     linear-gradient(135deg, #0DB8D3 0%, #1B7FDC 55%, #a8d8f0 100%);
  --gradient-shimmer:  linear-gradient(90deg, #0DB8D3 0%, #1B7FDC 25%, #0DB8D3 50%, #065B98 75%, #0DB8D3 100%);

  /* Typography */
  --font-body:    'DM Sans', -apple-system, sans-serif;
  --font-display: 'Syne', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --nav-height:  72px;
  --max-width:   1200px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: #000510;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(6,91,152,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(13,184,211,0.10) 0%, transparent 55%),
    linear-gradient(180deg, #000c1a 0%, #000510 30%, #00040e 100%);
  background-attachment: scroll;
  color: var(--text-primary);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* =====================================================
   NOISE OVERLAY
   ===================================================== */
.noise-overlay {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1; opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 220% 220%;
  mix-blend-mode: overlay;
  animation: noiseDrift 18s linear infinite;
}
.noise-overlay::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.12;
  pointer-events: none;
}
@keyframes noiseDrift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-18px, 12px); }
  100% { transform: translate(0, 0); }
}

/* =====================================================
   COMMAND PALETTE
   ===================================================== */
.cmd-palette {
  position: fixed; inset: 0; z-index: 10000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.cmd-palette.open { opacity: 1; pointer-events: all; }
.cmd-palette__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
}
.cmd-palette__panel {
  position: absolute; top: 20%; left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: min(580px, 92vw);
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover), 0 0 60px rgba(13,184,211,0.08);
  overflow: hidden;
  transition: transform 0.2s ease;
}
.cmd-palette.open .cmd-palette__panel { transform: translateX(-50%) translateY(0); }
.cmd-palette__header {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}
.cmd-palette__icon { color: var(--accent); font-size: 0.9rem; }
.cmd-palette__header input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-mono); font-size: 0.9rem;
  color: var(--text-primary); caret-color: var(--accent);
}
.cmd-palette__header input::placeholder { color: var(--text-muted); }
.cmd-palette__esc {
  padding: 0.15rem 0.45rem;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted);
}
.cmd-palette__list { list-style: none; max-height: 340px; overflow-y: auto; padding: 0.5rem; }
.cmd-palette__list li {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.15s;
  font-size: 0.875rem; color: var(--text-secondary);
}
.cmd-palette__list li:hover, .cmd-palette__list li.active {
  background: rgba(13,184,211,0.08); color: var(--text-primary);
}
.cmd-palette__list li i { color: var(--accent); width: 16px; text-align: center; }
.cmd-palette__list .cmd-group {
  font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted);
  padding: 0.5rem 1rem 0.25rem; cursor: default;
}
.cmd-palette__list .cmd-group:hover { background: none; }

/* =====================================================
   UTILITY
   ===================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}
.accent-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================================================
   SCROLL PROGRESS
   ===================================================== */
#scrollProgressBar {
  position: fixed; top: 0; left: 0;
  width: 0%; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-warm) 50%, var(--accent-purple) 100%);
  background-size: 200% 100%;
  z-index: 10001;
  transition: width 0.1s linear;
  box-shadow: 0 0 24px rgba(13,184,211,0.7), 0 0 48px rgba(27,127,220,0.5);
  animation: progressShimmer 3s linear infinite;
}
@keyframes progressShimmer {
  to { background-position: 200% 0; }
}

/* =====================================================
   CURSOR
   ===================================================== */
#cursorSpotlight {
  position: fixed; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,184,211,0.07) 0%, rgba(27,127,220,0.04) 40%, transparent 70%);
  pointer-events: none; z-index: 0;
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 0.4s ease;
}


/* =====================================================
   BUTTONS — ENHANCED
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.875rem;
  cursor: pointer; border: none;
  white-space: normal; word-break: keep-all;
  letter-spacing: 0.01em;
  text-align: center; justify-content: center;
  max-width: 100%;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(13,184,211,0.35), 0 4px 12px rgba(27,127,220,0.25);
}
.btn--ghost {
  background: rgba(13, 22, 40, 0.4);
  color: var(--text-primary);
  border: 1.5px solid var(--border-hover);
  backdrop-filter: blur(10px);
}
.btn--full { width: 100%; justify-content: center; }
@media (max-width: 480px) {
  .btn { padding: 0.65rem 1.25rem; font-size: 0.8rem; }
}

/* =====================================================
   NAVIGATION — ENHANCED GLASSMORPHISM
   ===================================================== */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 999;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#mainNav::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,184,211,0.06), transparent);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
#mainNav.scrolled {
  background: rgba(9, 22, 38, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: rgba(13,184,211,0.18);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
#mainNav.scrolled::before { opacity: 1; }
.nav__inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 2rem; height: 100%;
  display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}
.nav__logo {
  font-family: 'Plus Jakarta Sans', 'Syne', sans-serif;
  font-size: 1.25rem; font-weight: 800;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #e2eaf2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background-image 0.3s ease, filter 0.3s ease;
}
.nav__logo-dot {
  font-family: inherit;
  font-weight: 800;
  background: linear-gradient(135deg, #0DB8D3, #1B7FDC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav__logo:hover {
  background: linear-gradient(135deg, #0DB8D3 0%, #1B7FDC 55%, #a8d8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: brightness(1.1);
}
.nav__links {
  display: flex; align-items: center; gap: 1.75rem;
}
.nav__links a {
  font-size: 0.825rem; font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s; position: relative;
}
.nav__links a::after {
  content: ''; position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gradient-vivid);
  transition: width 0.3s ease;
}
.nav__links a:hover,
.nav__links a.active { color: var(--text-primary); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav__cmd-btn {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 0.4rem 0.75rem;
  color: var(--text-muted); cursor: pointer; font-size: 0.78rem;
  font-family: var(--font-mono); transition: all 0.2s;
}
.nav__cmd-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav__cmd-btn i { font-size: 0.75rem; }
.nav__cv-btn {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  font-size: 0.8rem; font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.nav__cv-btn:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(13,184,211,0.35);
  transform: translateY(-1px);
}


/* Hamburger */
.nav__hamburger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav__hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px; transition: all 0.3s ease;
}

/* =====================================================
   SIDE NAV (Mobile)
   ===================================================== */
.side-nav {
  position: fixed; top: 0; right: -320px;
  width: 300px; height: 100dvh;
  background: var(--bg-card);
  z-index: 1001; padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid var(--border-color);
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}

/* ===== Contact Form & Info Improvements ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact__info {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}
.contact-info-card { display:flex; gap:0.75rem; align-items:center; padding:0.5rem 0; }
.contact-info-card i { font-size:1.05rem; color:var(--accent); width:36px; height:36px; display:flex; align-items:center; justify-content:center; background: rgba(13,184,211,0.04); border-radius:8px; }
.availability-card { display:flex; gap:0.75rem; align-items:center; margin-top:1rem; padding:0.6rem; background: rgba(13,184,211,0.02); border-radius:10px; border:1px solid var(--border-subtle); }
.availability-dot { width:10px; height:10px; border-radius:50%; background:var(--accent-green); box-shadow: 0 0 8px var(--accent-glow); }

.contact__form {
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}
.form-row { display:flex; gap:1rem; }
.form-group { display:flex; flex-direction:column; gap:0.45rem; flex:1; }
.form-group label { font-size:0.9rem; color:var(--text-secondary); }

input[type="text"], input[type="email"], select, textarea {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-primary);
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus {
  border-color: var(--border-hover);
  box-shadow: 0 8px 28px rgba(13,184,211,0.06);
}

select {
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%);
  background-position: calc(100% - 18px) center;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}

.required-star { color: var(--accent); margin-left: 0.12rem; font-weight:700; }
.contact__form .btn { padding: 0.85rem 1rem; font-size: 0.95rem; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

.side-nav.open { right: 0; }

/* Top row: prompt + close button side by side */
.side-nav__top-row {
  display: flex; align-items: center;
  justify-content: space-between;
}
#closeBtn {
  background: none; border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
#closeBtn:hover { border-color: var(--accent); color: var(--accent); }
.side-nav__prompt {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent);
}
.side-nav__links { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; }
.side-nav__links a {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-secondary); padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.2s, padding-left 0.2s, background 0.2s;
  border-radius: var(--radius-sm);
}
.side-nav__links a:hover {
  color: var(--accent); padding-left: 1rem;
  background: rgba(13,184,211,0.05);
}
.side-nav__num {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--accent); min-width: 22px;
}

/* Available badge inside side-nav */
.side-nav__available {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-secondary);
  background: rgba(34,211,165,0.08);
  border: 1px solid rgba(34,211,165,0.2);
  border-radius: 50px; padding: 0.35rem 0.85rem;
  width: fit-content;
}
.side-nav__available .tag-dot {
  width: 6px; height: 6px;
}

.side-nav__footer { display: flex; gap: 1rem; padding-top: 0.5rem; }
.side-nav__footer a { color: var(--text-muted); font-size: 1.1rem; transition: color 0.2s; }
.side-nav__footer a:hover { color: var(--accent); }

#mobileNavOverlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000; opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(6px);
}
#mobileNavOverlay.open { opacity: 1; pointer-events: all; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100dvh;
  display: flex; align-items: center;
  justify-content: space-between; gap: 4rem;
  padding: calc(var(--nav-height) + 5rem) 2rem 5rem;
  max-width: var(--max-width); margin: 0 auto;
  position: relative;
}
/* Hero background image wrapper */
.hero-bg-wrapper {
  position: relative;
  overflow: visible;
  isolation: isolate;
  background-image: url('bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* Dark overlay to deepen the bg image */
.hero-bg-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 75% 40%, rgba(13,184,211,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 55% 70% at 90% 20%, rgba(27,127,220,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 15% 80%, rgba(6,91,152,0.12) 0%, transparent 60%),
    linear-gradient(160deg, rgba(0,5,16,0.62) 0%, rgba(0,8,22,0.45) 40%, rgba(0,5,16,0.70) 100%);
  z-index: 0;
  pointer-events: none;
}

/* Animated aurora shimmer layer */
.hero-bg-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 85% 0%, rgba(13,184,211,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 60%, rgba(27,127,220,0.11) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
  animation: auroraShift 14s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  0%   { opacity: 0.6; transform: scale(1) translateX(0); }
  50%  { opacity: 1;   transform: scale(1.04) translateX(-12px); }
  100% { opacity: 0.7; transform: scale(1) translateX(0); }
}

.hero-bg-wrapper > .hero {
  position: relative;
  z-index: 2;
  background: transparent !important;
  isolation: isolate;
}

.hero__bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
  pointer-events: none; z-index: 0;
}
.hero__bg-glow {
  display: none; /* suppressed — new bg handles all glow */
}

/* Terminal decoration */
.hero__terminal-deco {
  display: none; /* shown via media query on larger screens */
  position: absolute; bottom: 3rem; left: 2rem;
  width: 260px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 28px 70px rgba(0,0,0,0.3);
  backdrop-filter: blur(18px);
  z-index: 2;
}
.term-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.term-dot {
  width: 10px; height: 10px; border-radius: 50%; opacity: 0.85;
}
.term-dot.red { background: #ff5f57; }
.term-dot.yellow { background: #fbbf24; }
.term-dot.green { background: #22c55e; }
.term-title {
  font-family: var(--font-mono); font-size: 0.74rem;
  color: var(--text-secondary); margin-left: 0.35rem;
}
.term-body { padding: 1rem 0.9rem; display: flex; flex-direction: column; gap: 0.65rem; }
.term-line {
  font-family: var(--font-mono); font-size: 0.78rem;
  line-height: 1.7; display: flex; gap: 0.45rem;
}
.term-prompt { color: rgba(13,184,211,0.82); }
.term-cmd { color: var(--text-primary); }
.term-output { color: var(--text-secondary); padding-left: 0.9rem; }
.blink-cursor { width: 4px; height: 0.8rem; background: rgba(13,184,211,0.95); animation: blink 1.2s step-end infinite; }

.hero__content { flex: 1; max-width: 580px; position: relative; z-index: 1; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 500; color: var(--text-secondary);
  font-family: var(--font-mono);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px; padding: 0.4rem 1rem; margin-bottom: 2rem;
}
.tag-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-green); animation: pulse 2.5s ease infinite;
  box-shadow: 0 0 8px rgba(16,185,129,0.5);
}
@keyframes pulse {
  0%,100% { opacity:1; box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { opacity:0.7; box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}
.hero__name {
  display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 1rem;
}
.hero__hello {
  font-family: var(--font-mono); font-size: 0.9rem;
  font-weight: 400; color: var(--text-muted); letter-spacing: 0.02em;
}
.hero__name .accent-text {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1.05; font-weight: 700;
  background: linear-gradient(135deg, #e8f6fb 10%, #0DB8D3 45%, #1B7FDC 75%, #a8d8f0 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__role {
  font-size: 1.05rem; font-weight: 400;
  color: var(--text-secondary); margin-bottom: 0.5rem;
  font-family: var(--font-body);
}
.typewriter-text { font-weight: 600; color: var(--accent); font-family: var(--font-mono); }
.cursor-blink { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__sub {
  font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 2.5rem; font-family: var(--font-mono);
  display: flex; flex-direction: column; gap: 0.3rem;
}
.hero__sub-line {
  display: flex; align-items: center;
}
.hero__sub-item {
  display: inline-flex; align-items: center; gap: 0.35rem;
  white-space: nowrap;
}
.hero__sub-sep { color: var(--text-muted); opacity: 0.5; }
.hero__sub i { color: var(--accent); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3rem; width: 100%; }
.hero__stats { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.stat__num {
  display: block; font-family: var(--font-display);
  font-size: 2rem; line-height: 1; color: var(--text-primary);
  font-weight: 700;
}
.stat__label {
  display: block; font-size: 0.7rem;
  color: var(--text-muted); margin-top: 0.2rem; font-family: var(--font-mono);
}
.stat__divider { width: 1px; height: 40px; background: var(--border-color); }

/* =====================================================
   HERO IMAGE — Glassmorphism Profile Card
   ===================================================== */
.hero__image-wrap {
  position: relative; flex-shrink: 0;
  width: 416px;
  padding: 0 58px; /* room for floating icons on both sides */
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  z-index: 1;
  overflow: visible;
}
.hero__image-wrap .hero__tag-mobile {
  position: relative; z-index: 2; flex-shrink: 0;
}

/* ─── Card shell ─── */
.profile-card {
  position: relative;
  width: 300px;
  height: 430px;
  border-radius: 32px;
  overflow: visible; /* allow icons to spill out */
  --pc-footer-h: 72px; /* synced with .pc-footer height */
  /* Glassmorphism */
  background: rgba(10, 26, 46, 0.38);
  backdrop-filter: blur(24px) saturate(1.6) brightness(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(1.6) brightness(1.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(13,184,211,0.12),
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 80px rgba(13,184,211,0.08);
  transition: transform 0.45s cubic-bezier(0.34,1.4,0.64,1), box-shadow 0.4s;
  cursor: default;
}
.profile-card:hover {
  transform: translateY(-8px) scale(1.018);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(13,184,211,0.28),
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 0 100px rgba(13,184,211,0.16);
}

/* ─── Clip the photo area only ─── */
.profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  overflow: hidden;
  z-index: 0;
}

/* ─── Floating skill icons ─── */
.pc-icon {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  background: rgba(12, 28, 50, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  z-index: 10;
  transition: transform 0.3s ease;
}
.pc-icon:hover { transform: scale(1.15) rotate(-4deg); }

/* Icon colors & positions — evenly spaced at 20%, 50%, 80% of card height */
.pc-icon--react  { color: #61dafb; top: calc(20% - 22px);  left: -50px;  animation: floatIcon 4s ease-in-out infinite; }
.pc-icon--html   { color: #e34f26; top: calc(50% - 22px);  left: -50px;  animation: floatIcon 4.5s ease-in-out infinite 0.5s; }
.pc-icon--figma  { color: #a259ff; top: calc(80% - 22px);  left: -50px;  animation: floatIcon 5s ease-in-out infinite 1.1s; }
.pc-icon--github { color: #e8f6fb; top: calc(20% - 22px);  right: -50px; animation: floatIcon 4s ease-in-out infinite 0.6s; }
.pc-icon--js     { color: #f7df1e; top: calc(50% - 22px);  right: -50px; animation: floatIcon 4.5s ease-in-out infinite 0.9s; }
.pc-icon--css    { color: #264de4; top: calc(80% - 22px);  right: -50px; animation: floatIcon 4s ease-in-out infinite 1.2s; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}

/* Hide contact info on small/mobile screens */
@media (max-width: 768px) {
  .contact__info { display: none; }
}

/* ─── Glass header ─── */
.pc-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 1.25rem 1.4rem 1.5rem; /* extend fade zone */
  border-radius: 32px 32px 0 0;
  background: linear-gradient(
    180deg,
    rgba(6, 18, 38, 0.80) 0%,
    rgba(6, 18, 38, 0.0) 100%
  );
  z-index: 5;
  pointer-events: none; /* don't block photo hover */
}
.pc-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.pc-role {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  margin-top: 0.2rem;
  letter-spacing: 0.04em;
}

/* ─── Photo ─── */
.pc-photo-wrap {
  position: absolute;
  top: 0;
  left: 0; right: 0;
  bottom: var(--pc-footer-h, 72px); /* always flush with footer top */
  width: 100%;
  overflow: hidden;
  z-index: 2;
}
.pc-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.55s ease;
}
.profile-card:hover .pc-photo {
  transform: scale(1.04);
}
/* Subtle bottom fade into footer */
.pc-photo-glow {
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to top, rgba(6,16,36,0.85), transparent);
  pointer-events: none;
}

/* ─── Glass footer bar ─── */
.pc-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 72px;
  padding: 0 1rem;
  border-radius: 0 0 32px 32px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  /* Deep glass */
  background: rgba(6, 16, 36, 0.55);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border-top: 1px solid rgba(255,255,255,0.1);
  overflow: hidden; /* prevent content overflow */
}

/* Avatar + text */
.pc-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.pc-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(13,184,211,0.65);
  flex-shrink: 0;
}
.pc-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.pc-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.pc-username {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.pc-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.67rem;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-body);
}
.pc-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1ed760;
  box-shadow: 0 0 7px rgba(30,215,96,0.9);
  animation: pulse 2.5s ease infinite;
  flex-shrink: 0;
}

/* CTA button */
.pc-cta {
  flex-shrink: 0;
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(13,184,211,0.22);
  border: 1px solid rgba(13,184,211,0.5);
  border-radius: 50px;
  padding: 0.42rem 0.9rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  white-space: nowrap;
}
.pc-cta:hover {
  background: rgba(13,184,211,0.42);
  border-color: rgba(13,184,211,0.9);
  box-shadow: 0 0 22px rgba(13,184,211,0.35);
  transform: scale(1.05);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .profile-card { width: 260px; height: 370px; }
  .hero__image-wrap { width: 370px; padding: 0 55px; }
  .pc-icon { width: 38px; height: 38px; font-size: 1.05rem; border-radius: 12px; }
  .pc-icon--react  { top: calc(20% - 19px); left: -43px; }
  .pc-icon--html   { top: calc(50% - 19px); left: -43px; }
  .pc-icon--figma  { top: calc(80% - 19px); left: -43px; }
  .pc-icon--github { top: calc(20% - 19px); right: -43px; }
  .pc-icon--js     { top: calc(50% - 19px); right: -43px; }
  .pc-icon--css    { top: calc(80% - 19px); right: -43px; }
}
@media (max-width: 600px) {
  .profile-card { width: 230px; height: 330px; --pc-footer-h: 66px; }
  .hero__image-wrap { width: 332px; padding: 0 51px; }
  .pc-icon { width: 36px; height: 36px; font-size: 1rem; border-radius: 11px; }
  .pc-icon--react  { top: calc(20% - 18px); left: -41px; }
  .pc-icon--html   { top: calc(50% - 18px); left: -41px; }
  .pc-icon--figma  { top: calc(80% - 18px); left: -41px; }
  .pc-icon--github { top: calc(20% - 18px); right: -41px; }
  .pc-icon--js     { top: calc(50% - 18px); right: -41px; }
  .pc-icon--css    { top: calc(80% - 18px); right: -41px; }
  .pc-footer { height: 66px; padding: 0 0.85rem; }
  .pc-avatar { width: 34px; height: 34px; }
  .pc-username { font-size: 0.68rem; }
  .pc-cta { font-size: 0.68rem; padding: 0.38rem 0.75rem; }
  .pc-header { padding: 1rem 1.1rem 1.25rem; }
  .pc-name { font-size: 1.3rem; }
  .pc-role { font-size: 0.72rem; }
}
@media (max-width: 480px) {
  .profile-card { width: 220px; height: 310px; border-radius: 24px; --pc-footer-h: 60px; }
  .hero__image-wrap { width: 318px; padding: 0 49px; }
  .pc-header { padding: 0.9rem 1rem 1.1rem; border-radius: 24px 24px 0 0; }
  .pc-name { font-size: 1.1rem; }
  .pc-role { font-size: 0.68rem; }
  /* Icons stay visible on mobile — fully repositioned for smaller card */
  .pc-icon { width: 34px; height: 34px; font-size: 0.95rem; border-radius: 10px; }
  .pc-icon--react  { top: calc(20% - 17px); left: -39px; }
  .pc-icon--html   { top: calc(50% - 17px); left: -39px; }
  .pc-icon--figma  { top: calc(80% - 17px); left: -39px; }
  .pc-icon--github { top: calc(20% - 17px); right: -39px; }
  .pc-icon--js     { top: calc(50% - 17px); right: -39px; }
  .pc-icon--css    { top: calc(80% - 17px); right: -39px; }
  /* Footer: shrink avatar and button so they fit comfortably */
  .pc-footer { height: 60px; padding: 0 0.8rem; gap: 0.4rem; border-radius: 0 0 24px 24px; }
  .pc-avatar { width: 30px; height: 30px; border-width: 1.5px; }
  .pc-username { font-size: 0.63rem; }
  .pc-status { font-size: 0.58rem; }
  .pc-status-dot { width: 5px; height: 5px; }
  .pc-cta { font-size: 0.63rem; padding: 0.35rem 0.7rem; letter-spacing: 0; }
}
@media (max-width: 360px) {
  .profile-card { width: 190px; height: 270px; border-radius: 20px; --pc-footer-h: 54px; }
  .hero__image-wrap { width: 282px; padding: 0 46px; }
  .pc-header { padding: 0.75rem 0.9rem 1rem; border-radius: 20px 20px 0 0; }
  .pc-name { font-size: 0.95rem; }
  .pc-role { font-size: 0.62rem; }
  .pc-icon { width: 30px; height: 30px; font-size: 0.82rem; border-radius: 9px; }
  .pc-icon--react  { top: calc(20% - 15px); left: -35px; }
  .pc-icon--html   { top: calc(50% - 15px); left: -35px; }
  .pc-icon--figma  { top: calc(80% - 15px); left: -35px; }
  .pc-icon--github { top: calc(20% - 15px); right: -35px; }
  .pc-icon--js     { top: calc(50% - 15px); right: -35px; }
  .pc-icon--css    { top: calc(80% - 15px); right: -35px; }
  .pc-footer { height: 54px; padding: 0 0.7rem; gap: 0.3rem; border-radius: 0 0 20px 20px; }
  .pc-avatar { width: 26px; height: 26px; }
  .pc-username { font-size: 0.58rem; }
  .pc-status { display: none; }
  .pc-cta { font-size: 0.58rem; padding: 0.3rem 0.6rem; }
}

/* =====================================================
   MARQUEE BANNER
   ===================================================== */
.marquee-wrap {
  overflow: hidden; border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary); padding: 0.8rem 0;
  position: relative;
}
.marquee-wrap::before, .marquee-wrap::after {
  content: ''; position: absolute; top: 0; width: 80px; height: 100%; z-index: 2;
}
.marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--bg-secondary), transparent); }
.marquee-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg-secondary), transparent); }
.marquee-track {
  display: flex; gap: 1.5rem;
  white-space: nowrap;
  animation: marqueeScroll 32s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-muted); letter-spacing: 0.08em;
  text-transform: uppercase;
}
.marquee-dot { color: var(--accent) !important; }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* =====================================================
   SECTIONS
   ===================================================== */
.section { padding: 6rem 0; }
.section--alt { background: rgba(10, 28, 45, 0.25); backdrop-filter: blur(2px); }
.section__label {
  font-family: var(--font-mono); font-size: 0.7rem;
  font-weight: 500; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section__label::before {
  content: ''; display: inline-block;
  width: 20px; height: 1.5px; background: var(--accent);
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; line-height: 1.2;
  color: var(--text-primary); margin-bottom: 2rem;
}
.section__title em { font-style: normal; color: var(--accent); }
.section__desc {
  font-size: 0.95rem; color: var(--text-secondary);
  max-width: 540px; margin-bottom: 2.5rem; line-height: 1.85;
}

/* =====================================================
   ABOUT
   ===================================================== */
.about__grid {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 3rem; align-items: start; margin-top: 2rem;
}
.about__photo-wrap { position: relative; }
.about__photo-frame {
  width: 100%; aspect-ratio: 3/4;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
  cursor: zoom-in; position: relative;
}
.about__photo-frame:hover { transform: rotate(0deg); }
.about__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  max-width: 100%;
  max-height: 100%;
}
.about__photo-zoom {
  position: absolute; inset: 0;
  background: rgba(6,11,20,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff;
  opacity: 0; transition: opacity 0.3s ease;
}
.about__photo-frame:hover .about__photo-zoom { opacity: 1; }
.about__photo-tag {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 1rem; padding-left: 0.25rem;
}
.about__photo-tag i { color: var(--accent); }


/* =====================================================
   LANYARD ID CARD — PHYSICAL LANYARD V3
   ===================================================== */
.about__photo-wrap { position: relative; display: flex; justify-content: center; }

.lanyard-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  animation: lanyardSway 7s ease-in-out infinite;
  transform-origin: top center;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.55));
  padding-top: 10px;
}
@keyframes lanyardSway {
  0%, 100% { transform: rotate(-1.5deg); }
  50%       { transform: rotate(1.5deg); }
}

/* === Physical Strap Assembly === */
.lanyard-strap-assembly {
  position: relative;
  width: 100%;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
/* Two diagonal straps converging from sides of card to center clip */
.lanyard-strap-left,
.lanyard-strap-right {
  position: absolute;
  bottom: 22px;
  width: 14px;
  height: 72px;
  border-radius: 4px;
  background: linear-gradient(180deg,
    #0DB8D3 0%,
    #1B7FDC 35%,
    #065B98 65%,
    #0DB8D3 100%
  );
  background-size: 100% 200%;
}
.lanyard-strap-left  { left: calc(50% - 28px); transform-origin: bottom center; transform: rotate(-10deg); }
.lanyard-strap-right { right: calc(50% - 28px); transform-origin: bottom center; transform: rotate(10deg); }
/* Sheen stripe on straps */
.lanyard-strap-left::after,
.lanyard-strap-right::after {
  content: '';
  position: absolute;
  top: 0; left: 30%; width: 25%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
  border-radius: inherit;
}
/* Vertical center piece connecting the two straps to the clip */
.lanyard-strap-center {
  position: absolute;
  bottom: 20px;
  left: 50%; transform: translateX(-50%);
  width: 12px; height: 30px;
  background: linear-gradient(180deg, #0DB8D3 0%, #1B7FDC 100%);
  border-radius: 3px;
  z-index: 2;
}

/* === Metal D-Ring Clip === */
.lanyard-dring-assembly {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  z-index: 4;
}
.lanyard-dring-bar {
  width: 20px; height: 8px;
  background: linear-gradient(90deg, #8aa4b8 0%, #c0d4e2 40%, #8aa4b8 70%, #b0cad8 100%);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.35);
}
.lanyard-dring-oval {
  width: 24px; height: 14px;
  border: 3.5px solid transparent;
  border-bottom-color: #9ab8ca;
  border-left-color: #9ab8ca;
  border-right-color: #9ab8ca;
  border-top: none;
  border-radius: 0 0 14px 14px;
  background: transparent;
  box-shadow:
    0 3px 8px rgba(0,0,0,0.5),
    inset 0 -2px 4px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.25);
  margin-top: -1px;
}

/* ID Card */
.id-card {
  width: 100%;
  aspect-ratio: 29 / 42;
  border-radius: 16px;
  overflow: visible;
  background: linear-gradient(145deg, #071c2e 0%, #0a2540 40%, #0d2e4a 100%);
  border: 1px solid rgba(13,184,211,0.4);
  box-shadow:
    0 24px 70px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
  will-change: transform;
  clip-path: inset(0 0 0 0 round 16px);
  overflow: hidden;
}
.id-card:hover {
  box-shadow:
    0 36px 90px rgba(0,0,0,0.7),
    0 0 0 1px rgba(13,184,211,0.5),
    0 0 50px rgba(13,184,211,0.15);
}

/* Punch hole at top center */
.id-card__punch-hole {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 8px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #0a2035, #071825);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: none;
  z-index: 10;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
}

/* Top accent stripe */
.id-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0DB8D3 0%, #1B7FDC 50%, #065B98 100%);
  z-index: 3;
}
/* Subtle inner glow */
.id-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 35% at 50% 0%, rgba(13,184,211,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(6,91,152,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Hologram foil effect */
.id-card__hologram {
  position: absolute;
  bottom: 3.5rem; right: 0.8rem;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: conic-gradient(
    #0DB8D3 0deg, #1B7FDC 60deg, #065B98 120deg,
    #0DB8D3 180deg, #1B7FDC 240deg, #065B98 300deg, #0DB8D3 360deg
  );
  opacity: 0.45;
  animation: hologramSpin 6s linear infinite;
  z-index: 2;
}
@keyframes hologramSpin {
  to { transform: rotate(360deg); }
}

/* Shine overlay */
.id-card__shine {
  position: absolute; inset: 0;
  border-radius: 16px;
  pointer-events: none;
  z-index: 5;
  transition: background 0.05s;
  mix-blend-mode: overlay;
}

/* Card Header */
.id-card__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 0.9rem 0.5rem;
  border-bottom: 1px solid rgba(13,184,211,0.12);
  position: relative; z-index: 1;
  background: rgba(13,184,211,0.04);
  margin-top: 4px;
}
.id-card__logo {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  background: linear-gradient(90deg, #0DB8D3 0%, #1B7FDC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.06em;
}
.id-card__badge {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #0DB8D3;
  background: rgba(13,184,211,0.1);
  border: 1px solid rgba(13,184,211,0.3);
  border-radius: 4px;
  padding: 0.18rem 0.42rem;
}

/* Photo section */
.id-card__photo-wrap {
  margin: 0.75rem auto 0;
  width: 55%;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid transparent;
  background:
    linear-gradient(#071c2e, #071c2e) padding-box,
    linear-gradient(135deg, #0DB8D3 0%, #1B7FDC 50%, #065B98 100%) border-box;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 4px rgba(13,184,211,0.12), 0 8px 24px rgba(0,0,0,0.6);
}
.id-card__photo-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  z-index: 2;
  pointer-events: none;
}
.id-card__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}
.id-card:hover .id-card__photo { transform: scale(1.05); }
.id-card__photo-glow {
  position: absolute; bottom: -8px; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 16px;
  background: rgba(13,184,211,0.3);
  filter: blur(8px);
  border-radius: 50%;
  z-index: 0;
}

/* Card Body */
.id-card__body {
  padding: 0.6rem 0.9rem 0.5rem;
  text-align: center;
  position: relative; z-index: 1;
  flex: 1;
}
.id-card__name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e8f6fb 0%, #b8dff0 50%, #0DB8D3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.01em;
  margin-bottom: 0.15rem;
}
.id-card__role {
  font-family: var(--font-mono);
  font-size: 0.57rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.id-card__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(13,184,211,0.25) 50%, transparent 100%);
  margin-bottom: 0.5rem;
}
.id-card__details {
  display: flex; flex-direction: column; gap: 0.3rem; text-align: left;
}
.id-card__detail {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: rgba(184,223,240,0.85);
  display: flex; align-items: center; gap: 0.45rem;
}
.id-card__detail i { color: var(--accent); width: 11px; flex-shrink: 0; }

/* Skill tags */
.id-card__tags {
  display: flex; flex-wrap: wrap; gap: 0.28rem;
  margin-top: 0.48rem; justify-content: flex-start;
}
.id-card__tags span {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-family: var(--font-mono); font-size: 0.54rem;
  color: var(--accent);
  background: rgba(13,184,211,0.1);
  border: 1px solid rgba(13,184,211,0.25);
  border-radius: 3px; padding: 0.12rem 0.44rem;
  letter-spacing: 0.04em;
}
.id-card__tags span i {
  font-size: 0.62rem;
  color: var(--accent);
}

/* Card Footer */
.id-card__footer {
  padding: 0.45rem 0.9rem 0.6rem;
  border-top: 1px solid rgba(13,184,211,0.1);
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
  margin-top: auto;
  background: rgba(13,184,211,0.03);
}
.id-card__barcode { display: flex; flex-direction: column; gap: 0.2rem; }
.id-card__barcode-lines {
  display: flex; align-items: stretch; gap: 1px; height: 22px;
}
.id-card__barcode-lines span {
  display: block;
  background: rgba(13,184,211,0.6);
  border-radius: 1px;
  flex: 1;
}
.id-card__barcode-lines span:nth-child(2n)   { background: rgba(13,184,211,0.3); }
.id-card__barcode-lines span:nth-child(3n)   { background: rgba(13,184,211,0.8); width: 2px; flex: none; }
.id-card__barcode-lines span:nth-child(5n)   { background: rgba(13,184,211,0.15); }
.id-card__barcode-num {
  font-family: var(--font-mono); font-size: 0.44rem;
  color: rgba(106,159,186,0.6); letter-spacing: 0.06em;
}
.id-card__status {
  display: flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.55rem; font-weight: 700;
  color: #0DB8D3; letter-spacing: 0.12em;
}
.id-card__status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #0DB8D3;
  box-shadow: 0 0 6px rgba(13,184,211,0.9);
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(13,184,211,0.9); }
  50%       { opacity: 0.6; box-shadow: 0 0 14px rgba(13,184,211,0.4); }
}

/* Responsive */
@media (max-width: 900px) {
  .lanyard-wrap { max-width: 340px; }
}
@media (max-width: 600px) {
  .about__photo-wrap { max-width:  270px !important; margin: 0 auto; }
  .lanyard-wrap { max-width: 340px; }
}
@media (max-width: 480px) {
  .about__photo-wrap { max-width:  270px  !important; }
  .lanyard-wrap { max-width: 340px; }
  .id-card__name { font-size: 0.8rem; }
  .lanyard-strap-left  { left: calc(50% - 24px); }
  .lanyard-strap-right { right: calc(50% - 24px); }
}
@media (max-width: 360px) {
  .about__photo-wrap { max-width: 270px !important; }
  .lanyard-wrap { max-width: 340px; }
}

.lanyard-wrap.is-tilting {
  animation-play-state: paused;
}

/* Light mode ID card overrides */

/* GitHub-style Activity Widget */
.about__activity {
  margin-top: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}
.activity__label {
  font-family: var(--font-mono); font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 0.6rem;
}
.activity__grid {
  --activity-square: clamp(10px, 2.2vw, 16px);
  --activity-gap: clamp(3px, 0.6vw, 6px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--activity-square);
  grid-template-rows: repeat(7, var(--activity-square));
  gap: var(--activity-gap);
  margin-bottom: 0.6rem;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.activity__sq {
  width: 100%; height: 100%; border-radius: 2px;
  background: var(--border-color);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  transform-origin: center;
  z-index: 1;
}
.activity__sq:hover { transform: scale(1.35); z-index: 10; box-shadow: 0 6px 14px rgba(0,0,0,0.25); }
.activity__sq:hover { transform: scale(1.4); }
.activity__sq[data-level="0"] { background: rgba(13,184,211,0.06); }
.activity__sq[data-level="1"] { background: rgba(13,184,211,0.2); }
.activity__sq[data-level="2"] { background: rgba(13,184,211,0.4); }
.activity__sq[data-level="3"] { background: rgba(13,184,211,0.65); }
.activity__sq[data-level="4"] { background: rgba(13,184,211,0.9); }
.activity__legend {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-muted);
}
.activity__scale { display: flex; gap: 2px; }

/* =====================================================
   ABOUT FACTS — TRANSPARENT CARD
   ===================================================== */
.about__facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.75rem;
  background: rgba(13, 184, 211, 0.04);
  border: 1px solid rgba(13, 184, 211, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.about__facts li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.72rem 1.1rem;
  border-bottom: 1px solid rgba(13, 184, 211, 0.08);
  transition: background 0.2s;
}
.about__facts li:last-child { border-bottom: none; }
.about__facts li:hover { background: rgba(13, 184, 211, 0.06); }
.about__facts-key {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  min-width: 90px;
  flex-shrink: 0;
}
.about__facts-key i { font-size: 0.75rem; width: 14px; text-align: center; }
.about__facts-val {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.about__facts-val--available {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: #22c55e;
  font-weight: 500;
}
.about__avail-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.7);
  animation: availPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes availPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
/* Light mode */

.about__intro {
  font-size: 0.975rem; color: var(--text-secondary);
  line-height: 1.85; margin-bottom: 1.5rem;
}
.about__info { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.info-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px; padding: 0.3rem 0.85rem;
  font-family: var(--font-mono);
  transition: border-color 0.2s, color 0.2s;
}
.info-chip:hover { border-color: var(--accent); color: var(--accent); }
.info-chip i { color: var(--accent); }
.about__desc { margin-bottom: 1.5rem; }
.about__desc p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.85; }

.fun-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.fun-fact {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 14px;

  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.fun-fact:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Icon Wrapper */
.fun-fact__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-size: 0.9rem;

  flex-shrink: 0;
}

/* Gradient Colors */
.coffee {
  background: linear-gradient(135deg, #ff8a00, #ff5e62);
  box-shadow: 0 4px 12px rgba(255, 94, 98, 0.35);
}

.design {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
}

.learn {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

.music {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35);
}

/* Optional Icon Animation */
.fun-fact:hover .fun-fact__icon {
  transform: scale(1.05);
  transition: transform 0.25s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .fun-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }

  .fun-fact {
    width: 100%;
    justify-content: flex-start;
    padding: 0.65rem 0.85rem;
    font-size: 0.78rem;
  }

  .fun-fact__icon {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}

.about__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* =====================================================
   SKILLS
   ===================================================== */
.skills__layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start; margin-top: 2rem;
}
.skills__bars { display: flex; flex-direction: column; gap: 1.5rem; }
.skill-bar__header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 0.55rem;
}
.skill-bar__name {
  font-size: 0.875rem; font-weight: 500; color: var(--text-primary);
  display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-body);
}
.skill-bar__name i { color: var(--accent); font-size: 1rem; }
.skill-bar__pct { font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent); }
.skill-bar__track {
  height: 4px; background: rgba(13,184,211,0.08);
  border-radius: 50px; overflow: hidden;
}
.skill-bar__fill {
  height: 100%; width: 0%;
  background: var(--gradient-primary);
  border-radius: 50px;
  transition: width 1.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}
.skill-bar__fill::after {
  content: ''; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.skill-bar.animated .skill-bar__fill { width: var(--bar-level); }

.skills__tools { }
.skills__tools-title {
  font-family: var(--font-mono); font-size: 0.8rem;
  font-weight: 400; color: var(--text-secondary); margin-bottom: 1.2rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 0.75rem; margin-top: 0.5rem;
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem 0.9rem 1rem;
  display: flex; flex-direction: column;
  align-items: center; gap: 0.55rem; text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default; position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(13,184,211,0.08), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.skill-card:hover::before { opacity: 1; }
.skill-card:hover {
  border-color: var(--accent);
  box-shadow: 
    0 8px 32px rgba(13,184,211,0.2),
    0 0 0 1px rgba(13,184,211,0.2);
  transform: translateY(-6px) scale(1.02);
}
.skill-card i {
  font-size: 1.5rem; color: var(--accent);
  transition: transform 0.3s;
}
.skill-card:hover i {
  transform: scale(1.15) rotateY(10deg);
}
.skill-card span {
  font-size: 0.72rem; font-weight: 500; color: var(--text-secondary);
  font-family: var(--font-mono);
  transition: color 0.3s;
}
.skill-card:hover span { color: var(--accent); }
.skill-card__bar {
  width: 100%; height: 3px;
  background: rgba(13,184,211,0.1);
  border-radius: 50px; overflow: hidden; margin-top: 0.3rem;
}
.skill-card__bar div {
  height: 100%; background: var(--gradient-primary);
  border-radius: 50px; transition: width 1.2s ease;
  box-shadow: 0 0 10px rgba(13,184,211,0.5);
}
/* Tooltip */
.skill-card[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card); border: 1px solid var(--border-hover);
  color: var(--accent); font-family: var(--font-mono);
  font-size: 0.6rem; padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.skill-card:hover[data-tooltip]::after { opacity: 1; }

/* =====================================================
   RESUME / TIMELINE
   ===================================================== */
.resume__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5rem; margin-top: 2rem;
}
.resume__col-title {
  font-size: 0.875rem; font-weight: 600; font-family: var(--font-mono);
  color: var(--text-primary);
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 2rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}
.resume__col-title i { color: var(--accent); }
.timeline {
  position: relative; padding-left: 1.5rem;
  border-left: 1px solid var(--border-color);
  display: flex; flex-direction: column; gap: 2.5rem;
}
.timeline__item { position: relative; }
.timeline__dot {
  position: absolute; left: calc(-1.5rem - 5px); top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(13,184,211,0.2), 0 0 10px rgba(13,184,211,0.3);
}
.timeline__date {
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--accent); letter-spacing: 0.08em;
  display: block; margin-bottom: 0.35rem;
}
.timeline__body h4 {
  font-size: 0.95rem; font-weight: 600; font-family: var(--font-display);
  color: var(--text-primary); margin-bottom: 0.2rem;
}
.timeline__company {
  font-size: 0.78rem; color: var(--accent);
  margin-bottom: 0.5rem; font-weight: 500; font-family: var(--font-mono);
}
.timeline__body p {
  font-size: 0.875rem; color: var(--text-secondary); line-height: 1.8;
  margin-bottom: 0.75rem;
}
.timeline__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.timeline__tags span {
  font-family: var(--font-mono); font-size: 0.62rem;
  color: var(--text-muted);
  background: rgba(13,184,211,0.06);
  border: 1px solid var(--border-color);
  border-radius: 50px; padding: 0.15rem 0.6rem;
}

/* Certifications */
.cert__section {
  margin-top: 4rem; padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}
.cert__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; margin-top: 1.5rem;
}
.cert-item {
  display: flex; align-items: flex-start; gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  transition: all 0.22s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: break-word;
}
.cert-item::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,184,211,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.22s;
  pointer-events: none;
}
.cert-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(13,184,211,0.12), 0 0 0 1px rgba(13,184,211,0.15);
}
.cert-item:hover::before { opacity: 1; }
.cert-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.cert-item > div:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; }
.cert-item__view {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(13,184,211,0.08);
  border: 1px solid rgba(13,184,211,0.2);
  color: var(--accent);
  font-size: 0.7rem;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.22s, transform 0.22s, background 0.22s;
}
.cert-item:hover .cert-item__view {
  opacity: 1;
  transform: scale(1);
  background: rgba(13,184,211,0.15);
}
.cert-item__badge {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(13,184,211,0.08);
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.cert-item__badge i { color: var(--accent); font-size: 0.95rem; }
.cert-item strong {
  display: block; font-size: 0.83rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 0.18rem;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.cert-item em {
  font-style: normal; font-size: 0.72rem;
  color: var(--text-muted); font-family: var(--font-mono);
  display: block;
  white-space: normal;
  overflow-wrap: break-word;
}

/* =====================================================
   SERVICES — ENHANCED 3D CARDS
   ===================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem; margin-top: 2rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
  transform-style: preserve-3d;
  cursor: pointer;
}
.service-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(13,184,211,0.08), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; }
.service-card:hover {
  border-color: var(--border-hover);
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.4),
    0 0 0 1px rgba(13,184,211,0.2),
    0 0 48px rgba(13,184,211,0.15);
  transform: translateY(-8px) translateZ(20px);
}
.service-card__num {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--accent); margin-bottom: 1.2rem;
  letter-spacing: 0.08em;
}
.service-card__icon {
  font-size: 1.6rem; color: var(--accent);
  margin-bottom: 1rem;
  width: 52px; height: 52px;
  background: rgba(13,184,211,0.08);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.service-card__icon::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,184,211,0.2), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.service-card:hover .service-card__icon {
  background: rgba(13,184,211,0.18);
  border-color: var(--accent);
  transform: scale(1.1) rotateY(10deg);
  box-shadow: 0 8px 24px rgba(13,184,211,0.35);
}
.service-card:hover .service-card__icon::before { opacity: 1; }
.service-card h3 {
  font-size: 1.1rem; font-weight: 700; font-family: var(--font-display);
  color: var(--text-primary); margin-bottom: 0.6rem;
  transition: color 0.3s;
}
.service-card:hover h3 { color: var(--accent); }
.service-card p {
  font-size: 0.875rem; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: 1.25rem;
}
.service-card__list { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.5rem; }
.service-card__list li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-mono);
  transition: transform 0.2s, color 0.2s;
}
.service-card:hover .service-card__list li {
  transform: translateX(4px);
  color: var(--text-secondary);
}
.service-card__list i { color: var(--accent-green); font-size: 0.8rem; flex-shrink: 0; }
.service-card__cta { margin-top: auto; }
.service-card__cta a {
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: gap 0.3s;
}
.service-card__cta a:hover { gap: 0.7rem; }

/* =====================================================
   PAGE LOADER — Premium Minimal v3
   ===================================================== */
/* =====================================================
   PAGE LOADER — JUSTDEV. Grid Style
   ===================================================== */
/* =====================================================
   PAGE LOADER — MINIMALIST REDESIGN
   "Ink on glass" — dead silence, then a breath of light
   ===================================================== */

.page-loader {
  position: fixed; inset: 0; z-index: 99999;
  background: #05101e;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity 0.9s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.9s;
  will-change: opacity;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Ambient background — single, barely-there radial bloom */
.loader-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 65% 55% at 50% 50%,
      rgba(13, 184, 211, 0.055) 0%,
      transparent 70%);
  animation: loaderBreath 6s ease-in-out infinite alternate;
}
@keyframes loaderBreath {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.06); }
}

/* Glow blobs — whisper-thin, barely visible */
.loader-glow {
  position: absolute; z-index: 1;
  border-radius: 50%;
  pointer-events: none;
}
.loader-glow--left {
  width: 500px; height: 420px;
  bottom: -160px; left: -200px;
  background: radial-gradient(ellipse, rgba(6, 91, 152, 0.22) 0%, transparent 72%);
  filter: blur(70px);
}
.loader-glow--right {
  width: 600px; height: 520px;
  top: -180px; right: -160px;
  background: radial-gradient(ellipse, rgba(13, 184, 211, 0.18) 0%, rgba(27, 127, 220, 0.10) 50%, transparent 80%);
  filter: blur(80px);
  opacity: 0.85;
  animation: loaderGlowDrift 9s ease-in-out infinite alternate;
}
.loader-glow--left::after { display: none; }
@keyframes loaderGlowDrift {
  0%   { opacity: 0.7;  transform: scale(1) translateY(0); }
  100% { opacity: 0.95; transform: scale(1.05) translateY(-16px); }
}

/* ── Core centered column ── */
.loader-center {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 440px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  gap: 0;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* ── Tech icons — ultra-minimal, no bubbles ── */
.loader-icons {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  animation: loaderSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}
.loader-icon-bubble {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  transition: border-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
  box-shadow: none;
}
.loader-icon-bubble:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ── Wordmark — medium size, clean letterforms ── */
.loader-wordmark {
  display: flex; align-items: baseline; justify-content: center;
  gap: 0;
  margin-bottom: 8px;
  animation: loaderSlideIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}
.loader-word-main {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  font-weight: 800;
  color: #e2f3fa;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 0 28px rgba(13, 184, 211, 0.18);
  -webkit-text-fill-color: #e2f3fa;
}
.loader-word-accent {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  font-weight: 800;
  background: linear-gradient(110deg, #cceeff 0%, #0DB8D3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}
.loader-word-dot {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  font-weight: 800;
  color: #0DB8D3;
  -webkit-text-fill-color: #0DB8D3;
  letter-spacing: 0;
  line-height: 1;
}

/* ── Subtitle — ghost text ── */
.loader-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: rgba(13, 184, 211, 0.35);
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: loaderSlideIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

/* ── Monogram — hidden, not used in new layout ── */
.loader-monogram { display: none; }

/* ── Progress system — the hero of the new design ── */
.loader-progress {
  width: 240px;
  animation: loaderSlideIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.48s both;
}

/* The track: an open rectangle — no fill, just two corner marks */
.loader-progress-track {
  width: 100%;
  height: 1px;
  background: rgba(13, 184, 211, 0.12);
  border-radius: 0;
  overflow: visible;
  position: relative;
}
/* Corner ticks — surgical detail */
.loader-progress-track::before,
.loader-progress-track::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: rgba(13, 184, 211, 0.3);
}
.loader-progress-track::before { left: 0; }
.loader-progress-track::after  { right: 0; }

.loader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(13,184,211,0.5) 0%, #0DB8D3 60%, #38d9f5 100%);
  border-radius: 0;
  will-change: width;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 0 10px rgba(13, 184, 211, 0.55);
}
/* Traveling light at the tip */
.loader-progress-fill::after {
  content: '';
  position: absolute; top: -2px; right: -1px;
  width: 3px; height: 5px;
  background: #fff;
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(13, 184, 211, 1), 0 0 20px rgba(13, 184, 211, 0.6);
  opacity: 0;
  animation: none;
}
/* Show the tip only when bar has some width */
.loader-progress-fill:not([style*="width: 0"])::after,
.loader-progress-fill[style*="width"]:not([style*="width: 0%"])::after {
  opacity: 1;
}

/* Progress meta row */
.loader-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.loader-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: rgba(13, 184, 211, 0.35);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}
.loader-percent {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: rgba(13, 184, 211, 0.7);
  letter-spacing: 0.06em;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

/* ── Shared entrance keyframe ── */
@keyframes loaderSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Kept for back-compat in case JS references these */
@keyframes loaderReveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes loaderFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =====================================================
   PARTICLE CANVAS
   ===================================================== */
.particle-canvas {
  position: fixed; inset: 0; pointer-events: none;
  z-index: 0; opacity: 0.35;
}

/* =====================================================
   SECTION DOTS NAV
   ===================================================== */
.section-dots {
  position: fixed; right: 1.5rem; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0.6rem;
  z-index: 100; opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.section-dots.visible { opacity: 1; pointer-events: all; }
.section-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-hover);
  border: none; cursor: pointer; display: block;
  transition: all 0.3s ease; position: relative;
}
.section-dot::after {
  content: attr(data-label);
  position: absolute; right: calc(100% + 10px); top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-muted); white-space: nowrap;
  opacity: 0; transition: opacity 0.2s;
  pointer-events: none;
}
.section-dot:hover::after, .section-dot.active::after { opacity: 1; }
.section-dot.active {
  background: var(--accent);
  height: 24px; border-radius: 4px;
  box-shadow: 0 0 12px rgba(13,184,211,0.6);
}
.section-dot:hover { background: var(--text-secondary); }

/* =====================================================
   THEME TOGGLE
   ===================================================== */



/* Light theme overrides */

/* =====================================================
   PORTFOLIO GRID (replaces carousel)
   ===================================================== */
.portfolio-filters {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem;
  align-items: center; width: 100%; min-width: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 0.25rem;
}
.filter-btn {
  padding: 0.45rem 1.1rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; font-family: var(--font-mono);
  cursor: pointer; border: 1px solid var(--border-color);
  background: var(--bg-card); color: var(--text-secondary);
  transition: all 0.22s ease; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 0.4rem;
  flex: 0 0 auto; white-space: nowrap;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: rgba(13,184,211,0.12); border-color: var(--accent); color: var(--accent);
  box-shadow: 0 0 16px rgba(13,184,211,0.2);
}
.filter-count {
  background: rgba(13,184,211,0.18); color: var(--accent);
  border-radius: 50px; padding: 0.05rem 0.45rem;
  font-size: 0.65rem; font-weight: 700;
}
.filter-btn.active .filter-count { background: var(--accent); color: var(--bg-primary); }

/* Grid layout */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.portfolio-item {
  position: relative;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.portfolio-item--wide {
  grid-column: span 2;
}
.portfolio-item.filter-hidden {
  display: none;
}
.portfolio-item.filter-fade-out {
  opacity: 0; transform: scale(0.95);
}
.portfolio-item.filter-fade-in {
  animation: fadeInUp 0.4s ease forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Card */
.portfolio-card {
  position: relative; width: 100%; height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  transform-style: preserve-3d;
}
.portfolio-card:hover {
  box-shadow: 
    0 30px 80px rgba(0,0,0,0.6),
    0 0 0 1px var(--border-hover),
    0 0 48px rgba(13,184,211,0.2);
  border-color: var(--border-hover);
}
.portfolio-card__image {
  position: absolute; inset: 0;
  overflow: hidden; background: var(--bg-secondary); cursor: zoom-in;
}
.portfolio-card__image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  display: block; pointer-events: none;
}
.portfolio-card:hover .portfolio-card__image img { transform: scale(1.1); }

/* Shine effect */
.portfolio-card__shine {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%),
    rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.4s;
}
.portfolio-card:hover .portfolio-card__shine { opacity: 1; }

/* Overlay */
.portfolio-card__overlay {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(180deg, rgba(6,11,20,0) 0%, rgba(6,11,20,0.7) 40%, rgba(6,11,20,0.97) 100%);
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 1.5rem; opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-card:hover .portfolio-card__overlay { opacity: 1; }
.portfolio-card__tags { margin-bottom: 0.5rem; display: flex; gap: 0.35rem; flex-wrap: wrap; }
.portfolio-card__tag {
  display: inline-block; font-family: var(--font-mono);
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: #fff; background: rgba(13,184,211,0.15);
  border: 1px solid rgba(13,184,211,0.35);
  border-radius: 50px; padding: 0.25rem 0.7rem;
  backdrop-filter: blur(10px);
}
.portfolio-card__content {
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
  width: 100%;
}
.portfolio-card:hover .portfolio-card__content { transform: translateY(0); }
.portfolio-card__title {
  font-family: var(--font-display); font-size: 1.3rem;
  color: #fff; margin-bottom: 0.4rem; font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.portfolio-card__desc {
  font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 1rem;
  line-height: 1.6; max-width: 380px;
}
.portfolio-card__actions {
  display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap;
}
.portfolio-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1.1rem; border-radius: 50px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.75rem;
  cursor: pointer; border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}
.portfolio-btn--primary {
  background: rgba(255,255,255,0.95); color: #111;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.portfolio-btn--primary:hover {
  background: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.portfolio-btn--secondary {
  background: rgba(255,255,255,0.1); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.portfolio-btn--secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px) scale(1.05);
}

/* Card Footer */
.portfolio-card__footer {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, var(--bg-card) 70%, transparent);
  display: flex; align-items: center; justify-content: space-between;
  transition: opacity 0.3s ease;
  border-top: 1px solid var(--border-subtle);
}
.portfolio-card:hover .portfolio-card__footer { opacity: 0; }
.portfolio-card__footer-info { display: flex; align-items: center; gap: 0.6rem; }
.portfolio-card__num {
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--accent);
  letter-spacing: 0.08em;
}
.portfolio-card__footer-info h4 {
  font-size: 0.82rem; font-weight: 600; color: var(--text-primary);
  font-family: var(--font-display);
}
.portfolio-card__footer-tags {
  display: flex; gap: 0.3rem; flex-wrap: wrap;
}
.portfolio-card__footer-tags span {
  font-size: 0.6rem; font-family: var(--font-mono);
  color: #fff; 
  border: 1px solid var(--border-subtle);
  border-radius: 4px; padding: 0.15rem 0.45rem;
}


/* =====================================================
   TESTIMONIALS — ENHANCED 3D
   ===================================================== */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
  transform-style: preserve-3d;
  cursor: pointer;
}
.testimonial-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(13,184,211,0.05), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.testimonial-card:hover::after { transform: scaleX(1); }
.testimonial-card:hover::before { opacity: 1; }
.testimonial-card:hover {
  border-color: var(--border-hover);
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.4),
    0 0 0 1px rgba(13,184,211,0.2),
    0 0 48px rgba(13,184,211,0.12);
}
.testimonial-card__quote {
  font-size: 2rem; color: var(--accent); opacity: 0.25;
  margin-bottom: 1rem; line-height: 1;
  transition: all 0.3s;
}
.testimonial-card:hover .testimonial-card__quote {
  opacity: 0.4;
  transform: scale(1.1);
}
.testimonial-card__text {
  font-size: 0.875rem; color: var(--text-secondary);
  line-height: 1.85; flex: 1; font-style: italic;
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}
.testimonial-card:hover .testimonial-card__text {
  color: var(--text-primary);
}
.testimonial-card__stars {
  display: flex; gap: 0.2rem; align-items: center;
  color: #f59e0b; font-size: 0.85rem;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
.testimonial-card:hover .testimonial-card__stars {
  transform: scale(1.05);
}
.testimonial-card__author {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}
.testimonial-card__avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #fff;
  flex-shrink: 0; font-family: var(--font-mono);
  box-shadow: 0 0 0 3px rgba(13,184,211,0.2);
  transition: all 0.3s;
}
.testimonial-card:hover .testimonial-card__avatar {
  box-shadow: 0 0 0 4px rgba(13,184,211,0.35), 0 4px 12px rgba(13,184,211,0.35);
  transform: scale(1.05);
}
.testimonial-card__author-info {
  display: flex; flex-direction: column; gap: 0.15rem;
}
.testimonial-card__author-info strong {
  display: block; font-size: 0.875rem;
  color: var(--text-primary); font-weight: 600; line-height: 1.2;
}
.testimonial-card__author-info span {
  font-size: 0.7rem; color: var(--text-muted);
  font-family: var(--font-mono);
}

/* =====================================================
   IMAGE LIGHTBOX
   ===================================================== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(16px); padding: 2rem;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s; font-family: var(--font-mono);
}
.lightbox__close:hover { background: rgba(255,255,255,0.14); }
.lightbox__content { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); overflow: auto; box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(13,184,211,0.15); display: flex; align-items: center; justify-content: center; }
.lightbox__content img { max-width: 100%; max-height: 85vh; width: auto; height: auto; object-fit: contain; display: block; }
.lightbox__content img[src=""] { display: none; }
.lightbox__caption {
  margin-top: 1rem; font-size: 0.8rem;
  color: rgba(255,255,255,0.4); font-family: var(--font-mono);
}
.lightbox__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}
.lightbox__nav:hover { background: rgba(13,184,211,0.22); transform: translateY(-50%) scale(1.08); }
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }
.lightbox__counter {
  position: absolute;
  bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.4);
  padding: 0.2rem 0.7rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact__grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 3rem; align-items: start; margin-top: 2rem;
}
.contact__intro {
  font-size: 0.95rem; color: var(--text-secondary);
  line-height: 1.85; margin-bottom: 2rem;
}
.contact-info-cards { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1.25rem; }
.contact-info-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 0.9rem 1.1rem;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-info-card:hover { border-color: var(--border-hover); transform: translateX(4px); }
.contact-info-card > i {
  font-size: 1rem; color: var(--accent); margin-top: 0.1rem; flex-shrink: 0;
}
.contact-info-card strong {
  display: block; font-size: 0.72rem; font-weight: 600;
  color: var(--text-muted); font-family: var(--font-mono);
  margin-bottom: 0.15rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.contact-info-card span, .contact-info-card a { font-size: 0.85rem; color: var(--text-primary); }
.contact-info-card a:hover { color: var(--accent); }
.contact-socials { display: flex; gap: 0.75rem; margin-top: 0.4rem; }
.contact-socials a {
  font-size: 1rem; color: var(--text-secondary); transition: color 0.2s;
}
.contact-socials a:hover { color: var(--accent); }

.availability-card {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-md); padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}
.availability-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent-green); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
  animation: pulse 2.5s ease infinite;
}
.availability-card strong { display: block; font-size: 0.85rem; color: var(--accent-green); }
.availability-card span { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }

.response-card {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(13,184,211,0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 0.85rem 1rem;
}
.response-card > i { color: var(--accent); font-size: 1rem; }
.response-card strong { display: block; font-size: 0.85rem; color: var(--text-primary); }
.response-card span { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }

/* Form */
.contact__form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label {
  font-size: 0.72rem; font-weight: 500;
  color: var(--text-secondary); font-family: var(--font-mono);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  font-family: var(--font-body); font-size: 0.875rem;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none; appearance: none;
}
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233d5170' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-group select option { background: var(--bg-card); color: var(--text-primary); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* Required star */
.required-star { color: #ef4444; margin-left: 2px; }

/* Field error message */
.field-error {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: #ef4444;
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.field-error::before {
  content: '\f06a';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.65rem;
}

/* Error state */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: rgba(239,68,68,0.6) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12) !important;
}

/* Valid state */
.form-group.is-valid input,
.form-group.is-valid textarea {
  border-color: rgba(34,197,94,0.5) !important;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.08) !important;
}
@keyframes spin { to { transform: rotate(360deg); } }
.fa-spin { animation: spin 1s linear infinite; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
}
.footer__inner { display: flex; flex-direction: column; gap: 2rem; }
.footer__top { text-align: center; }
.footer__brand {
  font-family: var(--font-mono); font-size: 1.3rem;
  color: var(--text-primary); line-height: 1.1; font-weight: 600;
}
.footer__brand span { color: var(--accent); }
.footer__brand-bracket { color: var(--text-muted); }
.footer__tagline {
  font-size: 0.78rem; color: var(--text-muted);
  font-family: var(--font-mono); margin-top: 0.35rem;
}
.footer__nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem;
}
.footer__nav a {
  font-size: 0.82rem; color: var(--text-secondary); transition: color 0.2s;
  font-family: var(--font-mono);
}
.footer__nav a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.5rem; border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap; gap: 1rem;
}
.footer__copy { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }
.footer__socials { display: flex; gap: 0.75rem; }
.footer__socials a {
  font-size: 0.95rem; color: var(--text-muted); transition: color 0.2s;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.footer__socials a:hover { color: var(--accent); border-color: var(--accent); }

/* =====================================================
   FLOATING SOCIAL DOCK
   ===================================================== */
.floating-social {
  position: fixed; left: 1.5rem; bottom: 2rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  z-index: 100; opacity: 0; pointer-events: none;
  transform: translateX(-10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.floating-social.visible { opacity: 1; pointer-events: all; transform: translateX(0); }
.floating-social::after {
  content: ''; display: block; width: 1px; height: 55px;
  background: var(--border-color); margin: 0.2rem auto 0;
}
.floating-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border-color);
  color: var(--text-muted); font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.floating-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateX(3px); }

/* =====================================================
   BACK TO TOP
   ===================================================== */
#backToTop {
  position: fixed; bottom: 2rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-card); border: none;
  color: var(--text-secondary); cursor: pointer; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, color 0.2s;
}
#backToTop.visible { opacity: 1; pointer-events: all; }
#backToTop:hover { color: var(--accent); transform: translateY(-3px); }
.btt-ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.btt-ring__track { fill: none; stroke: var(--border-color); stroke-width: 2.5; }
.btt-ring__fill {
  fill: none; stroke: var(--accent); stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 119.38;
  stroke-dashoffset: 119.38;
  transition: stroke-dashoffset 0.15s linear;
}

/* =====================================================
   TOAST
   ===================================================== */
/* =====================================================
   TOAST — FULLY RESPONSIVE
   ===================================================== */
.toast {
  position: fixed;
  bottom: clamp(1rem, 4vw, 2rem);
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(20px);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(10, 18, 30, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.6rem 1.1rem 0.6rem 0.6rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.03) inset;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  /* Responsive: allow wrapping on small screens */
  white-space: normal;
  max-width: min(480px, calc(100vw - 2rem));
  width: max-content;
  word-break: break-word;
  text-align: left;
  box-sizing: border-box;
}
.toast.show { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }

/* On very small screens use near-full width */
@media (max-width: 480px) {
  .toast {
    left: 1rem;
    right: 1rem;
    transform: translateY(20px);
    max-width: calc(100vw - 2rem);
    width: auto;
    border-radius: 16px;
    padding: 0.7rem 1rem 0.7rem 0.7rem;
    gap: 0.55rem;
  }
  .toast.show {
    transform: translateY(0);
  }
}

@media (max-width: 360px) {
  .toast {
    left: 0.75rem;
    right: 0.75rem;
    max-width: calc(100vw - 1.5rem);
    padding: 0.65rem 0.85rem 0.65rem 0.65rem;
    gap: 0.5rem;
    bottom: 0.75rem;
  }
}

.toast__icon-wrap {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.07);
  transition: background 0.2s ease;
}
.toast__icon {
  font-size: 0.95rem;
  line-height: 1;
}
.toast__msg {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  line-height: 1.45;
  padding-right: 0.25rem;
  flex: 1;
  min-width: 0;
}
@media (max-width: 480px) {
  .toast__msg { font-size: 0.78rem; }
  .toast__icon-wrap { width: 28px; height: 28px; }
  .toast__icon { font-size: 0.88rem; }
}
@media (max-width: 360px) {
  .toast__msg { font-size: 0.74rem; letter-spacing: 0; }
  .toast__icon-wrap { width: 26px; height: 26px; }
}

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(13,184,211,0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(13,184,211,0.4); }

/* =====================================================
   SELECTION
   ===================================================== */
::selection { background: rgba(13,184,211,0.25); color: var(--text-primary); }

/* =====================================================
   RESPONSIVE — 1100px
   ===================================================== */
@media (min-width: 1100px) {
  .hero__terminal-deco { display: block; }
}
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .testimonials__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 260px;
  }
  .portfolio-item--wide { grid-column: span 2; }
  .section-dots { display: none; }
}
@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse; text-align: center;
    padding-top: calc(var(--nav-height) + 2rem);
    min-height: auto; padding-bottom: 4rem; gap: 1.25rem;
    padding-left: 1.5rem; padding-right: 1.5rem;
  }
  .hero__content { max-width: 100%; }
  /* Hide the inline tag inside hero__content — mobile tag shown separately */
  .hero__tag { display: none; }
  .hero__sub { justify-content: center; align-items: center; text-align: center; }
  .hero__sub-item { justify-content: center; }
  .hero__actions, .hero__stats { justify-content: center; }
  .hero__image-wrap {
    width: 356px;
    max-width: 356px;
    padding: 0 48px;
    height: auto;
    flex-shrink: 0;
  }
  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
  .about__photo-wrap { max-width: 240px; margin: 0 auto; }
  .about__photo-frame img { width: 100%; height: auto; max-width: 100%; }
  .about__actions { justify-content: center; }
  .about__info { justify-content: center; }
  .fun-facts { justify-content: center; }
  .resume__grid { grid-template-columns: 1fr; gap: 3rem; }
  .skills__layout { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__right { display: none; }
  .nav__hamburger { display: flex; }
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .skills__grid { grid-template-columns: repeat(3, 1fr); }
  .services__grid { grid-template-columns: 1fr; }
  .testimonials__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }
  .testimonials__grid::-webkit-scrollbar { height: 6px; }
  .testimonials__grid::-webkit-scrollbar-thumb { background: rgba(13,184,211,0.3); border-radius: 999px; }
  .testimonial-card {
    min-width: unset;
    flex: unset;
    width: 100%;
  }
  /* Portfolio grid: 2 col on tablet */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
    gap: 0.875rem;
  }
  .portfolio-item--wide { grid-column: span 2; }
  .portfolio-card__title { font-size: 1rem; }
  .portfolio-card__desc { display: none; }
  .portfolio-card__overlay { padding: 1rem; }
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; }
  .cert__grid { grid-template-columns: repeat(2, 1fr); }
  .floating-social { display: none; }
  /* Hero actions full width on tablet */
  .hero__actions { justify-content: center; }
  .hero__actions .btn { flex: 1 1 auto; min-width: 140px; }
}
@media (max-width: 480px) {
  .hero__name .accent-text { font-size: 2.2rem; }
  .section__title { font-size: 1.6rem; }
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { gap: 1rem; flex-wrap: nowrap; justify-content: center; }
  .stat__num { font-size: 1.5rem; }
  .stat__label { font-size: 0.6rem; }
  .side-nav { width: 280px; right: -290px; }
  /* Portfolio: 1 col on mobile */
  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
    gap: 1rem;
  }
  .portfolio-item--wide { grid-column: span 1; }
  .portfolio-card__footer { display: none; }
  .portfolio-card__overlay { opacity: 1; padding: 1.25rem; }
  .portfolio-card__content { transform: none; }
  .portfolio-card__title { font-size: 1.1rem; }
  .portfolio-card__desc { display: block; font-size: 0.8rem; }
  .filter-btn .filter-label { display: none; }
  /* Certificates: single column on mobile */
  .cert__grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .cert-item {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
    align-items: center;
  }
  .cert-item__badge {
    width: 34px; height: 34px;
    margin-top: 0;
    flex-shrink: 0;
  }
  .cert-item strong { font-size: 0.82rem; }
  .cert-item em { font-size: 0.69rem; }
  .marquee-wrap { padding: 0.65rem 0; }
  /* Stack hero buttons vertically on very small screens */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero__actions .btn { width: 100%; text-align: center; justify-content: center; }
  /* Fix about photo */
  .about__photo-frame img { width: 100%; height: auto; max-width: 100%; }
  /* Smaller container padding */
  .container { padding: 0 1rem; }
  /* Fix contact form */
  .contact__grid { gap: 2rem; }
  /* Fix footer nav */
  .footer__nav { gap: 0.6rem 1.2rem; }
  /* Fix filter buttons */
  .portfolio-filters { gap: 0.5rem; }
  .filter-btn { padding: 0.45rem 0.8rem; font-size: 0.75rem; }
  /* Section titles */
  .section__label { font-size: 0.65rem; }
  /* Service cards full width */
  .services__grid { gap: 1rem; }
  .service-card { padding: 1.75rem; }
  /* Testimonials */
  .testimonial-card { padding: 1.5rem; }
  /* Loader adjustments */
  .loader-word-main, .loader-word-accent, .loader-word-dot { font-size: 1.7rem; }}
/* =====================================================
   EXTRA SMALL SCREENS — 360px
   ===================================================== */
@media (max-width: 360px) {
  .hero__name .accent-text { font-size: 1.9rem; }
  .hero__role { font-size: 0.9rem; }
  .hero__image-wrap { width: 270px; padding: 0 40px; height: auto; }
  .hero__stats { gap: 0.6rem; }
  .stat__num { font-size: 1.3rem; }
  .stat__divider { height: 30px; }
  .section__title { font-size: 1.4rem; }
  .container { padding: 0 0.85rem; }
  .nav__inner { padding: 0 1rem; }
  .skills__grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .skill-card { padding: 0.85rem 0.5rem 0.7rem; }
  .info-chip { font-size: 0.68rem; padding: 0.25rem 0.65rem; }
  .cert__grid { grid-template-columns: 1fr; }
  .cert-item { padding: 0.75rem 0.9rem; gap: 0.75rem; align-items: center; }
  .cert-item strong { font-size: 0.75rem; }
}

/* =====================================================
   NAV INNER — prevent overflow on mid-size screens
   ===================================================== */
@media (max-width: 900px) {
  .nav__inner { gap: 0.75rem; }
}

/* =====================================================
   CONTACT GRID — mobile single column fix
   ===================================================== */
@media (max-width: 768px) {
  .contact__grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact__info { display: none; }
  .contact__form { order: 1; }
}

/* Desktop: show inline tag inside hero__content, hide mobile tag */
@media (min-width: 901px) {
  .hero__tag-mobile { display: none !important; }
}

/* Mobile-only available tag — sits above image in flex column */
.hero__tag-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
  white-space: nowrap;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero__tag-mobile {
    display: inline-flex;
    align-self: center;
  }
}

/* Hero content overflow fix */
.hero__content {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* =====================================================
   PORTFOLIO OVERLAY — always visible on touch devices
   ===================================================== */
@media (hover: none) {
  .portfolio-card__overlay { opacity: 1; }
  .portfolio-card__content { transform: none; }
  .portfolio-card__footer { opacity: 0; }
}

/* =====================================================
   FILTER BUTTONS — no overflow
   ===================================================== */
.portfolio-filters {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.portfolio-filters::-webkit-scrollbar { display: none; }

/* =====================================================
   HERO TAG — no overflow
   ===================================================== */
.hero__tag {
  white-space: nowrap;
  font-size: clamp(0.7rem, 2.5vw, 0.82rem);
}

/* =====================================================
   SECTION DOTS — hidden on mobile (already via 1024px)
   ===================================================== */
@media (max-width: 768px) {
  .section-dots { display: none !important; }
  /* Ensure back-to-top doesn't overlap floating content */
  #backToTop { bottom: 1.25rem; right: 1rem; }
}

/* =====================================================
   ARCTIC DEPTHS — CONSOLIDATED OVERRIDES
   ===================================================== */

/* Body: fixed gradient background matching the image */
body {
  background-color: #0e2535 !important;
  background-image:
    radial-gradient(ellipse 75% 55% at 65% 38%, rgba(13,184,211,0.45) 0%, transparent 58%),
    radial-gradient(ellipse 55% 50% at 18% 72%, rgba(6,91,152,0.45) 0%, transparent 55%),
    radial-gradient(ellipse 65% 65% at 82% 80%, rgba(27,127,220,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 85% 85% at 8%  8%,  rgba(25,53,70,0.75)  0%, transparent 70%),
    linear-gradient(150deg, #193546 0%, #0d2538 40%, #065B98 75%, #0a3060 100%) !important;
  background-attachment: fixed !important;
}

/* Grid overlay — subtle, like the image */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* Ensure content layers stack correctly */
#mainNav    { z-index: 999 !important; }
.cmd-palette{ z-index: 10000 !important; }
.page-loader{ z-index: 99999 !important; }
#sideNav    { z-index: 1001 !important; }
#mobileNavOverlay { z-index: 1000 !important; }
.noise-overlay    { z-index: 1 !important; }
.particle-canvas  { z-index: 1 !important; }
.section-dots     { z-index: 200 !important; }
.floating-social  { z-index: 100 !important; }
#backToTop        { z-index: 200 !important; }

.lightbox         { z-index: 9999 !important; }

/* Nav: transparent on desktop */
#mainNav {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid transparent !important;
}
#mainNav.scrolled {
  background: rgba(9, 22, 38, 0.72) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  border-bottom-color: rgba(13,184,211,0.18) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35) !important;
}

/* Mobile nav: glassmorphism */
@media (max-width: 768px) {
  #mainNav {
    background: rgba(10, 24, 40, 0.55) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    border-bottom: 1px solid rgba(13,184,211,0.15) !important;
  }
  #mainNav.scrolled {
    background: rgba(8, 20, 34, 0.82) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-bottom-color: rgba(13,184,211,0.22) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
  }
}

/* Section backgrounds — transparent so gradient shows */
.section { background: transparent !important; }
.section--alt { background: rgba(6,18,32,0.18) !important; }

/* Card glass */
.about__activity,
.resume-card,
.service-card,
.skill-card,
.testimonial-card,
.contact-info-card,
.availability-card,
.response-card,
.cert-item,
.hero__tag,
.info-chip,
.fun-fact {
  background: rgba(14, 34, 54, 0.52) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-color: rgba(13,184,211,0.18) !important;
}

/* Page loader — minimal dark base (matches redesign) */
.page-loader {
  background: #05101e !important;
}

/* Marquee wrap */
.marquee-wrap {
  background: rgba(12, 32, 50, 0.45) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* Footer */
.footer {
  background: rgba(8, 22, 38, 0.55) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-top: 1px solid rgba(13,184,211,0.2) !important;
}

/* Side nav */
.side-nav {
  background: rgba(12, 30, 48, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* CMD palette */
.cmd-palette__panel {
  background: rgba(12, 32, 52, 0.9) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* Contact form inputs */
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(14, 34, 54, 0.55) !important;
  backdrop-filter: blur(8px) !important;
  border-color: rgba(13,184,211,0.22) !important;
}

/* Portfolio overlay */
.portfolio-card__overlay {
  background: linear-gradient(180deg,
    rgba(6,20,35,0) 0%,
    rgba(6,20,35,0.65) 40%,
    rgba(6,20,35,0.97) 100%) !important;
}

/* Gradient text — accent-text, section titles em, stat nums */
.accent-text,
.section__title em,
.stat__num {
  background: linear-gradient(135deg, #0DB8D3 0%, #1B7FDC 55%, #a8d8f0 100%);
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Section label gradient */
.section__label {
  background: linear-gradient(90deg, #0DB8D3, #1B7FDC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section__label::before {
  background: linear-gradient(90deg, #0DB8D3, #1B7FDC) !important;
}

/* Loader wordmark — already styled in main loader block */

/* Scroll progress bar */
#scrollProgressBar {
  background: linear-gradient(90deg, #0DB8D3 0%, #1B7FDC 50%, #065B98 100%) !important;
  box-shadow: 0 0 20px rgba(13,184,211,0.6) !important;
}

/* Skill bar fill */
.skill-bar__fill {
  background: linear-gradient(90deg, #0DB8D3 0%, #1B7FDC 55%, #065B98 100%) !important;
}

/* Filter active */
.filter-btn.active {
  background: linear-gradient(135deg, #0DB8D3 0%, #1B7FDC 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* Section dots active */
.section-dot.active {
  background: linear-gradient(135deg, #0DB8D3, #1B7FDC) !important;
  box-shadow: 0 0 10px rgba(13,184,211,0.5) !important;
}

/* Timeline dots */
.timeline__dot {
  background: linear-gradient(135deg, #0DB8D3, #1B7FDC) !important;
}

/* Nav logo dot */
.nav__logo-dot {
  background: linear-gradient(135deg, #0DB8D3, #1B7FDC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav logo — gradient on hover (whole word) */
.nav__logo:hover {
  background: linear-gradient(135deg, #0DB8D3 0%, #1B7FDC 55%, #a8d8f0 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: brightness(1.1);
}
.nav__logo:hover .nav__logo-dot {
  background: linear-gradient(135deg, #a8d8f0 0%, #0DB8D3 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Nav numbers */
.side-nav__num {
  background: linear-gradient(135deg, #0DB8D3, #1B7FDC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Availability dot */
.availability-dot {
  background: linear-gradient(135deg, #0DB8D3, #1B7FDC) !important;
}

/* Pulse animation */
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(13,184,211,0.55); }
  50%      { box-shadow: 0 0 0 8px rgba(13,184,211,0); }
}

/* Activity grid */
.activity__sq[data-level="1"] { background: rgba(13,184,211,0.18) !important; }
.activity__sq[data-level="2"] { background: rgba(13,184,211,0.38) !important; }
.activity__sq[data-level="3"] { background: rgba(27,127,220,0.6) !important; }
.activity__sq[data-level="4"] { background: linear-gradient(135deg,#0DB8D3,#1B7FDC) !important; }

/* Footer brand */
.footer__brand span:not(.footer__brand-bracket) {
  background: linear-gradient(135deg, #0DB8D3, #1B7FDC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Image lightbox */
.lightbox { backdrop-filter: blur(20px); }

/* ─── Particle colors fixed in JS via data-theme; for canvas use Arctic cyan ─── */

/* =====================================================
   UI ALIGNMENT + RESPONSIVE FIXES
   ===================================================== */

/* ── General layout polish ── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: clamp(4rem, 8vw, 6rem); }

/* ── Hero ── */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 4rem);
  padding-top: calc(var(--nav-height) + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  padding-inline: clamp(1rem, 4vw, 2rem);
  max-width: var(--max-width);
  margin-inline: auto;
  min-height: 100dvh;
  position: relative;
}
.hero__content { flex: 1; max-width: 580px; min-width: 0; }
.hero__name .accent-text {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
}

/* ── About grid ── */
.about__grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  margin-top: 2rem;
}
.about__photo-frame { width: 100%; aspect-ratio: 29 / 41; }

/* ── Skills layout ── */
.skills__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  margin-top: 2rem;
}
.skills__grid {
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
}

/* ── Resume grid ── */
.resume__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 2.5rem);
  margin-top: 2rem;
}

/* ── Services grid ── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-card { display: flex; flex-direction: column; }
.service-card__cta { margin-top: auto; padding-top: 1rem; }

/* ── Portfolio ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 1.25rem;
}
.portfolio-item--wide { grid-column: span 2; }

/* ── Testimonials ── */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch;
}
.testimonial-card { display: flex; flex-direction: column; height: 100%; }

/* ── Contact ── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  margin-top: 2rem;
}
.contact-info-cards { display: flex; flex-direction: column; gap: 0.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Footer ── */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Cert grid ── */
.cert__grid {
  grid-template-columns: repeat(3, 1fr);
}

/* =====================================================
   RESPONSIVE — 1100px
   ===================================================== */
@media (min-width: 1100px) {
  .hero__terminal-deco { display: block; }
}

/* =====================================================
   RESPONSIVE — 1024px (tablet landscape)
   ===================================================== */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 260px;
  }
  .portfolio-item--wide { grid-column: span 2; }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .section-dots { display: none !important; }
}

/* =====================================================
   RESPONSIVE — 900px (tablet portrait)
   ===================================================== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    min-height: auto;
    padding-top: calc(var(--nav-height) + 2.5rem);
    padding-bottom: 3rem;
    gap: 2rem;
  }
  .hero__content { max-width: 100%; }
  .hero__tag { display: none; }
  .hero__sub,
  .hero__actions,
  .hero__stats { justify-content: center; }
  .hero__stats { flex-wrap: wrap; }
  .hero__image-wrap { width: 356px; padding: 0 48px; }

  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
  .about__photo-wrap { max-width: 240px; margin-inline: auto; }
  .about__actions,
  .about__info,
  .fun-facts { justify-content: center; }

  .skills__layout { grid-template-columns: 1fr; gap: 2rem; }
  .resume__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav__inner { gap: 0.75rem; }
}

/* =====================================================
   RESPONSIVE — 768px (mobile landscape / small tablet)
   ===================================================== */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__right { display: none; }
  .nav__hamburger { display: flex; }
  .nav__inner { padding-inline: 1.25rem; }

  .section { padding-block: 3.5rem; }
  .container { padding-inline: 1.25rem; }

  .services__grid { grid-template-columns: 1fr; gap: 1rem; }
  .testimonials__grid { grid-template-columns: 1fr; gap: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .skills__grid { grid-template-columns: repeat(3, 1fr); }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
    gap: 0.875rem;
  }
  .portfolio-item--wide { grid-column: span 2; }
  .portfolio-card__desc { display: none; }
  .portfolio-card__overlay { padding: 1rem; }

  /* Keep contact info hidden on mobile */
  .contact__info { display: none; }
  .contact__grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact__form { order: 1; }
  .contact-info-card i { width: 32px; height: 32px; font-size: 0.95rem; }

  .cert__grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .cert-item { padding: 0.9rem 1rem; gap: 0.75rem; align-items: flex-start; }
  .cert-item strong { font-size: 0.8rem; }
  .cert-item em { font-size: 0.68rem; }
  .floating-social { display: none !important; }
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; }
  .section-dots { display: none !important; }
  #backToTop { bottom: 1.25rem; right: 1rem; }

  /* Pricing responsive */
  .pricing__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing__tabs { flex-wrap: wrap; gap: 0.5rem; }

  /* GD section */
  .gd-disciplines { grid-template-columns: repeat(2, 1fr); }
  .gd-portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .gd-cta { flex-direction: column; text-align: center; }
}

/* =====================================================
   RESPONSIVE — 480px (mobile portrait)
   ===================================================== */
@media (max-width: 480px) {
  .hero__name .accent-text { font-size: 2.2rem; }
  .hero__role { font-size: 1rem; }
  .hero__sub { font-size: 0.75rem; flex-direction: column; gap: 0.25rem; align-items: center; }
  .hero__sub-line { justify-content: center; }
  .hero__sub-item { white-space: normal; text-align: center; justify-content: center; }
  .hero__sub-sep { display: none; }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.6rem;
  }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats { gap: 1rem; flex-wrap: nowrap; }
  .hero__image-wrap { width: 308px; padding: 0 44px; }

  .section__title { font-size: clamp(1.5rem, 5vw, 1.8rem); }
  .section__label { font-size: 0.65rem; }
  .container { padding-inline: 1rem; }

  .skills__grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .skill-card { padding: 1rem 0.75rem 0.85rem; }

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
    gap: 1rem;
  }
  .portfolio-item--wide { grid-column: span 1; }
  .portfolio-card__overlay { opacity: 1 !important; padding: 1.25rem; }
  .portfolio-card__content { transform: none !important; }
  .portfolio-card__footer { display: none; }
  .portfolio-card__desc { display: block; font-size: 0.78rem; }

  .service-card { padding: 1.5rem; }
  .testimonial-card { padding: 1.5rem; }

  .portfolio-filters {
    display: flex !important;
    position: relative;
    z-index: 1;
    gap: 0.4rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .filter-btn {
    display: inline-flex !important;
    padding: 0.4rem 0.8rem;
    min-width: 3.1rem;
    justify-content: center;
    visibility: visible !important;
  }
  .filter-btn .filter-label { display: none; }
  .filter-btn[data-filter="data"] { display: none !important; }

  /* Certificates: single column on mobile for readability */
  .cert__grid { grid-template-columns: 1fr; gap: 0.55rem; }
  .cert-item {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
    align-items: center;
  }
  .cert-item__badge {
    width: 34px; height: 34px;
    flex-shrink: 0;
    margin-top: 0;
  }
  .cert-item strong { font-size: 0.82rem; }
  .cert-item em { font-size: 0.69rem; }

  .stat__num { font-size: 1.6rem; }
  .stat__label { font-size: 0.62rem; }

  .about__photo-wrap { max-width: 200px; }

  .loader-word-main,
  .loader-word-accent,
  .loader-word-dot { font-size: 1.7rem; }
}

/* =====================================================
   RESPONSIVE — 360px (very small phones)
   ===================================================== */
@media (max-width: 360px) {
  .hero__name .accent-text { font-size: 1.9rem; }
  .hero__image-wrap { width: 270px; padding: 0 40px; }
  .stat__num { font-size: 1.3rem; }
  .stat__divider { height: 28px; }
  .section__title { font-size: 1.35rem; }
  .container { padding-inline: 0.85rem; }
  .nav__inner { padding-inline: 1rem; }
  .skills__grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .skill-card { padding: 0.85rem 0.5rem 0.7rem; }
  .info-chip { font-size: 0.68rem; padding: 0.2rem 0.6rem; }
  .cert__grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .cert-item { padding: 0.7rem 0.85rem; gap: 0.6rem; align-items: center; }
  .cert-item strong { font-size: 0.78rem; }
  .cert-item em { font-size: 0.65rem; }
}

/* ─── Touch devices — portfolio always visible ─── */
@media (hover: none) {
  .portfolio-card__overlay { opacity: 1 !important; }
  .portfolio-card__content { transform: none !important; }
  .portfolio-card__footer { display: none; }
}

/* ─── Filter scroll on small screens ─── */
.portfolio-filters {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-wrap: nowrap;
  padding-bottom: 4px;
}
.portfolio-filters::-webkit-scrollbar { display: none; }
@media (min-width: 600px) {
  .portfolio-filters { flex-wrap: wrap; overflow-x: visible; }
}

/* ─── Hero content overflow ─── */
.hero__content {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ─── Nav theme button ─── */



/* ── Light mode: ID card ── */

/* ── Light mode: section text & labels ── */

/* =====================================================
   BUTTON INTERACTIVE STATES — hover, focus, active
   ===================================================== */
.btn--primary:hover {
  background: linear-gradient(135deg, #0ecde9 0%, #3391e8 100%);
  box-shadow: 0 8px 24px rgba(13,184,211,0.45), 0 4px 12px rgba(27,127,220,0.3);
  transform: translateY(-2px);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(13,184,211,0.3);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(13,184,211,0.08);
  transform: translateY(-2px);
}
.btn--ghost:active {
  transform: translateY(0);
}
.btn--primary, .btn--ghost {
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}
.nav__hire-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13,184,211,0.3);
}
.nav__cv-btn {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  font-size: 0.8rem; font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.nav__cv-btn:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(13,184,211,0.35);
  transform: translateY(-1px);
}
#submitBtn {
  position: relative;
  transition: transform 0.22s ease, opacity 0.22s ease, box-shadow 0.22s ease;
  padding: 0.85rem 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  overflow: hidden;
}
#submitBtn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(13,184,211,0.45), 0 4px 12px rgba(27,127,220,0.3);
}
#submitBtn:active:not(:disabled) {
  transform: translateY(0);
}
#submitBtn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.submit-text,
.submit-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}
.submit-loading {
  gap: 0.6rem;
  font-style: normal;
}
.submit-loading .fa-spinner {
  font-size: 0.9rem;
  animation: spin 0.8s linear infinite;
}
/* =====================================================
   HERO CLOCK WIDGET
   ===================================================== */
.hero__clock-widget {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.32rem 0.85rem;
  margin-bottom: 1.5rem;
  width: fit-content;
}
.clock-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.7);
  animation: clockPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes clockPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
.clock-label { color: var(--text-muted); }
.clock-time { color: var(--accent); font-weight: 500; letter-spacing: 0.05em; }

/* =====================================================
   HERO TECH STACK PILLS
   ===================================================== */
.hero__stack {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin-top: 1.5rem;
}
.stack-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(13,184,211,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 50px; padding: 0.25rem 0.7rem;
  transition: all 0.2s ease;
}
.stack-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(13,184,211,0.1);
  transform: translateY(-2px);
}
.stack-pill i { font-size: 0.75rem; color: var(--accent); }

/* =====================================================
   DUAL CURSOR
   ===================================================== */
#cursorDot {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
  mix-blend-mode: difference;
}

/* =====================================================
   PRICING SECTION
   ===================================================== */
.pricing__section { margin-top: 3rem; }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column; gap: 0;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}
.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(13,184,211,0.2);
}
.pricing-card--featured {
  background: linear-gradient(145deg, rgba(13,184,211,0.12) 0%, rgba(27,127,220,0.08) 100%);
  border-color: rgba(13,184,211,0.45);
  box-shadow: 0 10px 40px rgba(13,184,211,0.15);
}
.pricing-card--featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-primary);
}
.pricing-card__popular {
  position: absolute; top: 1.2rem; right: -0.2rem;
  font-family: var(--font-mono); font-size: 0.55rem;
  font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gradient-primary);
  padding: 0.25rem 0.8rem 0.25rem 0.6rem;
  border-radius: 50px 0 0 50px;
  box-shadow: 0 4px 12px rgba(13,184,211,0.4);
}
.pricing-card__label {
  font-family: var(--font-mono); font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 0.75rem;
}
.pricing-card__price {
  font-family: var(--font-display); font-size: 1.8rem;
  font-weight: 800; color: var(--text-primary);
  margin-bottom: 1.5rem; line-height: 1.1;
}
.pricing-card__price span {
  font-size: 0.78rem; font-weight: 400;
  color: var(--text-muted); font-family: var(--font-mono);
}
.pricing-card__list {
  list-style: none; display: flex; flex-direction: column;
  gap: 0.55rem; flex: 1; margin-bottom: 1.75rem;
}
.pricing-card__list li {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.82rem; color: var(--text-secondary);
}
.pricing-card__list li.muted { color: var(--text-muted); opacity: 0.6; }
.pricing-card__list i { font-size: 0.75rem; flex-shrink: 0; }
.pricing-card__list .fa-check { color: var(--accent); }
.pricing-card__list .fa-xmark { color: rgba(239,68,68,0.6); }
@media (max-width: 768px) {
  .pricing__grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

/* =====================================================
   TOAST ENHANCEMENT
   ===================================================== */
/* Toast z-index override removed — consolidated above */



/* =====================================================
   SECTION HERO BG ORB 2
   ===================================================== */
.hero__bg-orb--2 {
  position: absolute; width: 600px; height: 600px;
  border-radius: 50%; left: -150px; bottom: -120px;
  background: radial-gradient(circle, rgba(6,91,152,0.18) 0%, rgba(13,184,211,0.06) 45%, transparent 70%);
  pointer-events: none; z-index: 0;
  filter: blur(40px);
  animation: orbDrift 12s ease-in-out infinite alternate;
}
@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.08); }
}

/* =====================================================
   SCROLL REVEAL REFINEMENTS
   ===================================================== */

/* Syne font — bolder display */
.hero__name .accent-text,
.section__title em,
.pricing-card__price { font-family: var(--font-display); }

/* =====================================================
   FLOATING SOCIAL DOCK
   ===================================================== */
.floating-social {
  position: fixed;
  left: 1.75rem;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.floating-social.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.floating-social__link {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}
.floating-social__link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(4px);
  box-shadow: 0 0 16px rgba(13,184,211,0.25);
}
.floating-social__tooltip {
  position: absolute;
  left: calc(100% + 10px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.floating-social__link:hover .floating-social__tooltip { opacity: 1; }
.floating-social__line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--border-color), transparent);
  margin-top: 0.2rem;
}
@media (max-width: 900px) { .floating-social { display: none; } }

/* =====================================================
   GITHUB ACTIVITY GRID — Resume Section
   ===================================================== */
.activity__section {
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}
.activity__sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  margin-top: 0.35rem;
}
.activity__grid {
  --activity-square: 18px;
  --activity-gap: 4px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--activity-square);
  grid-template-rows: repeat(7, var(--activity-square));
  gap: var(--activity-gap);
  margin-bottom: 0.75rem;
  width: 100%;
  overflow: visible;
  padding-bottom: 6px;
  box-sizing: border-box;
}
.activity__sq {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  background: rgba(13,184,211,0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: default;
  min-width: 0;
  transform-origin: center;
  z-index: 1;
}
.activity__sq:hover { transform: scale(1.35); z-index: 10; box-shadow: 0 6px 12px rgba(0,0,0,0.22); }
.activity__sq[data-level="0"] { background: rgba(13,184,211,0.07); }
.activity__sq[data-level="1"] { background: rgba(13,184,211,0.2); }
.activity__sq[data-level="2"] { background: rgba(13,184,211,0.4); }
.activity__sq[data-level="3"] { background: rgba(13,184,211,0.65); }
.activity__sq[data-level="4"] { background: rgba(13,184,211,0.9); box-shadow: 0 0 6px rgba(13,184,211,0.5); }
.activity__legend {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-muted);
}
.activity__legend .activity__sq { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; }

/* Activity grid responsive — JS handles square sizing, CSS just adjusts padding */
@media (max-width: 600px) {
  .activity__section { padding: 1.25rem 1rem; }
}
@media (max-width: 400px) {
  .activity__grid { --activity-square: clamp(6px, 5.5vw, 10px); --activity-gap: 1.5px; }
}

/* =====================================================
   NAV CV BTN TRANSITION (supplement)
   ===================================================== */
.nav__cv-btn { transition: all 0.25s ease; }
/* =====================================================
   PRICING TABS
   ===================================================== */
.pricing__tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}
.pricing__tab {
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
}
.pricing__tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pricing__tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.pricing__grid--hidden { display: none !important; }

/* =====================================================
   GRAPHIC DESIGN SECTION
   ===================================================== */
/* ── Disciplines grid ── */
.gd-disciplines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0 3rem;
}
.gd-discipline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem 1.4rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.gd-discipline-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,184,211,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gd-discipline-card:hover {
  transform: translateY(-5px);
  border-color: rgba(13,184,211,0.4);
  box-shadow: 0 12px 30px rgba(0,0,0,0.22), 0 0 0 1px rgba(13,184,211,0.1);
}
.gd-discipline-card:hover::before { opacity: 1; }
.gd-discipline-card__icon {
  width: 46px; height: 46px;
  background: rgba(13,184,211,0.12);
  border: 1px solid rgba(13,184,211,0.25);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.gd-discipline-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.gd-discipline-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Tools ── */
.gd-tools {
  margin: 0 0 3rem;
}
.gd-tools__title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.gd-tools__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.gd-tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}
.gd-tool-badge i { color: var(--accent); font-size: 0.85rem; }
.gd-tool-badge:hover { border-color: var(--accent); color: var(--accent); }

/* ── Portfolio grid inside GD section ── */
/* =====================================================
   GD PORTFOLIO — REDESIGNED 2026
   ===================================================== */
.gd-portfolio { margin-bottom: 3rem; }

.gd-portfolio__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.gd-portfolio__title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin: 0;
}
.gd-portfolio__count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(13,184,211,0.08);
  border: 1px solid rgba(13,184,211,0.15);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

/* Grid */
.gd-portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}
.gd-portfolio-item--wide { grid-column: span 1; }
.gd-portfolio-item {
  display: flex;
  flex-direction: column;
}

/* Base card */
.gd-portfolio-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-card);
  width: 100%;
  height: 100%;
  transition: transform 0.28s cubic-bezier(.22,.68,0,1.2), box-shadow 0.28s ease, border-color 0.28s ease;
}
.gd-portfolio-card:not(.gd-portfolio-card--coming-soon):hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(13,184,211,0.28);
  border-color: rgba(13,184,211,0.38);
}

/* Image wrapper */
.gd-portfolio-card__img-wrap {
  position: relative;
  width: 100%;
  min-height: 190px;
  flex: 1 1 190px;
  overflow: hidden;
}
.gd-portfolio-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.22,.68,0,1.2);
  display: block;
}
.gd-portfolio-card:not(.gd-portfolio-card--coming-soon):hover .gd-portfolio-card__img-wrap img {
  transform: scale(1.07);
}

/* Hover overlay (live cards) */
.gd-portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,20,35,0.92) 0%, rgba(7,20,35,0.15) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.gd-portfolio-card:not(.gd-portfolio-card--coming-soon):hover .gd-portfolio-card__overlay { opacity: 1; }

.gd-portfolio-card__type {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--accent);
  background: rgba(13,184,211,0.14);
  border: 1px solid rgba(13,184,211,0.28);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  margin-bottom: 0.45rem;
  width: fit-content;
  letter-spacing: 0.03em;
}
.gd-portfolio-card__overlay p {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
}

/* Footer */
.gd-portfolio-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-top: 1px solid rgba(13,184,211,0.12);
  background: linear-gradient(to bottom, rgba(10,28,45,0.55), rgba(8,22,38,0.72));
  backdrop-filter: blur(12px);
  gap: 0.5rem;
  flex-shrink: 0;
}
.gd-portfolio-card__footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}
.gd-portfolio-card__label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gd-portfolio-card__tools {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* View icon (live cards) */
.gd-portfolio-card__view-icon {
  font-size: 0.75rem;
  color: rgba(13,184,211,0.4);
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.gd-portfolio-card--link:hover .gd-portfolio-card__view-icon {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* Tool chip (top-left on card) */
.gd-portfolio-card__tool-chip {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s, transform 0.22s;
}
.gd-portfolio-card--link:hover .gd-portfolio-card__tool-chip { opacity: 1; transform: translateY(0); }
.gd-portfolio-card__tool-chip--canva {
  background: rgba(0,196,180,0.14);
  border: 1px solid rgba(0,196,180,0.35);
  color: #00c4b4;
}
.gd-portfolio-card__tool-chip--figma {
  background: rgba(162,89,255,0.14);
  border: 1px solid rgba(162,89,255,0.3);
  color: #b57bff;
}

/* Status chip */
.gd-portfolio-card__status-chip {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Linked artwork cards */
.gd-portfolio-card--link {
  text-decoration: none;
  cursor: pointer;
}

/* ── Multi-image card slider ── */
.gd-card-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.gd-card-slider__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: block;
}
.gd-card-slider__img--active {
  opacity: 1;
  position: absolute;
}
.gd-card-slider__dots {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  z-index: 3;
}
.gd-card-slider__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.25s, transform 0.25s;
}
.gd-card-slider__dot--active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ── Coming Soon cards ── */
.gd-portfolio-card--coming-soon {
  cursor: default;
}
.gd-portfolio-card--locked {
  pointer-events: none;
  cursor: not-allowed;
  user-select: none;
}
.gd-portfolio-card--coming-soon .gd-portfolio-card__img-wrap img {
  filter: blur(3px) brightness(0.45) saturate(0.5);
}

/* Coming Soon badge (top-right pill) */
.gd-portfolio-card__cs-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #f0c040;
  background: rgba(240,192,64,0.12);
  border: 1px solid rgba(240,192,64,0.38);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(240,192,64,0.15);
  animation: cs-badge-pulse 3s ease-in-out infinite;
}
@keyframes cs-badge-pulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(240,192,64,0.15); }
  50%       { box-shadow: 0 2px 20px rgba(240,192,64,0.35); }
}
.gd-portfolio-card__cs-badge i {
  font-size: 0.6rem;
  animation: cs-spin 4s linear infinite;
}
@keyframes cs-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Coming Soon veil overlay */
.gd-portfolio-card__cs-veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(6,91,152,0.28) 0%, rgba(7,20,35,0.55) 100%);
}
.gd-portfolio-card__cs-veil-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
}
.gd-portfolio-card__cs-veil-inner i {
  font-size: 2rem;
  color: rgba(162,89,255,0.7);
  filter: drop-shadow(0 0 8px rgba(162,89,255,0.4));
}
.gd-portfolio-card__cs-veil-inner span {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
}
.gd-portfolio-card__cs-veil-inner small {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.03em;
}

/* Placeholder cards */
.gd-portfolio-card--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    rgba(13,184,211,0.03),
    rgba(13,184,211,0.03) 8px,
    transparent 8px,
    transparent 16px
  );
}
.gd-portfolio-card__placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}
.gd-portfolio-card__placeholder-inner i {
  font-size: 1.8rem;
  color: rgba(13,184,211,0.35);
}
.gd-portfolio-card__placeholder-inner span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.gd-portfolio-card__placeholder-inner small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── CTA strip ── */
.gd-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(13,184,211,0.2);
  border-radius: 16px;
  padding: 1.5rem 2rem;
}
.gd-cta p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .gd-disciplines { grid-template-columns: repeat(2, 1fr); }
  .gd-portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .gd-portfolio-item--wide { grid-column: span 1; }
  .gd-portfolio-card__img-wrap { min-height: 160px; flex-basis: 160px; }
}
@media (max-width: 600px) {
  .gd-disciplines { grid-template-columns: 1fr; }
  .gd-portfolio__grid { grid-template-columns: 1fr; }
  .gd-portfolio-item--wide { grid-column: span 1; }
  .gd-portfolio-card__img-wrap { min-height: 190px; flex-basis: 190px; }
  .gd-portfolio-card--placeholder { height: 140px; }
  .gd-portfolio-card--link { min-height: 140px; }
  .gd-cta { flex-direction: column; text-align: center; }
  .pricing__tabs { flex-wrap: wrap; }
}

/* ── Primary tool badges (Figma + Canva highlight) ── */
.gd-tool-badge--primary {
  padding: 0.6rem 1.4rem;
  font-size: 0.88rem;
  border-color: rgba(13,184,211,0.35);
  color: var(--text-primary);
  background: rgba(13,184,211,0.07);
  font-weight: 600;
}
.gd-tool-badge--primary i { font-size: 1rem; }
.gd-tool-badge--primary:hover {
  background: rgba(13,184,211,0.15);
  border-color: var(--accent);
  color: var(--accent);
}
.gd-tool-badge[data-filter] {
  cursor: pointer;
  user-select: none;
}
.gd-tool-badge--active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--bg-primary) !important;
  box-shadow: 0 0 14px rgba(13,184,211,0.4);
}
.gd-tool-badge--active i {
  color: var(--bg-primary) !important;
}
.gd-portfolio-item--hidden {
  display: none;
}

/* =====================================================
   PAGE LOADER — CENTERING & RESPONSIVE FIX
   ===================================================== */

/* Ensure the full-screen overlay is a true flex center */
.page-loader {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem;               /* prevents edge-bleed on very small screens */
}

/* Center column: fluid width, sensible max, safe horizontal padding */
.loader-center {
  width: 100% !important;
  max-width: 440px !important;
  padding: 0 clamp(1rem, 5vw, 2rem) !important;
  margin: 0 auto !important;          /* belt-and-suspenders horizontal center */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Icons row — centered, wraps gracefully */
.loader-icons {
  justify-content: center !important;
  flex-wrap: wrap;
}

/* Wordmark — centered baseline */
.loader-wordmark {
  justify-content: center !important;
  width: 100%;
}

/* Wordmark — fluid type scale, never overflows */
.loader-word-main,
.loader-word-accent,
.loader-word-dot {
  font-size: clamp(1.5rem, 7vw, 2.4rem) !important;
}

/* Subtitle — centered */
.loader-subtitle {
  text-align: center !important;
  width: 100%;
}

/* Progress bar — fluid width so it never clips on narrow screens */
.loader-progress {
  width: min(240px, 80%) !important;
  margin: 0 auto !important;         /* center even if parent isn't flex */
}

/* Progress meta row — keep label + percent apart */
.loader-progress-meta {
  width: 100%;
}

/* ── Breakpoints ── */

/* Compact phones (≤ 480px) */
@media (max-width: 480px) {
  .loader-center {
    gap: 0 !important;
  }
  .loader-icons {
    gap: 12px !important;
    margin-bottom: 16px !important;
  }
  .loader-icon-bubble {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.82rem !important;
  }
  .loader-subtitle {
    font-size: 0.55rem !important;
    letter-spacing: 0.2em !important;
    margin-bottom: 22px !important;
  }
  .loader-progress {
    width: min(200px, 85%) !important;
  }
}

/* Very small phones (≤ 360px) */
@media (max-width: 360px) {
  .loader-icon-bubble {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.75rem !important;
  }
  .loader-subtitle {
    font-size: 0.5rem !important;
    letter-spacing: 0.15em !important;
    margin-bottom: 18px !important;
  }
  .loader-progress {
    width: 90% !important;
  }
  .loader-label,
  .loader-percent {
    font-size: 0.55rem !important;
  }
}

/* Landscape phones — tighten vertical spacing */
@media (max-height: 500px) and (orientation: landscape) {
  .loader-icons { margin-bottom: 10px !important; }
  .loader-wordmark { margin-bottom: 4px !important; }
  .loader-subtitle { margin-bottom: 14px !important; }
  .loader-icon-bubble { width: 28px !important; height: 28px !important; }
}
/* =====================================================
   COMPREHENSIVE RESPONSIVE POLISH — 2026 UPDATE
   ===================================================== */

/* ── Landscape phone fix ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 1.5rem);
    padding-bottom: 2rem;
    gap: 1.5rem;
  }
  .page-loader { overflow-y: auto; }
}

/* ── Fluid hero image on all phone sizes ── */
@media (max-width: 440px) {
  .hero__image-wrap {
    width: min(290px, calc(100vw - 3rem));
    padding: 0 clamp(30px, 12vw, 44px);
  }
}

/* ── Nav hamburger always visible on touch-only screens ── */
@media (hover: none) and (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* ── Side nav accessible on very small screens ── */
@media (max-width: 360px) {
  .side-nav { width: 100vw; right: -100vw; padding: 1.25rem 1rem; }
  .side-nav.open { right: 0; }
  .side-nav__links a { font-size: 0.88rem; }
}

/* ── Form inputs: prevent iOS zoom (must be ≥16px) ── */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px;
  }
  .form-group label { font-size: 0.85rem; }
}

/* ── Select dropdown arrow fix on mobile ── */
select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color-scheme: dark;
}
/* Fix select option background on mobile */
select option { background: #0e2535; color: var(--text-primary); }
select optgroup { background: #0a1c2d; color: var(--accent); }

/* ── Back to top: safe bottom on phones with home bar ── */
#backToTop {
  bottom: max(1.25rem, env(safe-area-inset-bottom, 1.25rem));
  right: max(1rem, env(safe-area-inset-right, 1rem));
}

/* ── Testimonials: equal height on mobile ── */
@media (max-width: 768px) {
  .testimonials__grid { align-items: stretch; }
  .testimonial-card { height: auto; }
}

/* ── Hero stats: don't shrink on very small screens ── */
@media (max-width: 380px) {
  .hero__stats { gap: 0.75rem; }
  .stat__num { font-size: 1.4rem; }
  .stat__divider { height: 30px; }
  .hero__actions .btn { font-size: 0.78rem; padding: 0.65rem 1rem; }
}

/* ── Portfolio grid: prevent overflow on tiny screens ── */
@media (max-width: 380px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
    gap: 0.875rem;
  }
  .portfolio-item--wide { grid-column: span 1; }
}

/* ── Command palette on mobile ── */
@media (max-width: 600px) {
  .cmd-palette__panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 70dvh;
    display: flex;
    flex-direction: column;
  }
  .cmd-palette.open .cmd-palette__panel { transform: none; }
  .cmd-palette__list { flex: 1; max-height: none; overflow-y: auto; }
  .cmd-palette__header input { font-size: 16px; } /* prevent zoom */
}

/* ── Lightbox: full screen on mobile ── */
@media (max-width: 600px) {
  .lightbox {
    padding: 1rem;
  }
  .lightbox__content {
    max-width: 100%;
    max-height: calc(100dvh - 5rem);
    overflow: auto;
    border-radius: var(--radius-md);
  }
  .lightbox__content img {
    max-width: 100%;
    max-height: calc(100dvh - 6rem);
    width: auto;
    height: auto;
    object-fit: contain;
  }
  .lightbox__close { top: 1rem; right: 1rem; }
  .lightbox__nav { top: 50%; }
}

/* ── Contact form: full-width submit on mobile ── */
@media (max-width: 480px) {
  .contact__form { padding: 1rem; }
  .contact__info { padding: 1rem; }
  .contact-info-card { flex-wrap: nowrap; }
  .contact-info-card i { flex-shrink: 0; }
  .contact-info-card a,
  .contact-info-card span { font-size: 0.82rem; word-break: break-all; }
}

/* ── Marquee: slightly faster on mobile ── */
@media (max-width: 480px) {
  .marquee-track { animation-duration: 20s; }
  .marquee-track span { font-size: 0.68rem; }
}

/* ── Footer: stack cleanly on small screens ── */
@media (max-width: 480px) {
  .footer__copy { font-size: 0.78rem; text-align: center; }
  .footer__socials { gap: 0.75rem; }
  .footer__socials a { width: 34px; height: 34px; font-size: 0.85rem; }
}

/* ── GD Section: single column on small mobile ── */
@media (max-width: 480px) {
  .gd-disciplines { grid-template-columns: 1fr; }
  .gd-portfolio__grid { grid-template-columns: 1fr; }
  .gd-portfolio-card__img-wrap { min-height: 180px; flex-basis: 180px; }
  .gd-cta { flex-direction: column; text-align: center; }
}

/* ── Fix nav hamburger touch target size ── */
.nav__hamburger {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 6px;
  justify-content: center;
  align-items: center;
}

/* ── Smooth image rendering ── */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
img[loading="lazy"] { image-rendering: auto; }

/* ── Prevent text overflow in skill cards ── */
.skill-card__name {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* ── Safe area for iPhones with notch / home bar ── */
@supports (padding: max(0px)) {
  #mainNav .nav__inner {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .side-nav {
    padding-top: max(1.5rem, env(safe-area-inset-top));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* ── Field error message styling (missing in original) ── */
.field-error {
  color: #ef4444;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  margin-top: 0.25rem;
  display: block;
}
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}
.form-group.is-valid input,
.form-group.is-valid textarea {
  border-color: rgba(34, 197, 94, 0.4);
}

/* ── filter-hidden for portfolio ── */
.filter-hidden { display: none !important; }
.filter-fade-in {
  animation: filterFadeIn 0.38s ease forwards;
}
@keyframes filterFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Spin keyframe (used in loading spinner) ── */
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Back-to-top ring stroke setup ── */
#bttRingFill {
  stroke-dasharray: 119.38;
  stroke-dashoffset: 119.38;
  transition: stroke-dashoffset 0.1s linear;
}

/* ── Ensure particle canvas never causes horizontal scroll ── */
.particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* ── Table-like data: allow horizontal scroll in small containers ── */
.activity__section { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Ensure no horizontal overflow from any element ── */
section, header, footer, div.container {
  max-width: 100%;
  overflow-x: clip;
}

/* Fix: hero-bg-wrapper overflow on mobile */
.hero-bg-wrapper { overflow-x: hidden; }

/* ── Print: hide non-essential UI ── */
@media print {
  .noise-overlay, .particle-canvas, #cursorSpotlight,
  #cursorDot, .section-dots, .floating-social, #backToTop,
  #scrollProgressBar, .side-nav, #mobileNavOverlay { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
/* =====================================================
   IPHONE 8 PLUS & ALL MOBILE PHONES — FULL RESPONSIVE FIX
   Targets: 414px (iPhone 8 Plus), 390px (iPhone 12/13/14),
            375px (iPhone 6/7/8), 360px (Android common)
   ===================================================== */

/* ── Hide loader (removed from HTML, belt-and-suspenders) ── */
#pageLoader { display: none !important; }

/* ── Base mobile container ── */
@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ── iPhone 8 Plus (414px) — hero card primary fix ── */
@media (max-width: 430px) {
  /* Hero section: full-width, no side overflow */
  .hero {
    padding-left: 1rem;
    padding-right: 1rem;
    gap: 1.5rem;
    padding-top: calc(var(--nav-height) + 1.75rem);
    padding-bottom: 3rem;
  }

  /* Card image wrapper: fits within 414px with icon room */
  .hero__image-wrap {
    width: 100%;
    max-width: min(340px, calc(100vw - 2rem));
    padding: 0 clamp(36px, 10vw, 46px);
    margin: 0 auto;
    box-sizing: border-box;
  }

  /* Profile card: fluid width relative to wrapper */
  .profile-card {
    width: 100%;
    max-width: 240px;
    height: auto;
    aspect-ratio: 300 / 430;
    border-radius: 24px;
    --pc-footer-h: 64px;
    margin: 0 auto;
  }

  /* Floating icons: sized for smaller card */
  .pc-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-radius: 11px;
  }
  .pc-icon--react  { left: -38px; }
  .pc-icon--html   { left: -38px; }
  .pc-icon--figma  { left: -38px; }
  .pc-icon--github { right: -38px; }
  .pc-icon--js     { right: -38px; }
  .pc-icon--css    { right: -38px; }

  /* Footer bar */
  .pc-footer {
    height: 64px;
    padding: 0 0.85rem;
    gap: 0.5rem;
    border-radius: 0 0 24px 24px;
  }
  .pc-avatar { width: 32px; height: 32px; }
  .pc-username { font-size: 0.65rem; }
  .pc-status { font-size: 0.6rem; }
  .pc-cta { font-size: 0.65rem; padding: 0.38rem 0.75rem; }

  /* Hero header area */
  .pc-header { padding: 1rem 1.1rem 1.25rem; border-radius: 24px 24px 0 0; }
  .pc-name { font-size: 1.25rem; }
  .pc-role { font-size: 0.72rem; }

  /* Hero text */
  .hero__name .accent-text { font-size: clamp(2rem, 8vw, 2.4rem); }
  .hero__hello { font-size: 0.82rem; }
  .hero__role { font-size: 0.95rem; }
  .hero__tag { display: none; } /* use mobile tag only */
  .hero__tag-mobile { display: inline-flex !important; }

  /* Hero actions: full-width stacked */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.65rem;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  /* Hero stats: compact */
  .hero__stats {
    gap: 1.25rem;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .stat__num { font-size: 1.6rem; }
  .stat__label { font-size: 0.62rem; }
  .stat__divider { height: 32px; }

  /* Hero clock */
  .hero__clock-widget { font-size: 0.75rem; }

  /* Hero sub */
  .hero__sub {
    font-size: 0.72rem;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
    text-align: center;
    margin-bottom: 1.75rem;
  }
  .hero__sub-item { justify-content: center; }
}

/* ── 375px (iPhone 6/7/8 original) ── */
@media (max-width: 380px) {
  .hero__image-wrap {
    max-width: min(310px, calc(100vw - 1.5rem));
    padding: 0 clamp(32px, 9vw, 42px);
  }
  .profile-card {
    max-width: 220px;
    --pc-footer-h: 58px;
    border-radius: 20px;
  }
  .pc-icon { width: 32px; height: 32px; font-size: 0.88rem; border-radius: 9px; }
  .pc-icon--react, .pc-icon--html, .pc-icon--figma { left: -36px; }
  .pc-icon--github, .pc-icon--js, .pc-icon--css    { right: -36px; }
  .pc-footer { height: 58px; padding: 0 0.75rem; border-radius: 0 0 20px 20px; }
  .pc-header { border-radius: 20px 20px 0 0; }
  .pc-name { font-size: 1.1rem; }
  .hero__name .accent-text { font-size: 1.95rem; }
  .stat__num { font-size: 1.45rem; }
}

/* ── iPhone tag mobile always visible on narrow screens ── */
@media (max-width: 900px) {
  .hero__tag-mobile {
    display: inline-flex;
  }
}

/* ── Prevent any horizontal scroll on mobile ── */
@media (max-width: 480px) {
  body, html {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .hero-bg-wrapper {
    overflow-x: hidden;
    width: 100%;
  }
  /* Lanyard wrap: constrain so it never overflows */
  .lanyard-wrap {
    max-width: min(280px, 80vw);
  }
  /* About grid fix */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about__photo-wrap {
    max-width: 200px;
    margin: 0 auto;
  }
  /* Resume timeline */
  .resume__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  /* Skills grid */
  .skills__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── Nav on iPhone 8 Plus ── */
@media (max-width: 430px) {
  .nav__inner {
    padding: 0 1rem;
    gap: 0.5rem;
  }
  .nav__cmd-btn { display: none; } /* hide cmd button on small phones */
  .nav__cv-btn {
    font-size: 0.72rem;
    padding: 0.38rem 0.75rem;
  }
  .nav__logo { font-size: 1.1rem; }
}

/* ── Section padding on mobile ── */
@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .section__title { font-size: clamp(1.5rem, 5.5vw, 2rem); }
}

/* ── Graphic design cards on iPhone ── */
@media (max-width: 430px) {
  .gd-portfolio__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .gd-disciplines {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ── Services grid on iPhone ── */
@media (max-width: 430px) {
  .services__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ── Testimonials on iPhone ── */
@media (max-width: 430px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ── Ensure hero content text left-aligns back to center on mobile ── */
@media (max-width: 900px) {
  .hero__content {
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .hero__name { align-items: center; }
  .hero__sub { justify-content: center; }
}