/* ============================================
   Jerwin Teñajura — Full Stack Developer Portfolio
   ============================================ */

:root {
  /* Colors — premium dark + gold */
  --bg: #060608;
  --bg-elevated: #0c0c0f;
  --bg-card: #121215;
  --surface: #18181c;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;
  --accent: #d4a83b;
  --accent-light: #e8c04a;
  --accent-dark: #a67c1f;
  --accent-dim: rgba(212, 168, 59, 0.18);
  --accent-glow: rgba(212, 168, 59, 0.35);
  --accent-secondary: #0ea5e9;
  --accent-secondary-dim: rgba(14, 165, 233, 0.15);
  --white: #ffffff;
  /* Gradients */
  --gradient-accent: linear-gradient(
    135deg,
    #d4a83b 0%,
    #e8c04a 50%,
    #c99a2e 100%
  );
  --gradient-mesh:
    radial-gradient(
      ellipse 80% 50% at 50% -30%,
      rgba(212, 168, 59, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 40% at 100% 20%,
      rgba(212, 168, 59, 0.08) 0%,
      transparent 45%
    ),
    radial-gradient(
      ellipse 50% 30% at 0% 60%,
      rgba(14, 165, 233, 0.06) 0%,
      transparent 50%
    );
  /* Typography */
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  /* Spacing & layout */
  --container: min(100% - 3rem, 1240px);
  --section-padding: clamp(5rem, 12vw, 8rem);
  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--accent-glow);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Main container: thin scrollbar only */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

html::-webkit-scrollbar {
  width: 6px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--text-subtle);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
  width: 100%;
  max-width: 100vw;
}

/* No inner scroll in sections — only the document scrolls (titles stay visible) */
main,
.section,
.container,
section {
  overflow: visible;
}

/* Hide horizontal scrollbar and prevent overflow on mobile */
@media (max-width: 1024px) {
  html {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  body {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
  }

  /* Sidebar on top, header below — mobile/iPad */
  .header {
    z-index: 98;
  }

  .nav-sidebar-backdrop {
    z-index: 100;
  }

  .nav-sidebar {
    z-index: 101;
  }
}

/* Mobile: lock horizontal scroll, smooth vertical scroll */
@media (max-width: 768px) {
  html {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  body {
    overflow-x: hidden !important;
    max-width: 100vw;
    -webkit-overflow-scrolling: touch;
  }

  main,
  .section {
    overflow: visible;
    max-width: 100%;
    min-width: 0;
  }

  .hero-tools-strip {
    overflow-x: hidden;
    max-width: 100%;
  }

  .header,
  .nav-sidebar,
  .nav-sidebar-backdrop {
    overflow-x: hidden;
    max-width: 100vw;
  }
}

/* Prevent horizontal scroll from wide content */
img:not(.work-card-img):not(.tool-logo):not(.cert-lightbox-img):not(.logo-img),
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Noise overlay — subtle texture */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition:
    background var(--transition),
    backdrop-filter var(--transition);
}

.header.scrolled {
  background: rgba(6, 6, 8, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

/* Mobile/tablet: header (and JT logo) below sidebar so sidebar draws on top */
@media (max-width: 1024px) {
  .header {
    z-index: 90;
  }
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  color: var(--bg);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.logo-img {
  display: block;
  height: 32px !important;
  width: auto !important;
  max-width: 32px !important;
  object-fit: contain;
  border-radius: var(--radius);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.logo:hover .logo-mark {
  transform: scale(1.05);
  box-shadow: 0 6px 28px var(--accent-glow);
}

.logo-text {
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.2rem 0;
  transition: color var(--transition);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

.nav a.active {
  color: var(--accent);
}

.nav a.active::after {
  width: 100%;
}

/* Contact link — styled with icon only in mobile sidebar; desktop uses normal nav link */
.nav-sidebar-inner a[href="#contact"] {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  margin-left: 0.25rem;
  border-radius: 9999px;
  font-weight: 600;
  color: var(--accent-light);
  background: transparent;
  border: 1px solid rgba(212, 168, 59, 0.35);
}

.nav-sidebar-inner a[href="#contact"]:hover {
  color: var(--accent-light);
  background: transparent;
  border-color: rgba(212, 168, 59, 0.5);
}

.nav-sidebar-inner a[href="#contact"].active {
  color: var(--accent-light);
  background: transparent;
  border-color: rgba(212, 168, 59, 0.5);
}

/* Nav dropdown — WordPress-style */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition);
  position: relative;
}

.nav-dropdown-trigger:hover {
  color: var(--text);
}

.nav-dropdown-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-dropdown-trigger:hover::after,
.nav-dropdown.open .nav-dropdown-trigger::after {
  width: 100%;
}

.nav-dropdown.open .nav-dropdown-trigger {
  color: var(--accent);
}

.nav-dropdown-chevron {
  font-size: 0.65em;
  opacity: 0.8;
  transition: transform var(--transition);
}

.nav-dropdown.open .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 0.5rem;
  transform: translateX(-50%) translateY(-6px);
  min-width: 200px;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
  z-index: 1000;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li {
  margin: 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition:
    background var(--transition),
    color var(--transition);
  border: none;
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.nav-dropdown-menu a.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1c1c1e !important;
  background: linear-gradient(180deg, #e8c44a 0%, #d4a83b 45%, #b88620 100%);
  border: none;
  border-radius: 9999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.15),
    0 4px 16px rgba(184, 134, 32, 0.25);
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  position: relative;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta .nav-cta-icon {
  color: #1c1c1e;
}

.nav-cta .nav-cta-icon svg {
  stroke: currentColor;
}

.nav-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.2),
    0 6px 24px rgba(184, 134, 32, 0.3);
}

.nav-cta:hover .nav-cta-icon {
  transform: scale(1.05);
}

.nav-cta:focus-visible {
  outline: 2px solid #1c1c1e;
  outline-offset: 3px;
}

.nav-github {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  padding: 0.5rem;
  border-radius: var(--radius);
  transition:
    color var(--transition),
    background var(--transition);
}

.nav-github:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Sidebar menu (mobile/tablet) — premium WordPress-style, slide-in from right */
.nav-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.nav-sidebar-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  max-width: 100%;
  height: 100vh;
  z-index: 99;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nav-sidebar.open {
  transform: translateX(0);
}

.nav-sidebar-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-sidebar-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: -0.5rem -0.5rem -0.5rem auto;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.nav-sidebar-close:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-sidebar-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-sidebar-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}

.nav-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.75rem 0.5rem 1.5rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.nav-sidebar a {
  display: block;
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  margin: 0 0.35rem;
  border-radius: 6px;
  border-left: 3px solid transparent;
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.nav-sidebar a:hover {
  color: var(--text);
  background: var(--surface);
}

/* Active section highlight — left bar + background */
.nav-sidebar a.active {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-dim);
  border-left-color: var(--accent);
}

.nav-sidebar a.active:hover {
  color: var(--accent-light);
  background: rgba(212, 168, 59, 0.22);
}

.nav-sidebar a:last-of-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.6rem 1rem;
  text-align: center;
  font-weight: 600;
  background: transparent;
  border: 1px solid rgba(212, 168, 59, 0.35);
  color: var(--accent-light);
}

.nav-sidebar a:last-of-type:hover {
  background: transparent;
  border-color: rgba(212, 168, 59, 0.5);
  color: var(--accent-light);
}

.nav-sidebar a:last-of-type.active {
  background: transparent;
  border-color: rgba(212, 168, 59, 0.5);
}

@media (min-width: 901px) {
  .nav-sidebar-backdrop,
  .nav-sidebar {
    display: none !important;
  }
}

/* ========== Hero — Clean & balanced ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(80px + 0.75rem) 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 90% 70% at 50% 0%,
      rgba(212, 168, 59, 0.06) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 50% at 85% 30%,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 45%
    ),
    radial-gradient(
      ellipse 50% 40% at 15% 70%,
      rgba(255, 255, 255, 0.015) 0%,
      transparent 45%
    );
  pointer-events: none;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(
    ellipse 80% 65% at 50% 40%,
    black 20%,
    transparent 65%
  );
  opacity: 0.9;
  pointer-events: none;
}

.hero-dot-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  mask-image: radial-gradient(
    ellipse 75% 55% at 50% 45%,
    black 15%,
    transparent 68%
  );
  opacity: 0.7;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  pointer-events: none;
}

.hero-blob-1,
.hero-blob-2 {
  display: none;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(
    ellipse 70% 60% at 50% 45%,
    black 25%,
    transparent 70%
  );
  opacity: 0.6;
}

.hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  max-width: 1100px;
  margin-inline: auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: hero-badge-pulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(212, 168, 59, 0.5);
}

@keyframes hero-badge-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(212, 168, 59, 0.5);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(212, 168, 59, 0);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.2vw, 3.75rem);
  line-height: 1.08;
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-title-period {
  color: var(--accent);
}

.hero-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.6rem;
  margin-bottom: 1rem;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.hero-role {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent-light);
  min-height: 1.5em;
}

.hero-role-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-left: 2px;
  background: var(--accent-light);
  vertical-align: -0.15em;
  animation: hero-role-cursor-blink 0.9s step-end infinite;
}

@keyframes hero-role-cursor-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero-desc {
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 28em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-actions .btn {
  gap: 0.45rem;
}

.hero-actions .btn svg {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.hero-actions .btn:hover svg {
  transform: translateX(2px);
}

.hero-actions-mobile {
  display: none;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  border-radius: 1px;
}

/* Hero tools strip — infinite scrolling logos */
.hero-tools-strip {
  margin-top: clamp(0.75rem, 2vw, 1.25rem);
  width: 100%;
  max-width: min(1100px, 100%);
  margin-inline: auto;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

.hero-tools-track {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  width: max-content;
  animation: hero-tools-scroll 35s linear infinite;
}

.hero-tools-track img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.85;
  filter: brightness(0.9);
}

.hero-tools-track:hover img {
  opacity: 1;
  filter: brightness(1);
}

@keyframes hero-tools-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Profile column — hanging ID-style card with lace */
.hero-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  justify-self: center;
}

.hero-profile-hang {
  position: relative;
  padding-top: 52px;
}

/* SVG line — always connects hook to card (stays stuck to both) */
.hero-profile-cord-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-profile-cord-line {
  stroke: rgba(212, 168, 59, 0.55);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: stroke 0.2s ease;
}

/* Hook only — line is drawn by SVG above */
.hero-profile-id-lace {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.hero-profile-hook {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(212, 168, 59, 0.5);
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.15),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(212, 168, 59, 0.2) 0%,
      rgba(180, 140, 50, 0.35) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Profile card — ID-style, draggable */
.hero-profile-card {
  position: relative;
  z-index: 1;
  width: min(100%, 300px);
  cursor: grab;
  transform: rotate(-1.5deg);
  transform-origin: center 0;
  transition: box-shadow 0.35s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.hero-profile-card:active {
  cursor: grabbing;
}

.hero-profile-card.dragging {
  cursor: grabbing;
  transition: none;
  z-index: 10;
}

.hero-profile-card.bounce {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Card frame — pro ID look: crisp border, subtle depth */
.hero-profile-lace {
  position: relative;
  padding: 6px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(212, 168, 59, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 8px 24px -4px rgba(0, 0, 0, 0.35),
    0 20px 40px -8px rgba(0, 0, 0, 0.3);
  transition:
    border-color 0.25s ease,
    box-shadow 0.35s ease;
}

.hero-profile-card:hover .hero-profile-lace {
  border-color: rgba(212, 168, 59, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(0, 0, 0, 0.06),
    0 12px 32px -4px rgba(0, 0, 0, 0.4),
    0 24px 48px -8px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(212, 168, 59, 0.08);
}

.hero-profile-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-profile-frame::before {
  display: none;
}

.hero-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.hero-profile-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--surface) 0%,
    var(--bg-elevated) 100%
  );
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

.hero-profile-placeholder.show {
  display: flex;
}

.hero-availability {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem 0.35rem 0.6rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(
    145deg,
    rgba(20, 20, 22, 0.92) 0%,
    rgba(12, 12, 15, 0.88) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 168, 59, 0.28);
  border-radius: 9999px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  pointer-events: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.hero-availability::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(212, 168, 59, 0.2),
    0 0 8px rgba(212, 168, 59, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: hero-availability-pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-availability::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 9999px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(212, 168, 59, 0.4) 0%,
    transparent 50%,
    rgba(212, 168, 59, 0.15) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
}

.hero-profile-card:hover .hero-availability {
  border-color: rgba(212, 168, 59, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 6px 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 28px rgba(212, 168, 59, 0.12);
}

@keyframes hero-availability-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow:
      0 0 0 2px rgba(0, 0, 0, 0.35),
      0 0 0 4px rgba(212, 168, 59, 0.2),
      0 0 12px rgba(212, 168, 59, 0.7),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.12);
    box-shadow:
      0 0 0 3px rgba(0, 0, 0, 0.2),
      0 0 0 5px rgba(212, 168, 59, 0.25),
      0 0 16px rgba(212, 168, 59, 0.8),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
}

/* Scroll cue — mouse design */
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-subtle);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-scroll-mouse {
  position: relative;
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-subtle);
  border-radius: 12px;
  opacity: 0.85;
}

.hero-scroll-mouse-wheel {
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--text-subtle);
  border-radius: 2px;
  opacity: 0.9;
}

.hero-scroll-mouse-dot {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  animation: hero-scroll-mouse-dot 2s ease-in-out infinite;
  opacity: 0.9;
}

@keyframes hero-scroll-mouse-dot {
  0%,
  100% {
    top: 8px;
    opacity: 0.9;
  }
  50% {
    top: 18px;
    opacity: 0.5;
  }
}

.hero-scroll-text {
  opacity: 0.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--bg);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: rgba(212, 168, 59, 0.5);
  color: var(--accent-light);
  background: var(--accent-dim);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-full {
  width: 100%;
}

/* ========== Section common ========== */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3rem;
  min-width: 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

/* ========== Work / Portfolio ========== */
.work-category {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.work-category:last-child {
  margin-bottom: 0;
}

.work-category-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.work-category-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
}

.work-grid--non-deployed:empty {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.work-grid--non-deployed:empty::after {
  content: "No projects in development yet.";
}

.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 168, 59, 0.25);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.work-card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.work-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  transition: transform var(--transition-slow);
}

.work-card:hover .work-card-img {
  transform: scale(1.05);
}

.work-card-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--surface) 0%,
    var(--bg-elevated) 100%
  );
  transition: transform var(--transition-slow);
  z-index: 0;
  display: none;
}

.work-card-placeholder.show {
  display: block;
}

.work-card-1 {
  background: linear-gradient(145deg, #2d2a26 0%, #1a1917 50%, #0f0f11 100%);
}
.work-card-2 {
  background: linear-gradient(145deg, #1e3a5f 0%, #0f172a 50%, #0a0f1a 100%);
}
.work-card-3 {
  background: linear-gradient(145deg, #3d2c5a 0%, #1e1b2e 50%, #15121c 100%);
}
.work-card-4 {
  background: linear-gradient(145deg, #2c4a3e 0%, #1a2622 50%, #0f1a16 100%);
}
.work-card-5 {
  background: linear-gradient(145deg, #4a3c2c 0%, #2a221a 50%, #1a1510 100%);
}
.work-card-6 {
  background: linear-gradient(145deg, #3a2d4a 0%, #1f1a28 50%, #16141e 100%);
}
.work-card-7 {
  background: linear-gradient(145deg, #1e3a2f 0%, #0f261e 50%, #0a1a14 100%);
}
.work-card-8 {
  background: linear-gradient(145deg, #2d3a4a 0%, #1a222e 50%, #0f141a 100%);
}
.work-card-9 {
  background: linear-gradient(145deg, #2a3547 0%, #1a2332 50%, #0f1620 100%);
}

.work-card:hover .work-card-placeholder {
  transform: scale(1.08);
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 12, 0.98) 0%,
    rgba(10, 10, 12, 0.85) 35%,
    rgba(10, 10, 12, 0.5) 60%,
    transparent 85%
  );
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity var(--transition-slow);
  z-index: 1;
}

.work-card:hover .work-card-overlay {
  opacity: 1;
}

.work-card--non-deployed {
  cursor: default;
}

.work-card--non-deployed .work-card-overlay {
  opacity: 0;
}

.work-card--non-deployed:hover .work-card-overlay {
  opacity: 1;
}

.work-card--non-deployed:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 168, 59, 0.25);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.work-card--non-deployed:hover .work-card-img,
.work-card--non-deployed:hover .work-card-placeholder {
  transform: scale(1.05);
}

.work-card--non-deployed .work-card-link {
  display: none;
}

.work-card-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: rgba(212, 168, 59, 0.25);
  border-radius: 6px;
  width: fit-content;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.work-card-overlay .work-card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.work-card-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.work-card-overlay p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  line-height: 1.5;
}

.work-card-overlay .work-card-tag {
  color: var(--accent);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.work-card-link {
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.work-card-link:hover {
  color: var(--accent-light);
}

/* Premium tech tags with logos */
.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(
    180deg,
    rgba(12, 12, 15, 0.95) 0%,
    rgba(8, 8, 10, 0.98) 100%
  );
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.work-card-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-card);
  color: var(--text);
  border-radius: 10px;
  font-weight: 500;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.work-card:hover .work-card-tech {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(212, 168, 59, 0.06);
}

.work-card-tech__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.95;
}

.work-card-tech__icon--svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.work-card-tech__icon--svg svg {
  width: 18px;
  height: 18px;
}

.work-card-tech__label {
  letter-spacing: 0.02em;
}

/* ========== About — Clean UI/UX ========== */
.about {
  position: relative;
  background: var(--bg-elevated);
}

.about-bg {
  position: absolute;
  inset: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  pointer-events: none;
}

.about-head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  max-width: 100%;
  margin-inline: auto;
  text-align: left;
}

.about-content-wrap {
  display: flex;
  align-items: stretch;
}

.about-content-card {
  width: 100%;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.about-content-card--quote {
  position: relative;
}

.about-quote-block {
  position: relative;
  margin: 0;
  padding: 0 2.5rem 0 3.25rem;
  border: none;
}

.about-quote-block::before,
.about-quote-block::after {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  position: absolute;
}

.about-quote-block::before {
  content: "\201C";
  top: -0.1em;
  left: 0;
}

.about-quote-block::after {
  content: "\201D";
  bottom: -0.4em;
  right: 0;
}

.about-content-card .about-lead,
.about-content-wrap .about-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.about-lead-gold {
  color: var(--accent);
  font-weight: 600;
}

.about-lead-gold strong {
  color: var(--accent);
  font-weight: 700;
}

.about-quote-block .about-lead strong {
  color: var(--accent);
  font-weight: 700;
}

.about-content-card p,
.about-content-wrap p {
  margin-bottom: 1.1rem;
  font-size: 1rem;
  line-height: 1.7;
}

.about-content-card p:last-child,
.about-content-wrap p:last-child {
  margin-bottom: 0;
}

.about-content-wrap strong {
  color: var(--text);
  font-weight: 600;
}

/* Education — clean list */
.about-edu-wrap {
  display: flex;
  align-items: stretch;
}

.about-edu {
  width: 100%;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about-edu-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.about-edu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.about-edu-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about-edu-year {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.03em;
  order: 1;
}

.about-edu-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  order: 2;
}

.about-edu-item-content strong {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
}

.about-edu-school {
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

.about-edu-elementary .about-edu-item-content strong {
  font-size: 0.9rem;
}

.about-edu-elementary .about-edu-school {
  font-size: 0.8rem;
}

.about-edu-elementary .about-edu-year {
  font-size: 0.625rem;
}

/* ========== Experience — Pro left/right progress timeline ========== */
.experience {
  background: var(--bg-elevated);
  background-image: radial-gradient(
    ellipse 60% 40% at 50% 0%,
    rgba(212, 168, 59, 0.04) 0%,
    transparent 50%
  );
}

.experience-timeline {
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Vertical progress line — centered */
.experience-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-1px);
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent) 0%,
    rgba(212, 168, 59, 0.5) 20%,
    rgba(212, 168, 59, 0.35) 50%,
    var(--border) 100%
  );
  border-radius: 2px;
  z-index: 0;
}

.experience-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 3rem 1fr;
  align-items: start;
  gap: 0 0.75rem;
  padding-bottom: 2rem;
  z-index: 1;
}

.experience-card:last-child {
  padding-bottom: 0;
}

/* Step node on the center line */
.experience-step {
  grid-column: 2;
  justify-self: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 0 0 3px var(--bg-elevated),
    0 0 0 4px var(--accent),
    0 2px 10px rgba(212, 168, 59, 0.35);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.experience-card:hover .experience-step {
  transform: scale(1.08);
  box-shadow:
    0 0 0 3px var(--bg-elevated),
    0 0 0 4px var(--accent-light),
    0 0 20px rgba(212, 168, 59, 0.4);
}

/* Left column: odd cards (01, 03, 05) */
.experience-card:nth-child(odd) .experience-card-inner {
  grid-column: 1;
  justify-self: end;
}

/* Right column: even cards (02, 04) */
.experience-card:nth-child(even) .experience-card-inner {
  grid-column: 3;
  justify-self: start;
}

.experience-card-inner {
  width: 100%;
  max-width: 380px;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.65rem;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.experience-card:hover .experience-card-inner {
  border-color: var(--border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.experience-date-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}

.experience-role {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.experience-company {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  padding-left: 0.15rem;
}

.experience-company.empty {
  display: none;
}

.experience-duties {
  margin: 0;
  padding-left: 1.35rem;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.experience-duties li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.experience-duties li::before {
  content: "";
  position: absolute;
  left: -1.35rem;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.9;
}

.experience-duties li:last-child {
  margin-bottom: 0;
}

/* Experience — mobile (tablet & phone) */
@media (max-width: 768px) {
  .experience-timeline {
    max-width: 100%;
    padding-left: 0;
  }

  .experience-timeline::before {
    left: 0.6875rem;
    transform: none;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(
      to bottom,
      var(--accent) 0%,
      rgba(212, 168, 59, 0.4) 50%,
      var(--border) 100%
    );
  }

  .experience-card {
    grid-template-columns: 1.5rem 1fr;
    gap: 0 1rem;
    padding-bottom: 1.75rem;
    align-items: start;
  }

  .experience-card:last-child {
    padding-bottom: 0;
  }

  .experience-step {
    grid-column: 1;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.55rem;
    font-weight: 800;
    box-shadow:
      0 0 0 2px var(--bg-elevated),
      0 0 0 3px var(--accent);
  }

  .experience-card:nth-child(odd) .experience-card-inner,
  .experience-card:nth-child(even) .experience-card-inner {
    grid-column: 2;
    justify-self: stretch;
    max-width: none;
  }

  .experience-card-inner {
    padding: 1.25rem 1.15rem;
    border-radius: var(--radius);
  }

  .experience-date-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    margin-bottom: 0.65rem;
  }

  .experience-role {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
  }

  .experience-company {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .experience-duties {
    padding-left: 1.15rem;
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .experience-duties li {
    margin-bottom: 0.45rem;
    padding-left: 0.4rem;
  }

  .experience-duties li::before {
    left: -1.15rem;
    width: 4px;
    height: 4px;
    top: 0.5em;
  }
}

/* Experience — small mobile */
@media (max-width: 480px) {
  .experience-timeline::before {
    left: 0.5625rem;
  }

  .experience-card {
    grid-template-columns: 1.25rem 1fr;
    gap: 0 0.75rem;
    padding-bottom: 1.5rem;
  }

  .experience-step {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.5rem;
    box-shadow:
      0 0 0 2px var(--bg-elevated),
      0 0 0 2.5px var(--accent);
  }

  .experience-card-inner {
    padding: 1rem 1rem;
  }

  .experience-date-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.5rem;
  }

  .experience-role {
    font-size: 0.98rem;
  }

  .experience-company {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
  }

  .experience-duties {
    padding-left: 1rem;
    font-size: 0.8125rem;
    line-height: 1.55;
  }

  .experience-duties li {
    margin-bottom: 0.4rem;
  }

  .experience-duties li::before {
    left: -1rem;
    width: 3px;
    height: 3px;
  }
}

/* ========== Certificates Gallery ========== */
.certificates {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.01) 50%,
    transparent 100%
  );
}

.cert-drive-wrap {
  margin: 0 0 1.75rem;
  text-align: center;
}

.cert-drive-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition:
    color var(--transition),
    background var(--transition);
}

.cert-drive-link:hover {
  color: var(--accent-light);
  background: var(--accent-dim);
}

.cert-gallery {
  max-width: 1000px;
  margin-inline: auto;
}

.cert-category {
  margin-bottom: 2.5rem;
}

.cert-category:last-child {
  margin-bottom: 0;
}

.cert-category-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 1.25rem;
}

.cert-item {
  margin: 0;
  min-width: 0;
}

.cert-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  aspect-ratio: 3 / 4;
  position: relative;
}

.cert-trigger:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.cert-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.cert-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text-subtle);
  font-size: 0.85rem;
  flex-direction: column;
  gap: 0.5rem;
}

.cert-placeholder.show {
  display: flex;
}

.cert-placeholder-icon {
  font-size: 2rem;
  opacity: 0.7;
}

.cert-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
  text-align: center;
  padding: 0 0.25rem;
}

/* Certificate lightbox */
.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.cert-lightbox[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

.cert-lightbox[hidden] {
  display: flex !important;
}

.cert-lightbox[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

.cert-lightbox-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.cert-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.cert-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.cert-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 2;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .cert-trigger {
    aspect-ratio: 3 / 4;
  }
}

/* ========== Achievements ========== */
.achievements {
  background: var(--bg-elevated);
}

.achievements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  max-width: 960px;
  margin-inline: auto;
}

.achievements-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.achievement-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.achievement-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.achievement-org {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}

.achievement-date {
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 0.6rem;
  font-weight: 500;
}

.achievement-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 768px) {
  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-content-card {
    padding: 1.5rem;
  }
}

/* ========== Services ========== */
.services {
  background: var(--bg-elevated);
  background-image: radial-gradient(
    ellipse 70% 50% at 50% 0%,
    rgba(212, 168, 59, 0.06) 0%,
    transparent 50%
  );
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  min-width: 0;
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.service-card:hover {
  border-color: rgba(212, 168, 59, 0.3);
  transform: translateY(-6px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.35rem;
  padding: 12px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  color: var(--accent);
  transition:
    background var(--transition),
    transform var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(212, 168, 59, 0.25);
  transform: scale(1.05);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== Process ========== */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 2rem;
  max-width: min(1100px, 100%);
  margin-inline: auto;
}

.process-step {
  padding: 1.75rem;
  border-left: 2px solid var(--border-strong);
  padding-left: 2.25rem;
  position: relative;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition:
    background var(--transition),
    border-color var(--transition);
}

.process-step:hover {
  background: var(--accent-dim);
  border-left-color: rgba(212, 168, 59, 0.5);
}

.process-step::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--gradient-accent);
  transition: height var(--transition-slow);
}

.process-step:hover::before,
.process-step.visible::before {
  height: 100%;
}

.process-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  display: block;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== Tools ========== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 2rem;
}

.tool-category {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  min-width: 0;
  transition:
    border-color var(--transition),
    background var(--transition);
}

.tool-category:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.tool-category h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tool-category ul {
  list-style: none;
}

.tool-category li {
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.tool-category li:last-child {
  border-bottom: none;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tool-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.tool-logos {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tool-logos .tool-logo {
  width: 22px;
  height: 22px;
}

/* ========== Testimonials (Swiper carousel) ========== */
.testimonials {
  background: var(--bg-elevated);
}

.testimonials-swiper {
  overflow: hidden;
  padding-bottom: 3rem;
  margin-inline: -0.5rem;
  position: relative;
}

@media (min-width: 1025px) {
  .testimonials-swiper {
    padding-inline: 2.5rem;
  }
}

.testimonials-swiper .swiper-wrapper {
  align-items: stretch;
}

.testimonials-swiper .swiper-slide {
  height: auto;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  min-width: 0;
  height: 100%;
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(212, 168, 59, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.testimonial-card blockquote {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* Testimonials Swiper — pagination & nav (gold theme) */
.testimonials-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--border-strong);
  opacity: 1;
  transition:
    background var(--transition),
    transform var(--transition);
}

.testimonials-pagination .swiper-pagination-bullet-active {
  background: var(--accent);
  transform: scale(1.25);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Testimonials prev/next — clean UI/UX */
.testimonials-prev,
.testimonials-next {
  width: 40px;
  height: 40px;
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: auto;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    opacity var(--transition),
    box-shadow var(--transition);
}

.testimonials-next {
  left: auto;
  right: 0;
}

.testimonials-prev:after,
.testimonials-next:after {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.testimonials-prev:hover:not(.swiper-button-disabled),
.testimonials-next:hover:not(.swiper-button-disabled) {
  color: var(--accent);
  background: var(--bg-card);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.testimonials-prev:focus-visible,
.testimonials-next:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.testimonials-prev.swiper-button-disabled,
.testimonials-next.swiper-button-disabled {
  opacity: 0.25;
  cursor: not-allowed;
  box-shadow: none;
}

/* Hide prev/next on tablet and mobile — use swipe + pagination only */
@media (max-width: 1024px) {
  .testimonials-prev,
  .testimonials-next {
    display: none !important;
  }
}

/* ========== Contact ========== */
.contact .contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1000px;
  margin-inline: auto;
}

.contact-info .section-label {
  margin-bottom: 0.5rem;
}

.contact-info .section-title {
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  margin-bottom: 1rem;
}

.contact-detail-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-bottom: 0.25rem;
}

.contact-details a,
.contact-details span {
  color: var(--text);
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.15rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-subtle);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(212, 168, 59, 0.5);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Contact form success/error — centered overlay */
.feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.25s ease,
    opacity 0.25s ease;
}

.feedback-overlay[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.feedback-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.75);
  backdrop-filter: blur(6px);
}

.feedback-overlay__card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 2rem 2rem 2rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.feedback-overlay[aria-hidden="false"] .feedback-overlay__card {
  transform: scale(1);
}

.feedback-overlay__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background-size: 1.5rem;
  background-repeat: no-repeat;
  background-position: center;
}

.feedback-overlay__card--success .feedback-overlay__icon {
  background-color: rgba(34, 197, 94, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.feedback-overlay__card--error .feedback-overlay__icon {
  background-color: rgba(239, 68, 68, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M15 9l-6 6M9 9l6 6'/%3E%3C/svg%3E");
}

.feedback-overlay__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.feedback-overlay__message {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.feedback-overlay__close {
  min-width: 120px;
}

/* ========== Footer ========== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(
    to top,
    rgba(212, 168, 59, 0.03) 0%,
    transparent 30%
  );
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* ========== Animations (data-aos) ========== */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos="fade-up"].aos-done {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger fade-up for project cards */
.work-grid .work-card:nth-child(1) {
  transition-delay: 0s;
}
.work-grid .work-card:nth-child(2) {
  transition-delay: 0.06s;
}
.work-grid .work-card:nth-child(3) {
  transition-delay: 0.12s;
}
.work-grid .work-card:nth-child(4) {
  transition-delay: 0.18s;
}
.work-grid .work-card:nth-child(5) {
  transition-delay: 0.24s;
}
.work-grid .work-card:nth-child(6) {
  transition-delay: 0.3s;
}
.work-grid .work-card:nth-child(7) {
  transition-delay: 0.36s;
}

/* ========== Responsive — Tablet (iPad) & Mobile ========== */

/* Tablet: iPad landscape / small desktop */
@media (max-width: 1024px) {
  .container {
    padding-inline: 1.5rem;
  }

  .section {
    padding: clamp(3.5rem, 8vw, 5rem) 0;
  }

  .section.about {
    padding-top: 1.5rem;
  }

  /* About — normal font size on iPad & below */
  .about-content-card .about-lead,
  .about-content-wrap .about-lead {
    font-size: 1rem;
  }

  .about-content-card p,
  .about-content-wrap p {
    font-size: 1rem;
  }

  .section-head {
    margin-bottom: 2.25rem;
  }

  .section-title {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
  }

  .section-desc {
    font-size: 1rem;
  }

  .work-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.25rem;
  }

  .work-category {
    margin-bottom: 2.25rem;
  }

  .work-category-title {
    font-size: 0.9rem;
  }

  .work-category-desc {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .work-card-overlay {
    padding: 1.25rem;
  }

  .work-card-overlay h3 {
    font-size: 1.1rem;
  }

  .work-card-overlay p {
    font-size: 0.85rem;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 1.5rem;
  }

  .tool-category h4 {
    font-size: 0.88rem;
  }

  .tool-category li {
    font-size: 0.9rem;
  }

  .tool-logo {
    width: 22px;
    height: 22px;
  }

  .testimonial-card blockquote {
    font-size: 0.95rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Contact: centered layout + proper padding on iPad (same as mobile) */
  .contact .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-inline: 1.5rem;
  }

  .contact.section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .contact-info {
    text-align: center;
  }

  .contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-details li {
    text-align: center;
  }
}

/* Tablet portrait / large phone */
@media (max-width: 900px) {
  .nav,
  .nav-github {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-sidebar-inner {
    padding: 0.75rem 1.5rem 2rem;
    gap: 0.35rem;
  }

  .nav-sidebar-inner a:first-child {
    margin-top: 0.5rem;
  }

  .nav-sidebar a {
    padding: 0.55rem 0.9rem;
    font-size: 1rem;
  }

  /* Stronger active highlight on mobile (with left border) */
  .nav-sidebar a.active {
    color: var(--accent-light);
    font-weight: 600;
    background: rgba(212, 168, 59, 0.22);
    border-left: 3px solid var(--accent);
  }

  .nav-sidebar a.active:hover {
    background: rgba(212, 168, 59, 0.28);
    color: var(--accent-light);
  }

  .container {
    padding-inline: 1.25rem;
  }

  .section {
    padding: clamp(3rem, 6vw, 4rem) 0;
  }

  .section.about {
    padding-top: 1rem;
  }

  .section-head {
    margin-bottom: 2rem;
  }

  .section-label {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
  }

  .section-title {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }

  .section-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.75rem;
  }

  /* Content first (badge, title, role, desc, stats), then profile img + CTA below */
  .hero-content {
    order: 1;
    align-items: center;
  }

  .hero-profile {
    order: 2;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .hero-profile-hang {
    order: 2;
    margin-inline: auto;
  }

  .hero-profile-card {
    margin-inline: auto;
  }

  /* CTA above profile img on tablet/mobile */
  .hero-actions-mobile {
    order: -1;
  }

  .hero-badge {
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .hero-title::after {
    margin-inline: auto;
  }

  .hero-role {
    font-size: clamp(1rem, 3.5vw, 1.15rem);
  }

  .hero-desc {
    margin-inline: auto;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .hero-actions.hero-actions-desktop {
    display: none;
  }

  .hero-actions-mobile {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero-stats {
    justify-content: center;
    margin-inline: auto;
  }

  .hero-tools-track img {
    width: 34px;
    height: 34px;
  }

  .hero-tools-strip {
    margin-top: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .about-head {
    margin-bottom: 2rem;
  }

  .about-content-card {
    padding: 1.35rem;
  }

  .about-lead {
    font-size: 1rem;
  }

  .about-content-wrap p {
    font-size: 1rem;
  }

  .about-edu-title {
    font-size: 0.7rem;
  }

  .about-edu-list {
    grid-template-columns: 1fr;
  }

  .about-edu-item {
    font-size: 0.9rem;
    padding: 1rem;
  }

  .about-edu-year {
    font-size: 0.625rem;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card-tech {
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
  }

  .work-card-tech__icon,
  .work-card-tech__icon--svg svg {
    width: 16px;
    height: 16px;
  }

  .work-card-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .work-card-tech {
    flex-shrink: 0;
  }

  .cert-grid {
    gap: 1rem;
  }

  .cert-caption {
    font-size: 0.8rem;
  }

  .contact .contact-container {
    grid-template-columns: 1fr;
  }
}

/* Mobile: iPad portrait / phone */
@media (max-width: 768px) {
  .header {
    padding: 1.25rem 0;
  }

  .header-inner {
    padding-inline: 1rem;
  }

  .logo {
    gap: 0.5rem;
    font-size: 0.95rem;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .logo-img {
    height: 28px !important;
    max-width: 28px !important;
  }

  .menu-toggle {
    padding: 6px;
    gap: 5px;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .container {
    padding-inline: 1rem;
  }

  .section {
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  }

  .section-head {
    margin-bottom: 1.75rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .section-desc {
    font-size: 0.9rem;
  }

  .hero-container {
    padding-top: 1rem;
  }

  .hero-profile-card {
    width: min(100%, 260px);
  }

  .hero-stats {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.85rem;
    width: 100%;
  }

  .hero-stat {
    flex: 1;
    min-width: 0;
    text-align: center;
  }

  .hero-stat-num {
    font-size: 1.25rem;
  }

  .hero-stat-label {
    font-size: 0.65rem;
    line-height: 1.2;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-tools-track img {
    width: 30px;
    height: 30px;
  }

  .hero-tools-track {
    gap: 1.25rem;
  }

  .hero-tools-strip {
    margin-top: 2.25rem;
    margin-bottom: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-content-card {
    padding: 1.25rem;
  }

  .about-quote-block {
    padding: 0 1.5rem 0 2.25rem;
  }

  .about-quote-block::before,
  .about-quote-block::after {
    font-size: 2rem;
    opacity: 0.3;
  }

  .about-content-card .about-lead,
  .about-content-wrap .about-lead {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1rem;
  }

  .about-content-card p,
  .about-content-wrap p {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1rem;
  }

  .about-content-card p:last-child,
  .about-content-wrap p:last-child {
    margin-bottom: 0;
  }

  .about-edu {
    padding: 1.25rem;
  }

  .about-edu-list {
    grid-template-columns: 1fr;
  }

  .about-edu-item {
    padding: 1rem;
  }

  .about-edu-year {
    font-size: 0.5625rem;
  }

  .work-category {
    margin-bottom: 1.75rem;
  }

  .work-category-title {
    font-size: 0.85rem;
  }

  .work-category-desc {
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
  }

  .work-card-overlay {
    padding: 1rem;
  }

  .work-card-overlay h3 {
    font-size: 1rem;
  }

  .work-card-overlay p {
    font-size: 0.8rem;
  }

  .work-card-status {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }

  .work-card-tags span {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
    gap: 1.25rem;
  }

  .contact .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-inline: 1.5rem;
  }

  .contact.section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .contact-info {
    text-align: center;
  }

  .contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-details li {
    text-align: center;
  }

  .tool-category {
    padding: 1.25rem;
  }

  .tool-category h4 {
    font-size: 0.8rem;
  }

  .tool-category li {
    font-size: 0.85rem;
    padding: 0.35rem 0;
  }

  .tool-logo {
    width: 20px;
    height: 20px;
  }

  .tool-logos .tool-logo {
    width: 18px;
    height: 18px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card h3 {
    font-size: 1rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .process-step h3 {
    font-size: 0.95rem;
  }

  .process-step p {
    font-size: 0.88rem;
  }

  .testimonials-swiper {
    padding-bottom: 2.75rem;
  }

  .testimonial-card {
    padding: 1.25rem;
  }

  .testimonial-card blockquote {
    font-size: 0.9rem;
  }

  .testimonial-author strong {
    font-size: 0.9rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .footer-nav a {
    font-size: 0.85rem;
  }

  .footer-copy {
    font-size: 0.8rem;
  }

  .experience-card-inner h3 {
    font-size: 1rem;
  }

  .experience-card-inner p,
  .experience-duties li {
    font-size: 0.9rem;
  }

  .achievement-card h3 {
    font-size: 0.95rem;
  }

  .achievement-desc {
    font-size: 0.85rem;
  }
}

/* Small mobile */
@media (max-width: 600px) {
  .section {
    padding: 2.25rem 0;
  }

  .section-head {
    margin-bottom: 1.5rem;
  }

  .section-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-desc {
    font-size: 0.875rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-desc {
    font-size: 0.9rem;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .cert-trigger {
    aspect-ratio: 3 / 4;
  }

  .cert-caption {
    font-size: 0.75rem;
  }

  .cert-lightbox {
    padding: 1rem;
  }

  .cert-lightbox-close {
    width: 40px;
    height: 40px;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.5rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.65rem 1.1rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.9375rem;
  }

  .container {
    padding-inline: 0.875rem;
  }

  .section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .logo-text {
    display: none;
  }

  .hero-badge {
    font-size: 0.7rem;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .hero-role {
    font-size: 0.95rem;
  }

  .hero-actions-mobile {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions-mobile .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-actions-mobile .btn-primary svg {
    display: none;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .work-card-overlay h3 {
    font-size: 0.95rem;
  }

  .work-card-overlay p {
    font-size: 0.78rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .contact .contact-container {
    padding-inline: 1.25rem;
  }

  .contact.section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .contact-info h2 {
    font-size: 1.35rem;
  }

  .contact-info p {
    font-size: 0.9rem;
  }
}
