/* ==========================================
   CONSTANTINE PORTFOLIO — INDEX.CSS
   Cinematic dark theme, premium design
   ========================================== */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --bg: #080810;
  --bg-2: #0e0e1a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(200, 164, 90, 0.35);
  --gold: #c8a45a;
  --gold-light: #e2c07e;
  --purple: #7b5ea7;
  --purple-light: #a07dd4;
  --text: #f0f0f8;
  --text-muted: #8888aa;
  --text-faint: #44445a;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ── RESET & BASE ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ── CURSOR GLOW ── */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(200, 164, 90, 0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 99px;
}

/* ── CONTAINER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::before {
  opacity: 1;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold), #a07840);
  color: #0a0a0f;
  box-shadow: 0 0 30px rgba(200, 164, 90, 0.25), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(200, 164, 90, 0.4), 0 8px 30px rgba(0, 0, 0, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn--outline:hover {
  background: rgba(200, 164, 90, 0.1);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1.5px solid var(--border);
  backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn--small {
  padding: 10px 22px;
  font-size: 0.875rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn__play-icon {
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn__play-icon svg {
  width: 13px;
  height: 13px;
}

.btn__arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-right: auto;
}

.nav__logo-mark {
  color: var(--gold);
  font-size: 1.5rem;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  z-index: 999;
  padding: 80px 40px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

/* ── SECTION COMMONS ── */
.section {
  padding: 120px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 40%, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__sub {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(123, 94, 167, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(200, 164, 90, 0.08) 0%, transparent 50%),
    var(--bg);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, transparent 30%, var(--bg) 80%);
}

.hero__film-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  animation: grainShift 0.5s steps(1) infinite;
}

@keyframes grainShift {

  0%,
  100% {
    background-position: 0 0;
  }

  20% {
    background-position: -30px 20px;
  }

  40% {
    background-position: 20px -30px;
  }

  60% {
    background-position: -20px -20px;
  }

  80% {
    background-position: 30px 30px;
  }
}

/* Film strip decoration */
.film-strip {
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0.3;
}

.film-strip__frame {
  width: 80px;
  height: 56px;
  border-radius: 2px;
  overflow: hidden;
  border: 2px solid rgba(200, 164, 90, 0.3);
  position: relative;
}

.film-strip__frame::before,
.film-strip__frame::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--bg);
  border: 1px solid rgba(200, 164, 90, 0.5);
  top: 50%;
  transform: translateY(-50%);
}

.film-strip__frame::before {
  left: 3px;
}

.film-strip__frame::after {
  right: 3px;
}

.film-strip__frame {
  background: linear-gradient(135deg,
      hsl(calc(var(--img) * 40deg), 50%, 15%),
      hsl(calc(var(--img) * 40deg + 30deg), 30%, 8%));
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--gold), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero__scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(0.8);
    transform-origin: top;
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: relative;
  width: 90vw;
  max-width: 900px;
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: var(--transition);
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.modal__close svg {
  width: 20px;
  height: 20px;
}

.modal__video-wrap {
  aspect-ratio: 16/9;
  background: #000;
  width: 100%;
}

.modal__video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: radial-gradient(circle at center, rgba(123, 94, 167, 0.15) 0%, #0a0a0f 80%);
  text-align: center;
}

.modal__play-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(200, 164, 90, 0.12);
  border: 1.5px solid rgba(200, 164, 90, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 24px;
  transition: var(--transition);
}

.modal:hover .modal__play-ring {
  background: rgba(200, 164, 90, 0.2);
  transform: scale(1.05);
}

.modal__play-ring svg {
  width: 32px;
  height: 32px;
  transform: translateX(3px);
}

.modal__placeholder p {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.modal__placeholder span {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.6;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(200, 164, 90, 0.3);
  }

  50% {
    box-shadow: 0 0 0 20px rgba(200, 164, 90, 0);
  }
}

/* ── STATS ── */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 24px;
}

.stats__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  padding: 20px 60px;
  flex: 1;
  min-width: 160px;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat__plus {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  margin-top: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat__divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── PORTFOLIO ── */
.work {
  background: var(--bg);
}

.filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.filter-btn--active {
  background: linear-gradient(135deg, var(--gold), #a07840);
  border-color: transparent;
  color: #0a0a0f;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  border-color: rgba(200, 164, 90, 0.3);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(200, 164, 90, 0.1);
  transform: translateY(-6px);
}

.project-card__thumb {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}

/* Cinematic thumbnail color grades for each card */
.project-card__thumb--1 {
  background: linear-gradient(135deg, #1a0a2e, #0d1a3a, #0a0a0f);
}

.project-card__thumb--2 {
  background: linear-gradient(135deg, #2a1a0a, #1a0d0d, #0a0a0f);
}

.project-card__thumb--3 {
  background: linear-gradient(135deg, #0a1a1a, #0a2a1a, #0a0a0f);
}

.project-card__thumb--4 {
  background: linear-gradient(135deg, #1a0a1a, #1a1a2e, #0a0a0f);
}

.project-card__thumb--5 {
  background: linear-gradient(135deg, #2a1a00, #1a0a2a, #0a0a0f);
}

.project-card__thumb--6 {
  background: linear-gradient(135deg, #0a0a1a, #1a0a0a, #0a0a0f);
}

/* Abstract cinematic visuals inside each thumbnail */
.project-card__thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  animation: thumbShimmer 4s ease-in-out infinite;
}

@keyframes thumbShimmer {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.project-card__thumb--1::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 94, 167, 0.4), transparent);
  top: 20%;
  left: 20%;
}

.project-card__thumb--2::after {
  content: '';
  position: absolute;
  width: 80%;
  height: 3px;
  background: rgba(200, 164, 90, 0.5);
  top: 50%;
  left: 10%;
  transform: skewX(-20deg);
  box-shadow: 0 20px 0 rgba(200, 164, 90, 0.2);
}

.project-card__thumb--3::after {
  content: '';
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(100, 220, 150, 0.3);
  border-radius: 50%;
  box-shadow: inset 0 0 40px rgba(100, 220, 100, 0.1);
}

.project-card__thumb--4::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(200, 164, 90, 0.2), transparent);
  bottom: 10%;
  right: 10%;
}

.project-card__thumb--5::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(200, 164, 90, 0.8), transparent);
  box-shadow: 0 60px 0 rgba(200, 164, 90, 0.1);
}

.project-card__thumb--6::after {
  content: '';
  position: absolute;
  width: 70%;
  height: 70%;
  border: 1px solid rgba(255, 50, 50, 0.2);
  top: 15%;
  left: 15%;
  transform: rotate(45deg);
}

.project-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(200, 164, 90, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0f;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
  box-shadow: 0 0 30px rgba(200, 164, 90, 0.4);
}

.project-card__play svg {
  width: 22px;
  height: 22px;
  transform: translateX(2px);
}

.project-card:hover .project-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  padding: 14px;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__category-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  background: rgba(200, 164, 90, 0.9);
  color: #0a0a0f;
  border-radius: 99px;
}

.project-card__body {
  padding: 20px;
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.project-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-card__tags span {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
}

/* ── SERVICES ── */
.services {
  background: var(--bg-2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.service-card:hover {
  border-color: rgba(200, 164, 90, 0.2);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(200, 164, 90, 0.1), rgba(123, 94, 167, 0.1));
  border: 1px solid rgba(200, 164, 90, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
  transition: var(--transition);
}

.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, rgba(200, 164, 90, 0.2), rgba(123, 94, 167, 0.2));
  box-shadow: 0 0 20px rgba(200, 164, 90, 0.1);
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── ABOUT ── */
.about {
  background: var(--bg);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.about__photo-frame {
  position: relative;
  display: inline-block;
}

.about__photo-bg {
  width: 340px;
  height: 420px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1a0a2e 0%, #0a1a2e 50%, #0e0e1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Ensure the profile image fills its container cleanly */
.about__photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__photo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(123, 94, 167, 0.2), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(200, 164, 90, 0.1), transparent 50%);
}

.about__initials {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.about__frame-accent {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100px;
  height: 100px;
  border-top: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) 0 0;
  opacity: 0.6;
}

.about__frame-accent::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: -12px;
  top: auto;
  right: auto;
  width: 100px;
  height: 100px;
  border-bottom: 3px solid var(--purple);
  border-left: 3px solid var(--purple);
  border-radius: 0 0 0 var(--radius-md);
  opacity: 0.6;
  transform: translate(-100px, 100px);
}

.about__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--bg-2);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.about__badge-icon {
  font-size: 1.5rem;
}

.about__badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.about__badge small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.about__bio {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.about__bio strong {
  color: var(--gold);
}

/* Skill bars */
.about__skills {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-bar__label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.skill-bar__track {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
}

.skill-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  border-radius: 99px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Software tags */
.about__software-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.about__software-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about__software-tags span {
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}

.about__software-tags span:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── TESTIMONIALS ── */
.testimonials {
  background: var(--bg-2);
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  min-width: 360px;
  max-width: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  scroll-snap-align: start;
  transition: var(--transition);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-card:hover {
  border-color: rgba(200, 164, 90, 0.25);
  transform: translateY(-4px);
}

.testimonial-card__stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-card__author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

.testimonial-card__author small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

/* ── CONTACT ── */
.contact {
  background: var(--bg);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.contact-link:hover {
  border-color: rgba(200, 164, 90, 0.3);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.contact-link__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(200, 164, 90, 0.15), rgba(123, 94, 167, 0.15));
  border: 1px solid rgba(200, 164, 90, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-link__icon svg {
  width: 20px;
  height: 20px;
}

.contact-link strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  font-family: var(--font-heading);
}

.contact-link span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  resize: vertical;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 164, 90, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-2);
  color: var(--text);
}

.form-success {
  display: none;
  padding: 14px 18px;
  background: rgba(100, 200, 100, 0.08);
  border: 1px solid rgba(100, 200, 100, 0.25);
  border-radius: var(--radius-sm);
  color: #6acc6a;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-success.visible {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--gold);
}

/* ── SCROLL ANIMATIONS ── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__visual {
    display: flex;
    justify-content: center;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .film-strip {
    display: none;
  }
}

@media (max-width: 768px) {

  .nav__links,
  .nav .btn--outline {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .section {
    padding: 80px 0;
  }

  .stat__divider {
    display: none;
  }

  .stats__inner {
    flex-direction: column;
    gap: 20px;
  }

  .stat {
    padding: 16px 30px;
  }

  .testimonial-card {
    min-width: calc(100vw - 60px);
    width: calc(100vw - 60px);
    padding: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .testimonials-track {
    scroll-padding: 0 30px;
    padding: 0 30px 20px;
    margin: 0 -30px;
  }

  .testimonial-card__text {
    font-size: 0.82rem;
    margin-bottom: 12px;
    line-height: 1.6;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .about__photo-bg {
    width: 280px;
    height: 340px;
  }
}

@media (max-width: 480px) {
  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__ctas .btn--ghost {
    width: auto;
  }
}

/* ── FEATURED CARD (Mel / Real Client) ── */
.featured-card {
  border-color: rgba(200, 164, 90, 0.35) !important;
  box-shadow: 0 0 0 1px rgba(200, 164, 90, 0.15), 0 8px 40px rgba(200, 164, 90, 0.08);
}

.project-card__client-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--gold), #a07840);
  color: #0a0a0f;
  border-radius: 99px;
  box-shadow: 0 0 14px rgba(200, 164, 90, 0.35);
}

/* ── SOFTWARE MAIN BADGE ── */
.software-main {
  background: linear-gradient(135deg, rgba(200, 164, 90, 0.15), rgba(123, 94, 167, 0.15)) !important;
  border-color: rgba(200, 164, 90, 0.4) !important;
  color: var(--gold) !important;
  font-weight: 700 !important;
}

/* ── VIDEO THUMBNAIL CARDS ── */
.project-card__thumb--video {
  position: relative;
  overflow: hidden;
  background: #000;
}

.card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.project-card:hover .card-video {
  opacity: 1;
}

/* Keep overlay elements above the video */
.project-card__thumb--video .project-card__play,
.project-card__thumb--video .project-card__overlay,
.project-card__thumb--video .project-card__client-badge {
  z-index: 3;
}

/* ── PROFILE PHOTO ── */
.about__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ══════════════════════════════════════
   BENTO VIDEO GRID
══════════════════════════════════════ */
.bento-grid {
  display: grid;
  gap: 14px;
  /* Mobile first: single column */
  grid-template-columns: 1fr;
  grid-template-areas:
    "featured"
    "c1"
    "c2"
    "c3";
  margin-top: 2.5rem;
}

/* Tablet: 2-column equal */
@media (min-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "featured featured"
      "c1 c2"
      "c3 c3";
  }
}

/* Desktop: featured left, 3 stacked right */
@media (min-width: 900px) {
  .bento-grid {
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "featured c1"
      "featured c2"
      "featured c3";
    align-items: stretch;
  }
}

.bento-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: #000;
  border: 1px solid var(--border);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s ease;
}

.bento-card--featured {
  grid-area: featured;
  min-height: 340px;
}

.bento-card--sm {
  min-height: 180px;
}

.bento-card:nth-of-type(2) {
  grid-area: c1;
}

.bento-card:nth-of-type(3) {
  grid-area: c2;
}

.bento-card:nth-of-type(4) {
  grid-area: c3;
}

@media (min-width: 900px) {
  .bento-card--featured {
    min-height: 500px;
  }

  .bento-card--sm {
    min-height: 155px;
  }
}

.bento-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(200, 164, 90, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(200, 164, 90, 0.15);
}

.bento-card--featured:hover {
  border-color: rgba(200, 164, 90, 0.5);
  box-shadow: 0 0 0 2px rgba(200, 164, 90, 0.2), 0 20px 60px rgba(200, 164, 90, 0.1);
}

/* Video thumbnail — shows first frame */
.bento-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark gradient overlay always present */
.bento-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(5, 5, 10, 0.92) 0%,
      rgba(5, 5, 10, 0.4) 45%,
      rgba(5, 5, 10, 0.08) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: background 0.35s ease;
  z-index: 2;
}

.bento-card:hover .bento-card__overlay {
  background: linear-gradient(to top,
      rgba(5, 5, 10, 0.97) 0%,
      rgba(5, 5, 10, 0.55) 50%,
      rgba(5, 5, 10, 0.15) 100%);
}

/* Floating play button – centered */
.bento-card__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(200, 164, 90, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0f;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 0 30px rgba(200, 164, 90, 0.5);
  z-index: 3;
}

.bento-card--sm .bento-card__play-btn {
  width: 44px;
  height: 44px;
}

.bento-card__play-btn svg {
  width: 24px;
  height: 24px;
  transform: translateX(2px);
}

.bento-card--sm .bento-card__play-btn svg {
  width: 18px;
  height: 18px;
}

.bento-card:hover .bento-card__play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Badge – top left for featured */
.bento-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--gold), #9a6f30);
  color: #0a0a0f;
  border-radius: 99px;
  box-shadow: 0 0 16px rgba(200, 164, 90, 0.4);
}

/* Card info – bottom */
.bento-card__info {
  z-index: 3;
  position: relative;
}

.bento-card__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
  opacity: 0.9;
}

.bento-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 4px;
}

.bento-card--sm .bento-card__title {
  font-size: 0.95rem;
}

.bento-card__sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ══════════════════════════════════════
   VIDEO PLAYER MODAL
══════════════════════════════════════ */
.vid-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}

.vid-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.vid-modal {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #0a0a0f;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200, 164, 90, 0.2);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.vid-modal-overlay.open .vid-modal {
  transform: scale(1);
}

.vid-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.vid-modal__close:hover {
  background: rgba(200, 164, 90, 0.25);
  transform: scale(1.1);
}

.vid-modal__close svg {
  width: 18px;
  height: 18px;
}

.vid-modal__player {
  width: 100%;
  display: block;
  max-height: 70vh;
  background: #000;
}

.vid-modal__info {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vid-modal__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 3px 10px;
  border: 1px solid rgba(200, 164, 90, 0.35);
  border-radius: 99px;
  white-space: nowrap;
}

.vid-modal__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* ══════════════════════════════════════
   AVAILABILITY PILL (About section)
══════════════════════════════════════ */
.about__avail-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 18px;
  background: rgba(80, 200, 80, 0.07);
  border: 1px solid rgba(80, 200, 80, 0.25);
  border-radius: 99px;
  font-size: 0.8rem;
  color: rgba(180, 255, 180, 0.85);
  font-weight: 500;
}

.about__avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6acc6a;
  box-shadow: 0 0 8px rgba(100, 200, 100, 0.8);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 6px rgba(100, 200, 100, 0.6);
  }

  50% {
    box-shadow: 0 0 16px rgba(100, 200, 100, 1);
  }
}