:root {
  --bg: #070b14;
  --bg-soft: #004785;
  --text: #b9dcf8;
  --muted: #7bbbfb;
  --accent: #2b41e4;
}

* {
  box-sizing: border-box;
}

/* Fonts */
.roboto-mono {
  font-family: "Roboto Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.poller-one-regular {
  font-family: "Poller One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.aldrich-regular {
  font-family: "Aldrich", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poiret-one-regular {
  font-family: "Poiret One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Global Styles */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poller One", sans-serif;
  background: linear-gradient(180deg, var(--bg), var(--bg-soft));
  color: var(--text);
  line-height: 1.7;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

/* Header */
header {
  padding-top: 5rem;
  scroll-snap-align: start;
  background: radial-gradient(circle at top, rgba(124,124,255,0.25), transparent 60%),
              url("img/background.jpg") center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  animation: fadeUp 1.2s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Typography */
h1 {
  font-size: clamp(2.2rem, 8vw, 5.5rem);
  color: rgb(224, 180, 33);
  text-shadow: 2px 2px 4px #f6ca37;
  margin-bottom: 20px;
}

h4 {
  font-size: clamp(1rem, 4vw, 1.8rem);
  color: rgb(151, 118, 8);
  text-shadow: 2px 2px 2px #f6ca37;
}

h2 {
  margin-bottom: 0.5rem;
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 10px var(--muted);
}

p {
  font-family: "Poiret One", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(10px);
  background: rgba(11,11,13,0.75);
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

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

/* Sections */
section {
  padding-top: 7rem;
  scroll-snap-align: start;
  min-height: 100vh;
  padding: 6rem 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeUp 1s ease both;
}

.about { 
  max-width: 1200px; 
  color: var(--text); 
}

/* Gallery */
.gallery {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.gallery::-webkit-scrollbar {
  height: 8px;
}

.gallery::-webkit-scrollbar-thumb {
  background: rgba(124,124,255,0.4);
  border-radius: 10px;
}

.gallery img {
  flex: 0 0 auto;
  width: auto;
  height: 380px;
  object-fit: contain;
  border-radius: 16px;
  scroll-snap-align: center;
  filter: grayscale(30%);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 200;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

/* Carousel */
.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 60px auto;
  max-width: 900px;
}

.carousel {
  display: flex;
  overflow-x: hidden;
  scroll-behavior: smooth;
  width: 720px;
}

.video-thumb {
  min-width: 240px;
  height: 135px;
  margin: 0 10px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s;
}

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

.video-thumb:hover {
  transform: scale(1.05);
}

.nav {
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  width: 80%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.modal video {
  width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: 12px;
}

#videoTitle {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 30px;
  cursor: pointer;
}

/* Contact Form */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: none;
  background: #1c1c22;
  color: var(--text);
  font-size: 0.95rem;
}

.contact-form button {
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
  color: var(--bg);
  background-color: var(--muted);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
}

footer {
  background: #09090b;
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* =========================
   Mobile Responsive
========================= */
@media (max-width: 768px) {

  /* Disable scroll snap on mobile */
  body {
    scroll-snap-type: none;
  }

  section {
    scroll-snap-align: none;
    padding: 4rem 1.5rem;
    min-height: auto;
  }

  header {
    height: auto;
    padding: 6rem 1.5rem 4rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  p {
    font-size: 0.95rem;
  }

  nav {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.8rem;
  }

  nav a {
    font-size: 0.75rem;
  }

  /* Gallery scaling */
  .gallery img {
    height: 60vw;
    max-height: 380px;
  }

  /* Carousel scaling */
  .carousel {
    width: 100%;
    overflow-x: auto;
  }

  .carousel-container {
    flex-direction: column;
  }

  .video-thumb {
    min-width: 70%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .nav {
    font-size: 28px;
  }

  /* Modal adjustments */
  .modal-content {
    width: 95%;
    max-width: 900px;
  }

  .close {
    top: -30px;
    right: 10px;
  }

  /* Contact button width */
  .contact-form button {
    width: 100%;
  }

}
