/* ═══════════════════════════════════════════════════════════
   MEDIA AFFRONT — STYLES
   Dark, cinematic, premium agency aesthetic
   ═══════════════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ─── */
:root {
  --color-bg:        #0a0a0b;
  --color-bg-raised: #111113;
  --color-bg-card:   #141416;
  --color-surface:   #1a1a1e;
  --color-border:    rgba(255, 255, 255, 0.07);
  --color-border-lt: rgba(255, 255, 255, 0.04);
  --color-text:      #e8e6e1;
  --color-text-dim:  #8a877f;
  --color-text-mute: #5a584f;
  --color-accent:    #c8a04a;
  --color-accent-lt: rgba(200, 160, 74, 0.12);
  --color-white:     #ffffff;
  --font-display:    'Instrument Serif', Georgia, serif;
  --font-body:       'Outfit', -apple-system, sans-serif;
  --nav-height:      72px;
  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:     cubic-bezier(0.65, 0, 0.35, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; border: none; outline: none; background: none; }

/* ─── UTILITIES ─── */
.section__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.nav--scrolled {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 var(--color-border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
}
.nav__wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--color-text);
}
.nav__links {
  display: flex;
  gap: 36px;
}
.nav__link {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  position: relative;
  transition: color 0.3s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s var(--ease-out);
}
.nav__link:hover {
  color: var(--color-text);
}
.nav__link:hover::after {
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: -60px;
  background: url('hero.png') center center / cover no-repeat;
  will-change: transform;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 10, 11, 0.55) 0%,
      rgba(10, 10, 11, 0.35) 40%,
      rgba(10, 10, 11, 0.60) 75%,
      rgba(10, 10, 11, 0.95) 100%
    );
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
  padding-top: var(--nav-height);
}
.hero__tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
}
.hero__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.08;
  color: var(--color-white);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  color: #EAF2FF;
  text-shadow: 0 2px 8px rgba(0,0,0,0.65);
  max-width: 580px;
  margin: 0 auto 40px;
}
.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);   }
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
}
.btn--primary:hover {
  background: #d4ac54;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200, 160, 74, 0.25);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text-dim);
  border: 1px solid var(--color-border);
}
.btn--ghost:hover {
  color: var(--color-text);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════ */
.section__header {
  text-align: center;
  margin-bottom: 64px;
}
.section__tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════════════════
   WORK / CLIENT SHOWCASE
   ═══════════════════════════════════════════════════════════ */
.work {
  padding: 120px 0 140px;
  background: var(--color-bg);
  position: relative;
}
.work::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ─── PROJECT CARD ─── */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  border-color: rgba(255,255,255,0.10);
}

/* Browser chrome mock */
.card__preview {
  position: relative;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.card__browser {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border-lt);
}
.card__browser-dots {
  display: flex;
  gap: 5px;
}
.card__browser-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-text-mute);
  opacity: 0.5;
}
.card__browser-url {
  font-size: 0.65rem;
  color: var(--color-text-mute);
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.03);
  padding: 3px 10px;
  border-radius: 3px;
  flex: 1;
  text-align: center;
}

/* Thumbnail with real screenshot */
.card__thumb {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.card__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease-out);
}
.card:hover .card__thumb-img {
  transform: scale(1.03);
}

/* Card body */
.card__body {
  padding: 24px;
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 10px;
}
.card__desc {
  font-size: 0.88rem;
  color: var(--color-text-dim);
  line-height: 1.6;
  margin-bottom: 18px;
}
.card__link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s var(--ease-out), color 0.3s ease;
}
.card__link:hover {
  gap: 10px;
  color: #d4ac54;
}

/* ═══════════════════════════════════════════════════════════
   CONNECT FORM
   ═══════════════════════════════════════════════════════════ */
.connect {
  padding: 120px 0 140px;
  background: var(--color-bg-raised);
  position: relative;
}
.connect::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}
.connect__wrapper {
  max-width: 680px;
  margin: 0 auto;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form__group--full {
  grid-column: 1 / -1;
}
.form__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 8px;
}
.form__input {
  width: 100%;
  padding: 14px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 300;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form__input::placeholder {
  color: var(--color-text-mute);
}
.form__input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-lt);
}
.form__textarea {
  resize: vertical;
  min-height: 120px;
}
.btn--submit {
  width: 100%;
  padding: 16px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__wordmark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-text);
}
.footer__copy {
  font-size: 0.75rem;
  color: var(--color-text-mute);
  margin-top: 4px;
}
.footer__nav {
  display: flex;
  gap: 28px;
}
.footer__link {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  transition: color 0.3s ease;
}
.footer__link:hover {
  color: var(--color-text);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 960px) {
  .work__grid {
    grid-template-columns: 1fr 1fr;
  }
  .card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    justify-self: center;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --nav-height: 60px;
  }
  .nav__wordmark {
    font-size: 1.05rem;
  }
  .nav__links {
    gap: 20px;
  }
  .nav__link {
    font-size: 0.78rem;
  }
  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 280px;
  }
  .work {
    padding: 80px 0 100px;
  }
  .work__grid {
    grid-template-columns: 1fr;
  }
  .card:last-child {
    max-width: none;
  }
  .connect {
    padding: 80px 0 100px;
  }
  .form {
    grid-template-columns: 1fr;
  }
  .section__header {
    margin-bottom: 40px;
  }
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
