/* ------------------------------
   1. RESET AND BASE STYLES
------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

html, body {
  height: 100%; /* Helps with full-page sections */
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background-color: #f1f1f1;
  line-height: 1.5;
  position: relative; /* for star trail elements */
}

/* Utility class to center text */
.text-center {
  text-align: center;
}

/* ------------------------------
   2. PRELOADER
------------------------------ */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999; 
}

.loader {
  width: 50px;
  height: 50px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #d64161;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ------------------------------
   3. MAIN CONTENT
------------------------------ */
#main-content {
  /* Hidden behind preloader, but once preloader is removed, it's visible. */
}

/* ------------------------------
   4. HEADER / NAVIGATION
------------------------------ */
.header {
  position: fixed; 
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Logo image sizing (replace as needed) */
.logo img {
  height: 70px;
  width: auto;
}

/* Shift nav items slightly left */
.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-left: 2rem; /* Move nav items left */
}

.nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s ease-in;
}

.nav ul li a:hover {
  color: #d64161;
}

/* ------------------------------
   5. HERO SECTION WITH PARALLAX
------------------------------ */
.hero {
  position: relative;
  height: 100vh; /* Full screen height */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.parallax {
  background: url('images/hero-background.jpg') center center / cover no-repeat fixed;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4); /* Dark overlay for text clarity */
  z-index: 0;
}

.hero-content {
  z-index: 1; /* above the overlay */
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Button styling */
.btn {
  display: inline-block;
  background-color: #d64161;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: #b53b55;
}

/* ------------------------------
   6. SECTION STYLING
------------------------------ */
.section {
  padding: 4rem 2rem;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  color: #333;
}

/* Decorative line under section title */
.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #d64161;
  margin: 0.5rem auto 0;
}

/* ------------------------------
   7. GALLERY GRID
------------------------------ */
/* Layout for the gallery section: heading at top, grid below */
.gallery-row {
  display: flex;
  flex-direction: column; 
  align-items: center;    
  text-align: center;     
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px; /* optional for layout control */
}

.gallery-item {
  background-color: #fff;
  border: 1px solid #ddd;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item-info {
  padding: 1rem;
  text-align: center;
}

.gallery-item img {
  width: 100%;
  display: block;
}

/* ------------------------------
   8. PARALLAX SECTIONS (ABOUT)
------------------------------ */
.parallax.section {
  min-height: 60vh;
  background-attachment: fixed; 
  background-position: center;
  background-size: cover;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax .overlay {
  background: rgba(0,0,0,0.5);
}

.content-wrapper {
  max-width: 700px;
  text-align: center;
  z-index: 1;
}

/* ------------------------------
   9. CONTACT SECTION (CENTERED)
------------------------------ */
.contact-row {
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;  
}

/* ------------------------------
   10. FOOTER
------------------------------ */
.footer {
  text-align: center;
  padding: 1rem;
  background-color: #fff;
  border-top: 1px solid #ddd;
}

/* ------------------------------
   11. MODAL (LIGHTBOX)
------------------------------ */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 80%;
  margin: auto;
  display: block;
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
}

.modal-caption {
  text-align: center;
  color: #ccc;
  margin-top: 1rem;
  font-size: 1rem;
}

/* ------------------------------
   12. FLOATING SUBSCRIBE BUTTON
------------------------------ */
.subscribe-float-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: #d64161;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000; 
  transition: background-color 0.3s ease;
}

.subscribe-float-btn:hover {
  background-color: #b53b55;
}

/* SUBSCRIBE OVERLAY */
.subscribe-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.4s ease;
  z-index: 9999;
}

.subscribe-overlay.active {
  left: 0;
}

.overlay-content {
  background: #fff;
  color: #333;
  width: 90%;
  max-width: 400px;
  padding: 2rem;
  position: relative;
  text-align: center;
  border-radius: 8px;
}

.close-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}

#subscribe-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}
#subscribe-form input[type="email"] {
  width: 80%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.subscribe-submit {
  background-color: #d64161;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.subscribe-submit:hover {
  background-color: #b53b55;
}

/* ------------------------------
   13. MOUSE STAR TRAIL
------------------------------ */
.mouse-star {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;  
  transform: translate(-50%, -50%);
  background: radial-gradient(#ffec00, #ffaa00);
  clip-path: polygon(
    50% 0%, 
    61% 35%, 
    98% 35%, 
    68% 57%, 
    79% 91%, 
    50% 70%, 
    21% 91%, 
    32% 57%, 
    2% 35%, 
    39% 35%
  );
  opacity: 0.9;
  animation: star-fade 1s forwards;
}

@keyframes star-fade {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}
