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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1e1e1e;
  --text-primary: #f0f0f0;
  --text-secondary: #999999;
  --text-muted: #666666;
  --accent: #e0e0e0;
  --accent-hover: #ffffff;
  --border: #222222;
  --border-light: #2a2a2a;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', 'DM Serif Display', Georgia, serif;
  --font-script: 'Alex Brush', 'Sacramento', cursive;
  --font-elegant: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav__logo {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav__logo span {
  color: var(--text-muted);
  font-weight: 400;
}

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

.nav__links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width var(--transition);
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__links a:hover::after {
  width: 100%;
}

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

.nav__burger span {
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: var(--transition);
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120vw;
  height: 120vh;
  min-width: 120%;
  min-height: 120%;
  transform: translate(-50%, -50%);
  border: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.92) 0%,
    rgba(10, 10, 10, 0.7) 50%,
    rgba(10, 10, 10, 0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 8rem 2rem 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero__title span {
  color: var(--text-muted);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 550px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 4px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-main);
}

.btn--primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--bg-primary);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn--outline:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* ===== SECTIONS (shared) ===== */
.section {
  padding: 6rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__header {
  margin-bottom: 3.5rem;
}

.section__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__divider {
  width: 100%;
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 auto;
  max-width: var(--max-width);
}

/* ===== SHOWREEL ===== */
.reel {
  padding: 4rem 2rem 6rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.reel__container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.reel__container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.reel__links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  justify-content: flex-end;
}

.reel__links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.reel__links a:hover {
  color: var(--text-primary);
}

/* ===== CLIENTS ===== */
.clients {
  padding: 5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.clients .section__header {
  margin-bottom: 2.5rem;
}

.clients__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}

.clients__name {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--text-muted);
  padding: 1rem 2rem;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

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

/* ===== PROJECTS ===== */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-card__image img {
  transform: scale(1.05);
}

.project-card__info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.project-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #fff;
}

.project-card__desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.6rem;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.project-card__tags .tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
}

.tag {
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ===== ABOUT / SKILLS ===== */
.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.about__text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.skills__group {
  margin-bottom: 2rem;
}

.skills__group:last-child {
  margin-bottom: 0;
}

.skills__group-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skills__list .tag {
  font-size: 0.7rem;
  padding: 0.3rem 0.7rem;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact .section {
  padding: 6rem 2rem;
}

.contact__content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__text {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.contact__link-icon {
  width: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.contact__availability {
  padding: 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.contact__availability-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.contact__status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.contact__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.contact__status-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__burger {
    display: flex;
  }

  .nav__burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .nav__burger.open span:nth-child(2) {
    opacity: 0;
  }

  .nav__burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .hero__content {
    padding: 7rem 1.5rem 3rem;
  }

  .hero {
    min-height: 90vh;
  }

  .hero__bg iframe {
    width: 177.78vh;
    height: 100vh;
    min-width: 100vw;
    min-height: 56.25vw;
  }

  .section {
    padding: 4rem 1.5rem;
  }

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

  .project-card__info {
    opacity: 1;
  }

  .about__content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact__content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact .section {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__cta {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.lightbox__content {
  position: relative;
  max-width: 900px;
  width: 90%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.lightbox.open .lightbox__content {
  transform: translateY(0);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox__close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.lightbox__info {
  padding: 1.5rem;
}

.lightbox__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.lightbox__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Script title for hero and nav logo */
.hero__title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.nav__logo {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.4rem;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
