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

html {
  scroll-behavior: smooth; /* Enables smooth scrolling for all anchor links */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #f4f4f4;
  background-color: #1a1a1a;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  overflow: hidden;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background: #111;
  color: #fff;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo-name {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 2px;
}

header .main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

header .main-nav ul li {
  display: inline;
  margin: 0 15px;
}

header .main-nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

header .main-nav ul li a:hover,
header .main-nav ul li a.active {
  color: #e0ac1c; /* A gold accent */
}


/* Hero Section */
#hero {
  height: 100vh; 
  background-image: url('/public/images/hero-image.png'); 
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; 
  color: #fff;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); 
  z-index: 1; 
}

#hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-text-overlay .locations {
  font-size: 2rem;
  font-weight: 600;
  color: #e0ac1c;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* UPDATE 1: Clamping hero headlines for fluid responsiveness */
.hero-text-overlay .name {
  font-size: clamp(3.5rem, 12vw, 7rem); /* min, preferred, max */
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-text-overlay .tagline {
  font-size: clamp(1.2rem, 4vw, 1.75rem); /* min, preferred, max */
  font-weight: 700;
  line-height: 1.2;
}

.highlight-text {
  color: #e0ac1c; /* The gold/orange accent color */
}

/* General Section Styling */
section {
  padding: 80px 0;
  border-bottom: 1px solid #333;
}
section:last-of-type {
  border-bottom: none;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #e0ac1c;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- ANIMATION CLASS --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* About Section */
#about { background: #222; }
#about .about-content { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; }
#about .about-text { flex: 2; min-width: 300px; }
#about .about-image { flex: 1; min-width: 250px; text-align: center; }
#about .about-image img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
#about .quote { font-style: italic; margin-bottom: 20px; padding-left: 20px; border-left: 3px solid #e0ac1c; font-size: 1.3rem; }

/* Services Section */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-item { background: #2a2a2a; padding: 25px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-item:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.service-item h3 { color: #e0ac1c; margin-bottom: 10px; }

/* Experience Timeline Section */
/* This section's styles are unchanged and remain as they were. */
#experience-timeline {
  background-color: #1a1a1a;
  padding: 60px 0;
  font-family: sans-serif;
}
#experience-timeline .timeline-header-container {
  text-align: center;
  margin-bottom: 50px;
}
#experience-timeline h2 {
  color: #f4f4f4;
  font-size: 2.5rem;
  font-weight: bold;
}
#experience-timeline .timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
#experience-timeline .timeline-container::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: #444;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}
#experience-timeline .timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}
#experience-timeline .timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
#experience-timeline .timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}
#experience-timeline .timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 28px;
  background-color: #1a1a1a;
  border: 3px solid #e0ac1c;
  border-radius: 50%;
  z-index: 1;
}
#experience-timeline .timeline-item:nth-child(odd)::after {
  right: -11px;
}
#experience-timeline .timeline-item:nth-child(even)::after {
  left: -11px;
}
#experience-timeline .timeline-content {
  padding: 20px 25px;
  background: #2a2a2a;
  border-radius: 8px;
  position: relative;
  display: inline-block;
  text-align: left;
  transition: transform 0.3s ease;
}
#experience-timeline .timeline-content:hover {
  transform: scale(1.03);
}
#experience-timeline .timeline-item:nth-child(odd)::after {
    left: 100%;
    margin-left: -11px;
    border-right: 3px solid #e0ac1c;
}
#experience-timeline .timeline-item:nth-child(even) .timeline-content {
  border-left: 3px solid #e0ac1c;
}
#experience-timeline .timeline-item:nth-child(odd) .timeline-content {
  border-right: 3px solid #e0ac1c;
}
#experience-timeline .timeline-date {
  position: absolute;
  top: 22px;
  right: 25px;
  font-size: 0.8rem;
  color: #aaa;
}
#experience-timeline .timeline-content h3 {
  font-size: 1.2rem;
  color: #e0ac1c;
  margin: 0 0 8px 0;
  padding-right: 70px;
}
#experience-timeline .timeline-content .timeline-location {
  font-size: 1rem;
  color: #f4f4f4;
  margin: 0;
}


/* --- UPDATE 2: GALLERY SECTION --- */
#gallery { background: #222; }
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
}
.gallery-item { 
    background: #2a2a2a; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
    transition: transform 0.3s ease; 
    cursor: pointer; /* Indicate it's clickable */
}
.gallery-item:hover { 
    transform: scale(1.03); 
}
.gallery-item img {
    width: 100%;
    height: auto;
    /* This creates the square, center-cropped effect */
    aspect-ratio: 1 / 1;
    object-fit: cover; 
    display: block;
}
.gallery-quote { 
    text-align: center; 
    font-style: italic; 
    margin: 40px auto 0; 
    max-width: 700px; 
    font-size: 1.1rem; 
}

/* NEW: Load More Button Styles */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}
.btn-load-more {
    padding: 12px 30px;
    background-color: #e0ac1c;
    color: #111;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-load-more:hover {
    background-color: #c89810;
    transform: scale(1.05);
}
/* Utility class to hide the button */
.btn-load-more.hidden {
    display: none;
}

/* Utility class to hide gallery items before they are "loaded" */
.gallery-item.hidden {
    display: none;
}


/* --- UPDATE 3: NEW MODAL (LIGHTBOX) STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}
.modal-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh; /* Ensures image fits viewport height */
    display: block;
    border-radius: 5px;
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
}
.modal-close:hover {
    color: #bbb;
}
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30,30,30,0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 5px;
    user-select: none; /* Prevents text selection on double click */
}
.modal-nav:hover {
    background: rgba(0,0,0,0.7);
}
.modal-prev {
    left: 20px;
}
.modal-next {
    right: 20px;
}


/* Contact Section */
#contact form { max-width: 700px; margin: 0 auto; background: #2a2a2a; padding: 30px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
#contact label { display: block; margin-bottom: 8px; color: #ccc; }
#contact input[type="text"], #contact input[type="email"], #contact textarea { width: 100%; padding: 12px; margin-bottom: 20px; border: 1px solid #444; border-radius: 5px; background-color: #333; color: #f4f4f4; font-size: 1rem; }
#contact input[type="text"]:focus, #contact input[type="email"]:focus, #contact textarea:focus { outline: none; border-color: #e0ac1c; }
#contact textarea { min-height: 150px; resize: vertical; }
#contact button[type="submit"] { display: block; width: 100%; padding: 12px 20px; background-color: #e0ac1c; color: #111; border: none; border-radius: 5px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: background-color 0.3s ease; }
#contact button[type="submit"]:hover { background-color: #c89810; }
.contact-info { text-align: center; margin-top: 40px; }
.contact-info p { margin-bottom: 10px; font-size: 1.1rem; }
.contact-info a { color: #e0ac1c; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* Footer */
footer { background: #111; color: #aaa; text-align: center; padding: 2rem 0; }

/* --- HAMBURGER MENU --- */
.hamburger {
  display: none; /* Hidden by default */
  position: relative;
  padding: 15px;
  cursor: pointer;
  background-color: transparent;
  border: 0;
  z-index: 1001;
}
.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 30px;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  position: absolute;
  transition: transform 0.3s ease;
}
.hamburger-inner { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before, .hamburger-inner::after { content: ''; display: block; }
.hamburger-inner::before { top: -10px; }
.hamburger-inner::after { bottom: -10px; }
.hamburger.is-active .hamburger-inner { transform: rotate(45deg); }
.hamburger.is-active .hamburger-inner::before { transform: rotate(-90deg) translate(-10px, 0px); opacity: 1; }
.hamburger.is-active .hamburger-inner::after { transform: rotate(-90deg) translate(10px, 0px); opacity: 0; }


/* Responsive Design */
@media (max-width: 768px) {
  header .logo-name { font-size: 1.5rem; }
  
  .hamburger { display: block; }

  .main-nav {
      position: fixed;
      top: 0;
      right: 0;
      width: 70%;
      height: 100vh;
      background: #1c1c1c;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      transform: translateX(100%);
      transition: transform 0.3s ease-in-out;
      padding-top: 60px;
  }

  .main-nav.is-active {
      transform: translateX(0);
  }

  .main-nav ul {
      flex-direction: column;
      text-align: center;
  }

  header .main-nav ul li {
      display: block;
      margin: 20px 0;
  }
  
  header .main-nav ul li a {
      font-size: 1.2rem;
  }

  /* Fine-tuning for smaller hero text */
  .hero-text-overlay .locations {
    font-size: 1.2rem;
  }

  section { padding: 60px 0; }
  section h2 { font-size: 2rem; }
  #about .about-content { flex-direction: column; }
  .services-grid { grid-template-columns: 1fr; }
  
  /* Make gallery 2 columns on smaller tablets, then 1 on phones */
  .gallery-grid { 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 15px;
  }

  #experience-timeline .timeline-container::after {
    left: 31px;
    margin-left: 0;
  }
  
  #experience-timeline .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  #experience-timeline .timeline-item:nth-child(odd),
  #experience-timeline .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }
  
  #experience-timeline .timeline-item:nth-child(odd)::after,
  #experience-timeline .timeline-item:nth-child(even)::after {
    left: 20px;
    right: auto;
    margin-left: 0;
  }
  
  #experience-timeline .timeline-item .timeline-content {
    display: block;
    border-left: 3px solid #e0ac1c;
    border-right: 3px solid transparent; 
  }
  
  #experience-timeline .timeline-content h3 {
    font-size: 1.1rem;
  }

  #experience-timeline .timeline-item:nth-child(odd) .timeline-content {
    border-right: 0;
  }
}