@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background: #ffffff;
  color: #000;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  padding: 1.2rem 4rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  transition: transform 0.3s ease-in-out, background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.navbar--hidden { transform: translateY(-100%); background: rgb(245, 245, 246); box-shadow: none; padding: 0.8rem 4rem; }
.navbar:not(.navbar--hidden) { transform: translateY(0); }
.logo img { height: 7vh; cursor: pointer; transition: height 0.4s cubic-bezier(0.4,0,0.2,1); }
.navbar.scrolled .logo img { height: 5vh; }
.nav-items-box { width: 50vw; }
.nav-links { list-style: none; display: flex; gap: 2.5rem; margin: 0; padding: 0; width: 100%; }
.nav-links a { text-decoration: none; color: rgba(106, 106, 103, 1); font-weight: 500; font-size: 1rem; transition: color 0.3s ease, font-weight 0.3s ease; }
.nav-links a:hover { color: rgba(235, 228, 87, 1); }
.nav-links a.active { font-weight: 700; color: rgba(235, 228, 87, 1); }
.btn-underline { text-decoration: none; }

.contact-btn { background: rgba(235, 228, 87, 1); color: #000; padding: 12px 20px; font-weight: bold; display: flex; align-items: center; border-radius: 25px; cursor: pointer; transition: background 0.4s ease, transform 0.4s ease; position: relative; overflow: hidden; border: none; }
.contact-btn .arrow { display: inline-block; margin-left: 8px; transition: transform 0.4s, opacity 0.4s; transform: translate(0, .1rem); opacity: .8; }
.contact-btn:hover { background: #f9e447; transform: scale(1.05); }
.contact-btn-desktop { display: flex; }
.contact-btn-mobile { display: none; }

.hamburger-menu { display: none; cursor: pointer; padding: 10px; z-index: 1001; position: relative; }
.hamburger-menu .bar { width: 24px; height: 3px; background-color: rgba(30, 34, 45, 1); margin: 5px 0; transition: 0.4s; }
.hamburger-menu.active .bar:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(2){ opacity: 0; }
.hamburger-menu.active .bar:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

.nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 999; opacity: 0; transition: opacity .3s ease; overflow-y: auto; pointer-events: none; }
.nav-overlay.active { display: flex; opacity: 1; pointer-events: auto; align-items: center; justify-content: center; }
.nav-overlay .nav-links { flex-direction: column; align-items: center; gap: .5rem; padding-top: 1rem; width: 100%; margin: auto; }
.nav-overlay .nav-links a { color: #fff; font-size: .95rem; font-weight: 600; padding: 1rem 3rem; text-align: center; display: block; transition: background .3s ease; border-radius: 30px; }
.nav-overlay .nav-links a:hover { background-color: rgba(130,130,130,.35); }
.nav-overlay .contact-btn { margin: 1rem auto 0; width: fit-content; display: flex; }

@media (max-width: 768px){
  .navbar{ padding: 1rem 2rem; }
  .nav-items-box, .contact-btn-desktop { display: none !important; }
  .hamburger-menu { display: block; }
  .navbar .contact-btn { display: none !important; }
  .nav-overlay .contact-btn-mobile { display: flex; margin: 1.5rem auto 0; }
}

/* Page header */
.page-hero { 
  padding: 8rem 2rem 4rem; 
  text-align: center; 
  background: linear-gradient(135deg, #1E222D 0%, #2a2f3a 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.page-title { 
  font-size: 3.5rem; 
  font-weight: 800; 
  letter-spacing: 0.5px; 
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.page-subtitle { 
  color: rgba(255, 255, 255, 0.8); 
  margin-top: 0.5rem; 
  font-size: 1.2rem;
  font-weight: 400;
  position: relative;
  z-index: 2;
}

/* Gallery */
/* Modern Gallery with proper spacing */
.gallery-section { 
  padding: 4rem 2rem; 
  background: #f8f9fa;
  min-height: 100vh;
}

.gallery-grid { 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  width: 100%; 
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.gallery-item { 
  display: block; 
  position: relative; 
  overflow: hidden; 
  background: #f2f2f2; 
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  aspect-ratio: 3 / 2;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Skeleton shimmer */
.gallery-item.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.gallery-img { 
  width: 100%; 
  height: 100%; 
  display: block; 
  object-fit: cover;
  opacity: 0; 
  transform: translateY(6px) scale(1.01); 
  transition: opacity .35s ease, transform .35s ease; 
}
.gallery-img.loaded { opacity: 1; transform: translateY(0) scale(1); }

/* Responsive grid */
@media (max-width: 1400px) { 
  .gallery-grid { 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px; 
  } 
}

@media (max-width: 992px) { 
  .gallery-section {
    padding: 3rem 1.5rem;
  }
  .gallery-grid { 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px; 
    padding: 0 0.5rem;
  } 
}

@media (max-width: 576px) { 
  .page-hero {
    padding: 6rem 1rem 3rem;
  }
  .page-title {
    font-size: 2.5rem;
  }
  .page-subtitle {
    font-size: 1rem;
  }
  .gallery-section {
    padding: 2rem 1rem;
  }
  .gallery-grid { 
    grid-template-columns: 1fr;
    gap: 12px; 
    padding: 0;
  } 
  .gallery-item { 
    border-radius: 10px; 
  } 
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); display: none; align-items: center; justify-content: center; z-index: 1200; overflow: hidden; }
.lightbox.open { display: flex; animation: lbFade .2s ease-out; }
.lightbox-img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,0.5); opacity: 1; transform: translateX(0); transition: opacity .25s ease, transform .25s ease; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; font-size: 1.6rem; color: #fff; background: transparent; border: 0; cursor: pointer; line-height: 1; opacity: .9; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.06); color: #fff; border: none; width: 40px; height: 40px; border-radius: 999px; cursor: pointer; display: grid; place-items: center; transition: background .2s ease, opacity .2s ease; opacity: .9; }
.lightbox-nav:hover { background: rgba(255,255,255,0.12); opacity: 1; }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }
.lightbox-nav svg { width: 18px; height: 18px; display: block; }

@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbIn { to { opacity: 1; transform: translateY(0) scale(1); } }

/* Prevent body scroll when lightbox is open */
body.no-scroll {
  overflow: hidden;
}

/* Footer shim spacing */
.page-footer-space { height: 3rem; }
/* Page transitions (navbar fade/slide + page fade) */
.page-enter-init .navbar { opacity: 0; transform: translateY(-12px); }
.page-enter-active .navbar { opacity: 1; transform: translateY(0); transition: opacity 0.45s ease, transform 0.45s ease; }
.page-exit { opacity: 0; transition: opacity 200ms ease; }
@media (prefers-reduced-motion: reduce) {
  .page-enter-init .navbar, .page-enter-active .navbar, .page-exit { opacity: 1; transform: none; transition: none; }
}
