/* ========== GLOBAL RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ========== BASE ========== */
body {
  margin: 0;
  background: #000000;
  color: #f5f5f5;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.7s ease;
}

/* Body visible after JS loads */
body.loaded {
  opacity: 1;
}

/* ========== STATIC / SCANLINES ========== */
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08) 0,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: soft-light;
  opacity: 0.22;
  z-index: 1;
  animation: scanMove 6s linear infinite;
}

@keyframes scanMove {
  0%   { transform: translateY(0); }
  100% { transform: translateY(10px); }
}

/* GRAIN / NOISE */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 0 0, rgba(255,255,255,0.12) 0, transparent 55%),
    radial-gradient(circle at 100% 0, rgba(255,255,255,0.08) 0, transparent 55%),
    radial-gradient(circle at 0 100%, rgba(255,255,255,0.1) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255,255,255,0.06) 0, transparent 55%);
  mix-blend-mode: soft-light;
  opacity: 0.28;
  z-index: 2;
  animation: grainMove 5s steps(6, end) infinite;
}

@keyframes grainMove {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-5px, -3px); }
  40%  { transform: translate(4px, -2px); }
  60%  { transform: translate(-3px, 3px); }
  80%  { transform: translate(2px, 4px); }
  100% { transform: translate(0, 0); }
}

/* ========== CUSTOM CURSOR (TARGET / SCOPE) ========== */
.cursor-dot {
  position: fixed;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ff1744; /* red ring */
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition:
    transform 0.15s ease-out,
    border-color 0.15s ease-out,
    background 0.15s ease-out,
    box-shadow 0.15s ease-out;
  z-index: 9999;
}

/* crosshair lines */
.cursor-dot::before,
.cursor-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #ff1744;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cursor-dot::before {
  width: 2px;
  height: 70%;
}

.cursor-dot::after {
  width: 70%;
  height: 2px;
}

/* inner circle */
.cursor-dot span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #ff1744;
  transform: translate(-50%, -50%);
}

/* glow / active state */
.cursor-dot.glow {
  transform: translate(-50%, -50%) scale(1.1);
  border-color: #ff9100; /* orange */
  box-shadow:
    0 0 12px rgba(255,145,0,0.8),
    0 0 22px rgba(255,23,68,0.6);
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(0,0,0,0.95), transparent);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 7%;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.25em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* nav links */
.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  text-decoration: none;
  color: #ff3b3b; /* red base */
}

.nav-links a:visited {
  color: #ff3b3b;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #ff1744, #ff9100);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: #ffffff; /* white on hover */
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  margin: 4px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #1a0000, #000000);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  z-index: 15;
}

.nav-overlay-link {
  font-size: 1.2rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ff3b3b;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 100vh;
  background: url('hero.jpg') center/cover fixed no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* extra static over hero */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.16) 0,
      rgba(255,255,255,0.16) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: soft-light;
  opacity: 0.18;
  pointer-events: none;
  animation: heroStatic 2.5s steps(6, end) infinite;
  z-index: 3;
}

@keyframes heroStatic {
  0%   { transform: translate3d(0,0,0); }
  20%  { transform: translate3d(-2px, 1px,0); }
  40%  { transform: translate3d(2px,-1px,0); }
  60%  { transform: translate3d(-1px,2px,0); }
  80%  { transform: translate3d(1px,-2px,0); }
  100% { transform: translate3d(0,0,0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(60,0,0,0.6), transparent 60%),
    radial-gradient(circle at bottom, rgba(60,25,0,0.6), transparent 60%),
    rgba(0,0,0,0.8);
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 5;
  padding: 0 7%;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  text-transform: uppercase;
  margin: 0;
}

.hero-subtitle {
  margin-top: 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  opacity: 0.9;
}

.hero-btn {
  display: inline-block;
  margin-top: 26px;
  padding: 12px 36px;
}

/* ========== BUTTONS (STATIC-STYLE) ========== */
.neon-btn {
  position: relative;
  border: 1px solid rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  background: transparent;
  color: #ffffff;
  overflow: hidden;
}

/* static stripe overlay */
.neon-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255,23,68,0.75) 0,
    rgba(255,23,68,0.75) 2px,
    rgba(255,145,0,0.6) 2px,
    rgba(255,145,0,0.6) 4px,
    transparent 4px,
    transparent 6px
  );
  background-size: 10px 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out;
}

.neon-btn:hover::before {
  opacity: 0.9;
  animation: btnStatic 0.4s steps(2, end) infinite;
}

/* remove glow shadow, keep sharp */
.neon-btn:hover {
  box-shadow: none;
}

@keyframes btnStatic {
  0%   { transform: translateX(-8px) translateY(0); }
  50%  { transform: translateX(0) translateY(-2px); }
  100% { transform: translateX(4px) translateY(1px); }
}

/* ========== SECTIONS ========== */
.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 7%;
}

/* ABOUT */
.about {
  background: radial-gradient(
    circle at top left,
    rgba(40,0,0,0.9),
    rgba(0,0,0,0.98)
  );
}

.about h2,
.portfolio h2,
.booking h2 {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 1rem;
}

.about p,
.section-intro {
  margin-top: 20px;
  line-height: 1.7;
  font-size: 0.95rem;
  color: rgba(245,245,245,0.88);
}

.highlight {
  color: #fff3f3;
  border-bottom: 1px solid rgba(255,145,0,0.8);
}

/* PORTFOLIO */
.portfolio {
  background: radial-gradient(
    circle at bottom,
    rgba(40,0,0,0.9),
    rgba(0,0,0,1)
  );
}

.section-intro {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  transform: translateZ(0);
}

.grid-item img {
  display: block;
  width: 100%;
  height: auto;            /* <-- FIX */
  aspect-ratio: 1 / 1;     /* makes the grid squares consistent */
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(55%) contrast(1.15);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.98),
    rgba(255,23,68,0.22),
    rgba(255,145,0,0.18),
    transparent
  );
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.grid-overlay span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* Hover distortion */
.grid-item:hover img {
  transform: scale(1.09) skew(-1.3deg, -1.3deg);
  filter: grayscale(10%) contrast(1.35);
}

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

/* BOOKING */
.booking {
  background: radial-gradient(
    circle at bottom right,
    rgba(60,0,0,0.9),
    rgba(0,0,0,1)
  );
  text-align: center;
}

.booking p {
  margin-top: 16px;
  color: rgba(245,245,245,0.9);
}

.book-btn {
  margin-top: 28px;
  padding: 12px 42px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 28px 7%;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ========== GLITCH EFFECT (RED + ORANGE) ========== */
.glitch {
  position: relative;
  color: #ffffff;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

.glitch::before {
  left: 1px;
  text-shadow: -2px 0 #ff1744; /* red */
  animation: glitchTop 2s infinite linear alternate-reverse;
}

.glitch::after {
  left: -1px;
  text-shadow: 2px 0 #ff9100; /* orange */
  animation: glitchBottom 2.2s infinite linear alternate-reverse;
}

@keyframes glitchTop {
  0% { clip-path: inset(0 0 80% 0); }
  20% { clip-path: inset(0 0 20% 0); }
  40% { clip-path: inset(10% 0 40% 0); }
  60% { clip-path: inset(40% 0 10% 0); }
  80% { clip-path: inset(80% 0 0 0); }
  100% { clip-path: inset(10% 0 50% 0); }
}

@keyframes glitchBottom {
  0% { clip-path: inset(80% 0 0 0); }
  20% { clip-path: inset(10% 0 40% 0); }
  40% { clip-path: inset(40% 0 10% 0); }
  60% { clip-path: inset(0 0 20% 0); }
  80% { clip-path: inset(0 0 80% 0); }
  100% { clip-path: inset(50% 0 10% 0); }
}

/* ========== REVEAL ON SCROLL ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
/* ========= TABLET & SMALL LAPTOPS ========= */
@media (max-width: 900px) {
  /* keep nav simple + readable */
  .nav-inner {
    padding: 12px 6%;
  }

  .logo {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
  }

  .nav-links {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
  }

  /* hero: no parallax on mobile, slightly smaller text */
  .hero {
    background-attachment: scroll;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
  }

  .section-inner {
    padding: 70px 7%;
  }

  /* 2-column grid on tablets */
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  /* hide custom cursor on touch devices */
  .cursor-dot {
    display: none;
  }
}

/* ========= PHONES ========= */
@media (max-width: 600px) {
  /* stack nav nicely */
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 6%;
  }

  .nav-links {
    gap: 10px;
    font-size: 0.7rem;
  }

  /* hero: bring content lower + tighter */
  .hero {
    align-items: flex-end;
  }

  .hero-content {
    padding: 0 8% 80px;
    text-align: left;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
  }

  .hero-btn {
    padding: 10px 26px;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
  }

  .section-inner {
    padding: 60px 8%;
  }

  /* 1-column grid on phones */
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  footer {
    padding: 20px 8%;
    font-size: 0.7rem;
  }
}
