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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0a0a0a;
  color: #e8e8e8;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #e31c1c;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #ff4444;
}

/* ========== Nav ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-filters {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #888;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.filter-btn:hover {
  border-color: #e31c1c;
  color: #e31c1c;
}

.filter-btn.active {
  background: #e31c1c;
  border-color: #e31c1c;
  color: #0a0a0a;
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  background: radial-gradient(ellipse at center bottom, #1a1a1a 0%, #0a0a0a 70%);
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero h1::first-letter {
  color: #e31c1c;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: #888;
  margin-bottom: 2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-links a {
  display: inline-block;
  border: 1px solid #e31c1c;
  color: #e31c1c;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s;
  border-radius: 4px;
}

.hero-links a:hover {
  background: #e31c1c;
  color: #0a0a0a;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(227, 28, 28, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #555;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(8px);
  }
  60% {
    transform: translateY(4px);
  }
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: rotate(45deg);
}

/* ========== Sections ========== */
.section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #e31c1c;
}

/* ========== About ========== */
.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: #aaa;
  font-size: 1.1rem;
}

.about-content p:first-of-type {
  font-size: 1.3rem;
  color: #e8e8e8;
}

.about-contact {
  margin-top: 2rem;
}

.about-contact a {
  font-weight: 600;
}

#about {
  background: linear-gradient(to bottom, #0a0a0a, #111);
}

/* ========== Gallery ========== */
#gallery {
  padding-top: 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  transform: translateY(20px);
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.gallery-item.hidden {
  display: none;
}

/* ========== Footer ========== */
footer {
  background: #050505;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-content p {
  color: #555;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #555;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #e31c1c;
}

/* ========== Lightbox ========== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  transform: scale(0.9);
  transition: transform 0.3s;
}

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

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s;
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 1;
  color: #e31c1c;
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem 1.2rem;
  transition: all 0.3s;
  border-radius: 4px;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: #e31c1c;
  color: #0a0a0a;
}

.lightbox-counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #888;
  font-size: 0.9rem;
}

/* ========== Mobile ========== */
@media (max-width: 768px) {
  .nav {
    padding: 0.8rem 1rem;
    flex-direction: column;
    gap: 0.8rem;
  }

  .nav-filters {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .section {
    padding: 4rem 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .lightbox-prev {
    left: 0.5rem;
    padding: 0.8rem;
  }

  .lightbox-next {
    right: 0.5rem;
    padding: 0.8rem;
  }

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

/* ========== Scroll Animations ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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