/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background: #f9fafb;
  color: #111827;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);

  position: relative; /* <-- Add this */
  z-index: 5;         /* optional: ensures nav stays on top of other elements */
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: 0.3s ease;
}

.nav-links a:hover {
  color: #2563eb;
}

/* HERO */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 80px 8%;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: white;
}

.hero-text {
  flex: 1 1 500px;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-text p {
  margin-bottom: 25px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background: white;
  color: #2563eb;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn:hover {
  background: #e5e7eb;
}

.hero-image {
  flex: 1 1 400px;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
}

/* FEATURES */
.features {
  padding: 80px 8%;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 50px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  flex: 1 1 280px;
  max-width: 320px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 15px;
  color: #2563eb;
}

/* CTA */
.cta {
  padding: 60px 8%;
  background: #111827;
  color: white;
  text-align: center;
}

.cta h2 {
  margin-bottom: 20px;
}

.cta .btn {
  background: #2563eb;
  color: white;
}

/* FOOTER */
.footer {
  padding: 30px 8%;
  background: white;
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    flex-direction: column;
    width: 200px;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: 0.3s ease;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;

    position: absolute;
    top: 20px;      /* distance from top of navbar */
    right: 8%;      /* match navbar padding */
    z-index: 10;    /* ensure it’s on top */
  }

  .nav-links.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

}

/* GALLERY HERO / CAROUSEL */
.gallery-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;       /* Let it grow based on image */
  max-height: 500px;  /* Prevent overly tall images */
  margin-bottom: 60px;
}


.carousel {
  position: relative;
  overflow: hidden;
  max-height: 500px; /* optional: limit carousel height */
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.carousel-track img {
  min-width: 100%;
  max-width: 100%;
  max-height: 450px;  /* Optional: restrict max height */
  object-fit: contain; /* Show full image, no cropping */
  display: block;
  margin: 0 auto;     /* Center smaller images */
  background: #f3f4f6; /* Optional: light background for images with transparency */
}


.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(37, 99, 235, 0.7);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
}

.carousel-btn:hover {
  background: rgba(37, 99, 235, 0.9);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

/* GALLERY GRID */
.gallery-grid-section {
  padding: 60px 8%;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.gallery-card {
  flex: 1 1 250px;
  max-width: 300px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.gallery-card:hover {
  transform: scale(1.05);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .gallery-card {
    flex: 1 1 100%;
  }
}

.carousel-slide {
  flex: 0 0 100%; /* Each slide takes 100% width */
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 500px; /* optional: limits very tall images */
  object-fit: contain;
  display: block;
}

/* HEART CLICK SECTION */
.heart-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70vh;
  background: #f9fafb;
  position: relative;
}

.heart-container {
  position: relative;
  display: inline-block;
}


.clickable-image {
  max-width: 300px;
  width: 100%;
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.clickable-image:hover {
  transform: scale(1.05);
}

/* Heart animation */
.heart {
  position: absolute;
  width: 30px;
  height: 30px;
  background-image: url('data:image/svg+xml;utf8,<svg fill="red" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
  /* background-image: url('../assets/illugaen.png'); */
  background-size: cover;
  pointer-events: none;
  animation: heart-fade 1s forwards;
}

@keyframes heart-fade {
  0% {
    transform: translate(0,0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(1.5);
    opacity: 0;
  }
}

/* .hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
} */

.hamburger span {
  width: 25px;
  height: 3px;
  background: #111827;
  border-radius: 2px;
  transition: 0.3s ease;
}