/* ── VARIABLES ── */
:root {
  --bg: #0c0c0d;
  --bg2: #111112;
  --bg3: #161617;
  --text: #e4ddd0;
  --text2: rgba(228, 221, 208, 0.55);
  --text3: rgba(228, 221, 208, 0.25);
  --gold: #c9a55a;
  --gold2: rgba(201, 165, 90, 0.15);
  --gold3: rgba(201, 165, 90, 0.07);
  --border: rgba(228, 221, 208, 0.08);
  --border2: rgba(228, 221, 208, 0.14);
  --radius: 0px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

/* ── LOADING SCREEN ── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-hat {
  width: 120px;
  height: auto;
  transform-origin: center;
  animation: hatBeat 1.2s ease-in-out infinite;
}

.loader-bar-track {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 2px;
  background: rgba(201, 165, 90, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 2px;
  animation: loaderFill 0.8s ease-out forwards;
  animation-delay: 0.1s;
}

@keyframes loaderFill {
  0% {
    width: 0%;
  }
  60% {
    width: 85%;
  }
  100% {
    width: 100%;
  }
}

/* ── SCROLL PROGRESS ── */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  z-index: 200;
  transition: width 0.1s linear;
}

/* ── CIRCUIT CANVAS ── */
.circuit-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 28px;
  height: 28px;
  border: 0.5px solid rgba(201, 165, 90, 0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition:
    width 0.2s,
    height 0.2s,
    opacity 0.2s;
  transform: translate(-50%, -50%);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 56px;
  border-bottom: 0.5px solid transparent;
  transition:
    border-color 0.3s,
    background 0.3s;
}

nav.scrolled {
  background: rgba(12, 12, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-logo {
  text-decoration: none;
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
}

.nav-hat {
  height: 36px;
  width: auto;
  transform-origin: center;
  animation: hatBeat 2.4s ease-in-out infinite;
}

.nav-logo:hover .nav-hat {
  animation-duration: 1.2s;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 12px;
  color: var(--text2);
  text-decoration: none;
  letter-spacing: 1px;
  font-family: "DM Mono", monospace;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 0.5px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-resume {
  border: 0.5px solid rgba(201, 165, 90, 0.35) !important;
  padding: 6px 14px;
  transition:
    background 0.2s,
    color 0.2s !important;
}

.nav-resume::after {
  display: none !important;
}

.nav-resume:hover {
  background: var(--gold2) !important;
  color: var(--gold) !important;
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text2);
  transition:
    transform 0.3s,
    opacity 0.3s,
    background 0.2s;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background: var(--gold);
}

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

.hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--gold);
}

/* ── MOBILE OVERLAY MENU ── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 13, 0.97);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.mobile-link {
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 5vw, 36px);
  color: var(--text2);
  text-decoration: none;
  letter-spacing: 1px;
  transition:
    color 0.2s,
    transform 0.2s;
  transform: translateY(20px);
  opacity: 0;
  transition:
    color 0.2s,
    transform 0.4s ease,
    opacity 0.4s ease;
}

.mobile-overlay.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-overlay.open .mobile-link:nth-child(1) {
  transition-delay: 0.05s;
}

.mobile-overlay.open .mobile-link:nth-child(2) {
  transition-delay: 0.1s;
}

.mobile-overlay.open .mobile-link:nth-child(3) {
  transition-delay: 0.15s;
}

.mobile-overlay.open .mobile-link:nth-child(4) {
  transition-delay: 0.2s;
}

.mobile-overlay.open .mobile-link:nth-child(5) {
  transition-delay: 0.25s;
}

.mobile-overlay.open .mobile-link:nth-child(6) {
  transition-delay: 0.3s;
}

.mobile-link:hover {
  color: var(--gold);
}

.mobile-resume {
  font-family: "DM Mono", monospace !important;
  font-size: 13px !important;
  border: 0.5px solid rgba(201, 165, 90, 0.35);
  padding: 10px 24px;
  margin-top: 8px;
}

/* ── SECTIONS ── */
section,
header {
  position: relative;
  z-index: 1;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 56px 80px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-eyebrow::before {
  content: "";
  width: 32px;
  height: 0.5px;
  background: var(--gold);
}

.hero-eyebrow span {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 3px;
}

.hero-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  margin-bottom: 6px;
  opacity: 0;
  animation: fadeUp 0.9s 0.35s forwards;
}

.hero-name .last {
  color: var(--gold);
}

.hero-name .italic {
  font-style: italic;
  font-weight: 400;
  color: var(--text2);
  font-size: 0.65em;
}

.hero-location {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 2px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-desc {
  max-width: 520px;
  font-size: 16px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s 0.65s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.8s 1.1s forwards;
}

.scroll-line {
  width: 0.5px;
  height: 48px;
  background: var(--text3);
  animation: scrollPulse 2s infinite;
}

.scroll-label {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 2px;
  writing-mode: vertical-rl;
}

/* ── BUTTONS ── */
.btn-gold {
  background: var(--gold);
  color: #0c0c0d;
  border: none;
  padding: 13px 32px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.btn-gold:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text2);
  border: 0.5px solid var(--border2);
  padding: 13px 32px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text3);
  border: 0.5px solid var(--border);
  padding: 13px 24px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

/* ── STATS ── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  position: relative;
  z-index: 1;
}

.stat-item {
  padding: 32px 40px;
  border-right: 0.5px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 2px;
}

/* ── SECTION HEADER ── */
.sec-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.sec-tag {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 3px;
  white-space: nowrap;
}

.sec-line {
  flex: 1;
  height: 0.5px;
  background: var(--border);
}

.sec-count {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 1px;
}

/* ── ABOUT ── */
#about {
  padding: 100px 56px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-headline {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 28px;
}

.about-headline em {
  color: var(--gold);
  font-style: italic;
}

.about-body {
  color: var(--text2);
  line-height: 1.85;
  margin-bottom: 20px;
  font-size: 15px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--border);
}

.info-row:first-child {
  border-top: 0.5px solid var(--border);
}

.info-key {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 2px;
}

.info-val {
  font-size: 13px;
  color: var(--text2);
}

.info-val a {
  color: var(--gold);
  text-decoration: none;
}

.info-val a:hover {
  text-decoration: underline;
}

/* ── PROJECTS ── */
#projects {
  padding: 100px 56px;
  background: var(--bg2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}

.project-card {
  background: var(--bg2);
  padding: 40px;
  position: relative;
  cursor: pointer;
  transition: background 0.25s;
}

.project-card:hover {
  background: var(--bg3);
}

.project-card:hover .proj-num {
  color: var(--gold);
}

.project-card:hover .proj-arrow {
  opacity: 1;
  transform: translate(3px, -3px);
}

.proj-num {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 2px;
  margin-bottom: 20px;
  transition: color 0.25s;
}

.proj-name {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 6px;
}

.proj-period {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.proj-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 24px;
}

.proj-impact {
  font-size: 12px;
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding-left: 12px;
  margin-bottom: 24px;
  font-style: italic;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: var(--gold);
  border: 0.5px solid rgba(201, 165, 90, 0.25);
  padding: 4px 10px;
  letter-spacing: 0.5px;
}

.proj-arrow {
  position: absolute;
  top: 40px;
  right: 40px;
  font-size: 16px;
  color: var(--gold);
  opacity: 0;
  transition: all 0.25s;
}

.project-card.featured {
  grid-column: 1 / -1;
}

.project-card.featured .proj-name {
  font-size: 28px;
}

.project-card.featured .proj-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ── ARCH TREE ── */
.proj-arch {
  margin-bottom: 20px;
}

.proj-arch-label {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.arch-tree {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arch-node {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  color: var(--text2);
}

.arch-node.root {
  color: var(--gold);
}

.arch-node.child {
  padding-left: 16px;
  color: var(--text2);
}

/* ── PROJECT MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 13, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg3);
  border: 0.5px solid var(--border2);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: 14px;
  color: var(--text3);
  transition: color 0.2s;
  padding: 4px;
}

.modal-close:hover {
  color: var(--gold);
}

.modal-num {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.modal-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 4vw, 36px);
  color: var(--text);
  margin-bottom: 6px;
}

.modal-period {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 1px;
  margin-bottom: 28px;
}

.modal-divider {
  height: 0.5px;
  background: var(--border);
  margin: 24px 0;
}

.modal-desc {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 24px;
}

.modal-details-label {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.modal-detail-list {
  list-style: none;
  margin-bottom: 24px;
}

.modal-detail-list li {
  font-size: 13px;
  color: var(--text2);
  padding: 6px 0 6px 18px;
  position: relative;
  border-bottom: 0.5px solid var(--border);
}

.modal-detail-list li:last-child {
  border-bottom: none;
}

.modal-detail-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 11px;
}

.modal-impact {
  font-size: 13px;
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding-left: 14px;
  margin-bottom: 28px;
  font-style: italic;
}

.modal-arch {
  margin-bottom: 24px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── SKILLS ── */
#skills {
  padding: 100px 56px;
}

.skills-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}

.skill-group {
  background: var(--bg);
  padding: 36px 32px;
}

.skill-group-name {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  font-size: 12px;
  color: var(--text2);
  border: 0.5px solid var(--border2);
  padding: 6px 13px;
  transition:
    border-color 0.2s,
    color 0.2s;
  cursor: default;
}

.skill-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── EXPERIENCE ── */
#experience {
  padding: 100px 56px;
  background: var(--bg2);
}

.timeline {
  max-width: 760px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 0.5px solid var(--border);
}

.timeline-item:first-child {
  padding-top: 0;
}

.tl-period {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 1.5px;
  line-height: 1.8;
  padding-top: 4px;
}

.tl-dot {
  width: 6px;
  height: 6px;
  border: 0.5px solid var(--gold);
  border-radius: 50%;
  margin-bottom: 8px;
}

.tl-role {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 4px;
}

.tl-company {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.tl-bullets {
  list-style: none;
  margin-top: 12px;
}

.tl-bullets li {
  font-size: 13px;
  color: var(--text2);
  padding: 4px 0 4px 16px;
  position: relative;
}

.tl-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 11px;
}

/* ── CONTACT ── */
#contact {
  padding: 100px 56px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-headline {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  margin-bottom: 24px;
}

.contact-headline em {
  color: var(--gold);
  font-style: italic;
}

.contact-sub {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-link-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 0.5px solid var(--border);
  text-decoration: none;
  transition: gap 0.2s;
}

.contact-link-row:first-of-type {
  border-top: 0.5px solid var(--border);
}

.contact-link-row:hover {
  gap: 24px;
}

.contact-link-row:hover .cl-label {
  color: var(--gold);
}

.contact-link-row:hover .cl-arrow {
  transform: translate(3px, -3px);
}

.cl-icon {
  width: 36px;
  height: 36px;
  border: 0.5px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: var(--gold);
  flex-shrink: 0;
}

.cl-label {
  flex: 1;
  font-size: 14px;
  color: var(--text2);
  transition: color 0.2s;
}

.cl-val {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--text3);
}

.cl-arrow {
  color: var(--gold);
  font-size: 14px;
  transition: transform 0.2s;
}

/* ── AVAILABILITY BADGE ── */
.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0.5px solid rgba(201, 165, 90, 0.3);
  padding: 8px 16px;
  margin-bottom: 28px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1px;
}

.avail-dot {
  width: 6px;
  height: 6px;
  background: #4caf72;
  border-radius: 50%;
  animation: blink 2s infinite;
}

/* ── CONTACT FORM ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg3);
  border: 0.5px solid var(--border2);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e05a5a;
}

.form-btn {
  margin-top: 8px;
  width: 100%;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.form-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-toast {
  margin-top: 12px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  min-height: 20px;
  transition: opacity 0.3s;
}

.form-toast.success {
  color: #4caf72;
}

.form-toast.error {
  color: #e05a5a;
}

/* ── FOOTER ── */
footer {
  padding: 28px 56px;
  border-top: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.footer-left {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 2px;
}

.footer-right {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 1px;
}

.footer-right a {
  color: var(--gold);
  text-decoration: none;
}

/* ── ANIMATIONS ── */
@keyframes hatBeat {
  0%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.3);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.2);
  }
  65% {
    transform: scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.25;
  }

  50% {
    opacity: 0.8;
  }
}

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

  50% {
    opacity: 0.3;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border2);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  nav {
    padding: 20px 28px;
  }
}

@media (max-width: 768px) {
  #hero {
    padding: 100px 24px 60px;
  }

  .hero-scroll {
    left: 24px;
  }

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

  .stat-item {
    padding: 24px;
  }

  #about,
  #projects,
  #skills,
  #experience,
  #contact {
    padding: 72px 24px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .project-card.featured .proj-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .skills-layout {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .modal-container {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-gold,
  .btn-outline,
  .btn-ghost {
    width: 100%;
    text-align: center;
  }
}
