/* ===================================================
   --- 1. GLOBAL RESET AND VARIABLES --- 
   =================================================== */
:root {
  --primary-blue: #003366;
  --accent-orange: #ff6600;
  --whatsapp-green: #25d366;
  --light-bg: #f4f7f9;
  --dark-text: #333;
  --white: #fff;
  --footer-bg-dark: rgba(0, 0, 0, 0.7);
  --overlay-dark: rgba(0, 0, 0, 0.6);
  --border-radius-lg: 15px;
  --border-radius-md: 10px;
  --transition-speed: 0.3s;

  /* Carousel-specific Variables */
  --card-text: var(--white);
  --d: 700ms; /* Duration for card hover effects */
  --e: cubic-bezier(0.19, 1, 0.22, 1); /* Easing for card hover effects */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1,
h2 {
  color: var(--primary-blue) ;
  font-weight: 600 ;
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: color var(--transition-speed), transform var(--transition-speed);
}

ul {
  list-style: none;
}

section {
  padding: 60px 5%;
  position: relative;
}

/* ===================================================
   --- 2. BUTTONS --- 
   =================================================== */
.btn {
  display: inline-flex; /* Changed to flex for proper centering with icon */
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 50px;
  transition: transform var(--transition-speed) ease,
    background-color var(--transition-speed) ease;
  text-align: center;
  gap: 8px; /* Used gap instead of margin for icon spacing */
}

.btn-primary {
  background-color: var(--accent-orange);
  color: var(--white);
  border: 2px solid var(--accent-orange);
}

.btn-primary:hover {
  transform: translateY(-3px) ;
  background-color: #e65c00 ;
}

.btn-secondary {
  background-color: var(--primary-blue);
  color: var(--white);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background-color: #002244;
}

.btn-whatsapp {
  background-color: var(--whatsapp-green) ;
  color: var(--white) ;
  border: 2px solid var(--whatsapp-green) ;
}

.btn-whatsapp:hover {
  background-color: #21a851 ;
}

/* ===================================================
   --- 3. HEADER & NAVIGATION --- 
   =================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color var(--transition-speed) ease;
  padding: 0 5%;
  background-color: transparent;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-scrolled {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-scrolled .navigation a {
  color: var(--primary-blue);
}

.logo img {
  width: auto;
  height: 3.5rem;
  padding: 0;
  margin: 20px 0;
}

.navigation ul {
  display: flex;
  gap: 30px;
  margin-bottom: 0;
}

.navigation a {
  font-weight: 600;
  position: relative;
  color: var(--white);
}

.navigation a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  margin-top: 5px;
  right: 0;
  background: var(--accent-orange);
  transition: width var(--transition-speed) ease;
}

.navigation a:hover::after {
  width: 100%;
  left: 0;
  background: var(--accent-orange);
}

.header-scrolled .navigation a:hover::after {
  background: var(--accent-orange);
}

.navigation a i {
  margin-right: 8px;
  color: var(--accent-orange);
}

.header-scrolled .navigation a i {
  color: var(--accent-orange);
}

/* --- Hamburger Menu for Mobile --- */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background: var(--white);
  border-radius: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.header-scrolled .hamburger-menu span {
  background: var(--primary-blue);
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

.hamburger-menu.active span {
  background: var(--accent-orange);
}

/* --- Body Overlay for Nav Focus --- */
.body-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 15, 68, 0.842);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ===================================================
   --- 4. HERO SECTION --- 
   =================================================== */
.hero-section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero-section h1 {
  color: var(--white) ;
  font-size: 3.5rem;
  margin-bottom: 20px ;
}

.hero-section p {
  font-size: 1.2rem;
  color: var(--white);
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-dark);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeIn 1s ease-out;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================================================
   --- 5. BRANDS CAROUSEL --- 
   =================================================== */
.brands-section {
  overflow: hidden;
  padding: 40px 0;
  text-align: center;
}


.carousel-container {
  position: relative;
  padding: 0;
  overflow: hidden;
}

/* Hide scrollbar for aesthetics */
.brands-carousel::-webkit-scrollbar {
  display: none;
}

.brands-carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
  display: flex; /* Moved from .brands-carousel to here */
  flex-direction: column;
  gap: 20px;
}

/* CRITICAL: Pause animation on hover */
.brands-row:hover {
  animation-play-state: paused ;
}

.brands-row {
  display: flex;
  padding: 20px 0 0 0;
  width: max-content;
  animation: scrollLeft 40s linear infinite;
  animation-play-state: running;
}

.brands-row.reverse {
  animation: scrollRight 40s linear infinite;
}

.brands-row img {
  height: 60px;
  margin: 0 30px;
  filter: none;
  opacity: 0.8;
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
  cursor: pointer;
}

.brands-row img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ===================================================
   --- 6. CONTACT SECTION --- 
   =================================================== */
.contact-section {
  background-color: var(--light-bg);
}



.contact-form {
  display: grid;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-md);
  transition: border-color var(--transition-speed);
  font-family: "Poppins", sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

/* ===================================================
   --- 7. FOOTER --- 
   =================================================== */
/* --- FOOTER REDESIGN STYLES --- */

/* Base Footer Styling */
footer {
  position: relative;
  padding: 60px 0;
  color: var(--white); /* Using your existing --white variable */
  font-size: 1rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

/* Ensure overlay is present and dark */
.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

/* Common Content Wrapper */
.footer-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Top Grid Layout (Three Columns) --- */
.footer-top-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 40px;
  flex-wrap: wrap;
}

.footer-col {
  flex-grow: 1;
  width: calc(33.333% - 20px);
}

/* Headings */
.footer-links h3,
.footer-contact h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--accent-orange);
}

/* 1. Logo and Legal */
.footer-legal .footer-logo img {
  max-width: 160px;
  margin-bottom: 15px;
  filter: brightness(0) invert(1);
}
.footer-legal address {
  font-style: normal;
  line-height: 1.6;
  color: #ccc;
  font-size: 0.95rem;
}

/* 2. Navigation Links */
.footer-links ul {
  list-style: none;
  padding: 0;
  /* NEW: Default to vertical stacking for quick links */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Aligns left on desktop */
}
.footer-links ul li a {
  color: #ccc;
  text-decoration: none;
  padding: 5px 0;
  display: block;
  transition: color var(--transition-speed);
}
.footer-links ul li a:hover {
  color: var(--accent-orange);
}

/* 3. Contact Info - Targeting <a> links for tel: and mailto: */
.footer-contact a {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #ccc;
  text-decoration: none;
  transition: color var(--transition-speed);
  /* UX improvement: Make them look more clickable */
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  padding-bottom: 3px;
}
.footer-contact a:hover {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
}
.footer-contact a i {
  margin-right: 15px;
  font-size: 1.1rem;
  color: var(--accent-orange);
}

/* --- Horizontal Rule and Bottom Row --- */
.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 0;
  position: relative;
  z-index: 2;
}

.footer-bottom-row {
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-row .copyright {
  font-size: 0.85rem;
  color: #aaa;
  margin: 0;
}

/* Social Media Icons (Gray Default, Orange Hover) */
.social-links-bottom a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #aaaaaa;
  margin-left: 10px;
  transition: background-color var(--transition-speed),
    color var(--transition-speed);
}

/* On-hover color change to accent-orange */
.social-links-bottom a:hover {
  background-color: var(--accent-orange);
  color: var(--white);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .footer-top-grid {
    flex-direction: column;
    padding-bottom: 20px;
  }
  .footer-col {
    width: 100%;
    /* Increased spacing on mobile */
    margin-bottom: 30px;
  }
  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
  }
  .social-links-bottom {
    margin-top: 15px;
  }

  /* QUICK LINKS FIX: Centers headings and links, and ensures vertical alignment */
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the whole block */
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .footer-links ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    /* Centers the list items */
  }

  /* Centering content within the logo/legal and contact columns on mobile */
  .footer-legal,
  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Remove the bottom border from the last column for a cleaner look */
  .footer-contact {
    border-bottom: none;
  }
}

/* --- Floating WhatsApp Button --- */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

/* ===================================================
   --- 8. SERVICE CAROUSEL & MODAL STYLES --- 
   =================================================== */
.services-section {
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: hidden;
}



/* Carousel Container with Center Focus */
.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.carousel-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Navigation Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background-color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  color: var(--primary-blue);
  font-size: 1.5rem;
}

.nav-btn:hover {
  background-color: var(--accent-orange);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.nav-btn.prev {
  left: 10px;
}

.nav-btn.next {
  right: 10px;
}

/* Service Card - Your Original Design */
.service-card {
  position: absolute;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 1rem;
  width: 350px;
  height: 480px;
  text-align: center;
  color: var(--card-text);
  background-color: var(--primary-blue);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 16px 16px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
}

/* Background image */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-image: var(--card-image-url);
  filter: brightness(1);
  transform: scale(1);
  transition: transform calc(var(--d) * 1.5) var(--e), filter 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.service-card.center:hover::before {
  filter: brightness(0.4);
  transform: scale(1.05);
}

/* Gradient overlay */
.service-card::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  pointer-events: none;
  background-image: linear-gradient(
    to bottom,
    hsla(0, 0%, 0%, 0) 0%,
    hsla(0, 0%, 0%, 0.634) 100%
  );
  transform: translateY(-50%);
  transition: transform calc(var(--d) * 2) var(--e);
  z-index: 1;
}

.service-card.center:hover::after {
  transform: translateY(0);
}

/* Card States based on position */
.service-card.center {
  z-index: 10;
  transform: translateX(0) scale(1) rotateY(0deg);
  opacity: 1;
  filter: brightness(1);
}

.service-card.left {
  z-index: 5;
  transform: translateX(-420px) scale(0.85) rotateY(25deg);
  opacity: 0.5;
  filter: brightness(0.7);
  pointer-events: none;
}

.service-card.right {
  z-index: 5;
  transform: translateX(420px) scale(0.85) rotateY(-25deg);
  opacity: 0.5;
  filter: brightness(0.7);
  pointer-events: none;
}

.service-card.hidden {
  opacity: 0;
  transform: scale(0.7) rotateY(0deg);
  pointer-events: none;
  z-index: 1;
}

/* Content wrapper */
.service-card-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-bottom: 0.5rem;
  transition: transform var(--d) var(--e);
  z-index: 2;
  color: var(--card-text);
  transform: translateY(calc(100% - 5.5rem));
}

.service-card.center:hover .service-card-content {
  transform: translateY(0);
}

.service-card-content > * + * {
  margin-top: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.3;
  color: var(--card-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 0.5rem;
  margin-bottom: 0;
}

.service-card h3 i {
  color: var(--accent-orange);
}

.service-card p {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--card-text);
  opacity: 0;
  transform: translateY(1rem);
  transition: transform var(--d) var(--e), opacity var(--d) var(--e);
}

.service-card.center:hover p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--d) / 8);
}

.read-more-btn {
  cursor: pointer;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.65rem;
  font-weight: bold;
  letter-spacing: 0.025rem;
  text-transform: uppercase;
  color: var(--white);
  background-color: var(--accent-orange);
  border: none;
  border-radius: 50px;
  opacity: 0;
  transform: translateY(1rem);
  transition: transform var(--d) var(--e), opacity var(--d) var(--e),
    background-color 0.3s;
}

.service-card.center:hover .read-more-btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--d) / 8);
}

.read-more-btn:hover {
  background-color: var(--primary-blue);
}

/* Progress Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: all 0.3s;
}

.indicator.active {
  background-color: var(--accent-orange);
  width: 30px;
  border-radius: 6px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeInModal 0.3s ease-in-out; /* Renamed to avoid conflict */
}

.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background-color: var(--white);
  padding: 0;
  border-radius: 15px;
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: zoomInModal 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Renamed to avoid conflict */
}

.modal-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
}

.modal-body {
  padding: 30px;
}

.modal-body h3 {
  color: var(--primary-blue);
  font-size: 2rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-body h3 i {
  color: var(--accent-orange);
}

.modal-body p {
  color: #333;
  line-height: 1.8;
  margin-bottom: 30px;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--white);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  z-index: 10;
}

.close-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive Modal Buttons */
.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .modal-buttons {
    flex-direction: row;
  }
}

/* ===================================================
   --- 9. GALLERY CAROUSEL & MODAL STYLES --- 
   =================================================== */
.gallery-section {
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

/* Gallery Carousel Container */
.gallery-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  overflow: hidden;
}

.gallery-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Gallery Item */
.gallery-item {
  position: absolute;
  width: 400px;
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gallery Item States */
.gallery-item.center {
  z-index: 10;
  transform: translateX(0) scale(1) rotateY(0deg);
  opacity: 1;
  filter: brightness(1);
}

.gallery-item.center:hover {
  transform: translateX(0) scale(1.05) rotateY(0deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 12px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item.left {
  z-index: 5;
  transform: translateX(-480px) scale(0.85) rotateY(25deg);
  opacity: 0.5;
  filter: brightness(0.7);
  pointer-events: none;
}

.gallery-item.right {
  z-index: 5;
  transform: translateX(480px) scale(0.85) rotateY(-25deg);
  opacity: 0.5;
  filter: brightness(0.7);
  pointer-events: none;
}

.gallery-item.hidden {
  opacity: 0;
  transform: scale(0.7) rotateY(0deg);
  pointer-events: none;
  z-index: 1;
}

/* Navigation Buttons (Gallery) - Duplicated nav-btn, so using unique class for specificity */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background-color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  color: var(--primary-blue);
  font-size: 1.5rem;
}

.gallery-nav-btn:hover {
  background-color: var(--accent-orange);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.gallery-nav-btn.prev {
  left: 10px;
}

.gallery-nav-btn.next {
  right: 10px;
}

/* Gallery Modal Styles (Lightbox) */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeInModal 0.3s ease-in-out; /* Using the renamed keyframe */
}

.gallery-modal.show {
  display: block;
}

.modal-content-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 100px 60px;
}

.modal-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s ease, opacity 0.2s ease;
  animation: zoomInModal 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Using the renamed keyframe */
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 10%;
}

.modal-image-container img.zoomed {
  cursor: zoom-out;
  transform: scale(2);
}

.modal-close-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid var(--white);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 3010;
  backdrop-filter: blur(10px);
}

.modal-close-btn:hover {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: rotate(90deg);
}

.modal-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--white);
  transition: all 0.3s ease;
  z-index: 3005;
  backdrop-filter: blur(10px);
}

.modal-nav-btn:hover {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav-btn.modal-prev {
  left: 20px;
}

.modal-nav-btn.modal-next {
  right: 20px;
}

/* Zoom instructions */
.zoom-hint {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  z-index: 3005;
  opacity: 0;
  animation: fadeInOut 3s ease-in-out;
  pointer-events: none;
}

/* ===================================================
   --- 10. KEYFRAMES --- 
   (Unified all keyframes)
   =================================================== */
/* Hero Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Brands Carousel */
@keyframes scrollLeft {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0%);
  }
}

/* Shared Modal Keyframes */
@keyframes fadeInModal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomInModal {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Gallery Zoom Hint */
@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0;
  }
  10%,
  90% {
    opacity: 1;
  }
}

/* ===================================================
   --- 11. MEDIA QUERIES (RESPONSIVE DESIGN) --- 
   =================================================== */
/* Tablet/Mobile (max-width: 768px) */
@media (max-width: 768px) {
 section {
  padding: 40px 5%;
 }

 /* --- Header/Nav Mobile --- */
 .header-content {
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  position: relative;
 }

 .header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px 0;
  z-index: 100;
 }

 .logo img {
  margin: 0;
 }

 .hamburger-menu {
  display: flex;
  position: static;
  z-index: 1002;
 }

 .navigation {
  width: 100%;
  background-color: transparent;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
  padding: 0;
 }

 .navigation.nav-active {
  max-height: 400px;
 }

 .header-scrolled .navigation.nav-active {
  background-color: var(--white);
 }

 .navigation ul {
  /* Targetting ul within .navigation, previously .nav-links */
  flex-direction: column;
  text-align: center;
  width: 100%;
 }

 .navigation ul li {
  margin-bottom: 10px;
 }

 .navigation ul a {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 500;
 }

 /* --- Hero Mobile --- */
 .hero-section h1 {
  font-size: 1.8rem ;
 }

 .hero-section p {
  font-size: 1rem;
 }

 /* --- Brands Mobile --- */
 .brands-row {
  animation-duration: 20s;
 }

 /* --- Footer Mobile --- */
 .footer-nav ul {
  flex-direction: column;
  gap: 10px;
 }

 /* --- Service Carousel Mobile --- */
 

 .carousel-wrapper {
  height: 480px;
 }

 .service-card {
  width: 280px;
  height: 430px;
 }

 .service-card h3 {
  font-size: 1.3rem;
 }

 .service-card p {
  font-size: 0.9rem;
 }

 .service-card.center {
  transform: translateX(0) scale(1) rotateY(0deg);
 }

 .service-card.left {
  transform: translateX(-300px) scale(0.7) rotateY(20deg);
  opacity: 0.3;
 }

 .service-card.right {
  transform: translateX(300px) scale(0.7) rotateY(-20deg);
  opacity: 0.3;
 }

 /* Show full content on center card for mobile (no hover) */
 .service-card.center .service-card-content {
  transform: translateY(0);
 }

 .service-card.center p,
 .service-card.center .read-more-btn {
  opacity: 1;
  transform: translateY(0);
 }

 .nav-btn {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
 }

 .nav-btn.prev {
  left: 5px;
 }

 .nav-btn.next {
  right: 5px;
 }

 .modal-image {
  height: 200px;
 }

 .modal-body {
  padding: 20px;
 }

 .modal-body h3 {
  font-size: 1.5rem;
 }

 .modal-body p {
  font-size: 0.95rem;
 }

 .btn {
  padding: 12px 20px;
  font-size: 0.9rem;
 }

 /* --- Gallery Carousel Mobile --- */


 .gallery-carousel-wrapper {
  height: 240px;
 }

 .gallery-item {
  width: 300px;
  height: 200px;
 }

 .gallery-item.center {
  transform: translateX(0) scale(1) rotateY(0deg);
 }

 .gallery-item.left {
  transform: translateX(-340px) scale(0.75) rotateY(20deg);
  opacity: 0.3;
 }

 .gallery-item.right {
  transform: translateX(340px) scale(0.75) rotateY(-20deg);
  opacity: 0.3;
 }

 .gallery-nav-btn {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
 }

 .gallery-nav-btn.prev {
  left: 5px;
 }

 .gallery-nav-btn.next {
  right: 5px;
 }

 .modal-content-wrapper {
  padding: 70px 60px 40px;
 }

 .modal-nav-btn {
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
 }

 .modal-nav-btn.modal-prev {
  left: 10px;
 }

 .modal-nav-btn.modal-next {
  right: 10px;
 }

 .modal-close-btn {
  width: 45px;
  height: 45px;
  font-size: 1.8rem;
  top: 15px;
  right: 15px;
 }

 .zoom-hint {
  font-size: 0.8rem;
  padding: 8px 16px;
  bottom: 20px;
 }
}

/* Extra small devices (max-width: 480px) */
@media (max-width: 480px) {
 /* --- Service Carousel Extra Small --- */


 .carousel-wrapper {
  height: 450px;
 }

 .service-card {
  width: 260px;
  height: 400px;
 }

 .service-card h3 {
  font-size: 1.2rem;
 }

 .service-card.center {
  transform: translateX(0) scale(1) rotateY(0deg);
 }

 .service-card.left {
  transform: translateX(-280px) scale(0.65) rotateY(15deg);
  opacity: 0.2;
 }

 .service-card.right {
  transform: translateX(280px) scale(0.65) rotateY(-15deg);
  opacity: 0.2;
 }

 .service-card.center .service-card-content {
  transform: translateY(0);
 }

 .service-card.center p,
 .service-card.center .read-more-btn {
  opacity: 1;
  transform: translateY(0);
 }

 /* --- Gallery Carousel Extra Small --- */


 .gallery-carousel-wrapper {
  height: 220px;
 }

 .gallery-item {
  width: 280px;
  height: 180px;
 }

 .gallery-item.center {
  transform: translateX(0) scale(1) rotateY(0deg);
 }

 .gallery-item.left {
  transform: translateX(-310px) scale(0.7) rotateY(15deg);
  opacity: 0.2;
 }

 .gallery-item.right {
  transform: translateX(310px) scale(0.7) rotateY(-15deg);
  opacity: 0.2;
 }

 .modal-content-wrapper {
  padding: 60px 50px 30px;
 }

 .modal-nav-btn {
  width: 45px;
  height: 45px;
  font-size: 1.3rem;
 }

 .modal-nav-btn.modal-prev {
  left: 5px;
 }

 .modal-nav-btn.modal-next {
  right: 5px;
 }
}

/* Tablet (max-width: 1024px) and (min-width: 769px) */
@media (max-width: 1024px) and (min-width: 769px) {
 /* --- Service Carousel Tablet --- */
 .service-card.left {
  transform: translateX(-360px) scale(0.8) rotateY(25deg);
 }

 .service-card.right {
  transform: translateX(360px) scale(0.8) rotateY(-25deg);
 }

 .service-card.center {
  transform: translateX(0) scale(1) rotateY(0deg);
 }

 .nav-btn {
  width: 45px;
  height: 45px;
  font-size: 1.3rem;
 }

 /* Show content on center card for tablets (no hover needed) */
 .service-card.center .service-card-content {
  transform: translateY(0);
 }

 .service-card.center p,
 .service-card.center .read-more-btn {
  opacity: 1;
  transform: translateY(0);
 }

 /* --- Gallery Carousel Tablet --- */
 .gallery-item {
  width: 360px;
  height: 230px;
 }

 .gallery-item.center {
  transform: translateX(0) scale(1) rotateY(0deg);
 }

 .gallery-item.left {
  transform: translateX(-420px) scale(0.8) rotateY(25deg);
 }

 .gallery-item.right {
  transform: translateX(420px) scale(0.8) rotateY(-25deg);
 }

 .gallery-nav-btn {
  width: 45px;
  height: 45px;
  font-size: 1.3rem;
 }

 .modal-content-wrapper {
  padding: 90px 80px 50px;
 }
}

/* --- BASE H1/H2 STYLES (Restored for Desktop Consistency) --- */

h1 {
    /* Set color for H1s if they are on a light background */
    color: var(--dark-text); 
    text-align: center;
}

h2 {
    /* Set the color for H2s, often the primary brand color */
    color: var(--primary-blue); 
    text-align: center;
    /* Add bottom margin to separate from content */
    margin-bottom: 1rem; 
}

.hero-section h1 {
    color: var(--white);
    text-align: center;
}

/* ===================================================
  --- TARGETED RESPONSIVE H1 & H2 SIZES --- 
  =================================================== */

/* ----------------- TABLET (Max Width: 1024px) ----------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem; /* Slightly reduced H1 for tablet */
    }
    h2 {
        font-size: 2.1rem; /* Slightly reduced H2 for tablet */
    }
}

/* ----------------- MOBILE (Max Width: 768px) ----------------- */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem; /* Significantly reduced H1 for standard mobile */
    }
    h2 {
        font-size: 1.7rem; /* Significantly reduced H2 for standard mobile */
    }
}

/* ----------------- EXTRA-SMALL DEVICES (Max Width: 480px) ----------------- */
@media (max-width: 480px) {
    h1 {
        font-size: 1rem; /* Critical shrink for very small phones */
    }
    h2 {
        font-size: 0.9rem; /* Critical shrink for very small phones */
    }
    .hero-section{
      font-size: 1rem;
    }
    
}