/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
  padding-top: 80px; /* To account for fixed header */
}

 /* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: background 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo h1 {
    color: white;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    color: #f0f0f0;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s;
}

nav a:not(.nav-btn):hover {
    color: #ffcc00;
}

nav a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #ffcc00;
    transition: width 0.3s ease;
}

nav a:not(.nav-btn):hover::after {
    width: 100%;
}

.nav-btn {
    padding: 10px 25px;
    background: #ffcc00;
    color: #111 !important;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.3);
}

/* ===== MOBILE MENU ICON ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        position: absolute;
        top: 75px;
        right: 5%;
        padding: 30px;
        border-radius: 12px;
        width: 250px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
        gap: 20px;
    }

    nav a {
        margin: 0;
        text-align: center;
        width: 100%;
        font-size: 16px;
    }

    .menu-toggle {
        display: flex;
    }
}


/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  background: url('img/gallery.jpg') center/cover no-repeat fixed;
  text-align: center;
  color: #fff;
  overflow: hidden;
  margin-top: 0;
  padding: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out forwards;
}

.hero h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  color: #fff;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 30px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  color: #fff;
  margin-top: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gallery Section */
.gallery {
  padding: 100px 0;
  background-color: #f9f9f9;
}

/* Gallery Grid */
.gallery-grid {
  display: grid; /* Change back to grid */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
  gap: 30px; /* Consistent gap */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

@media (max-width: 1024px) {
  .gallery-grid {
    column-count: unset; /* Remove masonry specific styles */
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    column-count: unset; /* Remove masonry specific styles */
  }
}

.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 12px; /* Slightly less rounded than before */
  box-shadow: 0 8px 20px rgba(0,0,0,0.1); /* Refined shadow */
  background: #fff; /* White background for card */
  aspect-ratio: 4/3; /* Maintain aspect ratio */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0; /* Initial state for scroll reveal */
  transform: translateY(30px); /* Initial state for scroll reveal */
}

.gallery-item img {
  width: 100%;
  height: 100%; /* Fill the aspect ratio */
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease; /* Smoother zoom */
  opacity: 1; /* Ensure full opacity initially */
}

.gallery-item:hover img {
  transform: scale(1.08); /* Slightly less aggressive zoom */
  opacity: 1; /* Keep full opacity */
}

/* Overlay Style - Bottom-up reveal */
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); /* Darker gradient from bottom */
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gallery-item::after {
  content: attr(data-desc);
  position: absolute;
  bottom: 20px; /* Position at the bottom */
  left: 20px;
  right: 20px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left; /* Align text to left */
  width: auto; /* Auto width */
  opacity: 0;
  transform: translateY(10px); /* Slide up slightly */
  transition: all 0.4s ease 0.1s;
  z-index: 2;
  letter-spacing: 0.5px; /* Adjust letter spacing */
  text-transform: capitalize; /* Capitalize first letter, not full uppercase */
  text-shadow: 0 2px 8px rgba(0,0,0,0.5); /* Add text shadow */
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2); /* Stronger shadow */
}

/* Active state for scroll reveal */
.gallery-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  text-align: center;
  padding-top: 60px;
}

.lightbox-img {
  max-width: 90%;
  max-height: 70vh;
  border-radius: 10px;
}

.lightbox-desc {
  color: #fff;
  margin-top: 15px;
  font-size: 1rem;
}

.close {
  position: absolute;
  top: 20px; right: 35px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  margin-top: -22px;
  color: #fff;
  font-weight: bold;
  font-size: 30px;
  border: none;
  background: none;
  user-select: none;
}

.prev { left: 10px; }
.next { right: 10px; }



/* FOOTER */
footer {
    background: #111;
    color: #b0b0b0;
    padding: 80px 5% 30px;
    font-size: 15px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-about h3, .footer-links h4, .footer-contact h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.footer-about h3::after, .footer-links h4::after, .footer-contact h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #ffcc00;
    margin-top: 10px;
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: #ffcc00;
    transform: translateX(5px);
}

.footer-contact p {
    margin-bottom: 15px;
    color: #b0b0b0;
}

.footer-logo {
    width: 160px;
    margin-top: 20px;
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-logo:hover {
    opacity: 1;
}

.socials {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.socials a img {
    width: 18px;
    height: 18px;
    margin: 0;
    filter: brightness(0) invert(1);
}

.socials a:hover {
    background: #ffcc00;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #666;
}

@media (max-width: 768px) {
    footer {
        padding: 60px 5% 30px;
    }
    .footer-container {
        text-align: center;
    }
    .footer-about h3::after, .footer-links h4::after, .footer-contact h4::after {
        margin: 10px auto 0;
    }
    .footer-logo {
        margin: 20px auto;
    }
    .socials {
        justify-content: center;
    }
}

/* Initial hidden state */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Active state when visible */
.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-item.active {
    opacity: 1;
    transform: translateY(0);
}