/* ==========================================================================
   1. DESIGN SYSTEM & REFRESH
   ========================================================================== */

/* Prevent horizontal clipping and right-side bleeding globally */
html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

:root {
  --color-primary: #0A2E26;     
  --color-secondary: #D4AF37;   
  --color-bg-light: #FAF8F5;    
  --color-card-bg: #FFFFFF;
  --color-text-dark: #1F2421;   
  --color-text-light: #FFFFFF;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  
  --transition-premium: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --header-height: 90px; /* Explicitly defining this to fix layout overlaps */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.65;
  overflow-x: hidden; /* Prevents awkward horizontal layout scrolling on mobile */
}

/* ==========================================================================
   2. HEADER & FIXED NAVIGATION
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8%;
  background: rgba(10, 46, 38, 0.95);
  backdrop-filter: blur(15px);
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.logo {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  font-size: 1.6rem;
  letter-spacing: 3px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-light);
  text-decoration: none;
  margin-left: 35px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition-premium);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-secondary);
}

.nav-links .btn-nav {
  border: 1px solid var(--color-secondary);
  padding: 10px 24px;
}

.nav-links .btn-nav:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

/* Mobile Toggle Styling Hidden by Default on Desktop */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 1em;
}

/* ==========================================================================
   3. HERO SECTION (With Top Padding Safety)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* background image line REMOVED - handled by JS now */
  padding: var(--header-height) 24px 60px 24px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(10, 46, 38, 0.8));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: var(--color-text-light);
}

.hero-tagline {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--color-secondary);
  margin-bottom: 20px;
  display: inline-block;
  font-weight: 600;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw + 1rem, 4rem); /* Dynamically shrinks/grows with browser width */
  line-height: 1.25;
  margin-bottom: 25px;
  font-weight: 700;
}

.hero-content p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin-bottom: 40px;
  opacity: 0.85;
  font-weight: 300;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Wraps cleanly into stacked buttons on narrow mobile devices */
  gap: 15px;
}

.hero-cta-group a {
  text-decoration: none;
  padding: 15px 35px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-premium);
  white-space: nowrap;
}

.btn-primary { background-color: var(--color-secondary); color: var(--color-primary); }
.btn-primary:hover { background-color: var(--color-text-light); transform: translateY(-3px); }
.btn-secondary { border: 2px solid var(--color-text-light); color: var(--color-text-light); }
.btn-secondary:hover { background-color: var(--color-text-light); color: var(--color-primary); transform: translateY(-3px); }

/* ==========================================================================
   4. PREMIUM STATS BAR
   ========================================================================== */
.stats-bar {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 1100px;
  margin: -60px auto 0 auto;
  background: var(--color-primary);
  padding: 35px 20px;
  z-index: 10;
  box-shadow: 0 15px 35px rgba(10, 46, 38, 0.25);
  border-bottom: 3px solid var(--color-secondary);
}

.stat-item { text-align: center; color: var(--color-text-light); flex: 1; }
.stat-item h3 { font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.8rem); color: var(--color-secondary); margin-bottom: 5px; }
.stat-item p { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.8; }
.stat-divider { width: 1px; height: 50px; background-color: rgba(212, 175, 55, 0.3); }
.gold-star { font-size: clamp(1.2rem, 2vw, 1.8rem); vertical-align: middle; }

/* ==========================================================================
   5. BESPOKE SERVICES GRID
   ========================================================================== */
.services-section { padding: 120px 8% 100px 8%; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .sub-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 4px; color: var(--color-secondary); font-weight: 600; display: block; margin-bottom: 10px; }
.section-header h2 { font-family: var(--font-heading); font-size: clamp(2rem, 3vw, 2.8rem); color: var(--color-primary); font-weight: 700; }
.title-line { width: 70px; height: 2px; background-color: var(--color-secondary); margin: 15px auto 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Automatically drops into responsive rows */
  gap: 30px;
}

.service-card {
  position: relative;
  height: 380px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: var(--transition-premium);
}

.service-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: var(--transition-premium); }
.card-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(10, 46, 38, 0.2), rgba(10, 46, 38, 0.85)); z-index: 1; transition: var(--transition-premium); }
.service-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; color: var(--color-text-light); z-index: 2; transition: var(--transition-premium); }
.service-icon { font-size: 2rem; color: var(--color-secondary); margin-bottom: 15px; transition: var(--transition-premium); }
.service-info h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 10px; }
.service-info p { font-size: 0.88rem; opacity: 0; height: 0; transition: var(--transition-premium); transform: translateY(20px); }

.service-card:hover .service-img { transform: scale(1.08); }
.service-card:hover .card-overlay { background: linear-gradient(to bottom, rgba(10, 46, 38, 0.4), rgba(10, 46, 38, 0.95)); }
.service-card:hover .service-info p { opacity: 0.9; height: auto; margin-top: 10px; transform: translateY(0); }

/* ==========================================================================
   6. EXECUTIVE FOOTER
   ========================================================================== */
.main-footer { background-color: #051612; color: var(--color-text-light); padding: 80px 8% 30px 8%; border-top: 4px solid var(--color-secondary); }
.footer-container { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; margin-bottom: 50px; }
.footer-brand { flex: 1; min-width: 250px; }
.footer-brand h2 { font-family: var(--font-heading); color: var(--color-secondary); letter-spacing: 3px; margin-bottom: 15px; }
.footer-brand p { font-size: 0.9rem; opacity: 0.7; max-width: 320px; }
.footer-location { flex: 1; min-width: 280px; }
.footer-location h3 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--color-secondary); margin-bottom: 15px; }
.footer-location h3 i { margin-right: 8px; }
.footer-location .address { font-size: 0.95rem; opacity: 0.85; margin-bottom: 25px; font-weight: 300; }
.btn-maps { display: inline-block; text-decoration: none; background-color: transparent; border: 1px solid var(--color-secondary); color: var(--color-secondary); padding: 12px 28px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition-premium); }
.btn-maps i { margin-right: 8px; }
.btn-maps:hover { background-color: var(--color-secondary); color: #051612; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 25px; text-align: center; font-size: 0.85rem; opacity: 0.5; }

/* ==========================================================================
   7. MEDIA QUERIES (FLAWLESS RESPONSIVENESS)
   ========================================================================== */

/* Tablet & Mobile Screens Rules */
@media (max-width: 992px) {
  .main-header { padding: 0 5%; }
  
  /* Style hamburger bars */
  .mobile-nav-toggle { display: block; z-index: 1001; }
  .hamburger, .hamburger::before, .hamburger::after { background: var(--color-secondary); content: ''; display: block; height: 2px; width: 24px; transition: var(--transition-premium); position: relative; }
  .hamburger::before { top: 8px; }
  .hamburger::after { bottom: 10px; }

  /* Pull nav items into a full-screen mobile slide-out menu panel */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 100%; /* Keeps off-screen until opened */
    background: var(--color-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: var(--transition-premium);
    z-index: 1000;
  }
  
  /* Trigger target class to slide out menu via JavaScript toggle */
  .nav-links.nav-open { left: 0; }
  .nav-links a { margin-left: 0; font-size: 1.1rem; }
  
  /* Animate Hamburger icon into an 'X' when open */
  .nav-open-toggle .hamburger { transform: rotate(45deg); }
  .nav-open-toggle .hamburger::before { opacity: 0; }
  .nav-open-toggle .hamburger::after { transform: rotate(-90deg); top: -2px; }

  /* Adjust Stats Box Layout */
  .stats-bar {
    flex-direction: column;
    gap: 30px;
    margin: -30px 20px 0 20px;
    padding: 35px;
  }
  .stat-divider { display: none; }
  .stat-item { width: 100%; }
}

@media (max-width: 480px) {
  .hero-section { padding-top: calc(var(--header-height) + 20px); }
  .hero-cta-group { flex-direction: column; width: 100%; padding: 0 10px; }
  .hero-cta-group a { width: 100%; text-align: center; }
  .services-section { padding: 80px 4% 60px 4%; }
}
/* ==========================================================================
   ADDED: SOCIAL MEDIA BUTTONS STYLING
   ========================================================================== */
.footer-social {
  flex: 1;
  min-width: 250px;
}

.footer-social h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-secondary);
  margin-bottom: 15px;
}

.footer-social p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 20px;
  max-width: 280px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(214, 175, 55, 0.4); /* Subtle gold border */
  border-radius: 50%;                         /* Perfect circle */
  color: var(--color-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition-premium);
}

/* Luxury hover effect: fills background, shifts color, and pops up slightly */
.social-icons a:hover {
  background-color: var(--color-secondary);
  color: #051612;                             /* Deep dark contrast */
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
  border-color: var(--color-secondary);
}

/* ==========================================================================
   8. BESPOKE MODAL POP-UP SYSTEM
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 22, 18, 0.6); /* Translucent primary shadow mask */
  backdrop-filter: blur(8px);       /* Soft cinematic defocus behind modal */
  z-index: 2000;                     /* Highest spatial order */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-premium);
}

/* Activated Pop-up State triggered via JavaScript */
.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  background-color: #FFFFFF;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  transform: translateY(-40px);
  transition: var(--transition-premium);
}

.modal-overlay.is-active .modal-wrapper {
  transform: translateY(0); /* Clean downward landing float animation */
}

/* Floating Cross Close Button */
.modal-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-premium);
}

.modal-close-btn:hover {
  color: var(--color-secondary);
  transform: rotate(90deg);
}

/* Grid Container Context Refinements inside pop-up context */
.quote-container {
  display: flex;
  background-color: var(--color-bg-light);
}

.quote-info-side {
  flex: 1;
  padding: 50px;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title-line.left-aligned { margin: 15px 0 25px 0; }
.quote-description { font-size: 0.95rem; opacity: 0.8; margin-bottom: 30px; font-weight: 300; line-height: 1.7; }
.direct-connect-card { background-color: rgba(255, 255, 255, 0.04); border: 1px solid rgba(212, 175, 55, 0.2); padding: 25px; }
.direct-connect-card h4 { font-family: var(--font-heading); color: var(--color-secondary); font-size: 1.1rem; margin-bottom: 8px; }
.direct-connect-card p { font-size: 0.85rem; opacity: 0.7; margin-bottom: 15px; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background-color: #25D366;
  color: #FFFFFF;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-premium);
}
.btn-whatsapp i { font-size: 1.1rem; margin-right: 6px; }
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3); }

.quote-form-side { flex: 1.2; padding: 50px; background-color: #FFFFFF; }
.form-row { display: flex; gap: 20px; }
.form-group { flex: 1; display: flex; flex-direction: column; margin-bottom: 20px; }
.form-group label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 6px; color: var(--color-primary); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid #E2E8F0;
  background-color: #FAFBFD;
  color: var(--color-text-dark);
  transition: var(--transition-premium);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-secondary);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.btn-submit-quote {
  width: 100%;
  padding: 14px;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  transition: var(--transition-premium);
}
.btn-submit-quote i { transition: var(--transition-premium); }
.btn-submit-quote:hover { background-color: var(--color-secondary); color: var(--color-primary); }
.btn-submit-quote:hover i { transform: translateX(6px); }

/* Responsive adjustments for Modal Window viewports */
@media (max-width: 992px) {
  .modal-overlay { overflow-y: auto; align-items: flex-start; padding: 60px 20px; }
  .modal-wrapper { max-width: 650px; }
  .quote-container { flex-direction: column; }
  .quote-info-side, .quote-form-side { padding: 40px 30px; }
  .modal-close-btn { top: -45px; right: 10px; color: #FFFFFF; }
}

@media (max-width: 576px) {
  .form-row { flex-direction: column; gap: 0; }
}

/* ==========================================================================
   9. INTERACTIVE GALLERY ECOSYSTEM
   ========================================================================== */
.gallery-section {
  padding: 100px 8%;
  background-color: var(--color-bg-light);
}

/* Portfolio Filter Deck Controls */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(10, 46, 38, 0.15);
  color: var(--color-primary);
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-premium);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(10, 46, 38, 0.15);
}

/* Dynamic Portfolio Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  height: 300px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%); /* Soft modern film grade aesthetic */
  transition: var(--transition-premium);
}

/* Luxury Card Sliding Overlays */
.gallery-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 46, 38, 0.9); /* Translucent signature emerald fill */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  opacity: 0;
  transition: var(--transition-premium);
  z-index: 2;
}

.gallery-item-text h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-secondary);
  margin-bottom: 8px;
  transform: translateY(-15px);
  transition: var(--transition-premium);
}

.gallery-item-text p {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-light);
  opacity: 0.8;
  transform: translateY(15px);
  transition: var(--transition-premium);
}

/* Interactive Image Hover States */
.gallery-item:hover img {
  transform: scale(1.08);
  filter: grayscale(0%);
}

.gallery-item:hover .gallery-hover-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-item-text h4,
.gallery-item:hover .gallery-item-text p {
  transform: translateY(0); /* Elements slide into center symmetrically */
}

/* CSS Filter state classes used by JS framework logic */
.gallery-item.is-hidden {
  opacity: 0;
  transform: scale(0.9);
  position: absolute;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  border: none;
  pointer-events: none;
}
/* ==========================================================================
   10. EXECUTIVE ABOUT & PROCESS BLUEPRINT
   ========================================================================== */
.about-section {
  padding: 100px 8%;
  background-color: #FFFFFF;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto 100px auto;
}

.about-content-side {
  flex: 1.2;
}

.about-lead {
  font-size: 1.15rem;
  font-family: var(--font-body);
  color: var(--color-primary);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-body {
  font-size: 0.95rem;
  color: var(--color-text-dark);
  opacity: 0.8;
  line-height: 1.8;
}

/* Asymmetrical Luxury Image Frame Setup */
.about-image-side {
  flex: 1;
  position: relative;
  padding: 20px;
}

.image-frame-primary {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.image-frame-primary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-premium);
}

.image-frame-primary:hover img {
  transform: scale(1.05);
}

/* Gold background border element that floats offset behind the picture */
.image-frame-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 90%;
  height: 90%;
  border: 2px solid var(--color-secondary);
  z-index: 1;
  transform: translate(-20px, 40px);
}

/* --- Process Timeline Grid Style --- */
.process-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.timeline-step {
  background-color: var(--color-bg-light);
  padding: 40px 30px;
  border-top: 3px solid rgba(10, 46, 38, 0.1);
  transition: var(--transition-premium);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: rgba(10, 46, 38, 0.1);
  line-height: 1;
  margin-bottom: 20px;
  font-weight: 700;
  transition: var(--transition-premium);
}

.timeline-step h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.timeline-step p {
  font-size: 0.88rem;
  color: var(--color-text-dark);
  opacity: 0.75;
  line-height: 1.7;
}

/* Interactive Hover Transformation */
.timeline-step:hover {
  background-color: #FFFFFF;
  border-top-color: var(--color-secondary);
  box-shadow: 0 15px 35px rgba(10, 46, 38, 0.05);
  transform: translateY(-5px);
}

.timeline-step:hover .step-number {
  color: var(--color-secondary);
  transform: scale(1.1) translateX(5px);
}

/* ==========================================================================
   RESPONSIVE LAYOUT OVERRIDES
   ========================================================================== */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
    gap: 50px;
    margin-bottom: 60px;
  }
  .image-frame-primary {
    height: 350px;
  }
  .image-frame-accent {
    transform: translate(-10px, 25px);
  }
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER FIX
   ========================================================================== */

/* 1. Global Safety Rail: Stops the screen from shaking or scrolling sideways */
html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* 2. Responsive Mobile Layout Rule */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 75%; /* Gives a sleek modern look leaving a gap on the left */
        height: 100vh;
        background-color: #1a1a1a; /* Change this hex code to match your theme background color */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px; /* Spaces out your Home, Services, Gallery links nicely */
        z-index: 999; /* Makes sure the menu sits on top of all other page sections */
        
        /* 🌟 THE CORE FIX: Completely hides the drawer off-screen to the right */
        transform: translateX(100%); 
        
        /* Delivers a smooth cinematic slide-in animation when clicked */
        transition: transform 0.4s ease-in-out; 
    }

    /* 🌟 THE ACTIVE STATE: Triggered by your JS to bring it center stage */
    .nav-links.nav-open {
        transform: translateX(0);
    }

    /* Optional: Styles the text links inside the mobile menu drawer */
    .nav-links a {
        font-size: 1.2rem;
        color: #ffffff; /* Change to your preferred text link color */
        text-decoration: none;
        letter-spacing: 1px;
    }
}