/* portfolio.css - Cyberpunk Theme (Optimized) */
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");


/* ============================================
   CAROUSEL Z-INDEX FIX - OVERRIDE EVERYTHING
   ============================================ */

/* Force carousel on top of everything */
.carousel-modal {
  z-index: 999999 !important;
}

.carousel-close {
  z-index: 1000000 !important;
  position: fixed !important;
  top: 30px !important;
  right: 35px !important;
  background: rgba(0, 0, 0, 0.8) !important;
  border: 2px solid #00ffff !important;
  color: #ffffff !important;
  font-size: 28px !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5) !important;
  pointer-events: auto !important;
}

.carousel-arrow {
  z-index: 1000000 !important;
  position: fixed !important;
}

.carousel-counter {
  z-index: 1000000 !important;
  position: fixed !important;
}

.carousel-thumbnails {
  z-index: 1000000 !important;
  position: fixed !important;
}

/* Ensure header stays below carousel */
.cyber-glass {
  z-index: 50 !important;
}

/* On mobile, move close button below header */
@media (max-width: 768px) {
  .carousel-close {
    top: 65px !important;
    right: 16px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
  }
  .carousel-counter {
    top: 65px !important;
    font-size: 12px !important;
    padding: 4px 14px !important;
  }
}

@media (max-width: 480px) {
  .carousel-close {
    top: 58px !important;
    right: 12px !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 16px !important;
  }
  .carousel-counter {
    top: 58px !important;
    font-size: 10px !important;
    padding: 3px 10px !important;
  }
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: #05050a;
  color: #e0e0e0;
  font-family: "Space Grotesk", sans-serif;
}
.cyber-bg {
  position: relative;
  background: radial-gradient(circle at 20% 30%, #0a0a1a, #030308);
}
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
}

/* ===== NAVIGATION ===== */
.cyber-glass {
  background: rgba(5, 5, 15, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}
/* ============================================================
   FLOATING ISLAND NAV
   ============================================================ */
/* keep anchored sections clear of the floating island */
section[id] { scroll-margin-top: 96px; }
@media (max-width: 620px) { section[id] { scroll-margin-top: 78px; } }

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 16px 0;
  transition: padding .35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.site-nav > * { pointer-events: auto; }

.nav-island {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 10px 9px 16px;
  border-radius: 18px;
  background: var(--nav-bg);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(var(--accent-rgb), 0.05) inset,
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition: border-radius .35s cubic-bezier(.4,0,.2,1),
              box-shadow .35s ease, border-color .35s ease, padding .35s ease;
  overflow: hidden;
}
/* subtle sheen sweeping the glass */
.nav-island::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(var(--accent-rgb), 0.07) 48%,
    transparent 66%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.nav-island:hover::before { opacity: 1; }

/* once scrolled, the island tightens and the glow warms up */
.site-nav.scrolled { padding-top: 8px; }
.site-nav.scrolled .nav-island {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.55),
    0 0 26px rgba(var(--accent-rgb), 0.13);
}

/* ---------- brand ---------- */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none;
  line-height: 1;
}
.nav-brand-text { font-size: 17px; white-space: nowrap; }
.brand-a { color: var(--accent); }
.brand-b { color: var(--text-strong); }
.nav-brand-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.4px;
  color: var(--accent);
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.08);
}
.nav-brand:hover .brand-b { color: var(--accent); }
.nav-brand-text, .brand-a, .brand-b { transition: color .25s ease; }

/* ---------- links ---------- */
.nav-links {
  position: relative;
  display: none;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-item {
  position: relative;
  z-index: 1;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .6px;
  text-transform: lowercase;
  color: var(--text-muted);
  padding: 8px 13px;
  border-radius: 11px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s ease;
}
.nav-item::before {
  content: "";
  position: absolute;
  left: 13px;
  bottom: 3px;
  width: 0;
  height: 1px;
  background: var(--accent);
  opacity: .55;
  transition: width .25s ease;
}
.nav-item:hover { color: var(--text-strong); }
.nav-item:hover::before { width: calc(100% - 26px); }
.nav-item.active { color: var(--accent); }
.nav-item.active::before { width: 0; }

/* the pill that glides between links */
.nav-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  height: 32px;
  width: 0;
  transform: translateY(-50%);
  border-radius: 11px;
  background: rgba(var(--accent-rgb), 0.13);
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.22);
  opacity: 0;
  pointer-events: none;
  transition: left .38s cubic-bezier(.5,.05,.2,1),
              width .38s cubic-bezier(.5,.05,.2,1),
              opacity .28s ease;
}
.nav-indicator.on { opacity: 1; }

/* ---------- right cluster ---------- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-links + .nav-right { margin-left: 0; }
.nav-divider {
  display: none;
  width: 1px;
  height: 22px;
  background: linear-gradient(to bottom, transparent, rgba(var(--accent-rgb), 0.4), transparent);
}

/* ---------- burger ---------- */
.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  padding: 0 9px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 11px;
  background: rgba(var(--accent-rgb), 0.06);
  cursor: pointer;
  transition: all .25s ease;
}
.nav-burger:hover { border-color: rgba(var(--accent-rgb), 0.6); background: rgba(var(--accent-rgb), 0.12); }
.burger-bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--accent);
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s ease, width .3s ease;
  transform-origin: center;
}
.burger-bar:nth-child(2) { width: 70%; align-self: flex-start; }
.nav-burger[aria-expanded="true"] .burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger[aria-expanded="true"] .burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 100%; }

/* ---------- scroll progress rail ---------- */
.nav-progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg,
    rgba(var(--accent-rgb), 0.25),
    var(--accent),
    rgba(var(--accent-2-rgb), 0.85));
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.55);
  border-radius: 0 2px 2px 0;
  transition: width .12s linear;
}

/* ---------- breakpoints ---------- */
@media (min-width: 1100px) {
  .nav-links   { display: flex; }
  .nav-divider { display: block; }
  .nav-burger  { display: none; }
}
@media (max-width: 1180px) and (min-width: 1100px) {
  .nav-item { padding: 8px 10px; font-size: 12.5px; }
  .nav-brand-text { font-size: 15px; }
}

/* ---------- mobile / tablet: controls LEFT, wordmark RIGHT ---------- */
@media (max-width: 1099px) {
  .site-nav  { padding: 10px 12px 0; }
  .nav-island {
    padding: 8px 14px 8px 8px;
    gap: 10px;
    border-radius: 16px;
  }
  /* theme switch + burger lead, brand is pushed to the far right.
     Only ONE auto margin here — two would split the gap instead of pinning. */
  .nav-right { order: 1; margin-left: 0; margin-right: auto; gap: 8px; }
  .nav-brand { order: 2; margin-left: 0; gap: 7px; }

  .nav-brand-text { font-size: 15px; }
  .nav-brand-tag  { font-size: 8px; padding: 3px 5px; letter-spacing: 1.2px; }
}

@media (max-width: 560px) {
  .nav-island     { padding: 7px 11px 7px 7px; gap: 8px; }
  .nav-brand-text { font-size: 13px; letter-spacing: 0; }
  .nav-brand-tag  { font-size: 7.5px; padding: 2px 4px; }
  .nav-burger     { width: 36px; height: 36px; padding: 0 8px; }
  .theme-opt      { width: 28px; height: 28px; }
  .theme-glider   { width: 28px; height: 28px; }
  .theme-switch[data-active="dark"]  .theme-glider { transform: translateX(30px); }
  .theme-switch[data-active="light"] .theme-glider { transform: translateX(60px); }
}

/* very narrow: drop FRANCIS so it reads RYAN.ROMANO, then the DEV tag */
@media (max-width: 430px) {
  .nav-brand-full .brand-b { display: none; }   /* hides "FRANCIS" */
  .nav-brand-text { font-size: 12.5px; }
}
@media (max-width: 370px) {
  .nav-brand-tag { display: none; }
  .site-nav  { padding: 8px 8px 0; }
  .nav-island { gap: 6px; padding: 6px 9px 6px 6px; }
  .theme-opt    { width: 26px; height: 26px; }
  .theme-glider { width: 26px; height: 26px; }
  .theme-switch[data-active="dark"]  .theme-glider { transform: translateX(28px); }
  .theme-switch[data-active="light"] .theme-glider { transform: translateX(56px); }
}

/* ===== CARDS ===== */
.cyber-card {
  background: rgba(8, 12, 25, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.05);
}
.cyber-card:hover,
.cyber-card-holo:hover {
  border-color: #0ff;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
}
.cyber-card:hover {
  transform: translateY(-4px);
}
.cyber-card-holo {
  background: linear-gradient(135deg, rgba(8, 12, 35, 0.8), rgba(15, 8, 35, 0.7));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  transition: all 0.3s ease;
}
.cyber-card-holo:hover {
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.25);
  transform: translateY(-5px) scale(1.01);
}
.cyber-pill {
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 50px;
  display: inline-block;
  backdrop-filter: blur(4px);
}

/* ===== BUTTONS ===== */
.cyber-btn {
  background: linear-gradient(95deg, #00a3a3, #0ff);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
  transition: all 0.25s ease;
  color: #000;
  font-weight: 600;
  letter-spacing: 1px;
}
.cyber-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px #0ff;
  filter: brightness(1.08);
}
.cyber-btn-outline {
  background: transparent;
  border: 1.5px solid #0ff;
  color: #0ff;
  transition: all 0.25s ease;
  font-weight: 500;
  letter-spacing: 1px;
}
.cyber-btn-outline:hover {
  background: rgba(0, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  transform: scale(1.02);
}

/* ===== INPUTS ===== */
.input-cyber {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 255, 0.4);
  transition: all 0.2s;
  color: #0ff;
}
.input-cyber:focus {
  outline: none;
  border-color: #0ff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.8);
}
.input-cyber::placeholder {
  color: #4a6a7a;
}

/* ===== TAGS ===== */
.tech-tag {
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-family: "JetBrains Mono", monospace;
  color: #0ff;
}
.tech-tag-violet {
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.35);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-family: "JetBrains Mono", monospace;
  color: #c4b5fd;
}
.tech-tag-lg {
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-family: "JetBrains Mono", monospace;
  color: #0dd;
}
.tech-icon-group {
  transition: all 0.2s;
}
.tech-icon-group:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 0 8px #0ff);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0a1a;
}
::-webkit-scrollbar-thumb {
  background: #0ff;
  border-radius: 10px;
}

/* ===== ANIMATIONS ===== */
.terminal-text {
  font-family: "JetBrains Mono", monospace;
}
.scroll-indicator {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.animate-gradient {
  background-size: 200% auto;
  animation: gradient 3s ease infinite;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-cyber {
  display: none;
  max-width: 1180px;
  margin: 10px auto 0;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 16px;
  padding: 8px;
  z-index: 100;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
  flex-direction: column;
  gap: 2px;
  animation: mDrawer .28s cubic-bezier(.4,0,.2,1);
}
@keyframes mDrawer {
  from { opacity: 0; transform: translateY(-10px) scale(.985); }
  to   { opacity: 1; transform: translateY(0)     scale(1); }
}
.mobile-menu-cyber.open { display: flex; }

.m-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .6px;
  text-transform: lowercase;
  color: var(--text-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.m-item svg { width: 17px; height: 17px; color: var(--accent); opacity: .75; transition: opacity .2s ease; }
.m-item:hover {
  background: rgba(var(--accent-rgb), 0.09);
  color: var(--text-strong);
  border-left-color: rgba(var(--accent-rgb), 0.5);
  transform: translateX(3px);
}
.m-item:hover svg { opacity: 1; }
.m-item.active {
  background: rgba(var(--accent-rgb), 0.13);
  color: var(--accent);
  border-left-color: var(--accent);
}
.m-item.active svg { opacity: 1; }

/* ===== POPUP ===== */
.cyber-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popupFadeIn 0.4s ease-out;
}
.cyber-popup-overlay.hidden {
  display: none;
}
@keyframes popupFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8);
  }
}
.cyber-popup-container {
  position: relative;
  background: rgba(8, 12, 30, 0.95);
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 16px;
  padding: 40px 48px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 0 60px rgba(0, 255, 255, 0.15), inset 0 0 60px rgba(0, 255, 255, 0.03);
  animation: popupScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popupScaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.cyber-popup-glitch {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 18px;
  background: linear-gradient(45deg, #0ff, #f0f, #0ff, #f0f);
  background-size: 300% 300%;
  z-index: -1;
  animation: glitchBorder 3s ease-in-out infinite;
  opacity: 0.4;
}
@keyframes glitchBorder {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.cyber-popup-content {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cyber-popup-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}
.cyber-popup-icon-inner {
  width: 80px;
  height: 80px;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popupIconPulse 2s ease-in-out infinite;
}
@keyframes popupIconPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.4);
  }
}
.cyber-popup-icon-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.2);
  animation: popupRingPulse 2s ease-in-out infinite;
}
@keyframes popupRingPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0;
  }
}
.cyber-popup-title {
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0ff;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}
.cyber-popup-message {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
}
.cyber-popup-message #popupName {
  color: #0ff;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}
.cyber-popup-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.15);
  border-radius: 30px;
  margin-bottom: 24px;
}
.cyber-popup-status-dot {
  width: 8px;
  height: 8px;
  background: #0f8;
  border-radius: 50%;
  animation: popupDotBlink 1.5s ease-in-out infinite;
}
@keyframes popupDotBlink {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
  }
  50% {
    opacity: 0.3;
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
  }
}
.cyber-popup-status-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #0f8;
  letter-spacing: 2px;
}
.cyber-popup-btn {
  position: relative;
  background: transparent;
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 8px;
  padding: 12px 32px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}
.cyber-popup-btn:hover {
  border-color: #0ff;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.15);
}
.cyber-popup-btn-text {
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  color: #0ff;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}
.cyber-popup-btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}
.cyber-popup-btn:hover .cyber-popup-btn-glow {
  left: 100%;
}
@media (max-width: 480px) {
  .cyber-popup-container {
    padding: 30px 24px;
  }
  .cyber-popup-title {
    font-size: 15px;
  }
  .cyber-popup-message {
    font-size: 13px;
  }
}

/* ===== IMAGES ===== */
.cyber-card img,
.cyber-card-holo img {
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1);
}
.cyber-card:hover img,
.cyber-card-holo:hover img {
  transform: scale(1.05);
}
img[src*=".jpg"] {
  background: linear-gradient(135deg, #0a0a1a, #1a1a3a);
}
.w-20.h-20.rounded-full img {
  object-fit: cover;
  transition: transform 0.3s ease;
}
.w-20.h-20.rounded-full:hover img {
  transform: scale(1.1);
}

/* ===== SKILL TAGS WITH TOOLTIPS ===== */
.skill-tag-cyber {
  position: relative;
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-family: "JetBrains Mono", monospace;
  color: #8be8ff;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  cursor: help;
}
.skill-tag-cyber:hover {
  background: rgba(0, 255, 255, 0.2);
  border-color: #0ff;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
  transform: translateY(-3px) scale(1.05);
  color: #fff;
}
.skill-tag-cyber::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: rgba(0, 10, 30, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.65rem;
  font-family: "Space Grotesk", sans-serif;
  color: #cbd5e1;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 255, 0.05);
  z-index: 100;
  width: max-content;
  max-width: 260px;
}
.skill-tag-cyber::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0, 255, 255, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1);
  z-index: 100;
}
.skill-tag-cyber:hover::before,
.skill-tag-cyber:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}
.skill-tag-cyber::before,
.skill-tag-cyber::after {
  transition-delay: 0.1s;
}
@media (hover: none) {
  .skill-tag-cyber::before,
  .skill-tag-cyber::after {
    display: none;
  }
}
@media (max-width: 640px) {
  .skill-tag-cyber::before {
    max-width: 180px;
    font-size: 0.6rem;
    padding: 6px 10px;
  }
}

/* ===== FULL-SCREEN CAROUSEL - 1920x1080 ===== */
.carousel-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: carouselFadeIn 0.4s ease-out;
}
.carousel-modal.hidden {
  display: none;
}
@keyframes carouselFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.carousel-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.carousel-close {
  position: fixed;
  top: 30px;
  right: 35px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(0, 255, 255, 0.7);
  color: #fff;
  font-size: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.3);
  pointer-events: auto;
}
.carousel-close:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: #0ff;
  box-shadow: 0 0 60px rgba(0, 255, 255, 0.6);
  transform: scale(1.15) rotate(90deg);
}

.carousel-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(0, 255, 255, 0.35);
  color: #fff;
  font-size: 48px;
  padding: 28px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100001;
  line-height: 1;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
  pointer-events: auto;
}
.carousel-arrow:hover {
  background: rgba(0, 255, 255, 0.25);
  border-color: #0ff;
  box-shadow: 0 0 50px rgba(0, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.05);
}
.carousel-arrow.prev {
  left: 25px;
}
.carousel-arrow.next {
  right: 25px;
}

.carousel-counter {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.85);
  padding: 10px 24px;
  border-radius: 30px;
  border: 1px solid rgba(0, 255, 255, 0.35);
  z-index: 100001;
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.carousel-slide-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 100px 100px;
  position: relative;
  z-index: 99999;
}
.carousel-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.9);
  animation: carouselSlideIn 0.35s ease-out;
  position: relative;
  z-index: 99999;
}
@keyframes carouselSlideIn {
  from {
    opacity: 0.3;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.carousel-thumbnails {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 255, 0.25);
  overflow-x: auto;
  max-width: 92vw;
  z-index: 100001;
  scrollbar-width: thin;
  scrollbar-color: #0ff transparent;
}
.carousel-thumbnails::-webkit-scrollbar {
  height: 4px;
}
.carousel-thumbnails::-webkit-scrollbar-track {
  background: transparent;
}
.carousel-thumbnails::-webkit-scrollbar-thumb {
  background: #0ff;
  border-radius: 4px;
}
.carousel-thumbnail {
  width: 80px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.4;
}
.carousel-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-thumbnail:hover {
  opacity: 0.8;
  border-color: rgba(0, 255, 255, 0.3);
}
.carousel-thumbnail.active {
  opacity: 1;
  border-color: #0ff;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

/* ===== CAROUSEL RESPONSIVE ===== */
@media (max-width: 1024px) {
  .carousel-slide-container {
    padding: 70px 80px 90px;
  }
  .carousel-thumbnail {
    width: 65px;
    height: 46px;
  }
  .carousel-arrow {
    font-size: 36px;
    padding: 20px 16px;
  }
  .carousel-close {
    top: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .carousel-slide-container {
    padding: 60px 40px 80px;
  }
  .carousel-arrow {
    font-size: 28px;
    padding: 14px 10px;
  }
  .carousel-arrow.prev {
    left: 10px;
  }
  .carousel-arrow.next {
    right: 10px;
  }
  .carousel-close {
    top: 60px !important;
    right: 16px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
    z-index: 100001 !important;
  }
  .carousel-counter {
    top: 60px !important;
    font-size: 12px !important;
    padding: 4px 14px !important;
    z-index: 100001 !important;
  }
  .carousel-thumbnails {
    padding: 8px 14px;
    gap: 6px;
    bottom: 14px;
  }
  .carousel-thumbnail {
    width: 50px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .carousel-slide-container {
    padding: 50px 16px 70px;
  }
  .carousel-arrow {
    font-size: 20px;
    padding: 10px 6px;
  }
  .carousel-arrow.prev {
    left: 4px;
  }
  .carousel-arrow.next {
    right: 4px;
  }
  .carousel-close {
    top: 55px !important;
    right: 12px !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 14px !important;
  }
  .carousel-counter {
    top: 55px !important;
    font-size: 10px !important;
    padding: 3px 10px !important;
  }
  .carousel-thumbnail {
    width: 38px;
    height: 28px;
  }
}

/* ============================================
   RESPONSIVE FIXES - MAINTAIN FULL SCREEN
   ============================================ */

@media (max-width: 768px) {
  /* General */
  .cyber-card,
  .cyber-card-holo {
    backdrop-filter: blur(8px);
  }
  .cyber-btn,
  .cyber-btn-outline {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    font-size: 0.85rem !important;
  }

  /* Navigation */
  .cyber-glass {
    padding: 12px 16px !important;
  }
  .cyber-glass .font-['Orbitron'] {
    font-size: 1.1rem !important;
  }
  .cyber-glass .text-xs {
    font-size: 0.6rem !important;
  }

  /* Hero */
  #home h1 {
    font-size: 2.5rem !important;
  }
  #home .text-2xl {
    font-size: 1.2rem !important;
  }
  #home .text-lg {
    font-size: 1rem !important;
  }

  /* About Section */
  #about .grid {
    gap: 1.5rem !important;
  }
  #about .cyber-card {
    padding: 1.25rem !important;
  }

  /* Identity Matrix */
  .cyber-card .flex.justify-between {
    flex-direction: column !important;
    gap: 2px !important;
  }
  .cyber-card .flex.justify-between span {
    font-size: 0.7rem !important;
  }

  /* Profile Photo */
  .w-64.h-64 {
    width: 180px !important;
    height: 180px !important;
  }
  .md\:w-80.md\:h-80 {
    width: 200px !important;
    height: 200px !important;
  }

  /* Projects */
  #projects .grid {
    gap: 1.5rem !important;
  }
  #projects .h-72 {
    height: 200px !important;
  }
  #projects .h-56 {
    height: 180px !important;
  }
  #projects .text-3xl {
    font-size: 1.5rem !important;
  }
  .max-w-5xl,
  .max-w-2xl {
    max-width: 100% !important;
  }

  /* Tech Stack */
  .tech-icon-group p {
    font-size: 0.7rem !important;
  }
  .tech-icon-group .text-xs {
    font-size: 0.6rem !important;
  }
  .grid-cols-2.md\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* Certifications */
  .grid.md\:grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .grid.md\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .min-h-[180px] {
    min-height: 140px !important;
  }
  .min-h-[200px] {
    min-height: 160px !important;
  }

  /* Leadership Section */
  .grid.md\:grid-cols-2.gap-6 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Contact */
  .grid.md\:grid-cols-2.gap-8 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .cyber-card .p-6 {
    padding: 1.25rem !important;
  }

  /* Tooltips - disable on mobile */
  .skill-tag-cyber::before,
  .skill-tag-cyber::after {
    display: none !important;
  }

  /* Scroll Indicator */
  .scroll-indicator {
    bottom: 56px !important;
  }
  .scroll-indicator span {
    font-size: 0.6rem !important;
  }
}

@media (max-width: 480px) {
  /* Navigation */
  .cyber-glass .font-['Orbitron'] {
    font-size: 0.9rem !important;
  }
  .cyber-glass .text-xs {
    font-size: 0.5rem !important;
  }

  /* Hero */
  #home h1 {
    font-size: 1.8rem !important;
  }
  #home .text-2xl {
    font-size: 1rem !important;
  }
  #home .text-lg {
    font-size: 0.85rem !important;
  }
  .cyber-btn,
  .cyber-btn-outline {
    padding: 0.6rem 1rem !important;
    font-size: 0.75rem !important;
  }

  /* Profile Photo */
  .w-64.h-64 {
    width: 140px !important;
    height: 140px !important;
  }
  .md\:w-80.md\:h-80 {
    width: 160px !important;
    height: 160px !important;
  }

  /* Projects */
  #projects .h-72 {
    height: 150px !important;
  }
  #projects .h-56 {
    height: 130px !important;
  }
  #projects .text-3xl {
    font-size: 1.2rem !important;
  }

  /* Tech Stack */
  .tech-icon-group .w-10.h-10 {
    width: 2rem !important;
    height: 2rem !important;
  }
  .grid-cols-2.md\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  /* Footer */
  footer p {
    font-size: 0.6rem !important;
  }

  /* Contact Form */
  .input-cyber {
    font-size: 0.8rem !important;
    padding: 0.6rem 0.8rem !important;
  }
}

/* Project meta: date, achievement badge, and external links */
.project-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 255, 255, 0.06);
  border: 1px solid rgba(0, 255, 255, 0.25);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-family: "JetBrains Mono", monospace;
  color: #7dd3fc;
  white-space: nowrap;
}

.project-award {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-family: "JetBrains Mono", monospace;
  color: #fcd34d;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 255, 255, 0.18);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.35);
  padding: 0.4rem 0.95rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.03em;
  color: #0ff;
  transition: all 0.25s ease;
}

/* Links that aren't live yet — shown so visitors know what's planned,
   but visibly inert and not clickable. */
.project-link.wip {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.5);
  pointer-events: none;
}
.project-wip-note {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  width: 100%;
  margin-top: .5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: .6rem;
  letter-spacing: .08em;
  color: var(--text-dim);
}
.project-wip-note svg {
  width: 11px;
  height: 11px;
  color: var(--accent);
  opacity: .7;
  animation: wipSpin 2.4s linear infinite;
}
@keyframes wipSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .project-wip-note svg { animation: none; }
}

.project-link:not(.wip):hover {
  background: rgba(0, 255, 255, 0.18);
  border-color: #0ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 255, 255, 0.25);
}

.project-link-violet {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.4);
  color: #c4b5fd;
}

.project-link-violet:hover {
  background: rgba(167, 139, 250, 0.2);
  border-color: #a78bfa;
  box-shadow: 0 4px 14px rgba(167, 139, 250, 0.25);
}

/* Accessibility: visible keyboard focus and reduced-motion support */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0ff;
  outline-offset: 3px;
}

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


/* ============================================================
   THEME ENGINE  —  blue (default) / dark / light
   Everything below is layered on top of the original cyberpunk
   styles, so removing this block restores the old look exactly.
   ============================================================ */

:root {
  --accent:        #00ffff;
  --accent-soft:   #00d5d5;
  --accent-strong: #0ff;
  --accent-rgb:    0, 255, 255;
  --accent-2:      #a855f7;
  --accent-2-rgb:  168, 85, 247;

  --bg-base:   #05050a;
  --bg-a:      #0a0a1a;
  --bg-b:      #030308;
  --band:      rgba(0, 0, 0, 0.30);

  --card-bg:   rgba(8, 12, 25, 0.75);
  --card-bg-2: linear-gradient(135deg, rgba(8,12,35,0.8), rgba(15,8,35,0.7));
  --nav-bg:    rgba(5, 5, 15, 0.75);
  --input-bg:  rgba(0, 0, 0, 0.6);
  --input-bg-focus: rgba(0, 0, 0, 0.8);

  --text:        #e0e0e0;
  --text-strong: #ffffff;
  --text-soft:   #d1d5db;
  --text-muted:  #9ca3af;
  --text-dim:    #6b7280;

  --btn-fg:    #000000;
  --canvas-op: 0.5;
}

/* ---------- DARK: monochrome, no neon ---------- */
html[data-theme="dark"] {
  --accent:        #c9d1d9;
  --accent-soft:   #8b949e;
  --accent-strong: #e6edf3;
  --accent-rgb:    201, 209, 217;
  --accent-2:      #a1a1aa;
  --accent-2-rgb:  161, 161, 170;

  --bg-base:   #000000;
  --bg-a:      #0b0b0d;
  --bg-b:      #000000;
  --band:      rgba(255, 255, 255, 0.03);

  --card-bg:   rgba(18, 18, 21, 0.85);
  --card-bg-2: linear-gradient(135deg, rgba(20,20,23,0.9), rgba(28,28,32,0.8));
  --nav-bg:    rgba(8, 8, 10, 0.88);
  --input-bg:  rgba(255, 255, 255, 0.04);
  --input-bg-focus: rgba(255, 255, 255, 0.07);

  --text:        #d4d4d8;
  --text-strong: #fafafa;
  --text-soft:   #d4d4d8;
  --text-muted:  #a1a1aa;
  --text-dim:    #71717a;

  --btn-fg:    #0b0b0d;
  --canvas-op: 0.22;
}

/* ---------- LIGHT: white paper, blue ink ---------- */
html[data-theme="light"] {
  --accent:        #0369a1;
  --accent-soft:   #0284c7;
  --accent-strong: #075985;
  --accent-rgb:    3, 105, 161;
  --accent-2:      #7c3aed;
  --accent-2-rgb:  124, 58, 237;

  --bg-base:   #f4f7fb;
  --bg-a:      #ffffff;
  --bg-b:      #e6edf6;
  --band:      rgba(3, 105, 161, 0.04);

  --card-bg:   rgba(255, 255, 255, 0.92);
  --card-bg-2: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(238,244,252,0.9));
  --nav-bg:    rgba(255, 255, 255, 0.88);
  --input-bg:  rgba(255, 255, 255, 0.95);
  --input-bg-focus: #ffffff;

  --text:        #1e293b;
  --text-strong: #0f172a;
  --text-soft:   #334155;
  --text-muted:  #475569;
  --text-dim:    #64748b;

  --btn-fg:    #ffffff;
  --canvas-op: 0.16;
}

/* ===== base surfaces ===== */
body {
  background: var(--bg-base);
  color: var(--text);
  transition: background-color .35s ease, color .35s ease;
}
.cyber-bg {
  background: radial-gradient(circle at 20% 30%, var(--bg-a), var(--bg-b));
}
#bgCanvas { opacity: var(--canvas-op); transition: opacity .35s ease; }

html[data-theme="light"] .cyber-bg::after {
  /* soften the 3D canvas so text stays readable on white */
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(244, 247, 251, 0.55);
  pointer-events: none;
  z-index: 1;
}

/* ===== nav / cards / pills ===== */
.cyber-glass {
  background: var(--nav-bg) !important;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.30);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.10);
}
.cyber-card {
  background: var(--card-bg);
  border: 1px solid rgba(var(--accent-rgb), 0.30);
  box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.05);
}
.cyber-card:hover,
.cyber-card-holo:hover {
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.20);
}
.cyber-card-holo {
  background: var(--card-bg-2);
  border: 1px solid rgba(var(--accent-rgb), 0.30);
}
.cyber-card-holo:hover { box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.25); }
.cyber-pill {
  background: rgba(var(--accent-rgb), 0.10);
  border: 1px solid rgba(var(--accent-rgb), 0.40);
}
.mobile-menu-cyber { background: var(--nav-bg) !important; }

/* ===== buttons ===== */
.cyber-btn {
  background: linear-gradient(95deg, var(--accent-soft), var(--accent));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.50);
  color: var(--btn-fg);
}
.cyber-btn:hover { box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.85); }
.cyber-btn-outline { border: 1.5px solid var(--accent); color: var(--accent); }
.cyber-btn-outline:hover {
  background: rgba(var(--accent-rgb), 0.15);
  box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.30);
}

/* ===== inputs ===== */
.input-cyber {
  background: var(--input-bg);
  border: 1px solid rgba(var(--accent-rgb), 0.40);
  color: var(--accent-strong);
}
.input-cyber:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.30);
  background: var(--input-bg-focus);
}
html[data-theme="light"] .input-cyber { color: #0f172a; }
html[data-theme="light"] .input-cyber::placeholder { color: #94a3b8; }
html[data-theme="dark"]  .input-cyber::placeholder { color: #6b7280; }

/* ===== tags ===== */
.tech-tag, .tech-tag-lg {
  background: rgba(var(--accent-rgb), 0.10);
  border-color: rgba(var(--accent-rgb), 0.30);
  color: var(--accent);
}
.tech-tag-violet {
  background: rgba(var(--accent-2-rgb), 0.12);
  border-color: rgba(var(--accent-2-rgb), 0.35);
  color: var(--accent-2);
}
.skill-tag-cyber { border-color: rgba(var(--accent-rgb), 0.35); }
.tech-icon-group:hover { filter: drop-shadow(0 0 8px var(--accent)); }

/* ===== scrollbar ===== */
::-webkit-scrollbar-track { background: var(--bg-a); }
::-webkit-scrollbar-thumb { background: var(--accent); }

/* ============================================================
   Tailwind utility remaps per theme
   ============================================================ */

/* -- accent-coloured text -- */
html[data-theme="dark"] .text-cyan-400,
html[data-theme="dark"] .text-cyan-300,
html[data-theme="dark"] .text-cyan-500,
html[data-theme="light"] .text-cyan-400,
html[data-theme="light"] .text-cyan-300,
html[data-theme="light"] .text-cyan-500 { color: var(--accent) !important; }

html[data-theme="dark"] .text-cyan-400\/60,
html[data-theme="light"] .text-cyan-400\/60 { color: rgba(var(--accent-rgb), 0.6) !important; }

html[data-theme="dark"] .text-violet-300,
html[data-theme="dark"] .text-violet-400,
html[data-theme="dark"] .text-violet-200 { color: var(--accent-2) !important; }
html[data-theme="light"] .text-violet-300,
html[data-theme="light"] .text-violet-400,
html[data-theme="light"] .text-violet-200 { color: #6d28d9 !important; }

html[data-theme="dark"] .bg-cyan-500  { background-color: var(--accent) !important; }
html[data-theme="light"] .bg-cyan-500 { background-color: var(--accent) !important; }
html[data-theme="dark"] .bg-violet-500,
html[data-theme="light"] .bg-violet-500 { background-color: var(--accent-2) !important; }

/* -- neutral text -- */
html[data-theme="dark"] .text-white,   html[data-theme="light"] .text-white   { color: var(--text-strong) !important; }
html[data-theme="dark"] .text-gray-300,html[data-theme="light"] .text-gray-300 { color: var(--text-soft) !important; }
html[data-theme="dark"] .text-gray-400,html[data-theme="light"] .text-gray-400 { color: var(--text-muted) !important; }
html[data-theme="dark"] .text-gray-500,html[data-theme="light"] .text-gray-500 { color: var(--text-dim) !important; }

/* -- borders -- */
html[data-theme="dark"] [class*="border-cyan-"],
html[data-theme="light"] [class*="border-cyan-"] { border-color: rgba(var(--accent-rgb), 0.35) !important; }

/* -- section bands ("bg-black/30" etc.) -- */
html[data-theme="dark"] .bg-black\/30, html[data-theme="light"] .bg-black\/30 { background-color: var(--band) !important; }
html[data-theme="dark"] .bg-black\/40, html[data-theme="light"] .bg-black\/40 { background-color: var(--nav-bg) !important; }
html[data-theme="dark"] .bg-black\/50, html[data-theme="light"] .bg-black\/50 { background-color: var(--band) !important; }
html[data-theme="dark"] .bg-black\/60 { background-color: rgba(0,0,0,0.55) !important; }
html[data-theme="light"] .bg-black\/60 { background-color: rgba(15,23,42,0.72) !important; }
html[data-theme="dark"] .bg-black\/90, html[data-theme="light"] .bg-black\/90 { background-color: var(--nav-bg) !important; }

/* -- hero gradient headline -- */
html[data-theme="dark"] .animate-gradient {
  background-image: linear-gradient(to right, #ffffff, #a1a1aa, #ffffff) !important;
}
html[data-theme="light"] .animate-gradient {
  background-image: linear-gradient(to right, #0369a1, #7c3aed, #0369a1) !important;
}

/* light-mode legibility for coloured award/cert accents */
html[data-theme="light"] .text-amber-400,
html[data-theme="light"] .text-amber-300  { color: #b45309 !important; }
html[data-theme="light"] .text-emerald-400,
html[data-theme="light"] .text-green-400  { color: #047857 !important; }
html[data-theme="light"] .text-blue-400   { color: #1d4ed8 !important; }
html[data-theme="light"] .text-teal-400   { color: #0f766e !important; }
html[data-theme="light"] .text-pink-400   { color: #be185d !important; }
html[data-theme="light"] .text-orange-400 { color: #c2410c !important; }
html[data-theme="light"] .text-red-400    { color: #b91c1c !important; }
html[data-theme="light"] .text-purple-400 { color: #6d28d9 !important; }
html[data-theme="light"] .text-indigo-400 { color: #4338ca !important; }
html[data-theme="light"] .text-yellow-400 { color: #a16207 !important; }

html[data-theme="dark"] .text-amber-400, html[data-theme="dark"] .text-amber-300,
html[data-theme="dark"] .text-emerald-400, html[data-theme="dark"] .text-green-400,
html[data-theme="dark"] .text-blue-400, html[data-theme="dark"] .text-teal-400,
html[data-theme="dark"] .text-pink-400, html[data-theme="dark"] .text-orange-400,
html[data-theme="dark"] .text-red-400, html[data-theme="dark"] .text-purple-400,
html[data-theme="dark"] .text-indigo-400, html[data-theme="dark"] .text-yellow-400 { color: #e4e4e7 !important; }

/* popup + carousel chrome follow the theme too */
.cyber-popup-title  { color: var(--accent) !important; }
html[data-theme="light"] .cyber-popup-container,
html[data-theme="dark"]  .cyber-popup-container { background: var(--card-bg) !important; border-color: rgba(var(--accent-rgb), 0.5) !important; }
html[data-theme="light"] .cyber-popup-message { color: #334155 !important; }

/* ============================================================
   THEME SWITCHER CONTROL
   ============================================================ */
.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.07);
  backdrop-filter: blur(6px);
}
/* sliding puck behind the active theme icon */
.theme-glider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.55);
  transition: transform .34s cubic-bezier(.5,.05,.2,1);
  pointer-events: none;
}
.theme-switch[data-active="dark"]  .theme-glider { transform: translateX(32px); }
.theme-switch[data-active="light"] .theme-glider { transform: translateX(64px); }
.theme-opt {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s ease;
}
.theme-opt:hover { color: var(--accent); background: rgba(var(--accent-rgb), 0.12); }
.theme-opt[aria-pressed="true"] {
  background: transparent;   /* the .theme-glider puck sits behind it */
  color: var(--btn-fg);
}
.theme-opt[aria-pressed="true"]:hover { background: transparent; color: var(--btn-fg); }
.theme-opt svg { width: 16px; height: 16px; }
/* no-JS / glider-less fallback keeps the old solid pill */
.theme-switch:not([data-active]) .theme-opt[aria-pressed="true"] {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.55);
}
@media (max-width: 400px) {
  .theme-glider { width: 27px; height: 27px; }
  .theme-switch[data-active="dark"]  .theme-glider { transform: translateX(29px); }
  .theme-switch[data-active="light"] .theme-glider { transform: translateX(58px); }
}

/* ============================================================
   IDENTITY MATRIX FLIP CARD  (soft skills live on the back)
   ============================================================ */
.flip-card {
  perspective: 1800px;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.flip-inner {
  position: relative;
  display: grid;                 /* both faces share one cell -> */
  transform-style: preserve-3d;  /* card height = the taller face */
  transition: transform .85s cubic-bezier(.5,.05,.2,1);
}
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }

.flip-face {
  grid-area: 1 / 1;              /* stack front and back */
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  /* cyber-card look, minus backdrop-filter: a filter on a 3D-transformed
     face makes Chrome/Safari flatten the layer and the back shows through. */
  background: var(--card-bg);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.05);
  transition: border-color .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.flip-back { transform: rotateY(180deg); }

.flip-card:hover .flip-face,
.flip-card:focus-visible .flip-face {
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.2);
}
.flip-card:focus-visible { border-radius: 1rem; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.45); }

/* corner affordance so it reads as interactive */
.flip-hint {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
  padding-top: 1.1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .4px;
  color: var(--text-dim);
  transition: color .25s ease;
}
.flip-hint svg { width: 13px; height: 13px; transition: transform .45s ease; }
.flip-card:hover .flip-hint { color: var(--accent); }
.flip-card:hover .flip-hint svg { transform: rotate(180deg); }

/* No 3D for reduced-motion or very old browsers: just swap the faces. */
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
  .flip-card.flipped .flip-inner { transform: none; }
  .flip-face { backface-visibility: visible; }
  .flip-back { transform: none; display: none; }
  .flip-card.flipped .flip-front { display: none; }
  .flip-card.flipped .flip-back  { display: flex; }
}

/* ============================================================
   SUPPORT BLOCK  (coffee + GCash + GoTyme)
   ============================================================ */
.support-block {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--accent-rgb), 0.3);
}
.support-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .9rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  letter-spacing: .6px;
  color: var(--accent);
}
.support-head svg { width: 15px; height: 15px; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .7rem;
  margin-top: .7rem;
}

.support-note {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem;
  color: var(--text-dim);
}
.support-note svg { width: 12px; height: 12px; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .pay-details { animation: none; }
}

/* ============================================================
   BUY ME A COFFEE
   ============================================================ */
.coffee-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(135deg,
    rgba(var(--accent-rgb), 0.10),
    rgba(var(--accent-2-rgb), 0.08));
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.coffee-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.22);
  transform: translateY(-3px);
}

.coffee-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  transition: transform .35s ease;
}
.coffee-icon svg { width: 21px; height: 21px; }
.coffee-card:hover .coffee-icon { transform: rotate(-8deg) scale(1.06); }

.coffee-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.coffee-title {
  font-family: 'Orbitron', sans-serif;
  font-size: .82rem;
  letter-spacing: .8px;
  color: var(--accent);
}
.coffee-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .74rem;
  color: var(--text-muted);
}
.coffee-arrow {
  width: 17px; height: 17px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--accent);
  opacity: .65;
  transition: transform .25s ease, opacity .25s ease;
}
.coffee-card:hover .coffee-arrow { opacity: 1; transform: translate(3px, -3px); }

@media (max-width: 380px) {
  .coffee-sub { font-size: .68rem; }
  .coffee-card { padding: .85rem .9rem; gap: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .coffee-steam { display: none; }
  .coffee-card:hover { transform: none; }
  .coffee-card:hover .coffee-icon { transform: none; }
}

/* ============================================================
   AVAILABILITY TOAST
   ============================================================ */
.avail-toast {
  position: fixed;
  right: 22px;
  bottom: 86px;                  /* clears the back-to-top button */
  z-index: 9997;
  width: 310px;
  max-width: calc(100vw - 32px);
  padding: 16px 18px 18px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5),
              0 0 26px rgba(var(--accent-rgb), 0.12);
  opacity: 0;
  transform: translateY(18px) scale(.96);
  transition: opacity .45s cubic-bezier(.4,0,.2,1),
              transform .45s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.avail-toast[hidden] { display: none; }
.avail-toast.show { opacity: 1; transform: translateY(0) scale(1); }
.avail-toast.leaving { opacity: 0; transform: translateY(10px) scale(.97); }

/* soft accent glow bleeding in from the top-left */
.avail-glow {
  position: absolute;
  top: -55px; left: -55px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.28), transparent 68%);
  pointer-events: none;
}

/* The hit area is the whole 34px square — it used to be a 24px box holding a
   glyph that read larger than it was, so clicks near the X missed. */
.avail-close {
  position: absolute;
  top: 6px; right: 6px;
  z-index: 2;                    /* above .avail-glow */
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.avail-close:hover { color: var(--accent); background: rgba(var(--accent-rgb), 0.14); }
.avail-close:active { transform: scale(.92); }
.avail-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.6);
  color: var(--accent);
}

.avail-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.avail-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: availPulse 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes availPulse {
  0%   { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0); }
}
.avail-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.3px;
  color: #22c55e;
}
.avail-body {
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
  margin-bottom: 11px;
}
.avail-body strong { color: var(--accent); font-weight: 600; }

.avail-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 13px; }
.avail-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .3px;
  white-space: nowrap;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  background: rgba(var(--accent-rgb), 0.06);
}

.avail-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 11.5px;
  letter-spacing: 1.1px;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--accent);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.35);
  transition: transform .2s ease, box-shadow .25s ease, filter .2s ease;
}
.avail-cta:hover { transform: translateY(-2px); box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.5); filter: brightness(1.06); }
.avail-cta svg { width: 14px; height: 14px; transition: transform .2s ease; }
.avail-cta:hover svg { transform: translateX(3px); }

/* ---------- collapsed dock ---------- */
.avail-dock {
  position: fixed;
  right: 22px;
  bottom: 86px;                 /* same anchor the toast used */
  z-index: 9997;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px 9px 13px;
  border-radius: 999px;
  cursor: pointer;
  background: var(--card-bg);
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45),
              0 0 18px rgba(var(--accent-rgb), 0.12);
  opacity: 0;
  transform: translateY(12px) scale(.9);
  transition: opacity .38s cubic-bezier(.4,0,.2,1),
              transform .38s cubic-bezier(.4,0,.2,1),
              border-color .25s ease, box-shadow .25s ease;
}
.avail-dock[hidden] { display: none; }
.avail-dock.show { opacity: 1; transform: translateY(0) scale(1); }
.avail-dock:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5),
              0 0 26px rgba(var(--accent-rgb), 0.3);
  transform: translateY(-2px) scale(1.03);
}
.avail-dock-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.1px;
  color: #22c55e;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .avail-toast { right: 12px; left: 12px; width: auto; bottom: 74px; padding: 14px 15px 16px; }
  .avail-dock  { right: 12px; bottom: 74px; padding: 8px 13px 8px 11px; }
  .avail-dock-text { font-size: 9.5px; }
}
/* very narrow: shrink to just the pulsing dot so it never crowds the screen */
@media (max-width: 380px) {
  .avail-dock-text { display: none; }
  .avail-dock { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .avail-toast { transition: opacity .2s ease; transform: none; }
  .avail-toast.show { transform: none; }
  .avail-pulse { animation: none; }
  .avail-dock { transition: opacity .2s ease; transform: none; }
  .avail-dock.show, .avail-dock:hover { transform: none; }
}

/* Single-image galleries: nothing to navigate between. */
.carousel-modal.single .carousel-arrow,
.carousel-modal.single .carousel-counter,
.carousel-modal.single .carousel-thumbnails {
  display: none !important;
}

/* ============================================================
   FOOTER CLEARANCE
   The back-to-top button and availability dock are position:fixed at the
   bottom-right, so at the end of the page they sit on top of the footer text.
   Reserve room for them instead of letting them overlap.
   ============================================================ */
footer {
  padding-bottom: 5.5rem;
}
footer > p {
  max-width: 62rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (max-width: 640px) {
  footer { padding-bottom: 6.5rem; }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#backToTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--card-bg);
  color: var(--accent);
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
#backToTop:hover {
  background: var(--accent);
  color: var(--btn-fg);
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.7);
  transform: translateY(-3px) scale(1.05);
}
#backToTop svg { width: 22px; height: 22px; }
#backToTop .btt-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  animation: bttPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes bttPulse {
  0%   { transform: scale(0.9); opacity: 0.8; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
@media (max-width: 640px) {
  #backToTop { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* ============================================================
   GRAPHIC DESIGN SECTION
   ============================================================ */
.gd-category {
  background: var(--card-bg);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  backdrop-filter: blur(10px);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.gd-category:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.10);
}
.gd-cat-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.gd-soon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 999px;
  padding: 2px 7px;
}

/* ---------- SEE MORE ---------- */
.gd-more-wrap { text-align: center; padding: .5rem 0 .25rem; }
.gd-more-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: .8rem;
  letter-spacing: 1.2px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.07);
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  overflow: hidden;
  transition: color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .2s ease;
}
/* light sweep on hover */
.gd-more-btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(var(--accent-rgb), 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.gd-more-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.28);
  transform: translateY(-2px);
}
.gd-more-btn:hover::after { transform: translateX(120%); }
.gd-more-btn:active { transform: translateY(0); }
.gd-more-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.16);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
}
.gd-more-chev {
  width: 16px; height: 16px;
  transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.gd-more-btn.open .gd-more-chev { transform: rotate(180deg); }
.gd-more-btn.open .gd-more-count { opacity: .55; }
.gd-more-hint {
  margin-top: .6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  color: var(--text-dim);
}

.gd-more { display: flex; flex-direction: column; gap: 2.5rem; margin-top: 2.5rem; }
.gd-more[hidden] { display: none; }
.gd-extra { opacity: 0; }
.gd-extra.in { animation: gdReveal .45s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes gdReveal {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .gd-extra, .gd-extra.in { opacity: 1; animation: none; }
  .gd-more-btn::after { display: none; }
}
/* auto-FIT (not auto-fill) collapses the empty tracks, and a capped max track
   stops 3 tiles from stretching edge-to-edge — together with justify-content
   that leaves the row genuinely centred instead of left-packed. */
.gd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 230px));
  justify-content: center;
  gap: 1rem;
}
.gd-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: .85rem;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.30);
  background: var(--card-bg);
  cursor: pointer;
  transition: all .28s ease;
}
.gd-tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.28);
}
.gd-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gd-tile:hover img { transform: scale(1.06); }
.gd-tile-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .55rem .7rem;
  font-family: "JetBrains Mono", monospace;
  font-size: .68rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
}
.gd-tile-count {
  position: absolute;
  top: .5rem; right: .5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: .6rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .9);
  color: var(--btn-fg);
}
.gd-tile.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  cursor: default;
  border-style: dashed;
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.03);
  color: var(--text-dim);
  text-align: center;
  padding: 1rem;
}
.gd-tile.empty:hover { transform: none; box-shadow: none; border-color: rgba(var(--accent-rgb), 0.45); }
.gd-tile.empty .gd-empty-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  opacity: .45;
  margin-bottom: .5rem;
}
.gd-tile.empty .gd-empty-title {
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  letter-spacing: .5px;
  color: var(--accent);
  opacity: .7;
}
/* Generic "don't crop me" tile. */
.gd-tile-contain img {
  object-fit: contain !important;
  padding: 1.1rem;
  background: rgba(var(--accent-rgb), 0.04);
}
.gd-tile-contain:hover img { transform: scale(1.04); }

/* Logo tiles — the source art is square with its own baked-in backdrop
   (mostly white, one dark, one blue), so a square tile lets each mark sit
   edge to edge with nothing cropped and no letterbox bars. */
.gd-tile-logo {
  aspect-ratio: 1 / 1;
  background: #ffffff;          /* matches the majority of the marks */
}
.gd-tile-logo img {
  object-fit: contain !important;
}
.gd-tile-logo:hover img { transform: scale(1.05); }
/* the scanline sweep reads as grime over a white card — drop it here */
.gd-tile-logo .gd-scanline { display: none; }
.gd-tile-logo .gd-tile-label,
.gd-tile-logo .gd-tile-count {
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
}
.gd-tile.empty .gd-empty-path {
  font-family: "JetBrains Mono", monospace;
  font-size: .58rem;
  word-break: break-all;
  opacity: .7;
}
.gd-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(var(--accent-rgb), .05) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.gd-tile:hover .gd-scanline { opacity: 1; }

/* ============================================================
   TECHNICAL SKILLS — centered layout
   ============================================================ */
.skills-centered .skill-group { text-align: center; }
.skills-centered .skill-group-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: .75rem;
}
.skills-centered .skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

/* ============================================================
   SITE NOTICE
   ============================================================ */
.site-notice {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 1.1rem 2.6rem 1.1rem 1.2rem;
}
.site-notice::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
}
.site-notice-close {
  position: absolute;
  top: .55rem; right: .6rem;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), .35);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  transition: all .2s ease;
}
.site-notice-close:hover { color: var(--accent); border-color: var(--accent); transform: rotate(90deg); }
.notice-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: noticePulse 1.8s ease-in-out infinite;
}
@keyframes noticePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.8); }
}

@media (prefers-reduced-motion: reduce) {
  #backToTop .btt-ring, .notice-dot { animation: none; }
}
