/* ==================== GOOGLE FONTS ==================== */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

/* ==================== CSS VARIABLES ==================== */
:root {
  /* Colors — Dark (default) */
  --bg: #070b14;
  --bg-alt: #0c1120;
  --surface: #111827;
  --surface-2: #1a2235;
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(0, 198, 255, 0.3);

  --accent: #00c6ff;
  --accent-2: #915eff;
  --accent-glow: rgba(0, 198, 255, 0.15);
  --accent-2-glow: rgba(145, 94, 255, 0.15);

  --text: #e2e8f0;
  --text-muted: #8892b0;
  --text-dim: #4a5568;
  --title: #ccd6f6;

  --success: #64ffda;
  --warning: #ffd166;
  --danger: #ff6b6b;

  /* Typography */
  --font-body: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  --fs-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 0 20px rgba(0, 198, 255, 0.25);
  --shadow-glow: 0 0 40px rgba(0, 198, 255, 0.15);

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-fixed: 200;
  --z-modal: 1000;

  /* Header */
  --header-h: 4rem;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme overrides */
body.light-theme {
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #e8eef4;
  --border: rgba(15, 23, 42, 0.1);
  --border-accent: rgba(2, 132, 199, 0.35);

  --accent: #0284c7;
  --accent-2: #7c3aed;
  --accent-glow: rgba(2, 132, 199, 0.1);
  --accent-2-glow: rgba(124, 58, 237, 0.1);

  --text: #1e293b;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --title: #0f172a;

  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 0 20px rgba(2, 132, 199, 0.18);
  --shadow-glow: 0 0 40px rgba(2, 132, 199, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--title);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.2;
}

ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 6px;
  background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ==================== REUSABLES ==================== */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-20);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  margin-bottom: var(--space-4);
}

.section__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.section__title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--title);
  margin-bottom: var(--space-3);
}

.section__subtitle {
  font-size: var(--fs-base);
  color: var(--text-muted);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  font-family: var(--font-body);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 32px var(--accent-glow),
    0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn--outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn--outline:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ==================== HEADER / NAV ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(7, 11, 20, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow:
    0 1px 0 var(--border),
    0 4px 20px rgba(0, 0, 0, 0.35);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

body.light-theme .header {
  background: rgba(248, 250, 252, 0.97);
  box-shadow:
    0 1px 0 var(--border),
    0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav {
  display: flex;
  align-items: stretch;
  height: var(--header-h);
}

/* Equal-width sides force the menu to true center */
.nav__logo {
  flex: 1;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--title);
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: color var(--transition-fast);
}
.nav__logo:hover {
  color: var(--accent);
}

.nav__logo-dot {
  color: var(--accent);
}

.nav__list {
  display: flex;
  align-items: center; /* vertically center the links */
  gap: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease;
  border-radius: var(--radius-sm);
}

/* Underline indicator via pseudo-element (works with align-items:center) */
.nav__link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: var(--space-3);
  right: var(--space-3);
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: center;
}

.nav__link i {
  font-size: 1rem;
  opacity: 0.75;
}

.nav__link:hover {
  color: var(--title);
}

.nav__link.active-link {
  color: var(--accent);
  font-weight: 600;
}

.nav__link.active-link::after {
  transform: scaleX(1);
}

.nav__actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
}

.change-theme {
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: var(--space-2);
  border-radius: var(--radius-md);
}
.change-theme:hover {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}
.nav__toggle:hover {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav__close {
  display: none;
}

/* ==================== MOBILE MENU ==================== */
@media screen and (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) var(--space-6) var(--space-6);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.25s ease,
      visibility 0.35s ease;
    z-index: calc(var(--z-fixed) - 1);
    box-shadow: var(--shadow-md);
  }

  .nav__menu.show-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
    margin-bottom: var(--space-4);
  }

  .nav__link {
    padding: var(--space-3) var(--space-4);
    height: auto;
    border-bottom: none;
    margin-bottom: 0;
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    border-left: 2px solid transparent;
  }

  .nav__link:hover {
    background: var(--bg-alt);
    color: var(--title);
  }

  .nav__link.active-link {
    background: var(--accent-glow);
    border-left-color: var(--accent);
    border-bottom: none;
    border-radius: var(--radius-md);
  }

  .nav__close {
    display: flex;
    justify-content: flex-end;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: var(--space-3);
    padding: var(--space-1);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
  }
  .nav__close:hover {
    color: var(--accent);
  }

  .nav__toggle {
    display: flex;
  }

  .nav__logo {
    flex: 0 0 auto; /* natural width on mobile, no stretching */
  }

  .nav__actions {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: var(--space-2);
  }
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + var(--space-16));
  padding-bottom: var(--space-20);
}

/* Dot-grid background */
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--accent-glow) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
}

/* Glow blobs */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

body.light-theme .hero__glow {
  opacity: 0.15;
}
.hero__glow--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -200px;
  left: -200px;
}
.hero__glow--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  bottom: -100px;
  right: -100px;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  position: relative;
  z-index: 1;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  margin-bottom: var(--space-6);
  width: fit-content;
}

/* Centered availability badge inside contact section header */
.contact__availability {
  margin-inline: auto;
  margin-bottom: 0;
  margin-top: var(--space-5);
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.hero__title {
  font-size: var(--fs-4xl);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.hero__name {
  font-weight: 700;
  font-size: var(--fs-5xl);
  background: linear-gradient(135deg, var(--title) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero__role {
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  min-height: 4.5rem; /* reserves 2 lines — prevents layout shift on long roles */
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.25em;
}

.hero__role-bracket {
  color: var(--accent-2);
}

#typewriter-text {
  color: var(--accent);
}

#typewriter-text::after {
  content: "|";
  color: var(--accent);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero__tagline {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero__social {
  display: flex;
  gap: var(--space-4);
}

.hero__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.hero__social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-3px);
}

/* Hero visual */
.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

.hero__photo-wrap {
  position: relative;
  width: 260px;
  height: 260px;
}

.hero__photo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: spin 12s linear infinite;
}

.hero__photo-ring--outer {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(135deg, var(--accent), transparent, var(--accent-2))
      border-box;
}

.hero__photo-ring--inner {
  inset: 12px;
  border: 1px solid var(--border-accent);
  animation-direction: reverse;
  animation-duration: 8s;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero__photo {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--border);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero__stats {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-5) var(--space-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
}

.hero__stat {
  text-align: center;
}

.hero__stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.hero__stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==================== ABOUT ==================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

.about__photo-frame {
  position: relative;
  width: fit-content;
  margin-inline: auto;
}

.about__img {
  width: 300px;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: grayscale(20%);
  transition: var(--transition);
}
.about__img:hover {
  filter: grayscale(0%);
}

.about__photo-corner {
  position: absolute;
  width: 24px;
  height: 24px;
}
.about__photo-corner--tl {
  top: -8px;
  left: -8px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.about__photo-corner--br {
  bottom: -8px;
  right: -8px;
  border-bottom: 2px solid var(--accent-2);
  border-right: 2px solid var(--accent-2);
}

.about__quote {
  position: relative;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: var(--space-4);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.about__quote-icon {
  font-size: var(--fs-2xl);
  opacity: 0.3;
  display: block;
  margin-bottom: var(--space-2);
}

.about__bio {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: var(--space-8);
}

.about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ==================== SKILLS ==================== */
.skills__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-10);
  background: var(--surface);
  padding: var(--space-2);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

.skills__tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}

.skills__tab:hover {
  color: var(--text);
}

.skills__tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
}

.skills__panel {
  display: none;
}
.skills__panel.active {
  display: block;
}

.skills__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

/* Individual skill item */
.skill__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
}

.skill__item:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
}
.skill__item:hover::before {
  opacity: 1;
}

.skill__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.skill__name {
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--title);
}

.skill__badge {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.skill__badge--expert {
  background: rgba(100, 255, 218, 0.15);
  color: var(--success);
  border: 1px solid rgba(100, 255, 218, 0.3);
}

.skill__badge--master {
  background: rgba(80, 240, 180, 0.15);
  color: #50f0b4;
  border: 1px solid rgba(80, 240, 180, 0.3);
}

.skill__badge--advanced {
  background: rgba(0, 198, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 198, 255, 0.3);
}

.skill__badge--proficient {
  background: rgba(100, 200, 255, 0.12);
  color: #64c8ff;
  border: 1px solid rgba(100, 200, 255, 0.3);
}

.skill__badge--strong {
  background: rgba(120, 200, 255, 0.12);
  color: #78c8ff;
  border: 1px solid rgba(120, 200, 255, 0.3);
}

.skill__badge--competent {
  background: rgba(145, 94, 255, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(145, 94, 255, 0.3);
}

.skill__badge--capable {
  background: rgba(255, 200, 60, 0.12);
  color: #ffc83c;
  border: 1px solid rgba(255, 200, 60, 0.3);
}

.skill__badge--intermediate {
  background: rgba(255, 150, 60, 0.12);
  color: #ff963c;
  border: 1px solid rgba(255, 150, 60, 0.3);
}

.skill__badge--developing {
  background: rgba(255, 120, 80, 0.12);
  color: #ff7850;
  border: 1px solid rgba(255, 120, 80, 0.3);
}

.skill__badge--beginner {
  background: rgba(255, 107, 107, 0.1);
  color: var(--danger);
  border: 1px solid rgba(255, 107, 107, 0.25);
}

.skill__badge--top {
  background: rgba(255, 200, 60, 0.15);
  color: #ffc83c;
  border: 1px solid rgba(255, 200, 60, 0.35);
  font-weight: 600;
}

/* Skill bar track */
.skill__track {
  height: 6px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  overflow: visible;
  margin-bottom: var(--space-3);
  position: relative;
}

.skill__fill {
  height: 100%;
  width: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow:
    0 0 10px var(--accent-glow),
    0 0 20px var(--accent-2-glow);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill__fill::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow:
    0 0 8px var(--accent),
    0 0 16px var(--accent-glow);
  border: 2px solid var(--bg);
}

.skill__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill__years {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.skill__pct {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  font-weight: 600;
}

/* ==================== QUALIFICATION / TIMELINE ==================== */
.qual__tabs {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
  background: var(--surface);
  padding: var(--space-2);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  width: fit-content;
  margin-inline: auto;
}

.qual__tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.qual__tab:hover {
  color: var(--text);
}

.qual__tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
}

.qual__panel {
  display: none;
}
.qual__panel.active {
  display: block;
}

/* Timeline layout */
.timeline {
  position: relative;
  padding-left: var(--space-8);
  max-width: 720px;
  margin-inline: auto;
}

/* Vertical glowing line */
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent),
    var(--accent-2) 60%,
    transparent
  );
  border-radius: var(--radius-full);
}

.timeline__item {
  position: relative;
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.5s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline__node {
  position: absolute;
  left: calc(-1 * var(--space-8) + 1px);
  top: 18px;
  z-index: 2;
}

.timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--accent);
  transition: var(--transition);
}

.timeline__dot--current {
  background: var(--accent);
  box-shadow:
    0 0 12px var(--accent),
    0 0 24px var(--accent-glow);
  animation: dotPulse 2s ease-in-out infinite;
}

.timeline__dot--last {
  border-color: var(--accent-2);
}

@keyframes dotPulse {
  0%,
  100% {
    box-shadow:
      0 0 8px var(--accent),
      0 0 16px var(--accent-glow);
  }
  50% {
    box-shadow:
      0 0 16px var(--accent),
      0 0 32px var(--accent-glow);
  }
}

.timeline__item:hover .timeline__dot {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline__card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.timeline__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius-full) 0 0 var(--radius-full);
}

.timeline__item:hover .timeline__card {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
  transform: translateX(4px);
}
.timeline__item:hover .timeline__card::before {
  opacity: 1;
}

.timeline__card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.timeline__badge {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.timeline__badge--current {
  background: rgba(100, 255, 218, 0.12);
  color: var(--success);
  border: 1px solid rgba(100, 255, 218, 0.3);
}
.timeline__badge--progress {
  background: rgba(122, 201, 182, 0.12);
  color: var(--success);
  border: 1px solid rgba(122, 201, 182, 0.3);
}

.timeline__date {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}

.timeline__role {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--title);
  margin-bottom: var(--space-2);
}

.timeline__company {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ==================== SERVICES ==================== */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.service__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service__card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.service__card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-4px);
}
.service__card:hover::after {
  transform: scaleX(1);
}

.service__icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: var(--space-5);
  transition: var(--transition);
}
.service__card:hover .service__icon-wrap {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
  transform: rotate(5deg) scale(1.05);
}

.service__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--title);
  margin-bottom: var(--space-4);
}

.service__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service__list li {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  padding-left: var(--space-4);
  position: relative;
}

.service__list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ==================== PROJECTS ==================== */
.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.project__card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px solid var(--border);
}

.project__card--featured {
  grid-column: 1 / -1;
  aspect-ratio: 16/7;
}

.project__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.7);
}

.project__card:hover .project__img {
  transform: scale(1.06);
  filter: brightness(0.4);
}

.project__overlay {
  position: absolute;
  inset: 0;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: linear-gradient(
    to top,
    rgba(7, 11, 20, 0.95) 0%,
    rgba(7, 11, 20, 0.5) 50%,
    transparent 100%
  );
  transition: var(--transition);
}

/* Top zone — always pinned to top of card */
.project__top {
  display: flex;
  align-items: flex-start;
}

/* Bottom zone — always pinned to bottom of card */
.project__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  min-height: 0;
}

.project__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  padding: 3px 12px;
  width: fit-content;
}

.project__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
}

.project__desc {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-4);
  line-height: 1.6;
  display: none;
  max-height: 72px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  padding-right: 4px;
}

.project__desc::-webkit-scrollbar {
  width: 3px;
}

.project__desc::-webkit-scrollbar-track {
  background: transparent;
}

.project__desc::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 99px;
}

.project__card:hover .project__desc {
  display: block;
}

.project__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  width: fit-content;
  transition: var(--transition-fast);
  opacity: 0;
  transform: translateY(8px);
}

.project__card:hover .project__link {
  opacity: 1;
  transform: translateY(0);
}

.project__link:hover {
  background: var(--accent);
  color: #000;
}

.project__link--locked {
  color: var(--text-dim);
  background: transparent;
  border-color: var(--border);
  cursor: default;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.testimonial__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.testimonial__card::before {
  content: "\275D";
  position: absolute;
  top: -12px;
  right: var(--space-6);
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
  font-style: normal;
}

.testimonial__card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-4px);
}

.testimonial__stars {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  font-size: 0.9rem;
  color: var(--warning);
}

.testimonial__quote {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial__author {
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}

.testimonial__name {
  display: block;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--title);
  margin-bottom: var(--space-1);
}

.testimonial__role {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
}

/* ==================== CONTACT ==================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

.contact__info-title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--title);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.contact__info-text {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact__channel {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.contact__channel:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
}

.contact__channel-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact__channel-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 2px;
}

.contact__channel-value {
  font-size: var(--fs-sm);
  color: var(--title);
  font-weight: 500;
}

.contact__channel-link {
  font-size: var(--fs-sm);
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: var(--transition-fast);
}
.contact__channel-link:hover {
  text-decoration: underline;
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--title);
  font-family: var(--font-mono);
}

.form__input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form__input::placeholder {
  color: var(--text-dim);
}

.form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

.form__group--textarea {
  flex: 1;
}

.form__message {
  font-size: var(--fs-sm);
  min-height: 1.25rem;
  font-family: var(--font-mono);
}

.color-red {
  color: var(--danger);
}
.color-blue {
  color: var(--success);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-block: var(--space-12);
  position: relative;
  overflow: hidden;
}

/* Dot-grid (matches hero) */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--accent-glow) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Glow blobs (matches hero) */
.footer::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  bottom: -250px;
  right: -150px;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* Ensure footer content sits above pseudo-elements */
.footer__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  text-align: center;
}

.footer__logo {
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--title);
  display: block;
  margin-bottom: var(--space-2);
}

.footer__tagline {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer__link {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.footer__link:hover {
  color: var(--accent);
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer__social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-3px);
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

/* ==================== SCROLL UP ==================== */
.scrollup {
  position: fixed;
  right: 1.5rem;
  bottom: -20%;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent);
  z-index: var(--z-fixed);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.scrollup:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 0 20px var(--accent-glow);
}

.show-scroll {
  bottom: 6rem;
}

/* ==================== WHATSAPP FLOAT ==================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 50px;
  height: 50px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: var(--z-fixed);
  transition: var(--transition);
}

.whatsapp-float:hover {
  background: #1ebe5d;
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

/* ==================== SCROLL REVEAL ==================== */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: 0.8s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: 0.8s ease;
}
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}
.revealed {
  opacity: 1;
  transform: translate(0);
}

/* ==================== MEDIA QUERIES ==================== */

/* Mobile menu */
@media screen and (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    bottom: -100%;
    left: var(--space-4);
    right: var(--space-4);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-6) var(--space-16);
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: var(--z-modal);
  }
  .nav__menu.show-menu {
    bottom: var(--space-6);
  }

  .nav__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
  }
  .nav__link span {
    display: block;
  }
  .nav__close,
  .nav__toggle {
    display: flex;
  }
}

/* Tablet 640px+ */
@media screen and (min-width: 640px) {
  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__container {
    grid-template-columns: 1fr 1fr;
  }
  .about__grid {
    grid-template-columns: auto 1fr;
  }
  .about__photo-frame {
    margin-inline: 0;
  }
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }
  .footer__nav,
  .footer__social {
    justify-content: flex-start;
  }
}

/* Desktop 1024px+ */
@media screen and (min-width: 1024px) {
  .hero__container {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-16);
  }
  .hero__photo-wrap {
    width: 340px;
    height: 340px;
  }
  .hero__title {
    font-size: var(--fs-5xl);
  }
  .hero__name {
    font-size: var(--fs-6xl);
  }

  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .projects__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section__title {
    font-size: var(--fs-4xl);
  }

  .footer__container {
    grid-template-columns: 1.5fr 1fr 1fr auto;
    align-items: center;
    gap: var(--space-8);
    text-align: left;
  }
  .footer__copy {
    grid-column: 1 / -1;
    text-align: center;
  }
}

/* Large 1280px+ */
@media screen and (min-width: 1280px) {
  .hero__photo-wrap {
    width: 400px;
    height: 400px;
  }
  .hero__title {
    font-size: var(--fs-5xl);
  }
  .hero__name {
    font-size: 5rem;
  }
}
