/* ==========================================================
   AHAD BHUYAN COLOR · style.css
   Change the colors and fonts here, and the whole site follows.
   ========================================================== */
:root {
  --bg: #0b0b0c;          /* page background (near black) */
  --bg-raised: #141416;   /* video frames while the player loads */
  --text: #ece7df;        /* main text (warm off-white) */
  --muted: #9a958d;       /* secondary text */
  --line: #2a2a2d;        /* thin dividers */
  --accent: #e8a24a;      /* buttons and highlights (warm amber) */
  --accent-ink: #1a1206;  /* text on top of the amber buttons */
  --teal: #2f6f73;        /* soft background glow */

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --gutter: 20px;         /* space at the left and right edges */
  --max: 1080px;          /* widest the content gets on big screens */
}


/* ---------- Basics (phone first) ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Subtle film grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }

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

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

h2 { font-size: clamp(2.2rem, 9vw, 3.5rem); }

p { margin: 0; }

em {
  font-style: italic;
  color: var(--accent);
}

/* Centres the content and keeps it off the screen edges (and the iPhone notch) */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* Small uppercase label above headings */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}


/* ---------- Buttons and links ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;              /* full width on phones = easy to tap */
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:hover { background: #f0b25f; }
.btn:active { transform: scale(0.98); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
}

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


/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: rgba(11, 11, 12, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.wordmark {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}

.header-link:hover { color: var(--accent); }

/* Lets the sticky header not cover headings when jumping to a section */
section[id] { scroll-margin-top: 64px; }


/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 82vh;
  min-height: 82svh;
  padding: 72px 0 80px;
  overflow: hidden;
  /* teal + amber glow: a nod to the classic grade */
  background:
    radial-gradient(60% 45% at 10% 20%, rgba(47, 111, 115, 0.28), transparent 70%),
    radial-gradient(55% 40% at 95% 85%, rgba(232, 162, 74, 0.16), transparent 70%),
    var(--bg);
}

/* Black "letterbox" bars at the top and bottom, like a widescreen film */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 22px;
  background: #000;
}
.hero::before { top: 0; }
.hero::after { bottom: 0; }

.hero-inner { width: 100%; }

.hero h1 {
  font-size: clamp(2.9rem, 13vw, 6rem);
  margin-bottom: 20px;
}

.lede {
  max-width: 34em;
  margin-bottom: 32px;
  font-size: 18px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* Gentle fade-up when the page loads */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.hero-inner > * { animation: rise 0.8s ease both; }
.hero-inner > :nth-child(2) { animation-delay: 0.08s; }
.hero-inner > :nth-child(3) { animation-delay: 0.16s; }
.hero-inner > :nth-child(4) { animation-delay: 0.24s; }
.hero-inner > :nth-child(5) { animation-delay: 0.32s; }


/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.section-intro {
  margin-top: 16px;
  color: var(--muted);
}


/* ---------- My work (Vimeo videos) ---------- */
.videos {
  display: grid;
  gap: 48px;
  margin-top: 40px;
}

.video-card { margin: 0; }

/* A 4:3 frame (the shape of your videos) at any screen width. The Vimeo player fills it.
   If you add a widescreen video later, change 4 / 3 to 16 / 9. */
.video-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-raised);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
}

/* The video title in the caption, a bit brighter than the rest */
figcaption strong {
  font-weight: 500;
  color: var(--text);
}


/* ---------- About ---------- */
.about {
  display: grid;
  gap: 24px;
}

.about-body p { font-size: 18px; }

.services {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.services li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.services li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45em;
  width: 14px;
  height: 1.5px;
  background: var(--accent);
}


/* ---------- Contact ---------- */
.contact {
  text-align: center;
  background: radial-gradient(70% 60% at 50% 100%, rgba(232, 162, 74, 0.12), transparent 70%);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact .eyebrow { justify-content: center; }

.offer {
  max-width: 30em;
  margin: 20px 0 32px;
  font-size: 18px;
}

.email-line {
  margin-top: 24px;
  font-size: 15px;
  color: var(--muted);
}

.email-line a {
  display: inline-block;
  padding: 8px 0;
  color: var(--text);
  text-underline-offset: 4px;
}


/* ---------- Footer ---------- */
.site-footer {
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.site-footer a:hover { color: var(--accent); }


/* ==========================================================
   BIGGER SCREENS (tablets and computers)
   Everything above is for phones. This only adjusts the layout.
   ========================================================== */
@media (min-width: 768px) {
  :root { --gutter: 40px; }

  .btn { width: auto; }

  .hero { padding: 96px 0 104px; }
  .hero::before,
  .hero::after { height: 36px; }

  .hero-actions {
    flex-direction: row;
    gap: 28px;
  }

  .hero-note { text-align: left; }

  .section { padding: 120px 0; }

  /* Keeps each video short enough to fit on a laptop screen with its controls */
  .video-card { max-width: 820px; }

  .about {
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
  }
}


/* Turns off animation for people who've asked their device for less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
