:root {
  --bg: #06131a;
  --bg-soft: #0d1c25;
  --panel: rgba(9, 24, 31, 0.72);
  --panel-strong: rgba(10, 28, 37, 0.92);
  --text: #eff7f4;
  --muted: #98b8b0;
  --line: rgba(178, 240, 226, 0.14);
  --accent: #76f7d1;
  --accent-2: #ffb85c;
  --accent-3: #7cb8ff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  --radius-sm: 16px;
  --radius-md: 28px;
  --radius-lg: 40px;
  --nav-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(118, 247, 209, 0.1), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(124, 184, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #041016 0%, #071920 45%, #051117 100%);
  background-color: #041016;
  overscroll-behavior-y: none;
}

body {
  font-family: "IBM Plex Mono", monospace;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(118, 247, 209, 0.1), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(124, 184, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #041016 0%, #071920 45%, #051117 100%);
  background-color: #041016;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(118, 247, 209, 0.6);
}

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

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

button,
input,
textarea {
  font: inherit;
}

main {
  position: relative;
  z-index: 2;
}

section {
  position: relative;
  padding: 110px 0;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

#particles-canvas,
.noise,
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#particles-canvas {
  z-index: 0;
  opacity: 0.55;
}

.noise {
  z-index: 1;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
}

.aurora {
  z-index: 1;
  filter: blur(70px);
  opacity: 0.35;
}

.aurora-one {
  background: radial-gradient(circle, rgba(118, 247, 209, 0.38), transparent 58%);
  transform: translate(-10%, -12%);
  animation: auroraFloat 16s ease-in-out infinite alternate;
}

.aurora-two {
  background: radial-gradient(circle, rgba(255, 184, 92, 0.24), transparent 62%);
  transform: translate(55%, 18%);
  animation: auroraFloat 18s ease-in-out infinite alternate-reverse;
}

@keyframes auroraFloat {
  from {
    transform: translate(-8%, -10%) scale(1);
  }
  to {
    transform: translate(12%, 8%) scale(1.18);
  }
}

#cursor-dot,
#cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

#cursor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(118, 247, 209, 0.9);
}

#cursor-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(118, 247, 209, 0.45);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.cursor-active {
  width: 54px !important;
  height: 54px !important;
  border-color: rgba(255, 184, 92, 0.7) !important;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(4, 16, 22, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
  width: min(1180px, calc(100% - 40px));
  min-height: var(--nav-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo,
.nav-cta,
.hero-copy h1,
.section-heading h2,
.contact-panel h2,
.education-main h3 {
  font-family: "Syne", sans-serif;
}

.logo {
  font-size: 1.2rem;
  letter-spacing: 0.14em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a,
.dock-link {
  color: var(--muted);
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active,
.dock-link:hover,
.dock-link.active {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 184, 92, 0.35);
  background: rgba(255, 184, 92, 0.08);
  color: var(--text);
}

.hero {
  padding-top: 72px;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.eyebrow,
.section-kicker,
.stat-label,
.edu-year,
.skill-label,
.badge {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow-line {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.blink-cursor {
  width: 2px;
  height: 16px;
  background: var(--accent);
  display: inline-block;
  animation: blink 0.9s infinite;
}

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

.hero-copy h1 {
  font-size: clamp(2.8rem, 6vw, 4.9rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  max-width: 7ch;
}

.hero-copy h1 span {
  display: block;
  color: var(--accent-2);
}

.hero-text {
  max-width: 54ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-mini-card {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 22px;
}

.hero-mini-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
}

.hero-mini-card i {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.availability-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.availability-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(118, 247, 209, 0.4);
  animation: pulseDot 1.8s ease-out infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(118, 247, 209, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(118, 247, 209, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(118, 247, 209, 0);
  }
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.metric,
.glass-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.metric {
  min-width: 220px;
  padding: 18px 20px;
  border-radius: 22px;
}

.metric strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 6px;
}

.metric span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #a8ffe5);
  color: #04262b;
  box-shadow: 0 18px 40px rgba(118, 247, 209, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.social-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: var(--muted);
}

.social-strip a:hover {
  color: var(--accent);
}

.social-strip a {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.social-strip a:hover {
  transform: translateY(-2px);
  border-color: rgba(118, 247, 209, 0.4);
  background: rgba(118, 247, 209, 0.08);
}

.social-strip i {
  width: 18px;
  height: 18px;
}

.social-strip svg {
  width: 18px;
  height: 18px;
}

.hero-visual {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.orbital-card {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 1 / 1.08;
  display: grid;
  place-items: center;
}

.orbital-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(118, 247, 209, 0.18);
}

.ring-one {
  inset: 6%;
  animation: spin 20s linear infinite;
}

.ring-two {
  inset: 0;
  border-style: dashed;
  animation: spinReverse 28s linear infinite;
}

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

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

.avatar-shell {
  position: relative;
  width: 76%;
  aspect-ratio: 1 / 1.08;
  padding: 18px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.avatar-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(118, 247, 209, 0.22), transparent 40%, rgba(255, 184, 92, 0.18));
  opacity: 0.7;
}

.avatar {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  transition: filter 0.45s ease, transform 0.45s ease;
}

.avatar-shell:hover .avatar {
  transform: scale(1.03);
}

.avatar-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(4, 16, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.avatar-badge i {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.badge-top {
  top: 16px;
  right: -10px;
}

.badge-bottom {
  bottom: 18px;
  left: -16px;
}

.mood-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text);
  cursor: pointer;
}

.mood-switch i {
  width: 16px;
  height: 16px;
  color: var(--accent-2);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.about-grid,
.education-layout {
  display: grid;
  gap: 24px;
}

.about-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.glass-card {
  border-radius: var(--radius-md);
  padding: 28px;
}

.intro-card .lead {
  font-size: 1.16rem;
  color: var(--text);
  margin-bottom: 16px;
}

.intro-card p:last-child,
.stat-card p,
.education-main p,
.timeline-card p,
.proj-desc,
.skill-card p,
.contact-copy p,
.contact-direct span {
  color: var(--muted);
}

.snapshot-grid {
  display: grid;
  gap: 18px;
}

.stat-card strong {
  display: block;
  font-size: 1.2rem;
  margin: 10px 0 8px;
}

.stat-label,
.edu-year,
.skill-label {
  color: var(--accent);
}

.education-layout {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.education-main {
  min-height: 100%;
}

.education-main h3 {
  font-size: 1.7rem;
  margin: 10px 0 8px;
}

.edu-sub {
  color: var(--accent-2) !important;
  margin-bottom: 18px;
}

.education-points {
  position: relative;
  display: grid;
  gap: 18px;
}

.education-points::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(180deg, rgba(118, 247, 209, 0.5), rgba(124, 184, 255, 0.18));
}

.timeline-card {
  position: relative;
  padding-left: 42px;
}

.timeline-dot {
  position: absolute;
  left: 10px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(118, 247, 209, 0.08);
}

.timeline-card h4 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.timeline-card strong,
.education-main strong {
  color: var(--text);
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.proj-card,
.skill-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.proj-card::before,
.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.08), transparent 30%, rgba(118, 247, 209, 0.06));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.proj-card:hover::before,
.skill-card:hover::before {
  opacity: 1;
}

.proj-card:hover,
.skill-card:hover,
.tilt-card:hover {
  transform: translateY(-6px);
}

.proj-card {
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.proj-card:hover {
  border-color: rgba(118, 247, 209, 0.28);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.proj-visual {
  min-height: 200px;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.proj-visual::after {
  content: "";
  position: absolute;
  inset: -20% auto auto -20%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
  opacity: 0.7;
  transition: transform 0.4s ease;
}

.proj-card:hover .proj-visual::after {
  transform: translate(28px, 18px) scale(1.12);
}

.proj-emoji {
  font-size: 3rem;
}

.badge {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(4, 16, 22, 0.58);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.proj-body {
  padding: 24px;
}

.proj-title {
  font-size: 1.28rem;
  margin-bottom: 12px;
}

.proj-footer {
  padding: 0 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.chips,
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.03);
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.proj-link i {
  width: 15px;
  height: 15px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.achievement-card {
  position: relative;
  overflow: hidden;
}

.achievement-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 247, 209, 0.18), transparent 70%);
}

.achievement-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 16px;
  background: rgba(118, 247, 209, 0.1);
  border: 1px solid rgba(118, 247, 209, 0.18);
}

.achievement-icon i {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.achievement-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.achievement-card p {
  color: var(--muted);
}

.skill-card {
  padding: 24px;
}

.skill-label {
  margin-bottom: 14px;
  display: inline-block;
}

.skill-card h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  padding: 34px;
}

.contact-panel h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.contact-direct {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.contact-direct span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-direct i {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.contact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contact-badge {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.82rem;
}

.copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-submit {
  justify-content: center;
}

.contact-submit i {
  width: 16px;
  height: 16px;
}

.contact-submit:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.form-note {
  color: var(--muted);
  font-size: 0.8rem;
}

.local-warning {
  color: #ffd08a;
}

.form-success {
  color: var(--accent);
}

.form-error {
  color: #ffb0b0;
}

.form-input,
.form-textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(1, 10, 14, 0.44);
  color: var(--text);
  padding: 16px 18px;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(118, 247, 209, 0.45);
  box-shadow: 0 0 0 4px rgba(118, 247, 209, 0.08);
}

.form-textarea {
  min-height: 180px;
  resize: vertical;
}

.floating-dock {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 16, 22, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.dock-link {
  padding: 10px 16px;
  border-radius: 999px;
}

.dock-link.active {
  background: rgba(118, 247, 209, 0.12);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 8, 11, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: min(560px, 100%);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 24, 30, 0.95);
  box-shadow: var(--shadow);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-overlay.show .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-empty {
  padding: 34px 26px;
  display: grid;
  justify-items: start;
  gap: 16px;
}

.modal-body {
  height: min(80vh, 820px);
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b1720;
}

.btn-close {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.btn-close i {
  width: 18px;
  height: 18px;
}

.toast {
  position: fixed;
  top: 106px;
  right: 24px;
  z-index: 110;
  padding: 13px 18px;
  border-radius: 16px;
  border: 1px solid rgba(118, 247, 209, 0.22);
  background: rgba(8, 31, 38, 0.96);
  color: var(--text);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}


.section-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.24s ease;
  will-change: transform;
}

.contact-panel,
.proj-card,
.achievement-card,
.skill-card {
  animation: ambientGlow 8s ease-in-out infinite;
}

.proj-card:nth-child(2n),
.skill-card:nth-child(2n),
.achievement-card:nth-child(2n) {
  animation-delay: -2.5s;
}

.proj-card:nth-child(3n),
.skill-card:nth-child(3n) {
  animation-delay: -4.5s;
}

@keyframes ambientGlow {
  0%, 100% {
    box-shadow: var(--shadow);
  }
  50% {
    box-shadow: 0 34px 86px rgba(0, 0, 0, 0.34);
  }
}

@media (max-width: 980px) {
  body {
    cursor: auto;
  }

  #cursor-dot,
  #cursor-ring {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .education-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .skills-grid,
  .proj-grid,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-visual {
    order: -1;
  }

  .contact-panel,
  .proj-card,
  .achievement-card,
  .skill-card {
    animation: none;
  }
}

@media (max-width: 640px) {
  section {
    padding: 88px 0;
  }

  .container,
  .nav-container {
    width: min(100% - 24px, 1180px);
  }

  .glass-card,
  .skill-card,
  .proj-body,
  .contact-panel {
    padding: 22px;
  }

  .proj-visual {
    min-height: 160px;
    padding: 22px;
  }

  .floating-dock {
    width: calc(100% - 24px);
    justify-content: center;
    bottom: 14px;
  }

  .dock-link {
    padding: 9px 13px;
    font-size: 0.86rem;
  }

  .badge-top,
  .badge-bottom {
    position: static;
    margin-top: 12px;
  }

  .avatar-shell {
    display: grid;
  }
}
