/* =========================================================
   Fikri Haikal Portfolio — "Horizon Glass"
   Warm coastal light + liquid glass. Not purple. Not cream-serif.
   ========================================================= */

:root {
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --bg-0: #071012;
  --bg-1: #0c1a1e;
  --bg-2: #12262c;
  --text: #eef6f7;
  --text-muted: #9bb0b6;
  --accent: #e8a84a;
  --accent-soft: rgba(232, 168, 74, 0.18);
  --teal: #3db8c5;
  --teal-soft: rgba(61, 184, 197, 0.16);
  --glass: rgba(210, 235, 240, 0.07);
  --glass-strong: rgba(210, 235, 240, 0.12);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-border-soft: rgba(255, 255, 255, 0.08);
  --rim: rgba(255, 255, 255, 0.35);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1180px;
}

[data-theme="light"] {
  --bg-0: #dceef2;
  --bg-1: #e8f4f6;
  --bg-2: #f4fafb;
  --text: #0f1c1f;
  --text-muted: #4a636a;
  --accent: #c47820;
  --accent-soft: rgba(196, 120, 32, 0.14);
  --teal: #1a8a96;
  --teal-soft: rgba(26, 138, 150, 0.12);
  --glass: rgba(255, 255, 255, 0.45);
  --glass-strong: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-border-soft: rgba(15, 28, 31, 0.08);
  --rim: rgba(255, 255, 255, 0.9);
  --shadow: 0 20px 50px rgba(15, 40, 50, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

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

body.rtl {
  direction: rtl;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Atmosphere ---------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(232, 168, 74, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(61, 184, 197, 0.16), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(61, 184, 197, 0.1), transparent 55%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 45%, var(--bg-0));
  transition: background 0.45s var(--ease);
}

[data-theme="light"] .atmosphere {
  background:
    radial-gradient(ellipse 80% 60% at 12% 8%, rgba(232, 168, 74, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 18%, rgba(61, 184, 197, 0.22), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, #cfe6ea);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-a {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  top: -8%;
  left: -6%;
  background: var(--accent);
  opacity: 0.22;
}

.orb-b {
  width: 36vw;
  height: 36vw;
  max-width: 440px;
  max-height: 440px;
  top: 18%;
  right: -8%;
  background: var(--teal);
  opacity: 0.2;
  animation-delay: -6s;
}

.orb-c {
  width: 28vw;
  height: 28vw;
  max-width: 360px;
  max-height: 360px;
  bottom: 8%;
  left: 35%;
  background: mix(var(--accent), var(--teal));
  background: #7ec8b8;
  opacity: 0.12;
  animation-delay: -11s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 50px, 0) scale(1.08); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

[data-theme="light"] .grain {
  opacity: 0.035;
  mix-blend-mode: multiply;
}

/* ---------- Liquid glass primitive ---------- */
.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), inset 0 1px 0 var(--rim);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.45),
    rgba(255, 255, 255, 0.08) 35%,
    transparent 55%,
    rgba(61, 184, 197, 0.25)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.06) 22%,
    transparent 48%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

[data-theme="light"] .glass::after {
  mix-blend-mode: soft-light;
  opacity: 0.85;
}

.glass > * {
  position: relative;
  z-index: 3;
}

@supports (backdrop-filter: url(#liquid-refract)) {
  .glass-liquid {
    backdrop-filter: blur(14px) url(#liquid-refract) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
  }
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  border-radius: 2px;
}

body.rtl .eyebrow::before {
  order: 2;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(100% - 1.25rem, var(--max));
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem 0.55rem 1.1rem;
  border-radius: 999px;
  transition: background 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.nav.scrolled {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

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

.nav-links {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-btn,
.lang-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--glass-border-soft);
  background: var(--glass);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}

.icon-btn:hover,
.lang-btn:hover {
  transform: translateY(-1px);
  border-color: var(--glass-border);
  background: var(--glass-strong);
}

.lang-wrap {
  position: relative;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  padding: 0.45rem;
  border-radius: var(--radius-md);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  display: none;
  z-index: 20;
}

body.rtl .lang-menu {
  right: auto;
  left: 0;
}

.lang-menu.open {
  display: grid;
  gap: 0.2rem;
  animation: pop 0.25s var(--ease);
}

@keyframes pop {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.lang-menu button {
  border: 0;
  background: transparent;
  text-align: start;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
}

.lang-menu button:hover,
.lang-menu button.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.menu-toggle {
  display: grid;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: calc(var(--nav-h) + 36px) 1.25rem 2rem;
  background: color-mix(in srgb, var(--bg-0) 82%, transparent);
  backdrop-filter: blur(18px);
  display: none;
}

.mobile-menu.open {
  display: block;
  animation: fade 0.25s var(--ease);
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mobile-menu nav {
  display: grid;
  gap: 0.4rem;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--glass-border-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #f0c27a);
  color: #1a1208;
  box-shadow: 0 12px 30px rgba(232, 168, 74, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(232, 168, 74, 0.38);
}

.btn-ghost {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--glass-strong);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 2.5rem) 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero-copy {
  max-width: 36rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: 1.1rem;
}

.hero-brand em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent) 20%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.9rem;
  color: var(--text);
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 1.6rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--glass);
  border: 1px solid var(--glass-border-soft);
  color: var(--text-muted);
}

.chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
}

.photo-frame {
  position: relative;
  border-radius: 36px;
  padding: 0.7rem;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease);
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 28px;
}

.photo-glow {
  position: absolute;
  inset: 12% -8% -8% 12%;
  background: radial-gradient(circle at 30% 20%, rgba(232, 168, 74, 0.45), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(61, 184, 197, 0.35), transparent 55%);
  filter: blur(28px);
  z-index: -1;
  opacity: 0.85;
}

.float-tag {
  position: absolute;
  padding: 0.7rem 0.95rem;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
  animation: floaty 5.5s ease-in-out infinite;
}

.float-tag.a {
  top: 12%;
  left: -8%;
  animation-delay: 0s;
}

.float-tag.b {
  bottom: 18%;
  right: -6%;
  animation-delay: -2s;
}

.float-tag.c {
  bottom: 6%;
  left: 4%;
  animation-delay: -3.5s;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

body.rtl .float-tag.a {
  left: auto;
  right: -8%;
}

body.rtl .float-tag.b {
  right: auto;
  left: -6%;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 880px) {
  .about-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

.about-card {
  padding: clamp(1.4rem, 3vw, 2.1rem);
}

.about-card p + p {
  margin-top: 1rem;
}

.about-card p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.stat-grid {
  display: grid;
  gap: 0.85rem;
}

.stat {
  padding: 1.15rem 1.25rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
  background: linear-gradient(120deg, var(--text), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ---------- Experience ---------- */
.timeline {
  display: grid;
  gap: 1rem;
}

.job {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  transition: transform 0.3s var(--ease);
}

.job:hover {
  transform: translateY(-3px);
}

.job-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.job h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.job .company {
  color: var(--accent);
  font-weight: 650;
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.job .when {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.job ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.85rem 0 1rem;
}

.job li {
  position: relative;
  padding-inline-start: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.job li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  border: 1px solid color-mix(in srgb, var(--teal) 25%, transparent);
}

/* ---------- Products / Projects ---------- */
.card-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 760px) {
  .card-grid.two { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three { grid-template-columns: repeat(3, 1fr); }
}

.project-card,
.product-card {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  transition: transform 0.3s var(--ease);
}

.project-card:hover,
.product-card:hover {
  transform: translateY(-4px);
}

.product-card .mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-soft), var(--teal-soft));
  border: 1px solid var(--glass-border-soft);
  color: var(--accent);
}

.product-card h3,
.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.product-card p,
.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.card-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-link:hover {
  gap: 0.55rem;
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-block {
  padding: 1.25rem;
}

.skill-block h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.skill-block .stack-row {
  gap: 0.45rem;
}

.skill-block .pill {
  background: var(--glass);
  color: var(--text-muted);
  border-color: var(--glass-border-soft);
}

/* ---------- Certs ---------- */
.certs {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .certs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cert {
  padding: 1rem 1.15rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.cert .dot {
  width: 10px;
  height: 10px;
  margin-top: 0.4rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--teal));
}

.cert h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.cert p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-info {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.contact-list {
  display: grid;
  gap: 0.85rem;
}

.contact-list a,
.contact-list span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--glass-border-soft);
  transition: border-color 0.2s, background 0.2s;
}

.contact-list a:hover {
  border-color: var(--glass-border);
  background: var(--glass-strong);
}

.contact-list small {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-form {
  padding: clamp(1.4rem, 3vw, 2rem);
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--glass-border-soft);
  background: color-mix(in srgb, var(--bg-0) 35%, transparent);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

[data-theme="light"] input,
[data-theme="light"] textarea {
  background: rgba(255, 255, 255, 0.55);
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  min-height: 1.4rem;
  font-size: 0.9rem;
  color: var(--teal);
}

.form-status.error {
  color: #e07070;
}

/* ---------- Footer ---------- */
.footer {
  padding: 2rem 0 3rem;
}

.footer-inner {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-radius: 999px;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.socials {
  display: flex;
  gap: 0.45rem;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1px solid var(--glass-border-soft);
  transition: transform 0.2s, border-color 0.2s;
}

.socials a:hover {
  transform: translateY(-2px);
  border-color: var(--glass-border);
}

.socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* ---------- Cursor spotlight (desktop) ---------- */
.spotlight {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 50;
  background: radial-gradient(circle, rgba(61, 184, 197, 0.12), transparent 65%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

[data-theme="light"] .spotlight {
  mix-blend-mode: multiply;
  background: radial-gradient(circle, rgba(232, 168, 74, 0.12), transparent 65%);
}

body.has-pointer .spotlight {
  opacity: 1;
}

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