/*
  style.css - Updated for Smooth Crossfade & Right-Click Disabling
*/

/* 1) Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #fff; /* White or near-white text */
  background: linear-gradient(to bottom right, #2e2e2e, #4e4e4e);
  min-height: 100vh;
  line-height: 1.6;
  /* Disable text selection if desired (optional):
     user-select: none;
  */
}

/* 2) Sticky, Minimal Header */
header {
  position: sticky;
  top: 0;
  z-index: 9999;
  padding: 0.5em 1em;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  white-space: nowrap;
  color: #fff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5em;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding: 0.25em 0.5em;
  transition: background 0.3s ease, color 0.3s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

@media (max-width: 768px) {
  nav ul {
    flex-wrap: wrap;
  }
}

/* 3) Hero Section with wave shape */
.hero {
  position: relative; 
  overflow: hidden; 
  text-align: center;
  color: #fff;
  max-width: 100%;
  margin-bottom: 3em; 
}

.hero .hero-background {
  width: 100%;
  height: 60vh;
  position: relative;
  z-index: 1;
  /* We handle images inside (see below) */
}

/* Hero images crossfade */
.hero-background img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Prevent user from dragging the image (optional):
     pointer-events: none;
  */
}

.hero-background img.small-hero {
  z-index: 1;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.hero-background img.large-hero {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
  /* Start hidden, fade in on load */
}

/* Wave shape overlay using clip-path */
.hero::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to right, #4e4e4e, #2e2e2e);
  z-index: 2;
  clip-path: polygon(0 60%, 50% 100%, 100% 60%, 100% 100%, 0 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 90%;
  max-width: 1000px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5em;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5em;
}

.hero-content .cta-buttons a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.75em 1.25em;
  margin: 0 0.25em;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s;
}

.hero-content .cta-buttons a:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* For smaller screens, reduce hero height */
@media (max-width: 768px) {
  .hero .hero-background {
    height: 40vh;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
}

/* 4) Section Style */
.section {
  max-width: 1200px;
  margin: 2em auto;
  padding: 1.5em;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  border-radius: 8px;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 0.75em;
  color: #ffd700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* CTA Buttons in sections */
.cta-buttons {
  margin-top: 1.5em;
}

.cta-buttons a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.75em 1.25em;
  margin: 0.25em;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s ease;
  text-decoration: none;
}

.cta-buttons a:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 5) Image Grid + Hover Zoom */
.images-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1em;
  justify-items: center;
}

.images-showcase-grid a {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.images-showcase-grid a img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s;
}

.images-showcase-grid a:hover img {
  transform: scale(1.05);
}

.images-showcase-grid a::after {
  content: "🔍";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 0.3s;
}

.images-showcase-grid a:hover::after {
  opacity: 1;
}

/* 6) Footer */
.footer {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  padding: 1.5em 1em;
}

.footer p {
  margin: 0.5em 0;
  color: #ccc;
  font-size: 0.95rem;
}

/* 7) Form Container */
.form-container {
  max-width: 600px;
  margin: 2em auto;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 2em;
  color: #fff;
}

.form-container h2 {
  margin-bottom: 1em;
  color: #ffd700;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.form-group {
  margin-bottom: 1.2em;
}

.form-group label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: 600;
  color: #fff;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Form button */
.submit-btn {
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 0.75em 1.25em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* 8) Gallery Modal */
.gallery-modal {
  display: none; 
  position: fixed;
  z-index: 10000; 
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; 
  background-color: rgba(0, 0, 0, 0.9);
}

.gallery-modal img {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.gallery-modal .caption {
  margin: 15px auto;
  text-align: center;
  color: #fff;
  font-size: 1.1rem;
  max-width: 80%;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: color 0.3s;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: #ffd700;
  text-decoration: none;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: #fff;
  font-weight: bold;
  font-size: 30px;
  transition: color 0.3s;
  user-select: none;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.prev:hover,
.next:hover {
  color: #ffd700;
}

/* Responsive Adjustments for Modal */
@media only screen and (max-width: 768px) {
  .gallery-modal img {
    max-width: 90%;
    max-height: 70%;
  }
  .close-btn {
    font-size: 30px;
    top: 15px;
    right: 25px;
  }
  .prev,
  .next {
    font-size: 24px;
    padding: 12px;
  }
  .gallery-modal .caption {
    font-size: 1rem;
  }
}

/* 9) Services Page Specific Styles */
.services-page .section-content {
  display: flex;
  align-items: center;
  gap: 1.5em;
}

.services-page .section-text {
  flex: 1;
}

.services-page .section-image {
  flex: 1;
}

.services-page .section-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .services-page .section-content {
    flex-direction: column;
  }
  .services-page .section-image img {
    max-width: 100%;
    height: auto;
  }
  .services-page .hero .hero-background {
    height: 40vh;
  }
  .services-page .hero-content h1 {
    font-size: 2rem;
  }
}
