/*
======================
variables
======================
*/

:root {
  --primary-color: #1e3a5f;
  --accent-color: #d4af37;
  --dark-color: #0f172a;
  --light-color: #f8fafc;
  --gray-color: #64748b;
  --white-color: #ffffff;

  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    #2c5282 100%
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    #b8941f 100%
  );

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

  --transition: all 0.3s ease;

  --font-primary: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ===================================
Reset & Base Styles
================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #e2e2e2;
  font-family: var(--font-primary);
  color: var(--dark-color);
  line-height: 1.4;
  overflow-x: hidden;
}

span {
  color: var(--accent-color);
  font-weight: bold;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

section {
  text-align: center;
  max-width: 100%;
  margin: 0 auto 100px;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

.highlight {
  color: var(--primary-color);
}

/* Carousel dots */

.carousel-dots {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  z-index: 2;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  background: var(--gray-color);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dots .dot.active {
  background: var(--accent-color);
}

.carousel:nth-child(even) {
  flex-direction: row-reverse;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white-color);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: var(--transition);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-list {
  display: flex;
  gap: 40px;
}

.nav-list li a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.nav-list a:hover {
  background: var(--accent-color);
  color: var(--white-color);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* ====================
GALLERY HERO
==================== */

.gallery-hero {
  position: relative;
  height: 100vh;
  background: url(./assets/gallery-header.webp) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 25, 47, 0.6),
    rgba(10, 25, 47, 0.85)
  );
}

.gallery-hero .hero-content {
  position: relative;
  text-align: center;
  color: #ffffff;
  z-index: 2;
}

.gallery-hero .hero-content h1 {
  font-size: 4rem;
  letter-spacing: 6px;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
}

.gallery-hero .hero-content h1::after {
  content: "";
  display: block;
  width: 130px;
  height: 3px;
  background: var(--accent-color);
  margin: 10px auto 0;
}

.gallery-hero .hero-content p {
  margin-top: 10px;
  font-size: 1.1rem;
  opacity: 0.85;
  letter-spacing: 2px;
}

/* Gallery */

.gallery {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 30px 10%;
}

.gallery .carousel {
  display: flex;
  gap: 50px;
  align-items: center;
  padding: 40px;
  border-radius: 14px;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.gallery .carousel:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.gallery .carousel-left {
  flex: 1;
  max-width: 500px;
}

.gallery .carousel-images {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
}

.gallery .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  inset: 0;
  opacity: 0;
  object-fit: cover;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.gallery .slide.active {
  opacity: 1;
}

.gallery .description {
  flex: 1;
}

.gallery .description h3 {
  margin-bottom: 15px;
}

/* Footer */

.footer-bottom {
  background: var(--dark-color);
  color: rgba(255, 255, 255, 0.8);
  padding: 20px 0;
  text-align: center;
}

/* ====================
MEDIA QUERIES
==================== */

@media (max-width: 1024px) {
  .gallery {
    padding: 40px 6%;
    gap: 60px;
  }

  .gallery .carousel {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 30px;
  }

  .gallery-hero .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    right: 20px;
    background: var(--white-color);
    flex-direction: column;
    width: 220px;
    padding: 20px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s ease;
  }

  .nav-list.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .gallery {
    padding: 40px 20px;
  }

  .gallery .carousel {
    padding: 20px;
    gap: 25px;
  }

  .gallery .carousel-left {
    width: 100%;
    max-width: 100%;
  }

  .gallery .carousel-images {
    width: 100%;
    height: 260px;
    aspect-ratio: auto;
  }

  .gallery-hero {
    height: 70vh;
  }

  .gallery-hero .hero-content h1 {
    font-size: 2.3rem;
    letter-spacing: 3px;
  }
}

@media (max-width: 480px) {
  .gallery {
    gap: 50px;
  }

  .gallery .carousel {
    padding: 15px;
  }

  .gallery-hero .hero-content h1 {
    font-size: 1.8rem;
  }
}
