@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Syne:wght@400;500;600&display=swap");

/* ══════════════════════════════════════
   TOKENS
══════════════════════════════════════ */
:root {
  --bg: #f8fafc;
  --bg2: #f1f5f9;
  --bg3: #e2e8f0;
  --surface: #e8eef7;
  --border: rgba(15, 23, 42, 0.1);
  --border2: rgba(15, 23, 42, 0.15);
  --gold: #3b82f6;
  --gold2: #2563eb;
  --gold3: #1e40af;
  --white: #0f172a;
  --muted: #475569;
  --muted2: #64748b;
  --fd: "Cormorant Garamond", serif;
  --fb: "Syne", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 0.3s var(--ease);
}

/* ══════════════════════════════════════
   RESET & BASE
══════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}
body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}

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

/* ══════════════════════════════════════
   LAYOUT
══════════════════════════════════════ */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2.5rem;
  position: relative;
  z-index: 1;
}
.section {
  padding: 7rem 0;
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all 0.4s var(--ease);
  width: 100%;
  background: rgba(248, 250, 252, 0.95);
}
nav.solid {
  background: rgba(248, 250, 252, 0.2);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--fd);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.brand-gem {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  border-radius: 2px;
  transform: rotate(45deg);
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #475569;
  transition: color var(--t);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold2);
}
.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: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: all 0.3s;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-family: var(--fd);
  font-size: 2.5rem;
  color: var(--white);
  font-weight: 300;
}
.mobile-menu a:hover {
  color: var(--gold2);
}
.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
}

/* ══════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════ */
em {
  font-family: var(--fd);
  font-style: italic;
  color: var(--gold2);
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold2);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.sec-title {
  font-family: var(--fd);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.5rem;
}

/* ══════════════════════════════════════
   GOLD LINE DIVIDER
══════════════════════════════════════ */
.gold-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 1.5rem 0;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--fb);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border-radius: 3px;
}
.btn-gold {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold3));
  color: var(--bg);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.25);
}
.btn-outline {
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--gold2);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold2);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: var(--fd);
  font-size: 1.1rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b95a8;
  transition: color var(--t);
}
.footer-links a:hover {
  color: var(--gold);
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--muted2);
}

/* ══════════════════════════════════════
   REVEAL ANIMATION
══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   SKILL BAR
══════════════════════════════════════ */
.skill-track {
  height: 1px;
  background: var(--border2);
  margin-top: 0.5rem;
}
.skill-bar {
  height: 100%;
  background: linear-gradient(to right, var(--gold), var(--gold2));
  width: 0;
  transition: width 1.4s var(--ease);
}
.skill-meta {
  display: flex;
  justify-content: space-between;
}
.skill-name {
  font-size: 0.9rem;
  color: rgba(245, 242, 236, 0.85);
}
.skill-pct {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
}

/* ══════════════════════════════════════
   FORM
══════════════════════════════════════ */
.fg {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fg label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8b8d0;
  font-weight: 600;
}
.fg input,
.fg textarea {
  padding: 0.875rem 1.125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--fb);
  font-size: 0.9rem;
  border-radius: 2px;
  width: 100%;
  transition: border-color 0.25s;
}
.fg input:focus,
.fg textarea:focus {
  outline: none;
  border-color: var(--gold3);
}
.fg input::placeholder,
.fg textarea::placeholder {
  color: var(--muted2);
}
.fg textarea {
  resize: vertical;
  min-height: 120px;
}

/* ══════════════════════════════════════
   PAGE TRANSITION
══════════════════════════════════════ */
.page-enter {
  animation: pageIn 0.6s var(--ease) forwards;
}
@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .section {
    padding: 5rem 0;
  }
  .wrap {
    padding: 0 1.5rem;
  }
}
