:root {
  --bg: #0d1b2a;
  --surface: #1b2a3b;
  --surface2: #243447;
  --accent: #0ea5e9;
  --accentlt: #38bdf8;
  --accentdim: rgba(14, 165, 233, 0.12);
  --accentglow: rgba(14, 165, 233, 0.25);
  --t1: #e2e8f0;
  --t2: #94a3b8;
  --t3: #64748b;
  --border: rgba(226, 232, 240, 0.07);
  --borderh: rgba(14, 165, 233, 0.35);
  --serif: 'DM Serif Display', serif;
  --sans: 'DM Sans', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--t1);
  overflow-x: hidden;
  cursor: none;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
}

#cd,
#cr {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
#cd {
  width: 6px;
  height: 6px;
  background: var(--accent);
}
#cr {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(14, 165, 233, 0.5);
  transition:
    width 0.25s var(--ease),
    height 0.25s var(--ease),
    border-color 0.25s;
}
#cr.h {
  width: 48px;
  height: 48px;
  border-color: var(--accent);
  background: rgba(14, 165, 233, 0.06);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9990;
  opacity: 0.7;
}

.container {
  width: min(92%, 1100px);
  margin-inline: auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--accent);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: var(--t1);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: none;
  border: none;
  transition: all 0.25s var(--ease);
  border-radius: 3px;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accentlt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accentglow);
}
.btn-ghost {
  background: transparent;
  color: var(--t1);
  border: 1px solid var(--borderh);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s var(--ease),
    transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.rd1 {
  transition-delay: 0.1s;
}
.rd2 {
  transition-delay: 0.2s;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(13, 27, 42, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--t1);
}
.nav-logo img {
  width: 60px;
  height: 60px;
  margin-top: 10px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t2);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accentlt);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--t2);
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* HERO */
#hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 4.5rem;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(14, 165, 233, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(14, 165, 233, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(rgba(14, 165, 233, 0.15) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    40px 40px;
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.08) 0%,
    transparent 70%
  );
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5rem;
  align-items: center;
  padding-block: 5rem;
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accentdim);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accentlt);
  margin-bottom: 1.75rem;
}
.hero-dot {
  width: 6px;
  height: 6px;
  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(0.8);
  }
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 1;
  color: var(--t1);
  margin-bottom: 0.5rem;
}
.hero-name em {
  font-style: italic;
  color: var(--accent);
}
.hero-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 1.75rem;
}
.hero-desc {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--t2);
  max-width: 500px;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-card {
  position: relative;
  width: 400px;
  flex-shrink: 0;
}
.hero-photo {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px 4px 80px 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--t3);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}
.hero-photo svg {
  width: 56px;
  opacity: 0.2;
}
.hero-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.hero-chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--borderh);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--t1);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.chip-sub {
  font-size: 0.62rem;
  color: var(--t3);
  font-weight: 400;
}
.chip-exp {
  top: 1.5rem;
  left: -3.5rem;
  animation: float 4s ease-in-out infinite;
}
.chip-stack {
  bottom: 2rem;
  right: -2.5rem;
  animation: float 4s ease-in-out infinite 2s;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--t3);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: sB 2.5s ease-in-out infinite;
  z-index: 1;
}
.scroll-cue svg {
  width: 14px;
}
@keyframes sB {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateX(-50%) translateY(8px);
    opacity: 1;
  }
}

/* ABOUT */
#about {
  padding-block: 9rem;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface);
  border-radius: 4px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.about-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(14, 165, 233, 0.04) 39px,
      rgba(14, 165, 233, 0.04) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(14, 165, 233, 0.04) 39px,
      rgba(14, 165, 233, 0.04) 40px
    );
}
.about-img-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--t3);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.about-img-inner svg {
  width: 52px;
  opacity: 0.15;
}
.ac {
  position: absolute;
  width: 60px;
  height: 60px;
  border-color: var(--accent);
  border-style: solid;
}
.ac.tl {
  top: -12px;
  left: -12px;
  border-width: 2px 0 0 2px;
}
.ac.br {
  bottom: -12px;
  right: -12px;
  border-width: 0 2px 2px 0;
}
.about-content .section-title {
  margin-bottom: 1.5rem;
}
.about-text {
  font-size: 0.94rem;
  line-height: 1.9;
  color: var(--t2);
  margin-bottom: 1.25rem;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
}

/* SKILLS */
#skills {
  padding-block: 9rem;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
#skills::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.06) 0%,
    transparent 70%
  );
  top: -100px;
  right: -100px;
  pointer-events: none;
}
.skills-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}
.skills-intro {
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--t2);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.skill-item {
  background: var(--surface);
  padding: 2rem;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.skill-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.skill-item:hover {
  background: var(--surface2);
}
.skill-item:hover::before {
  width: 100%;
}
.skill-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
}
.skill-cat {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skill-tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 2px;
  color: var(--t2);
  transition: all 0.2s;
}
.skill-tag:hover {
  background: var(--accentdim);
  border-color: var(--accent);
  color: var(--accentlt);
}

/* EXPERIENCE */
#experience {
  padding-block: 9rem;
}
.exp-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
  align-items: start;
}
.exp-sidebar {
  position: sticky;
  top: 7rem;
}
.exp-sidebar .section-title {
  margin-bottom: 1.5rem;
}
.exp-sidebar p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--t2);
  margin-bottom: 2rem;
}
.exp-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.exp-tab {
  padding: 0.7rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--t3);
  border-left: 2px solid var(--border);
  cursor: none;
  transition: all 0.2s;
  text-align: left;
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  font-family: var(--sans);
}
.exp-tab:hover {
  color: var(--t1);
  border-left-color: var(--t3);
}
.exp-tab.active {
  color: var(--accentlt);
  border-left-color: var(--accent);
  background: var(--accentdim);
}
.exp-panels {
  min-height: 400px;
}
.exp-panel {
  display: none;
  animation: fU 0.35s var(--ease);
}
.exp-panel.active {
  display: block;
}
@keyframes fU {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.exp-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.exp-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}
.period {
  background: var(--accentdim);
  color: var(--accentlt);
  border: 1px solid rgba(14, 165, 233, 0.2);
}
.type {
  background: rgba(255, 255, 255, 0.04);
  color: var(--t3);
  border: 1px solid var(--border);
}
.exp-role {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--t1);
  margin-bottom: 4px;
  line-height: 1.2;
}
.exp-company {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.exp-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.5rem;
}
.exp-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.exp-bullets li {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--t2);
}
.exp-bullets li::before {
  content: '▸';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.7rem;
}

/* PROJECTS */
#projects {
  padding-block: 9rem;
  background: var(--surface);
}
.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.projects-grid .project-card:first-child {
  grid-column: span 2;
}
.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.25s,
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}
.project-card:hover {
  border-color: var(--borderh);
  transform: translateY(-6px);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(14, 165, 233, 0.1);
}
.project-thumb {
  height: 180px;
  background: var(--surface2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ptn {
  position: absolute;
  inset: 0;
  opacity: 0.18;
}
.proj-label {
  position: relative;
  font-family: var(--serif);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  padding: 1rem;
  font-style: italic;
}
.proj-hint {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.15);
}
.project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 0.85rem;
}
.stack-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accentdim);
  border: 1px solid rgba(14, 165, 233, 0.15);
  padding: 2px 7px;
  border-radius: 2px;
}
.project-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--t1);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.project-desc {
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--t2);
  flex: 1;
  margin-bottom: 1.25rem;
}
.project-links {
  display: flex;
  gap: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: auto;
}
.project-link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t3);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}
.project-link:hover {
  color: var(--accentlt);
}
.project-link svg {
  width: 12px;
}

/* EDUCATION */
#education {
  padding-block: 9rem;
}
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}
.edu-col-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.25s;
}
.edu-card:hover {
  border-color: var(--borderh);
}
.edu-icon {
  width: 38px;
  height: 38px;
  background: var(--accentdim);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.edu-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 4px;
  line-height: 1.4;
}
.edu-meta {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* CONTACT */
#contact {
  padding-block: 9rem;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.06) 0%,
    transparent 70%
  );
  bottom: -200px;
  left: -200px;
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  position: relative;
}
.contact-text .section-title {
  margin-bottom: 1.25rem;
}
.contact-text > p {
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--t2);
  margin-bottom: 2.5rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--t2);
}
.contact-ico {
  width: 38px;
  height: 38px;
  background: var(--accentdim);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-ico svg {
  width: 16px;
  color: var(--accent);
}
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}
.social-link {
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.social-link:hover {
  border-color: var(--accent);
  background: var(--accentdim);
}
.social-link svg {
  width: 16px;
  color: var(--t2);
  transition: color 0.2s;
}
.social-link:hover svg {
  color: var(--accentlt);
}
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 0.5rem;
}
.form-input,
.form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.8rem 1rem;
  color: var(--t1);
  font-family: var(--sans);
  font-size: 0.88rem;
  transition:
    border-color 0.2s,
    background 0.2s;
  outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--t3);
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: var(--surface2);
}
.form-textarea {
  resize: vertical;
  min-height: 110px;
}
.form-submit {
  width: 100%;
  padding: 0.9rem;
  justify-content: center;
}

/* FOOTER */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--t2);
}
.footer-logo span {
  color: var(--accent);
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t3);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accentlt);
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--t3);
}

@media (max-width: 900px) {
  body {
    cursor: auto;
  }
  #cd,
  #cr {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 27, 42, 0.97);
    backdrop-filter: blur(16px);
    padding: 2rem;
    gap: 1.75rem;
    border-bottom: 1px solid var(--border);
  }
  .hamburger {
    display: flex;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 4rem 3rem;
    gap: 3rem;
  }
  .hero-desc {
    margin-inline: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-card {
    width: 240px;
    margin: 0 auto;
  }
  .chip-exp {
    left: -1.5rem;
  }
  .chip-stack {
    right: -1.5rem;
  }
  .about-grid,
  .skills-header,
  .edu-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .exp-layout {
    grid-template-columns: 1fr;
  }
  .exp-sidebar {
    position: static;
  }
  .exp-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .exp-tab {
    border-left: none;
    border-bottom: 2px solid var(--border);
  }
  .exp-tab.active {
    border-bottom-color: var(--accent);
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid .project-card:first-child {
    grid-column: span 1;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  .about-stats {
    gap: 0.75rem;
  }
  .stat-num {
    font-size: 1.8rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
