/* =========================================================
   DESIGN TOKENS
========================================================= */
:root {
  --bg: #0A0E1A;
  --bg-alt: #0F1424;
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.09);
  --text: #EAECF3;
  --muted: #8B93A7;
  --accent-violet: #7C5CFC;
  --accent-cyan: #22D3EE;
  --accent-gold: #F5B942;
  --gradient: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --max-w: 1180px;
}

[data-theme="light"] {
  --bg: #F5F7FB;
  --bg-alt: #ECEEF6;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(15, 20, 36, 0.08);
  --text: #12172A;
  --muted: #5B6478;
  --shadow: 0 20px 50px rgba(20, 25, 45, 0.12);
  --accent-violet: #6D46F5;
  --accent-cyan: #0EA5C4;
  --accent-gold: #C9891F;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   GLASS UTILITY
========================================================= */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 24px 40px;
  position: relative;
  z-index: 2;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 0 0 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 56px;
  max-width: 640px;
}

/* =========================================================
   LOADER
========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__mark {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pulseScale 1.4s ease-in-out infinite;
}
.loader__bar {
  width: 180px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.loader__bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gradient);
  animation: loaderSlide 1.1s ease-in-out infinite;
}
@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
@keyframes pulseScale {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* =========================================================
   CURSOR GLOW
========================================================= */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.55), transparent 70%);
  pointer-events: none;
  z-index: 998;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  mix-blend-mode: screen;
}
.cursor-glow.is-active {
  width: 110px; height: 110px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.55), transparent 70%);
}
.cursor-glow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border: 1.5px solid #fff;
  border-radius: 50%;
}
.cursor-glow::after {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* =========================================================
   BACKGROUND LAYERS
========================================================= */
.bg-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
}
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.orb--1 { width: 340px; height: 340px; background: var(--accent-violet); top: -80px; left: -60px; animation: floatOrb 16s ease-in-out infinite; }
.orb--2 { width: 260px; height: 260px; background: var(--accent-cyan); top: 40%; right: -80px; animation: floatOrb 20s ease-in-out infinite reverse; }
.orb--3 { width: 220px; height: 220px; background: var(--accent-gold); bottom: -60px; left: 20%; animation: floatOrb 18s ease-in-out infinite; }
.orb--4 { width: 180px; height: 180px; background: var(--accent-violet); bottom: 10%; right: 15%; animation: floatOrb 14s ease-in-out infinite reverse; }

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, 40px) scale(1.06); }
  50% { transform: translate(-20px, 70px) scale(0.96); }
  75% { transform: translate(-40px, 10px) scale(1.03); }
}

/* =========================================================
   NAV
========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 60px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
}
.nav__logo-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav__links { display: flex; gap: clamp(16px, 3vw, 32px); }
.nav__link {
  font-size: 0.94rem;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width 0.25s ease;
}
.nav__link:hover, .nav__link.active-link { color: var(--text); }
.nav__link:hover::after, .nav__link.active-link::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.2s ease;
}
.theme-toggle:hover { transform: rotate(20deg); border-color: var(--accent-cyan); }
.theme-toggle svg { width: 18px; height: 18px; }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    top: 68px; right: 0;
    flex-direction: column;
    background: var(--bg-alt);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    padding: 24px 32px;
    gap: 20px;
    transform: translateX(110%);
    transition: transform 0.35s ease;
  }
  .nav__links.is-open { transform: translateX(0); }
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn--primary { background: var(--gradient); color: #0A0E1A; }
.btn--primary:hover { box-shadow: 0 12px 30px rgba(124, 92, 252, 0.35); }
.btn--ghost { background: var(--glass-bg); border-color: var(--glass-border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent-cyan); }
.btn--outline { background: transparent; border-color: var(--glass-border); color: var(--text); }
.btn--outline:hover { border-color: var(--accent-violet); color: var(--accent-violet); }
.btn--wide { width: 100%; justify-content: center; }
.btn--disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.ripple::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  width: 10px; height: 10px;
  opacity: 0;
  transform: scale(1);
  left: var(--rx, 50%);
  top: var(--ry, 50%);
  translate: -50% -50%;
  pointer-events: none;
}
.ripple.is-rippling::after {
  animation: rippleAnim 0.6s ease-out;
}
@keyframes rippleAnim {
  0% { opacity: 0.5; scale: 1; }
  100% { opacity: 0; scale: 22; }
}

/* =========================================================
   HERO
========================================================= */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 120px 24px 60px;
}
.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero__greeting {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 1rem;
  margin: 0 0 10px;
}
.wave { display: inline-block; animation: wave 2.4s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(18deg); }
  30% { transform: rotate(-10deg); }
  45% { transform: rotate(14deg); }
  60% { transform: rotate(0deg); }
}
.hero__name {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 14px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__title {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--text);
  font-weight: 600;
  min-height: 1.6em;
  margin-bottom: 20px;
}
.typing-cursor { color: var(--accent-violet); animation: blink 0.9s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__intro { color: var(--muted); max-width: 52ch; margin-bottom: 34px; font-size: 1.02rem; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__visual { display: flex; justify-content: center; }
.hero__photo-wrap { position: relative; width: min(320px, 70vw); aspect-ratio: 1; }
.hero__ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px dashed var(--glass-border);
  animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__photo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  background: var(--gradient) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  animation: floatY 5s ease-in-out infinite;
  box-shadow: 0 25px 60px rgba(124, 92, 252, 0.25);
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.float-icon {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--accent-cyan);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.float-icon--1 { top: -6%; left: -8%; animation: floatBounce 6s ease-in-out infinite; color: var(--accent-gold); }
.float-icon--2 { bottom: 4%; left: -12%; animation: floatBounce 7s ease-in-out infinite 0.5s; color: var(--accent-violet); }
.float-icon--3 { top: 10%; right: -12%; animation: floatBounce 8s ease-in-out infinite 1s; color: var(--accent-cyan); }
.float-icon--4 { bottom: -4%; right: -6%; animation: floatBounce 6.5s ease-in-out infinite 1.5s; color: var(--accent-gold); }
@keyframes floatBounce {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -18px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--glass-border);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-indicator span {
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--gradient);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__intro { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { order: -1; margin-bottom: 20px; }
}

/* =========================================================
   SCROLL REVEAL
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   ABOUT
========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 46px;
  align-items: center;
  margin-bottom: 70px;
}
.about__card { padding: 38px; }
.about__card p { color: var(--muted); margin: 0 0 16px; }
.about__card p:last-child { margin-bottom: 0; color: var(--text); }
.about__illustration svg { width: 100%; height: auto; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__illustration { order: -1; max-width: 320px; margin: 0 auto; }
}

.timeline__heading { font-size: 1.3rem; margin-bottom: 24px; }
.timeline__item { display: flex; gap: 20px; align-items: flex-start; position: relative; padding-left: 6px; }
.timeline__dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gradient);
  margin-top: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-violet) 15%, transparent);
}
.timeline__content { padding: 22px 26px; flex: 1; }
.timeline__content h4 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline__place { color: var(--muted); margin: 0; font-family: var(--font-mono); font-size: 0.88rem; }

/* =========================================================
   SKILLS
========================================================= */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 70px;
}
.skill-card {
  padding: 30px 30px 34px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 50px rgba(34, 211, 238, 0.12);
}
.skill-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.skill-card__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient);
  color: #0A0E1A;
  flex-shrink: 0;
}
.skill-card__head h3 { font-size: 1.05rem; }
.skill-list { display: flex; flex-direction: column; gap: 16px; }
.skill { position: relative; }
.skill__name { font-size: 0.92rem; }
.skill__value { float: right; font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-cyan); }
.skill__track {
  clear: both;
  margin-top: 8px;
  height: 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
[data-theme="light"] .skill__track { background: rgba(18,23,42,0.08); }
.skill__bar {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  background: var(--gradient);
  transition: width 2.0s linear;
}

@media (max-width: 780px) {
  .skills__grid { grid-template-columns: 1fr; }
}

.tech__heading { font-size: 1.3rem; margin-bottom: 22px; }
.tech__badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.badge:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); transform: translateY(-3px); }
.badge--sm { font-size: 0.76rem; padding: 6px 12px; }

/* =========================================================
   PROJECT
========================================================= */
.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.project-card__media { position: relative; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }
.project-card__status {
  position: absolute;
  top: 18px; left: 18px;
  background: rgba(245, 185, 66, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 999px;
}
.project-card__body { padding: 38px; display: flex; flex-direction: column; gap: 18px; }
.project-card__body h3 { font-size: 1.3rem; line-height: 1.3; }
.project-card__abbr { color: var(--accent-cyan); }
.project-card__meta { display: flex; gap: 26px; flex-wrap: wrap; }
.project-card__meta div { font-size: 0.9rem; }
.project-card__meta span { display: block; font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); text-transform: uppercase; margin-bottom: 3px; }
.project-card__stack { display: flex; flex-wrap: wrap; gap: 8px; }
.project-card__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

@media (max-width: 860px) {
  .project-card { grid-template-columns: 1fr; }
  .project-card__media { min-height: 220px; }
}

/* =========================================================
   MODAL
========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 7, 14, 0.65);
  backdrop-filter: blur(6px);
  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.is-open { opacity: 1; visibility: visible; }
.modal {
  max-width: 640px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.3s ease;
}
.modal-overlay.is-open .modal { transform: scale(1) translateY(0); }
.modal h3 { font-size: 1.25rem; margin-bottom: 18px; padding-right: 30px; }
.modal h4 { font-size: 1rem; color: var(--accent-cyan); margin: 22px 0 10px; }
.modal p { color: var(--muted); }
.modal ul { display: flex; flex-direction: column; gap: 8px; }
.modal li { color: var(--muted); position: relative; padding-left: 18px; font-size: 0.95rem; }
.modal li::before { content: "→"; position: absolute; left: 0; color: var(--accent-violet); }
.modal .tech__badges { margin-top: 4px; }
.modal__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.modal__close:hover { border-color: var(--accent-violet); transform: rotate(90deg); }

/* =========================================================
   CONTACT
========================================================= */
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
}
.contact__info { padding: 38px; display: flex; flex-direction: column; gap: 30px; }
.contact__info h3 { font-size: 1.25rem; }
.contact__list { display: flex; flex-direction: column; gap: 20px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.contact__list span { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); text-transform: uppercase; margin-bottom: 3px; }
.contact__list a:hover { color: var(--accent-cyan); }

.socials { display: flex; gap: 12px; }
.social {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.social:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 26px rgba(34, 211, 238, 0.25);
}

.contact__form { padding: 38px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.field input, .field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.96rem;
  resize: vertical;
}
[data-theme="light"] .field input, [data-theme="light"] .field textarea {
  background: rgba(15,20,36,0.03);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-cyan); }
.form__status { font-size: 0.88rem; min-height: 1.2em; text-align: center; }
.form__status.ok { color: var(--accent-cyan); }
.form__status.err { color: #E27D60; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 60px auto 0;
  padding: 40px 24px 50px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  animation: logoGlow 3s ease-in-out infinite;
}
.footer__logo span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes logoGlow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 18px rgba(124, 92, 252, 0.45); }
}
.footer__nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__nav a { color: var(--muted); font-size: 0.9rem; }
.footer__nav a:hover { color: var(--text); }
.footer__copy { width: 100%; text-align: center; color: var(--muted); font-size: 0.85rem; order: 5; }

.back-to-top {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.back-to-top:hover { transform: translateY(-4px); border-color: var(--accent-cyan); }
