@font-face {
  font-family: 'Rajdhani';
  src: url('../assets/fonts/Rajdhani-Bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #cc0000;
  --red-bright: #ff1a1a;
  --black: #000000;
  --white: #ffffff;
  --gap: 6px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 300;
}

/* ── SCROLLBAR ───────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--red); }

/* ── NAV ─────────────────────────────────────────── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
}

.nav-left {
  font-family: 'Rajdhani', monospace;
  font-size: 1.4rem;
  color: var(--red);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-left a {
  color: inherit;
  text-decoration: none;
}

.nav-right {
  display: flex;
  gap: 30px;
}

.nav-right a {
  font-family: 'Rajdhani', monospace;
  color: var(--red);
  text-decoration: none;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-right a:hover {
  color: var(--red-bright);
}

/* ── BACK ARROW ──────────────────────────────────── */
.page-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 100px 40px 24px;
  text-decoration: none;
  cursor: pointer;
}

.back-arrow {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.back-arrow img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
  position: relative;
  top: -2px;
}

.page-header:hover .back-arrow img {
  transform: translateX(-4px);
}

.page-title {
  font-family: 'Rajdhani', monospace;
  font-size: 1.3rem;
  color: var(--red);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-block;
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.page-header:hover .page-title {
  transform: scale(1.06);
}

/* ── SCROLL-TO-TOP ───────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  background: none;
  border: none;
  padding: 0;
  width: 45px !important;
  height: 24px !important;
  max-width: 45px !important;
  max-height: 24px !important;
  overflow: visible;
  transition: opacity 0.3s;
}

.scroll-top.visible {
  opacity: 1;
}

.scroll-top img {
  width: 45px !important;
  height: 24px !important;
  max-width: 45px !important;
  max-height: 24px !important;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.scroll-top:hover img {
  transform: translateY(-3px) scale(1.08);
}

/* ── HERO (HOME) ─────────────────────────────────── */
.hero {
  display: block;
  text-decoration: none;
  cursor: pointer;
  width: calc(100% - 520px);
  margin: 72px 260px 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.hero-name {
  font-family: 'Rajdhani', monospace;
  font-size: clamp(3rem, 10vw, 9rem);
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 0.9;
  text-align: center;
}

/* ── PORTFOLIO REEL (on portfolio page) ──────────── */
.reel-embed {
  width: calc(100% - 80px);
  margin: 0 40px 8px;
  aspect-ratio: 16 / 9;
  position: relative;
}

.reel-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── GRID ────────────────────────────────────────── */
.grid {
  display: grid;
  gap: var(--gap);
  padding: 0 40px 80px;
}

/* 3-column for portfolio & photography */
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* masonry-like mix for portfolio with reel */
.grid-portfolio {
  grid-template-columns: repeat(3, 1fr);
  padding: 0 260px 80px;
}

/* HOME grid — below hero */
.grid-home {
  grid-template-columns: repeat(3, 1fr);
  padding: var(--gap) 260px 80px;
}

.grid-item {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  background: #111;
  aspect-ratio: 16 / 9;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.grid-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.85);
}

/* aspect ratios */
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-3-2  { aspect-ratio: 3 / 2; }
.ratio-1-1  { aspect-ratio: 1 / 1; }

/* span helpers */
.col-span-2 { grid-column: span 2; }
.row-span-2 { grid-row: span 2; }

/* ── OVERLAY ─────────────────────────────────────── */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.grid-item:hover .overlay {
  opacity: 1;
}

.overlay h2 {
  font-family: 'Rajdhani', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--white);
}

.overlay p {
  font-size: 0.75rem;
  opacity: 0.7;
  color: var(--white);
}

/* ── REEL CARD (big one in portfolio) ────────────── */
.reel-card {
  position: relative;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 40px;
  grid-column: span 2;
  grid-row: span 2;
  cursor: pointer;
}

.reel-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.reel-card-label {
  font-family: 'Rajdhani', monospace;
  font-size: clamp(2rem, 6vw, 5rem);
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  z-index: 1;
}

.reel-card-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  margin-top: 10px;
  z-index: 1;
}

/* ── PROJECT PAGE ────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding: 0 260px 80px;
}

.project-grid .ratio-16-9 {
  aspect-ratio: 16/9;
}

.project-video-embed {
  grid-column: span 2;
  grid-row: span 2;
  position: relative;
  aspect-ratio: unset;
}

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

/* ── PROJECT INFO (text placeholder beside video) ── */
.project-info {
  grid-row: span 2;
  background: #000000;
  border: none;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
}


/* ── PHOTOGRAPHY GRID ────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding: 0 260px 80px;
}

/* ── LIGHTBOX ────────────────────────────────────── */
.lightbox {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  cursor: pointer;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.lightbox-img {
  max-width: 80vw;
  max-height: 85vh;
  object-fit: contain;
  transform: scale(0.92);
  transition: transform 0.35s ease;
  display: block;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: var(--red);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Rajdhani', monospace;
  line-height: 1;
  z-index: 2;
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  font-size: 2.5rem;
  color: var(--red);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Rajdhani', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s;
}

.lightbox-prev { left: -54px; }
.lightbox-next { right: -54px; }

.lightbox-inner:hover .lightbox-prev,
.lightbox-inner:hover .lightbox-next { opacity: 1; }

.lightbox-prev:hover,
.lightbox-next:hover { color: var(--red-bright); }

/* ── CONTACT PAGE ────────────────────────────────── */
.contact-section {
  padding: 120px 40px 80px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-photo {
  width: 340px;
  flex-shrink: 0;
  object-fit: cover;
}

.contact-info {
  padding-top: 10px;
}

.contact-heading {
  font-family: 'Rajdhani', monospace;
  font-size: 1.1rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.contact-bio {
  font-family: 'Rajdhani', monospace;
  font-size: 1rem;
  color: var(--red);
  line-height: 1.8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.contact-links {
  font-family: 'Rajdhani', monospace;
  font-size: 1rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 2;
}

.contact-links a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-links a:hover {
  color: var(--red-bright);
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 18px 20px; }

  .grid-3,
  .grid-home,
  .grid-portfolio,
  .photo-grid,
  .project-grid {
    grid-template-columns: 1fr 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }

  .col-span-2,
  .project-video-embed,
  .reel-card { grid-column: span 2; }

  .page-header { padding: 90px 20px 16px; }

  .contact-section {
    flex-direction: column;
    padding: 100px 20px 60px;
  }

  .contact-photo { width: 100%; }
}
/* ── PROJECT PAGE VIDEO FIX ──────────────────────── */
.grid-portfolio .reel-card {
  aspect-ratio: 16 / 9;
}
/* ── PROJECT INFO TEXT ───────────────────────────── */
.project-info-title {
  font-family: 'Rajdhani', monospace;
  font-size: 3rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.project-info-desc {
  font-family: 'Rajdhani', monospace;
  font-size: 1rem;
  color: var(--red);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.8;
  margin-bottom: 20px;
}

.project-info-role {
  font-family: 'Rajdhani', monospace;
  font-size: 1.2rem;
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.grid-portfolio .grid-item {
  cursor: pointer;
}
/* ── ELEFANT: info box same size as photos ───────── */
.no-video .project-info {
  grid-row: span 1;
  aspect-ratio: 16 / 9;
}
/* ── PHOTOGRAPHY MASONRY ─────────────────────────── */
.photo-masonry {
  display: flex;
  gap: var(--gap);
  padding: 0 260px 80px;
  align-items: flex-start;
}

.photo-masonry-col {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  flex: 1;
}

.photo-item {
  width: 100%;
  cursor: pointer;
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.photo-item:hover img {
  transform: scale(1.02);
  filter: brightness(0.85);
}
/* ── PHOTOGRAPHY INSTAGRAM GRID ──────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding: 0 260px 80px;
}

.photo-grid .photo-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}

.photo-grid .photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.photo-grid .photo-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.85);
}