/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #020617;
  color: #f8fafc;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

:root {
  --bg: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
}

.font-serif { font-family: 'Playfair Display', serif; }
.font-egyptian { font-family: 'Cinzel', serif; }
.text-accent { color: var(--emerald-400); }

::selection { background: rgba(16,185,129,0.3); color: #a7f3d0; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--emerald-500); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--emerald-600); }

/* Mesh gradient background (Hero) */
.mesh-bg {
  background:
    radial-gradient(at 0% 0%, hsla(160, 84%, 5%, 1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(150, 100%, 10%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(140, 100%, 5%, 1) 0, transparent 50%);
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
}

/* Noise texture */
.hero-noise {
  position: absolute; inset: 0;
  opacity: 0.2; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
}

/* ===== Layout helpers ===== */
.section-inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 10; }
.section-head { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.section-subtitle { color: var(--slate-400); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--emerald-500); margin-bottom: .75rem; }
.title-rule { height: 4px; width: 5rem; background: var(--emerald-500); margin: 0 auto; border-radius: 999px; }

@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }
}

/* Buttons */
.btn {
  padding: .9rem 2rem;
  border-radius: 999px;
  font-weight: 500;
  transition: transform .2s ease, background-color .2s ease;
  display: inline-block;
}
.btn:hover { transform: scale(1.05); }
.btn-primary { background: var(--emerald-600); color: #fff; box-shadow: 0 10px 30px -10px rgba(16,185,129,.4); }
.btn-primary:hover { background: var(--emerald-700); }
.btn-secondary { background: var(--slate-800); color: #fff; border: 1px solid var(--slate-700); }
.btn-secondary:hover { background: var(--slate-700); }

/* Toast notification */
.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.85);
  z-index: 200; background: var(--emerald-600); color: #fff;
  padding: 1rem 2rem; border-radius: .75rem;
  box-shadow: 0 20px 40px -10px rgba(5,150,105,.4);
  display: flex; align-items: center; gap: .75rem; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast--contact { background: #7cff7c; color: #0a1a1a; }

/* Reveal on scroll */
.reveal { opacity: 0; transition: opacity .8s ease, transform .8s ease; transition-delay: var(--delay, 0s); }
.reveal-up { transform: translateY(30px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal.is-visible { opacity: 1; transform: translate(0, 0); }

/* Icon sizing */
.icon svg { display: block; }
