@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Qwigley&display=swap');

/* Selection color highlight */
::selection {
  background: #10b981 !important;
  color: #030305 !important;
}

::-moz-selection {
  background: #10b981 !important;
  color: #030305 !important;
}

/* ──────────────── CUSTOM CURSOR ──────────────── */
*,
html,
body {
  cursor: url("cursor-default.svg") 5 5, default !important;
}

a,
button,
input[type="submit"],
input[type="button"],
[role="button"],
[role="link"],
select,
.btn,
.tag,
.hamburger,
.back-top,
.cert-card-img,
.bottomnav-item,
.contact-card,
.desktop-nav-link,
.desktop-nav-btn {
  cursor: url("cursor-pointer.svg") 14 2, pointer !important;
}

/* Force custom pointer cursor on descendants of interactive elements to prevent cursor reset on nested text */
a *,
button *,
.btn *,
.contact-card *,
.cert-card-img *,
.bottomnav-item *,
.hamburger * {
  cursor: url("cursor-pointer.svg") 14 2, pointer !important;
}

input,
textarea {
  cursor: url("cursor-text.svg") 16 16, text !important;
}

/* Enforce custom text cursor on contact inputs during all interaction states */
input:focus,
input:active,
input:hover,
textarea:focus,
textarea:active,
textarea:hover,
.contact-form input,
.contact-form textarea,
.contact-form input:focus,
.contact-form input:active,
.contact-form textarea:focus,
.contact-form textarea:active {
  cursor: url("cursor-text.svg") 16 16, text !important;
  caret-color: var(--accent);
}

/* Disable cursor on loader overlay */
.loader-overlay,
.loader-overlay * {
  cursor: none !important;
}

.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #030303;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  will-change: transform;
}

.loader-overlay.fade-out {
  transform: translateY(100%);
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s 0.8s;
  /* Smooth slide down then hide completely */
}

.loader-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.loader-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(520px, 85vw);
  z-index: 2;
}

/* SVG calligraphy text */
.writing-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.welcome-drop {
  fill: #10b981;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.8));
  transform-origin: center;
}

.writing-text {
  font-family: 'Great Vibes', cursive;
  font-size: 100px;
  fill: none;
  stroke: #10b981;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.writing-text-fill {
  font-family: 'Great Vibes', cursive;
  font-size: 100px;
  fill: #10b981;
  stroke: none;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.3));
}

/* Removed stylus */
/* Loading bar */
.loader-bar {
  width: min(280px, 60vw);
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-bar-track {
  width: 100%;
  height: 1.5px;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 1px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: #10b981;
  border-radius: 1px;
  transition: width 0.5s cubic-bezier(.4, 0, .2, 1);
}

.loader-spark {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--accent), 0 0 15px var(--accent), 0 0 25px var(--accent);
  z-index: 10;
  opacity: 0;
  will-change: transform;
}

/* Hide portfolio while loading */
body.is-loading .layout {
  opacity: 0;
}

.layout {
  transition: opacity 0.6s ease 0.3s;
}


/* ──────────────── DESIGN TOKENS ──────────────── */
:root {
  --bg: #030305;
  --surface: rgba(22, 22, 26, 0.4);
  --surface-hover: rgba(39, 39, 45, 0.55);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.12);
  --accent: #10b981;
  --accent-rgb: 16, 185, 129;
  --text: #f4f4f5;
  --text2: #a1a1aa;
  --radius: 16px;
  --radius-sm: 12px;
  --pill: 999px;
  --sidebar-w: 320px;
  --transition: all 0.35s cubic-bezier(.25, .8, .25, 1);
  --glass-blur: blur(14px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Ambient Glassmorphism Background Blobs */
.ambient-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #060608 0%, #000000 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 1;
  will-change: transform;
  transform: translateZ(0);
  animation: float-blob 22s infinite alternate ease-in-out;
}

.blob-1 {
  width: min(600px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 30%, rgba(16, 185, 129, 0) 70%);
  top: -10%;
  left: 15%;
}

.blob-2 {
  width: min(700px, 95vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0.04) 30%, rgba(99, 102, 241, 0) 70%);
  bottom: 15%;
  right: 5%;
  animation-duration: 28s;
  animation-delay: -5s;
}

.blob-3 {
  width: min(500px, 80vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(192, 192, 192, 0.15) 0%, rgba(192, 192, 192, 0.05) 30%, rgba(192, 192, 192, 0) 70%);
  top: 40%;
  left: -5%;
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes float-blob {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(120px, -60px) scale(1.15);
  }

  100% {
    transform: translate(-60px, 80px) scale(0.9);
  }
}

/* Scrolling Marquee Background Text */
.scroll-marquee {
  position: absolute;
  left: -20px;
  right: -20px;
  width: calc(100% + 40px);
  overflow: hidden;
  user-select: none;
  pointer-events: none;
  z-index: 1;
  /* behind section content (which has relative positioning + higher z-index) but in section */
  opacity: 0.035;
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

.scroll-marquee-left {
  top: 5%;
}

.scroll-marquee-right {
  top: 15%;
}

.marquee-inner {
  display: inline-block;
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
  letter-spacing: 0.05em;
  will-change: transform;
}

/* Word reveal animations */
.word-wrapper {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.word {
  display: inline-block;
  will-change: transform, opacity, filter;
}

/* Unified Glassmorphism Style for Containers (Optimized to prevent scrolling lag) */
.hero-stat,
.exp-card,
.project-card,
.tool-card,
.contact-card,
.cert-card-img,
.contact-form input,
.contact-form textarea,
.phone-input-group select {
  background: rgba(15, 15, 20, 0.95) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--glass-shadow) !important;
}

/* Retain high-quality backdrop-filter only on fixed layout overlays (topbar, bottomnav, etc.) */
.mobile-topbar,
.mobile-bottomnav,
.sidebar,
.cert-lightbox-overlay {
  background: rgba(9, 9, 11, 0.88) !important;
  border: 1px solid var(--border) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  box-shadow: var(--glass-shadow) !important;
}

/* Glass hover states */
.hero-stat:hover,
.exp-card:hover,
.project-card:hover,
.tool-card:hover,
.contact-card:hover,
.cert-card-img:hover {
  background: rgba(28, 28, 35, 0.96) !important;
  border-color: var(--border-hover) !important;
}

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

/* html { scroll-behavior: smooth; } removed to prevent Lenis conflict */
body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: url("cursor-pointer.svg") 14 2, pointer;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* Fix AG-003: Global focus-visible indicators for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Remove default outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none;
}

/* Fix AG-009: Skip-to-content link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Custom Native Scrollbar */
/* Hide Scrollbar Globally */
::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html,
body {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}



/* Decorative Section Lines */
.section-title-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.45), transparent);
  margin-left: 20px;
  transform-origin: left;
  transform: scaleX(0);
}


/* ──────────────── DESKTOP HEADER ──────────────── */
.desktop-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: flex;
  z-index: 1000;
  pointer-events: none;
  transition: height 0.5s cubic-bezier(.25, .8, .25, 1), opacity 0.5s ease, background 0.4s ease;
}

/* Dissolved state — fully transparent at top */
.desktop-header.header-dissolved {
  opacity: 0;
  pointer-events: none;
}

/* Shrunk state — compact header when sidebar/profile is visible */
.desktop-header.header-shrunk {
  height: 52px;
}

.desktop-header-inner {
  width: 100%;
  height: 100%;
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  /* Fully rectangular */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  /* Alignment padding matching main content area */
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: padding 0.5s cubic-bezier(.25, .8, .25, 1), box-shadow 0.5s ease;
}

.desktop-header.header-shrunk .desktop-header-inner {
  padding: 0 36px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.desktop-header.header-shrunk .desktop-logo {
  font-size: 1.15rem;
  transition: font-size 0.5s cubic-bezier(.25, .8, .25, 1);
}

.desktop-header.header-shrunk .desktop-nav-link {
  font-size: 0.82rem;
  padding: 6px 12px;
}

.desktop-header.header-shrunk .desktop-nav-btn {
  font-size: 0.82rem;
  padding: 6px 16px;
}

/* Hide on mobile/tablet, show only on desktop */
@media (max-width: 1023px) {
  .desktop-header {
    display: none !important;
  }
}

.desktop-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.desktop-logo span {
  color: var(--accent);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.desktop-nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text2);
  padding: 8px 16px;
  border-radius: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.desktop-nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.desktop-nav-link.active {
  color: var(--accent);
  background: rgba(16, 185, 129, 0.08);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.15);
}

.desktop-nav-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #030303;
  background: var(--accent);
  padding: 8px 20px;
  border-radius: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  text-align: center;
}

.desktop-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
  background: #34d399;
}

/* ──────────────── LAYOUT & SIDEBAR ──────────────── */
.layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
  width: 100%;
}

/* ──────────────── SIDEBAR ──────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  z-index: 50;
  overflow-y: auto;
}

/* Profile image */
.sidebar-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.sidebar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.4s ease;
}

.sidebar-photo:hover img {
  filter: grayscale(0);
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text2);
  margin-bottom: 16px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.sidebar-name {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

/* Social links */
.sidebar-socials {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.sidebar-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  transition: color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.sidebar-socials a::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -150%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent,
      rgba(255, 255, 255, 0.25),
      transparent);
  transform: rotate(45deg);
  transition: left 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
}

.sidebar-socials a:hover {
  color: var(--text) !important;
  border-color: var(--accent) !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2), 0 8px 20px rgba(16, 185, 129, 0.25) !important;
  transform: translateY(-4px) scale(1.1) !important;
}

.sidebar-socials a:hover::before {
  left: 150%;
}

/* Sidebar CTAs */
.sidebar-ctas {
  width: 100%;
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.sidebar-ctas .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  transition: background 0.35s cubic-bezier(.25, .8, .25, 1), color 0.35s cubic-bezier(.25, .8, .25, 1), border-color 0.35s cubic-bezier(.25, .8, .25, 1), box-shadow 0.35s cubic-bezier(.25, .8, .25, 1), opacity 0.35s cubic-bezier(.25, .8, .25, 1);
  white-space: nowrap;
}

.sidebar-ctas .btn:hover {
  transform: translateY(-2px);
}

.sidebar-ctas .btn:active {
  transform: translateY(0);
}

.btn-cv {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border) !important;
}

.btn-cv:hover {
  background: var(--surface-hover);
}

.btn-contact {
  background: var(--accent);
  color: var(--bg);
}

.btn-contact:hover {
  opacity: 0.9;
}

/* ──────────────── MOBILE TOP BAR ──────────────── */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 14px 20px;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
}

.mobile-topbar .logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mobile-topbar .logo span {
  color: var(--accent);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: url("cursor-pointer.svg") 14 2, pointer;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile sidebar overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ──────────────── MAIN CONTENT ──────────────── */
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: calc(100% - var(--sidebar-w));
}

.main-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 48px;
  flex: 1;
}

/* ──────────────── SNAKY STRING + CARD STACKING ──────────────── */
.exp-card,
.project-card,
.tool-card,
.cert-card-img,
.cert-grid,
.contact-card,
.contact-form-wrap,
.contact-layout,
.about-content,
.hero-stats,
.hero-wave,
.interest-tags,
.footer-inner,
.skills-category-title,
.tools-grid {
  position: relative;
  z-index: 5;
}

.section-label,
.contact-heading,
.contact-subheading,
.mobile-profile,
.welcome-landing {
  position: relative;
  z-index: 4;
}


/* ──────────────── SECTION ──────────────── */
.section {
  margin-bottom: 96px;
  position: relative;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.section-label i {
  color: var(--text2);
  font-size: 1rem;
}

.section-label h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ──────────────── ABOUT ──────────────── */
.about-content {
  color: var(--text2);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 720px;
}

.about-content p {
  margin-bottom: 16px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-interests {
  margin-top: 32px;
}

.about-interests h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.interest-tags .tag {
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--pill);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.interest-tags .tag:hover {
  background: rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

/* ──────────────── HERO ──────────────── */
.hero {
  padding-top: 80px;
  margin-bottom: 96px;
  position: relative;
}

.hero-wave {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text2);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.hero-wave .wave-emoji {
  font-size: 1.25rem;
  display: inline-block;
  animation: wave-hand 2.5s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave-hand {

  0%,
  60%,
  100% {
    transform: rotate(0deg);
  }

  10%,
  30% {
    transform: rotate(14deg);
  }

  20% {
    transform: rotate(-8deg);
  }

  40% {
    transform: rotate(-4deg);
  }

  50% {
    transform: rotate(10deg);
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-subheadline {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text2);
  margin-top: -12px;
  margin-bottom: 24px;
}

.hero-desc {
  color: var(--text2);
  font-size: 1.1rem;
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 48px;
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hero-stat {
  text-align: center;
  padding: 24px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.hero-stat:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-3px);
}

.hero-stat-num {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ──────────────── EXPERIENCE (TIMELINE) ──────────────── */
.timeline-container {
  position: relative;
  padding-left: 50px;
  margin-bottom: 48px;
}

.timeline-line {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 15px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(16, 185, 129, 0.5) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #030303;
  border: 2px solid rgba(16, 185, 129, 0.4);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-dot.active-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.dot-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: pulse-dot 2s infinite ease-out;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.timeline-date {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.timeline-date.active-date {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(10px);
  will-change: transform, border-color, box-shadow;
}

.timeline-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.6;
}

.timeline-item:hover .timeline-dot {
  border-color: var(--accent);
  background: var(--accent);
  transform: scale(1.2);
}

.timeline-content:hover {
  transform: translateX(4px);
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.timeline-content.active-content {
  background: rgba(16, 185, 129, 0.03);
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: inset 0 0 15px rgba(16, 185, 129, 0.03);
}

/* ──────────────── SERVICES ──────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(10px);
  will-change: transform, border-color, box-shadow;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, transparent 50%, rgba(16, 185, 129, 0.02) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
  background: rgba(16, 185, 129, 0.03);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.08);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.6rem;
  margin-bottom: 24px;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: #030303;
  transform: scale(1.08) rotate(6deg);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ──────────────── PROJECTS ──────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.projects-grid>*:first-child {
  grid-column: span 2;
}

.projects-grid>*:first-child .project-img {
  aspect-ratio: 21 / 9;
}

.project-card {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: url("cursor-pointer.svg") 14 2, pointer;
  position: relative;
}

.project-card:hover {
  border-color: rgba(161, 161, 170, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.project-img {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 14px;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.06);
}

.project-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 8px 6px;
  flex: 1;
}

.project-bottom h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.project-bottom .project-meta {
  font-size: 0.8rem;
  color: var(--text2);
}

.project-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 0.85rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.project-card:hover .project-arrow {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ──────────────── SKILLS / TOOLS ──────────────── */
.skills-category-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.tools-grid>* {
  flex: 1 1 calc(50% - 7px);
  max-width: calc(50% - 7px);
  min-width: 200px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.tool-card:hover {
  border-color: rgba(161, 161, 170, 0.3);
  transform: translateX(4px);
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Fix AG-007: Removed 12 unused .tool-icon color classes (colors are now inline) */
.tool-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.tool-card .tool-type {
  font-size: 0.8rem;
  color: var(--text2);
}

/* ──────────────── CONTACT ──────────────── */
.contact-heading {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.contact-layout {
  display: flex;
  gap: 32px;
}

.contact-cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: rgba(161, 161, 170, 0.3);
}

.contact-card .c-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-card .c-label {
  font-size: 0.78rem;
  color: var(--text2);
}

.contact-card .c-value {
  font-weight: 500;
  font-size: 0.9rem;
}

.contact-form-wrap {
  flex: 1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background-color: var(--surface);
  background-image: linear-gradient(to right, var(--accent) 0%, var(--accent) 100%) !important;
  background-repeat: no-repeat !important;
  background-size: 0% 2px !important;
  background-position: bottom center !important;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 0.875rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.3s ease, background-size 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, text-shadow 0.3s ease !important;
  outline: none;
  resize: none;
  cursor: url("cursor-text.svg") 16 16, text !important;
  caret-color: var(--accent) !important;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text2);
  transition: color 0.3s ease, opacity 0.3s ease;
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
  color: rgba(16, 185, 129, 0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(16, 185, 129, 0.35) !important;
  background-size: 100% 2px !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08) !important;
  text-shadow: 0 0 1px rgba(16, 185, 129, 0.15) !important;
  cursor: url("cursor-text.svg") 16 16, text !important;
}

.phone-input-group {
  display: flex;
  gap: 14px;
}

.phone-input-group select {
  width: 110px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 12px;
  font-size: 0.875rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  cursor: url("cursor-pointer.svg") 14 2, pointer !important;
}

.phone-input-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.phone-input-group input {
  flex: 1;
}

.contact-form button {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 10px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-form button:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.contact-form button:active {
  transform: scale(0.98);
}

/* ──────────────── CERTIFICATIONS ──────────────── */

/* ──────────────── CERT IMAGE CARDS ──────────────── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.cert-card-img {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: url("cursor-pointer.svg") 14 2, pointer;
  transition: var(--transition);
}

.cert-card-img:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(16, 185, 129, 0.1);
}

.cert-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
}

.cert-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cert-card-img:hover .cert-img-wrap img {
  transform: scale(1.06);
}

.cert-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.cert-img-overlay i {
  font-size: 1.4rem;
}

.cert-card-img:hover .cert-img-overlay {
  opacity: 1;
}

.cert-img-info {
  padding: 16px 20px;
}

.cert-img-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cert-img-info .cert-issuer {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
}

/* ──────────────── CERT LIGHTBOX ──────────────── */
.cert-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.cert-lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Royal Animated Gold Window container */
.cert-lightbox-window {
  width: min(850px, 90vw);
  background: #09090b;
  border-radius: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
  overflow: hidden;
  /* clips the rotating conic-gradient */
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(179, 135, 40, 0.25);
  /* golden ambient glow */
  z-index: 1;
}

/* Rotating conic gradient border */
.cert-lightbox-window::before {
  content: '';
  position: absolute;
  inset: -6px;
  /* bleed outside the edges */
  background: conic-gradient(from 0deg,
      #bf953f 0%,
      #fcf6ba 25%,
      #b38728 50%,
      #fbf5b7 75%,
      #bf953f 100%);
  border-radius: 24px;
  z-index: -2;
  animation: rotate-gold-border 5s linear infinite;
}

/* Innermost masking mask to form a solid 3px border */
.cert-lightbox-window::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: #09090b;
  border-radius: 17px;
  z-index: -1;
}

@keyframes rotate-gold-border {
  100% {
    transform: rotate(360deg);
  }
}

/* Die-cut sticker style (keeps sticker styling overlay compatible) */
.cert-lightbox-window.sticker-style {
  overflow: visible;
  /* allows close button and shadows to overhang */
}

/* Overriding pseudo-elements if we have sticker mode */
.cert-lightbox-window.sticker-style::before {
  background: #ffffff !important;
  /* Solid thick white border for sticker */
  inset: -4px !important;
  animation: none !important;
  border-radius: 24px !important;
}

.cert-lightbox-window.sticker-style::after {
  background: #0f172a !important;
  inset: 2px !important;
  border-radius: 22px !important;
}

.cert-lightbox-window.sticker-style .cert-lightbox-body {
  padding: 20px;
  background: #0f172a !important;
}

.cert-lightbox-window.sticker-style .cert-lightbox-body img {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6) !important;
}

/* Royal Floating Gold Close button */
.cert-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #bf953f, #b38728);
  /* Gold gradient */
  border: 2px solid #fcf6ba;
  /* Light gold border */
  color: #ffffff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: url("cursor-pointer.svg") 14 2, pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 20;
}

.cert-lightbox-close:hover {
  background: linear-gradient(135deg, #e5c060, #d4af37);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(179, 135, 40, 0.5);
}

.cert-lightbox-body {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 75vh;
}

.cert-lightbox-body img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

/* Liquid glass card effect for certificates */
.cert-card-img {
  position: relative;
  overflow: hidden !important;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.cert-card-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.25),
      rgba(255, 255, 255, 0.05),
      transparent);
  transform: skewX(-25deg);
  transition: none;
  pointer-events: none;
  z-index: 2;
}

.cert-card-img:hover::after {
  left: 150%;
  transition: left 0.85s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cert-card-img:hover {
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
}

.cert-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: url("cursor-pointer.svg") 14 2, pointer;
  transition: var(--transition);
  z-index: 10;
}

.cert-lightbox-nav:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: var(--accent);
}

.cert-lightbox-prev {
  left: 20px;
}

.cert-lightbox-next {
  right: 20px;
}

.cert-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* ──────────────── MOBILE PROFILE HERO ──────────────── */
.mobile-profile {
  display: none;
  /* shown via media query on mobile */
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 16px;
  padding-bottom: 24px;
  margin-bottom: 0;
}

.mobile-profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
  margin-bottom: 20px;
  background: var(--surface);
}

.mobile-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s ease;
}

.mobile-profile-photo:hover img,
.mobile-profile-photo:active img {
  filter: grayscale(0);
}

.mobile-profile-name {
  font-size: clamp(2.2rem, 10vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--text);
}

.mobile-profile-role {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

.mobile-profile-bio {
  font-size: 0.92rem;
  color: var(--text2);
  max-width: 360px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.mobile-profile-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin-bottom: 20px;
}

.mobile-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.mobile-btn:active {
  transform: scale(0.96);
}

.mobile-btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.mobile-btn-primary:hover {
  opacity: 0.9;
}

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

.mobile-btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-profile-socials {
  display: flex;
  gap: 14px;
}

.mobile-profile-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 1rem;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.mobile-profile-socials a::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -150%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent,
      rgba(255, 255, 255, 0.25),
      transparent);
  transform: rotate(45deg);
  transition: left 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
}

.mobile-profile-socials a:hover {
  color: var(--text) !important;
  border-color: var(--accent) !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2), 0 8px 20px rgba(16, 185, 129, 0.25) !important;
  transform: translateY(-4px) scale(1.1) !important;
}

.mobile-profile-socials a:hover::before {
  left: 150%;
}

/* ──────────────── MOBILE BOTTOM NAV ──────────────── */
.mobile-bottomnav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 6px 0;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
}

.bottomnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 0;
  color: var(--text2);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
  flex: 1;
}

.bottomnav-item i {
  font-size: 1.15rem;
  margin-bottom: 1px;
}

.bottomnav-item.active {
  color: var(--accent);
  opacity: 1;
}

.bottomnav-item:active {
  transform: scale(0.9);
}

/* ──────────────── FOOTER ──────────────── */
.footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  background: rgba(24, 24, 27, 0.5);
  padding: 20px 48px;
  position: relative;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text2);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.footer-logo .fname {
  font-family: 'Qwigley', cursive;
  font-size: 2rem;
  color: var(--text);
  font-weight: 400;
  line-height: 1;
}

.footer a {
  color: var(--accent);
  transition: var(--transition);
}

.footer a:hover {
  opacity: 0.8;
}

.footer .highlight {
  color: var(--text);
  font-weight: 600;
}

/* ──────────────── BACK TO TOP ──────────────── */
.back-top {
  position: absolute;
  right: 48px;
  top: -60px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 90;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
  cursor: url("cursor-pointer.svg") 14 2, pointer;
}

.back-top:hover {
  transform: translateY(-4px);
}

/* ──────────────── REDUCED MOTION ──────────────── */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ──────────────── RESPONSIVE ──────────────── */

/* ── Large Tablet / Small Desktop ── */
@media (max-width: 1199px) {
  :root {
    --sidebar-w: 280px;
  }

  .main-inner {
    padding: 0 32px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid>*:first-child {
    grid-column: auto;
  }

  .projects-grid>*:first-child .project-img {
    aspect-ratio: 16 / 9;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Tablet / Mobile — full restructure ── */
@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
    width: min(300px, 85vw);
    z-index: 150;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-topbar {
    display: flex;
    padding: 14px 20px;
    padding-top: max(14px, env(safe-area-inset-top, 14px));
  }

  .main {
    margin-left: 0;
    padding-top: 60px;
    padding-bottom: 80px;
    width: 100%;
  }

  .main-inner {
    padding: 0 20px;
    max-width: 100%;
  }

  .mobile-bottomnav {
    display: flex;
  }

  .mobile-profile {
    display: flex;
  }

  /* Hero: centered, compact, like reference UI */
  .hero {
    padding-top: 32px;
    margin-bottom: 56px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    text-align: center;
  }

  .hero-wave {
    justify-content: center;
  }

  .hero-desc {
    text-align: center;
    max-width: 100%;
  }

  .hero-subheadline {
    text-align: center;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
  }

  .hero-stat {
    padding: 18px 10px;
  }

  .hero-stat-num {
    font-size: 1.75rem;
  }

  /* About: full-width */
  .about-content {
    max-width: 100%;
  }

  /* Experience: timeline-style with left border + dot nodes */
  .experience-list {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid var(--border);
    gap: 0;
  }

  .exp-card {
    position: relative;
    border: none;
    background: transparent;
    padding: 0 0 32px 0;
    border-radius: 0;
  }

  .exp-card:hover {
    border-color: transparent;
    transform: none;
    box-shadow: none;
  }

  .exp-card::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  }

  .exp-card:not(:first-child)::before {
    background: var(--surface-hover);
    border: 2px solid var(--border);
    box-shadow: none;
  }

  .exp-icon {
    display: none;
  }

  .exp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 10px;
  }

  .exp-header-left {
    gap: 0;
  }

  .exp-title {
    font-size: 1.1rem;
    font-weight: 700;
  }

  .exp-company {
    font-size: 0.85rem;
    color: var(--accent);
  }

  .exp-date {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    color: var(--text2);
  }

  .exp-desc {
    font-size: 0.92rem;
  }

  .exp-desc li {
    padding: 2px 0 2px 16px;
  }

  /* Projects: stacked full-width cards */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .projects-grid>*:first-child {
    grid-column: auto;
  }

  .projects-grid>*:first-child .project-img {
    aspect-ratio: 16 / 9;
  }

  .project-card {
    border-radius: var(--radius);
    overflow: hidden;
  }

  /* Skills: single column */
  .tools-grid>* {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* Cert grid: single column on small */
  .cert-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-layout {
    flex-direction: column;
  }

  /* Section spacing */
  .section {
    margin-bottom: 56px;
  }

  .section-label h2 {
    font-size: 1.35rem;
  }

  /* Footer */
  .footer {
    padding: 16px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Back-to-top: center it */
  .back-top {
    right: 50%;
    transform: translateX(50%);
  }

  .back-top:hover {
    transform: translateX(50%) translateY(-4px);
  }

  /* Lightbox: smaller nav buttons */
  .cert-lightbox-prev {
    left: 10px;
  }

  .cert-lightbox-next {
    right: 10px;
  }

  .cert-lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .cert-lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
}

/* ── Small Tablet / Large Phone ── */
@media (max-width: 768px) {
  .hero h1 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .hero-subheadline {
    font-size: 1rem;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  .section-label h2 {
    font-size: 1.25rem;
  }

  .section {
    margin-bottom: 48px;
  }

  .contact-heading {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }

  .project-card {
    padding: 12px;
  }

  .project-bottom h3 {
    font-size: 1.05rem;
  }

  .tool-card {
    padding: 14px;
    gap: 14px;
  }

  .tool-icon {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }

  .contact-card {
    padding: 14px;
    gap: 14px;
  }

  .contact-card .c-icon {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }

  /* Sidebar sizes */
  .sidebar {
    padding: 24px 20px;
  }

  .sidebar-photo {
    margin-bottom: 16px;
  }

  .sidebar-name {
    font-size: 1.35rem;
    margin-bottom: 20px;
  }

  .sidebar-socials {
    margin-bottom: 24px;
  }

  .sidebar-ctas {
    padding-top: 20px;
  }

  .sidebar-ctas .btn {
    padding: 12px 10px;
    font-size: 0.78rem;
  }

  /* Footer logo scales */
  .footer-logo .fname {
    font-size: 1.6rem !important;
  }
}

/* ── Phone ── */
@media (max-width: 600px) {
  .main-inner {
    padding: 0 18px;
  }

  .hero {
    padding-top: 28px;
    margin-bottom: 48px;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 7vw, 2rem);
    margin-bottom: 18px;
  }

  .hero-wave {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .hero-subheadline {
    font-size: 0.92rem;
    margin-bottom: 18px;
  }

  .hero-desc {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 28px;
  }

  .hero-stats {
    gap: 10px;
  }

  .hero-stat {
    padding: 16px 8px;
    border-radius: var(--radius-sm);
  }

  .hero-stat-num {
    font-size: 1.5rem;
  }

  .hero-stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .section {
    margin-bottom: 52px;
  }

  .section-label {
    margin-bottom: 24px;
  }

  .section-label h2 {
    font-size: 1.2rem;
  }

  .about-content {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  /* Projects: full width single column */
  .projects-grid>* {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }

  .project-bottom {
    padding: 0 4px 4px;
  }

  .tools-grid {
    gap: 10px;
  }

  .tool-card h4 {
    font-size: 0.9rem;
  }

  .skills-category-title {
    font-size: 1.1rem;
  }

  .contact-heading {
    font-size: 1.35rem;
    margin-bottom: 20px;
  }

  .contact-subheading {
    font-size: 0.95rem !important;
    margin-bottom: 24px !important;
  }

  .phone-input-group {
    flex-direction: column;
    gap: 10px;
  }

  .phone-input-group select {
    width: 100%;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  .contact-form button {
    padding: 13px;
    font-size: 0.85rem;
  }

  .footer {
    padding: 14px 18px;
    margin-top: 36px;
  }

  .footer-inner {
    font-size: 0.78rem;
    gap: 10px;
  }

  .footer-logo img {
    width: 22px;
    height: 22px;
  }

  .footer-logo .fname {
    font-size: 1.4rem !important;
  }

  .back-top {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    top: -52px;
  }

  /* Interest tags wrap better */
  .interest-tags {
    gap: 8px;
  }

  .interest-tags .tag {
    padding: 5px 12px;
    font-size: 0.8rem;
  }
}

/* ── Very Small Phone (≤380px) ── */
@media (max-width: 380px) {
  .main-inner {
    padding: 0 14px;
  }

  .hero h1 {
    font-size: 1.45rem;
  }

  .hero-subheadline {
    font-size: 0.85rem;
  }

  .hero-desc {
    font-size: 0.87rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .hero-stat {
    padding: 14px 6px;
  }

  .hero-stat-num {
    font-size: 1.3rem;
  }

  .hero-stat-label {
    font-size: 0.68rem;
  }

  .section-label h2 {
    font-size: 1.1rem;
  }

  .project-card {
    padding: 10px;
  }

  .project-bottom h3 {
    font-size: 0.95rem;
  }

  .project-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .tool-card {
    padding: 12px;
    gap: 12px;
  }

  .tool-icon {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
    border-radius: 8px;
  }

  .tool-card h4 {
    font-size: 0.85rem;
  }

  .contact-heading {
    font-size: 1.2rem;
  }

  .contact-card {
    padding: 12px;
    gap: 12px;
  }

  .contact-card .c-icon {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .contact-card .c-value {
    font-size: 0.82rem;
  }

  .contact-card .c-label {
    font-size: 0.72rem;
  }

  .sidebar {
    width: min(280px, 90vw);
    padding: 20px 16px;
  }

  .sidebar-photo {
    aspect-ratio: 1 / 1;
  }

  .sidebar-name {
    font-size: 1.2rem;
  }

  .sidebar-ctas {
    flex-direction: column;
    gap: 8px;
  }

  .sidebar-ctas .btn {
    padding: 12px;
    font-size: 0.8rem;
  }

  .footer-logo .fname {
    font-size: 1.2rem !important;
  }

  .footer-inner {
    font-size: 0.74rem;
  }
}

/* ── Landscape phones — keep hero stats in 4 cols ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding-top: 20px;
    margin-bottom: 40px;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .hero-stat {
    padding: 14px 8px;
  }

  .hero-stat-num {
    font-size: 1.4rem;
  }

  .main {
    padding-top: 50px;
  }

  .mobile-topbar {
    padding: 10px 20px;
  }

  .section {
    margin-bottom: 48px;
  }
}

/* ── Safe area insets for notched phones ── */
@supports (padding: env(safe-area-inset-top)) {
  .mobile-topbar {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .footer {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  @media (max-width: 1023px) {
    .main-inner {
      padding-left: max(24px, env(safe-area-inset-left));
      padding-right: max(24px, env(safe-area-inset-right));
    }
  }

  @media (max-width: 600px) {
    .main-inner {
      padding-left: max(18px, env(safe-area-inset-left));
      padding-right: max(18px, env(safe-area-inset-right));
    }
  }
}

/* ── Touch-friendly targets for mobile ── */
@media (hover: none) and (pointer: coarse) {
  .sidebar-socials a {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .project-arrow {
    width: 44px;
    height: 44px;
  }

  .back-top {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .hamburger {
    padding: 10px;
  }

  .hamburger span {
    width: 24px;
    height: 2.5px;
  }

  .interest-tags .tag {
    padding: 8px 16px;
    font-size: 0.88rem;
  }
}

/* ──────────────── FLOATING MUTE BUTTON ──────────────── */
.mute-btn {
  position: fixed;
  bottom: 24px;
  left: calc(var(--sidebar-w) + 24px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  box-shadow: var(--glass-shadow) !important;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 9999;
  transition: var(--transition);
  cursor: url("cursor-pointer.svg") 14 2, pointer;
}

.mute-btn:hover {
  background: var(--surface-hover) !important;
  border-color: var(--accent) !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4) !important;
}

.mute-btn:active {
  transform: translateY(0) scale(0.95);
}

.mute-btn.muted {
  color: var(--text2);
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.mute-btn.muted:hover {
  border-color: var(--text2) !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1) !important;
}

/* Responsive styles for mute-btn */
@media (max-width: 1023px) {
  .mute-btn {
    left: 20px;
    bottom: 80px;
    /* clear the mobile bottom nav bar */
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .mute-btn {
    bottom: 16px;
    left: 16px;
  }
}

@supports (padding: env(safe-area-inset-left)) {
  @media (max-width: 1023px) {
    .mute-btn {
      left: max(20px, env(safe-area-inset-left));
      bottom: calc(80px + env(safe-area-inset-bottom));
    }
  }
}

/* ──────────────── LOADER SOUND HINT ──────────────── */
.loader-sound-hint {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  color: var(--text2);
  margin-top: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: pulse-hint 2s infinite alternate ease-in-out;
  cursor: url("cursor-pointer.svg") 14 2, pointer;
  pointer-events: auto;
}

@keyframes pulse-hint {
  0% {
    opacity: 0.35;
    transform: scale(0.98);
  }

  100% {
    opacity: 0.75;
    transform: scale(1);
  }
}

/* ──────────────── WELCOME LANDING PAGE ──────────────── */
.welcome-landing {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background-color: #030303;
  /* Matte black */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: auto;
}

.welcome-landing .parallax-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.welcome-landing .fluid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.loader-overlay .loader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.welcome-landing .hero-text-wrap {
  z-index: 3;
  text-align: center;
  pointer-events: auto;
}

.landing-greeting {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.85;
}

.landing-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3.2rem, 9vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 16px;
  -webkit-text-stroke: 1.5px #10b981;
  text-shadow: 0 0 25px rgba(16, 185, 129, 0.4), 0 0 10px rgba(16, 185, 129, 0.2);
}
.landing-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.95rem, 2.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.welcome-landing .scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 4;
  color: var(--text2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

.mouse-icon {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text2);
  border-radius: 12px;
  position: relative;
}

.mouse-icon .wheel {
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.6s infinite ease-in-out;
}

@keyframes scroll-wheel {
  0% {
    top: 6px;
    opacity: 1;
  }

  50% {
    top: 16px;
    opacity: 0.3;
  }

  100% {
    top: 6px;
    opacity: 1;
  }
}

/* ──────────────── LIQUID INTERACTIVE BLOB ──────────────── */
.liquid-blob {
  position: fixed;
  z-index: -2;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform, opacity;
  transition: opacity 0.6s ease;
}

/* ──────────────── 3D TIMELINE ──────────────── */
.timeline-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 20;
}

.timeline-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3px;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
}

.timeline-path-alt {
  stroke-width: 1.5px;
  opacity: 0.5;
  filter: blur(1px);
}

.timeline-path-alt2 {
  stroke-width: 1px;
  opacity: 0.3;
  filter: blur(2px);
}

.timeline-spark {
  fill: #fff;
  filter: drop-shadow(0 0 12px var(--accent)) drop-shadow(0 0 20px var(--accent));
}

/* Eliminate iOS/Android tap highlight grey boxes on mobile click */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Note: content-visibility removed to fix ScrollTrigger and Lenis layout thrashing at bottom of page */

/* Hide scrollbar class for cinematic landing page */
html.hide-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
}

html.hide-scrollbar {
  scrollbar-width: none !important;
}

/* Interactive Landing Text Spans */
.landing-title span {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), text-shadow 0.25s ease, filter 0.25s ease;
  pointer-events: auto;
}
.landing-title span:hover {
  transform: scale(1.22) translateY(-8px);
  text-shadow: 0 0 30px rgba(52, 211, 153, 0.85), 0 0 10px rgba(255, 255, 255, 0.4);
  filter: brightness(1.25);
}
.landing-subtitle span {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), text-shadow 0.25s ease, filter 0.25s ease;
  pointer-events: auto;
}
.landing-subtitle span:hover {
  transform: scale(1.15) translateY(-4px);
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.6);
  filter: brightness(1.2);
}
