/* --- Base Variables & Reset --- */
:root {
  --gold: #cda274;
  --dark-bg: #141414;
  --text-dark: #1a1a1a;
  --text-muted: #777777;
  --bg-color: #fafafa;
  --font-main: "Outfit", sans-serif;
}

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

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.text-gold {
  color: var(--gold);
}

/* --- Navbar (Dark Overlay) --- */
.navbar-dark {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  color: #fff;
  transition: background 0.3s;
}

.navbar-dark.scrolled {
  position: fixed;
  background-color: rgba(20, 20, 20, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
}

.nav-links a.active {
  border-bottom: 2px solid #fff;
  padding-bottom: 5px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.phone-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background-color: var(--gold);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

/* --- Desktop layout adjustments for the new wrapper --- */
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-left: 40px;
}

/* --- Hamburger Icon Styles --- */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 101; /* Keeps it above the mobile menu */
}

.hamburger .bar {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* --- Mobile Responsive Navigation --- */
@media (width < 1024px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: -100%; /* Hidden off-screen to the left by default */
    flex-direction: column;

    /* 🔥 ADD THESE 3 LINES */
    align-items: center;
    justify-content: flex-start;
    height: calc(100vh - 80px);
    z-index: 999;

    background-color: rgba(20, 20, 20, 0.98);
    width: 100%;
    padding: 30px 0 50px 0;
    transition: left 0.4s ease;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
    padding-left: 0;
  }

  /* Triggers the slide-in effect */
  .nav-menu.active {
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    text-align: center;
    width: 100%;
    gap: 25px;
    margin-bottom: 40px;
  }

  .nav-actions {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .phone-info {
    justify-content: center;
  }

  /* Hamburger Animation: Turns into an 'X' when active */
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* --- Page Hero Section --- */
.page-hero {
  height: 60vh;
  min-height: 400px;
  background:
    linear-gradient(rgba(20, 20, 20, 0.6), rgba(20, 20, 20, 0.8)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80")
      center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 15px;
}

.breadcrumb {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.breadcrumb span {
  color: var(--text-muted);
}

/* --- About Intro Grid Layout --- */
.about-intro-section {
  position: relative;
  padding: 120px 0;
  background-color: var(--bg-color);
  overflow: hidden;
}

.about-grid {
  display: grid;
  /* 3 Columns: 1fr (Number), 1fr (Small Image), 1.3fr (Text/Big Image) */
  grid-template-columns: 1fr 1fr 1.3fr;
  grid-template-rows: auto auto;
  gap: 40px;
  align-items: end; /* Aligns items to the bottom of their grid cells */
}

/* Positioning the blocks within the grid */
.title-block {
  grid-column: 1 / 3; /* Spans across column 1 and 2 */
  grid-row: 1 / 2;
  padding-bottom: 20px;
}

.large-image-block {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  background: #fff;
  margin-bottom: 20px;
}

.badge .dot {
  width: 6px;
  height: 6px;
  background-color: var(--gold);
  border-radius: 50%;
}

.main-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}

.experience-block {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  display: flex;
  align-items: center;
  gap: 15px;
}

.square-image-block {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.text-block {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

/* Grid Elements Styling */
.img-rounded {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.square-img {
  aspect-ratio: 1 / 1;
}

.huge-number {
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 0.8;
  letter-spacing: -5px;
}

.experience-text {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

.text-block p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* Specific Pill Button for About section */
.btn-outline-pill {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background-color: transparent;
  color: var(--text-dark);
  padding: 6px 6px 6px 24px;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline-pill:hover {
  border-color: var(--gold);
}

.gold-circle {
  background-color: var(--gold);
}

/* --- Our History Timeline Section --- */
.history-section {
  padding: 100px 0 120px;
  background-color: var(--bg-color);
}

.timeline-container {
  position: relative;
  width: 100%;
  overflow-x: auto; /* Enables horizontal scroll */
  scrollbar-width: none; /* Hide scrollbar Firefox */
  cursor: grab;
  padding: 40px 0;
}

.timeline-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.timeline-container.active {
  cursor: grabbing;
}

.timeline-track {
  display: inline-flex;
  gap: 40px;
  padding: 0 5vw; /* Padding on edges so it doesn't touch the screen border */
  position: relative;
}

/* The continuous horizontal line */
.timeline-line {
  position: absolute;
  top: 255px; /* Adjust this to sit exactly behind the dots */
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #e0e0e0;
  z-index: 1;
}

/* Individual Timeline Items */
.timeline-item {
  width: 300px; /* Fixed width for consistent cards */
  display: flex;
  flex-direction: column;
  flex-shrink: 0; /* Prevents squishing */
}

.timeline-item img {
  width: 100%;
  max-width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
  pointer-events: none; /* Prevents drag bugs */
}

/* The Gold Dot */
.timeline-node {
  height: 70px; /* Creates space between image and text */
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2; /* Ensures dot sits ON TOP of the timeline-line */
}

.node-dot {
  width: 16px;
  height: 16px;
  background-color: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--bg-color); /* Creates a "cutout" effect over the line */
}

.timeline-item h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1100px) {
  .about-grid {
    grid-template-columns: 1fr 1fr; /* Switch to 2 columns */
    grid-template-rows: auto auto auto;
  }

  .title-block {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
  .large-image-block {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
  }
  .experience-block {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }
  .square-image-block {
    display: none; /* Hide on smaller screens to save space */
  }
  .text-block {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }

  .huge-number {
    font-size: 10rem;
  }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr; /* Switch to 1 column */
  }

  .title-block,
  .large-image-block,
  .experience-block,
  .text-block {
    grid-column: 1 / -1; /* All items span full width */
    grid-row: auto;
  }

  .huge-number {
    font-size: 8rem;
  }

  .timeline-item {
    width: 260px;
  }
}

/* =========================================
   RESPONSIVE DESIGN OPTIMIZATIONS
========================================= */

/* --- Tablet / Mid-size Screens (Max 1100px) --- */
@media (max-width: 1100px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 30px;
  }
  .title-block {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
  .large-image-block {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
  }
  .experience-block {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }
  .square-image-block {
    display: none; /* Hide to save space */
  }
  .text-block {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }
  .huge-number {
    font-size: 12rem; /* Scaled down slightly */
  }
}

/* --- Tablets & Large Phones (Max 1024px) --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }

  .main-title {
    font-size: 3rem; /* Scale down titles globally */
  }
}

/* --- Mobile Phones (Max 768px) --- */
@media (max-width: 768px) {
  /* 1. Fix Global Container Padding */
  .container {
    padding: 0 20px; /* Give mobile more breathing room */
  }

  /* 2. Fix Hero Section Sizing */
  .page-hero {
    min-height: 350px; /* Slightly shorter on mobile */
  }
  .hero-content h1 {
    font-size: 2.5rem; /* Prevent text overflow */
    margin-bottom: 10px;
  }

  /* 3. Fix About Section Stacking & Alignment */
  .about-intro-section {
    padding: 60px 0; /* Less padding on top/bottom */
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .title-block,
  .large-image-block,
  .experience-block,
  .text-block {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .main-title {
    font-size: 2.2rem; /* Even smaller for very narrow screens */
  }
  .text-block p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  /* Redesign the Experience Block for mobile */
  .experience-block {
    flex-direction: column; /* Stack number and text */
    align-items: flex-start;
    gap: 5px;
  }
  .huge-number {
    font-size: 7rem;
    letter-spacing: -2px;
    line-height: 0.9;
  }

  /* 4. Fix History Timeline */
  .history-section {
    padding: 60px 0 80px;
  }
  .timeline-item {
    width: 240px; /* Slightly narrower cards for mobile viewing */
  }
  .timeline-item h3 {
    font-size: 1.8rem;
  }
}

/* --- Small Mobile Phones (Max 600px) --- */
@media (max-width: 600px) {
  /* 5. Fix Footer Layout */
  .footer-section {
    padding: 60px 0 30px; /* Less padding on top */
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
  }
  .contact-phone {
    font-size: 1.5rem;
  }
  .contact-email {
    font-size: 1.2rem;
  }
  .footer-watermark {
    font-size: 35vw;
    bottom: -5%; /* Pull it up slightly so it isn't cut off completely */
  }
}

/* =========================================
   IMAGE MODAL (LIGHTBOX)
========================================= */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); /* Dark semi-transparent background */
  z-index: 9999; /* Ensures it sits on top of absolutely everything */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Hidden by default with smooth transitions */
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0s linear 0.3s,
    opacity 0.3s ease;
}

/* When the 'show' class is added via JavaScript */
.image-modal.show {
  visibility: visible;
  opacity: 1;
  transition:
    visibility 0s linear 0s,
    opacity 0.3s ease;
}

/* The actual expanded image */
.modal-content {
  max-width: 90%;
  max-height: 85vh; /* Prevents it from going off-screen vertically */
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smooth pop effect */
}

.image-modal.show .modal-content {
  transform: scale(1);
}

/* The Close Button (X) */
.close-modal {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #ffffff;
  font-size: 50px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.close-modal:hover {
  color: var(--gold); /* Uses your brand gold color on hover */
}
