/* ==========================================================================
   PRINCE BABU — PORTFOLIO STYLESHEET
   Theme: Technical blueprint / schematic — drafting lines, registration
   corner-marks, and instrument-panel detailing instead of glow and blur.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Blueprint canvas */
  --bg: #0a0f1a;
  --bg-alt: #0d1420;
  --panel: #101929;
  --panel-hover: #131e31;
  --line: rgba(94, 179, 255, 0.16);
  --line-strong: rgba(94, 179, 255, 0.4);
  --grid-line: rgba(94, 179, 255, 0.045);

  /* Ink */
  --ink: #e9edf4;
  --ink-dim: #8b98ac;
  --ink-faint: #56607a;

  /* Signal colors — blue = structural/info, amber = interactive/action */
  --blue: #5eb3ff;
  --blue-dim: #3d7fb8;
  --amber: #e8a33d;
  --amber-dim: #b57d2c;
  --red: #e8674d;
  --green: #5ac98f;

  /* Type */
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* Layout */
  --container: 1180px;
  --radius: 3px;
  --radius-lg: 6px;
  --nav-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  font: inherit;
  cursor: none;
  border: none;
  background: none;
  color: inherit;
}
input,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--amber);
  color: #14100a;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Headline emphasis — a warm underline instead of a rainbow text-fill */
.text-gradient {
  color: var(--amber);
  position: relative;
  white-space: nowrap;
}

@media (hover: none) {
  body {
    cursor: auto;
  }
  button,
  a {
    cursor: pointer;
  }
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ---------- Custom Cursor — drafting crosshair ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 4px;
  height: 4px;
  background: var(--amber);
}
.cursor-ring {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  transition:
    width 0.2s var(--ease),
    height 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.cursor-ring::before,
.cursor-ring::after {
  content: "";
  position: absolute;
  background: var(--line-strong);
}
.cursor-ring::before {
  left: 50%;
  top: -6px;
  width: 1px;
  height: 6px;
  transform: translateX(-50%);
}
.cursor-ring::after {
  top: 50%;
  left: -6px;
  height: 1px;
  width: 6px;
  transform: translateY(-50%);
}
.cursor-ring.cursor-ring--hover {
  width: 44px;
  height: 44px;
  border-color: var(--amber);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition:
    opacity 0.5s var(--ease),
    visibility 0.5s var(--ease);
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader__mark svg {
  animation: pulse-scale 1.4s ease-in-out infinite;
}
#loaderPath {
  stroke: var(--blue) !important;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw-check 1.2s var(--ease) infinite;
}
@keyframes draw-check {
  0% {
    stroke-dashoffset: 60;
  }
  50%,
  70% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -60;
  }
}
@keyframes pulse-scale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
.preloader__text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dots span {
  animation: dot-blink 1.4s infinite;
  opacity: 0;
  color: var(--amber);
}
.dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes dot-blink {
  0%,
  20% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--amber);
  z-index: 1001;
  width: 0%;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    height 0.3s var(--ease);
}
.navbar.is-scrolled {
  height: 62px;
  background: rgba(10, 15, 26, 0.88);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--line);
}
.navbar__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.logo-bracket {
  color: var(--amber);
}
.navbar__links {
  display: flex;
  gap: 2rem;
}
.nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--ink-dim);
  padding: 6px 2px;
  transition: color 0.2s var(--ease);
}
.nav-link::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 5px;
  height: 1px;
  background: var(--amber);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.2s var(--ease);
}
.nav-link:hover {
  color: var(--ink);
}
.nav-link.active {
  color: var(--amber);
}
.nav-link.active::before {
  opacity: 1;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}
.navbar__toggle span {
  height: 1px;
  width: 100%;
  background: var(--ink);
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}
.navbar__toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.navbar__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.navbar__toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(78vw, 320px);
  height: 100vh;
  background: var(--bg-alt);
  border-left: 1px solid var(--line);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 24px) 32px 32px;
  gap: 6px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.mobile-menu.is-open {
  transform: translateX(0);
}
.mobile-menu__link {
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 12px 0;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}
.mobile-menu__link:hover {
  color: var(--amber);
}

/* ---------- Buttons — instrument-plate style ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.86rem;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease);
  isolation: isolate;
}
.btn span {
  position: relative;
  z-index: 2;
}
.btn--primary {
  background: var(--amber);
  color: #1a1206;
  border: 1px solid var(--amber);
}
.btn--primary:hover {
  background: transparent;
  color: var(--amber);
}
.btn--outline {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink-dim);
}
.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--text {
  color: var(--blue);
  font-weight: 500;
  padding: 12px 4px;
}
.btn--text:hover {
  color: var(--amber);
}
.btn--sm {
  padding: 8px 16px;
  font-size: 0.78rem;
}
.btn--block {
  width: 100%;
}

.btn__ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transform: scale(0);
  animation: ripple 0.55s ease-out;
  pointer-events: none;
  z-index: 1;
}
@keyframes ripple {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* ---------- Panel — blueprint card with registration corner-marks ---------- */
.glass-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.glass-card::before,
.glass-card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--blue-dim);
  opacity: 0.9;
  pointer-events: none;
  transition: border-color 0.3s var(--ease);
}
.glass-card::before {
  top: -1px;
  left: -1px;
  border-style: solid;
  border-width: 1.5px 0 0 1.5px;
}
.glass-card::after {
  bottom: -1px;
  right: -1px;
  border-style: solid;
  border-width: 0 1.5px 1.5px 0;
}
.glass-card:hover {
  border-color: var(--line-strong);
  background: var(--panel-hover);
}
.glass-card:hover::before,
.glass-card:hover::after {
  border-color: var(--amber);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Section Shell ---------- */
.section {
  padding: 120px 0;
  position: relative;
}
.section--alt {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(94, 179, 255, 0.025),
    transparent
  );
}
.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section__eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--amber);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 18px;
  max-width: 640px;
  letter-spacing: -0.01em;
}
.section__sub {
  color: var(--ink-dim);
  max-width: 560px;
  margin-bottom: 50px;
  font-size: 0.98rem;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}

/* Blob elements repurposed into a slow radar sweep, not a glow blob */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.hero__blob--1 {
  width: 640px;
  height: 640px;
  top: 50%;
  left: 72%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  background: conic-gradient(
    from 0deg,
    rgba(94, 179, 255, 0.16),
    transparent 22%
  );
  animation: radar-spin 9s linear infinite;
}
.hero__blob--2 {
  width: 640px;
  height: 640px;
  top: 50%;
  left: 72%;
  transform: translate(-50%, -50%);
  border: 1px dashed var(--line);
}
.hero__blob--2::before,
.hero__blob--2::after {
  content: "";
  position: absolute;
  inset: 90px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
@keyframes radar-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding: 60px 24px 100px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: var(--radius);
  margin-bottom: 26px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(90, 201, 143, 0.5);
  animation: status-pulse 2s infinite;
}
@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(90, 201, 143, 0.5);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(90, 201, 143, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(90, 201, 143, 0);
  }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero__typed-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  margin-bottom: 26px;
  color: var(--ink-dim);
}
.hero__typed-prefix::before {
  content: "$ ";
  color: var(--ink-faint);
}
.hero__typed {
  color: var(--blue);
  font-weight: 500;
}
.typed-cursor {
  color: var(--amber);
  animation: blink 0.9s step-start infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero__desc {
  color: var(--ink-dim);
  max-width: 560px;
  margin-bottom: 34px;
  font-size: 1rem;
}
.hero__desc strong {
  color: var(--ink);
  font-weight: 600;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 38px;
}

.hero__socials {
  display: flex;
  gap: 10px;
}
.social-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.social-icon:hover {
  color: var(--amber);
  border-color: var(--amber);
}

/* Hero visual — instrument dial instead of glowing portrait ring */
.hero__visual {
  display: flex;
  justify-content: center;
}
.hero__portrait-ring {
  position: relative;
  width: min(300px, 58vw);
  height: min(300px, 58vw);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__portrait-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  animation: rotate-ring 24s linear infinite;
}
@keyframes rotate-ring {
  to {
    transform: rotate(360deg);
  }
}
.hero__portrait {
  width: 82%;
  height: 82%;
  border-radius: 50%;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  position: relative;
}
.hero__portrait::before,
.hero__portrait::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--blue-dim);
}
.hero__portrait::before {
  top: 8%;
  left: 8%;
  border-style: solid;
  border-width: 1.5px 0 0 1.5px;
}
.hero__portrait::after {
  bottom: 8%;
  right: 8%;
  border-style: solid;
  border-width: 0 1.5px 1.5px 0;
}
.hero__initials {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 4rem);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.orbit-badge {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.orbit-badge--1 {
  top: 4%;
  left: -8%;
  color: var(--blue);
}
.orbit-badge--2 {
  bottom: 10%;
  right: -12%;
  color: var(--amber);
}
.orbit-badge--3 {
  bottom: -6%;
  left: 20%;
  color: var(--green);
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-cue__mouse {
  display: block;
  width: 20px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  position: relative;
}
.scroll-cue__wheel {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 2px;
  height: 6px;
  background: var(--amber);
  transform: translateX(-50%);
  animation: scroll-wheel 1.6s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0% {
    opacity: 1;
    top: 5px;
  }
  100% {
    opacity: 0;
    top: 16px;
  }
}

/* ============ ABOUT ============ */
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.about__text p {
  color: var(--ink-dim);
  margin-bottom: 18px;
}
.about__text strong {
  color: var(--ink);
}
.about__focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.focus-tag {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  padding: 7px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--blue);
}
.about__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about__card {
  padding: 24px;
}
.about__card-icon {
  font-size: 1.4rem;
  margin-bottom: 12px;
  opacity: 0.85;
}
.about__card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
}
.about__card p {
  color: var(--ink-dim);
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.about__card-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber);
}

/* ============ SKILLS ============ */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.skill-category {
  padding: 28px;
}
.skill-category__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 22px;
}
.skill-category__icon {
  font-size: 1.1rem;
  opacity: 0.85;
}
.skill-bar {
  margin-bottom: 16px;
}
.skill-bar:last-child {
  margin-bottom: 0;
}
.skill-bar__top {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 7px;
  color: var(--ink-dim);
}
.skill-bar__pct {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.skill-bar__track {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--line) 0 3px,
    transparent 3px 6px
  );
  border-radius: 2px;
  overflow: hidden;
}
.skill-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--blue);
  transition: width 1.2s var(--ease);
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-pill {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  padding: 7px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  transition: all 0.25s var(--ease);
}
.skill-pill:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* ============ EXPERIENCE TIMELINE ============ */
.timeline {
  position: relative;
  padding-left: 36px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: repeating-linear-gradient(
    180deg,
    var(--line-strong) 0 6px,
    transparent 6px 12px
  );
}
.timeline__item {
  position: relative;
  margin-bottom: 24px;
}
.timeline__item:last-child {
  margin-bottom: 0;
}
.timeline__dot {
  position: absolute;
  left: -36px;
  top: 22px;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 1.5px solid var(--amber);
  transform: rotate(45deg);
}
.timeline__card {
  padding: 22px 26px;
}
.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--blue);
  letter-spacing: 0.04em;
}
.timeline__card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin: 8px 0 8px;
}
.timeline__card p {
  color: var(--ink-dim);
  font-size: 0.9rem;
}

/* ============ PROJECTS ============ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition:
    transform 0.15s linear,
    border-color 0.3s var(--ease);
  transform-style: preserve-3d;
  perspective: 1000px;
}
.project-card:hover {
  border-color: var(--line-strong);
}
.project-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 0%),
    rgba(94, 179, 255, 0.1),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.project-card:hover .project-card__glow {
  opacity: 1;
}
.project-card__media {
  position: relative;
  height: 140px;
  display: flex;
  align-items: flex-end;
  padding: 16px 20px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.project-card__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.9;
}
.project-card__pattern[data-pattern="ecommerce"] {
  background: repeating-linear-gradient(
    45deg,
    rgba(94, 179, 255, 0.1) 0 1px,
    transparent 1px 18px
  );
}
.project-card__pattern[data-pattern="hostel"] {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(94, 179, 255, 0.09) 0 1px,
      transparent 1px 22px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(94, 179, 255, 0.07) 0 1px,
      transparent 1px 22px
    );
}
.project-card__pattern[data-pattern="ai"] {
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(232, 163, 61, 0.14),
      transparent 45%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(94, 179, 255, 0.14),
      transparent 45%
    );
}
.project-card__pattern[data-pattern="auth"] {
  background: repeating-linear-gradient(
    -45deg,
    rgba(232, 163, 61, 0.1) 0 1px,
    transparent 1px 16px
  );
}
.project-card__pattern[data-pattern="dsa"] {
  background: repeating-conic-gradient(
    from 0deg,
    rgba(94, 179, 255, 0.07) 0deg 8deg,
    transparent 8deg 16deg
  );
}
.project-card__tag {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 5px 11px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  color: var(--amber);
}
.project-card__body {
  padding: 24px;
  position: relative;
  z-index: 2;
}
.project-card__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.project-card__body > p {
  color: var(--ink-dim);
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.project-card__features {
  margin-bottom: 18px;
}
.project-card__features li {
  position: relative;
  padding-left: 16px;
  font-size: 0.84rem;
  color: var(--ink-dim);
  margin-bottom: 7px;
}
.project-card__features li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--blue);
  font-family: var(--font-mono);
}
.project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.project-card__stack span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--radius);
  color: var(--ink-faint);
  border: 1px solid var(--line);
}
.project-card__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.project-card__pending {
  font-size: 0.76rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}

/* ============ EDUCATION ============ */
.edu-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.edu-card {
  padding: 26px;
}
.edu-card__year {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--amber);
  margin-bottom: 10px;
}
.edu-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.edu-card__school {
  color: var(--ink-dim);
  font-size: 0.88rem;
}

/* ============ CERTIFICATES ============ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.cert-card {
  padding: 28px;
  text-align: center;
}
.cert-card__ribbon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  opacity: 0.9;
}
.cert-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
}
.cert-card p {
  color: var(--ink-dim);
  font-size: 0.88rem;
}

/* ============ ACHIEVEMENTS ============ */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 50px;
}
.counter-card {
  padding: 28px 18px;
  text-align: center;
}
.counter {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  color: var(--amber);
  margin-bottom: 8px;
}
.counter-card p {
  color: var(--ink-dim);
  font-size: 0.84rem;
}
.achievements__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.achievement-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.3s var(--ease);
}
.achievement-row:hover {
  border-color: var(--line-strong);
}
.achievement-row__icon {
  font-size: 1.1rem;
  opacity: 0.85;
}
.achievement-row p {
  color: var(--ink-dim);
  font-size: 0.92rem;
}

/* ============ CONTACT ============ */
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
}
.contact__info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
}
.contact__row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact__icon {
  font-size: 1.2rem;
  width: 22px;
  text-align: center;
  opacity: 0.85;
}
.contact__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact__row a {
  font-size: 0.94rem;
  transition: color 0.2s;
}
.contact__row a:hover {
  color: var(--amber);
}

.contact__form {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  position: relative;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 4px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  outline: none;
  font-size: 0.94rem;
  font-family: var(--font-body);
  color: var(--ink);
  transition: border-color 0.25s var(--ease);
  resize: vertical;
}
.form-group label {
  position: absolute;
  left: 4px;
  top: 13px;
  color: var(--ink-faint);
  font-size: 0.94rem;
  pointer-events: none;
  transition: all 0.2s var(--ease);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--amber);
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -13px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--amber);
}
.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--red);
}
.form-error {
  display: block;
  min-height: 16px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--red);
  margin-top: 4px;
}
.form-success {
  display: none;
  text-align: center;
  font-size: 0.84rem;
  font-family: var(--font-mono);
  color: var(--green);
}
.form-success.is-visible {
  display: block;
}

/* ============ FOOTER ============ */
.footer {
  position: relative;
  padding-top: 50px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.footer__wave {
  display: none;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}
.footer__brand p {
  color: var(--ink-faint);
  margin-top: 14px;
  font-size: 0.88rem;
  max-width: 280px;
}
.footer__links,
.footer__socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links h4,
.footer__socials h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.footer__links a {
  color: var(--ink-dim);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer__links a:hover {
  color: var(--amber);
}
.footer__social-icons {
  display: flex;
  gap: 10px;
}
.footer__social-icons a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--ink-faint);
  transition: all 0.2s;
}
.footer__social-icons a:hover {
  color: var(--amber);
  border-color: var(--amber);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 30px;
  max-width: var(--container);
  margin: 0 auto;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.back-to-top {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.25s var(--ease);
}
.back-to-top:hover {
  background: var(--amber);
  color: #1a1206;
  border-color: var(--amber);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  .hero__typed-wrap,
  .hero__cta,
  .hero__socials {
    justify-content: center;
  }
  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__visual {
    order: -1;
    margin-bottom: 20px;
  }
  .about__grid {
    grid-template-columns: 1fr;
  }
  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects__grid {
    grid-template-columns: 1fr;
  }
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .navbar__links {
    display: none;
  }
  .navbar__toggle {
    display: flex;
  }
  .counters {
    grid-template-columns: repeat(2, 1fr);
  }
  .edu-timeline {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 90px 0;
  }
  .skills__grid {
    grid-template-columns: 1fr;
  }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn {
    width: 100%;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
