/* ==========================================================================
   GRRGL Modern Styling Framework (Revised Visuals)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1e3a8a; /* Premium Dark Navy Blue */
  --primary-hover: #172554; /* Deepest Navy Blue */
  --dark: #0b1329; /* Very Dark Blue */
  --dark-accent: #111c40; /* Dark Navy Accent */
  --light: #ffffff; /* Clean White Background */
  --gray-light: #e2e8f0;
  --gray-med: #475569;
  --text-dark: #0b1329;
  --text-light: #ffffff;
  --font-sans: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

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

body {
  font-family: var(--font-sans);
  color: #334155;
  background-color: var(--light);
  line-height: 1.6;
  font-size: 15px;
  letter-spacing: -0.02em;
  overflow-x: hidden;
}

/* Hide legacy utility top bar */
.top-bar {
  display: none !important;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
p { margin-bottom: 1.2rem; }

/* Fixed Sleek Glassmorphic Header */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent; /* Completely transparent header background */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
  padding: 24px 0;
  z-index: 999;
  transition: padding 0.5s ease;
}

header.site-header.scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
  padding: 14px 0;
}

header.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 0 40px;
  transition: padding 0.5s ease;
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo-container a {
  display: flex;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  height: 48px; /* Set height explicitly to match main-nav */
  background: rgba(255, 255, 255, 0.85); /* Solid white frosted glass pill for readability */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 24px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

header.site-header.scrolled .logo-container {
  height: 38px; /* Scrolled height matching menu */
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

.logo-img {
  height: 32px; /* Fit nicely inside 48px header height */
  object-fit: contain;
  transform: translateY(0);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

header.site-header.scrolled .logo-img {
  height: 24px; /* Fit nicely inside 38px scrolled header height */
  transform: translateY(0);
}

/* Inline Language selector */
.lang-selector-inline {
  position: relative;
}

.lang-btn-inline {
  background: none;
  color: var(--text-dark);
  border: none;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.lang-btn-inline:hover {
  color: var(--primary-hover);
}

.lang-dropdown-inline {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  margin-top: 0; /* Removed gap to prevent hover loss */
  min-width: 120px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  z-index: 1000;
}

/* Invisible bridge to keep hover active */
.lang-dropdown-inline::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
  background: transparent;
}

.lang-selector-inline:hover .lang-dropdown-inline {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown-inline a {
  display: block;
  padding: 8px 16px;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 500;
}

.lang-dropdown-inline a:hover {
  background-color: var(--light);
  color: var(--primary);
}

nav.main-nav {
  display: flex;
  align-items: center;
  height: 48px; /* Set height explicitly to match logo-container */
  background: rgba(255, 255, 255, 0.85); /* Solid white frosted glass pill for readability */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 30px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

header.site-header.scrolled nav.main-nav {
  height: 38px; /* Scrolled height matching logo */
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 18px; /* Slightly tighter gap to guarantee single-line fit */
  align-items: center;
}

nav.main-nav ul li a {
  color: #1e293b; /* Dark slate text for outstanding legibility */
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  text-transform: capitalize;
  white-space: nowrap; /* Prevent items from wrapping to two lines */
}

nav.main-nav ul li a:hover,
nav.main-nav ul li.active a {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Dropdown Navigation Menu */
nav.main-nav ul li.nav-dropdown {
  position: relative;
}

nav.main-nav ul li.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  min-width: 170px;
  box-shadow: var(--shadow-lg);
  display: none;
  list-style: none;
  padding: 8px 0;
  z-index: 1000;
  margin-top: 0; /* Removed gap to prevent hover loss */
}

/* Invisible bridge to keep hover active */
nav.main-nav ul li.nav-dropdown .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
  background: transparent;
}

nav.main-nav ul li.nav-dropdown:hover .dropdown-menu {
  display: block;
}

nav.main-nav ul li.nav-dropdown .dropdown-menu li {
  width: 100%;
  margin: 0;
}

nav.main-nav ul li.nav-dropdown .dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: none;
  text-align: left;
  width: 100%;
  text-transform: capitalize;
}

nav.main-nav ul li.nav-dropdown .dropdown-menu li a:hover {
  background-color: var(--light);
  color: var(--primary);
  border-bottom-color: transparent;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Slideshow Slider (With subtle dark overlay for readability) */
.hero-slider {
  position: relative;
  height: 480px;
  background-color: var(--dark);
  overflow: hidden;
}

.slider-container {
  height: 100%;
  width: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Image overlay filter (balanced overlay for transparent text contrast) */
.slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.35); /* Subtle dark slate overlay to pop text */
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  width: 90%;
  max-width: 800px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  z-index: 3;
  padding: 0;
}

/* Slide Typography (Standard clean headers) */
.slide-caption h1 {
  font-size: 2.8rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: none; /* No drop shadows */
}

/* Consistent Subpage Hero text overlays on top of slide captions */
.slide-page-title {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary); /* Cyan accent */
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.slide-page-subtitle {
  display: block;
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 20px;
  font-weight: 500;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.slide-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  width: 120px;
  margin: 0 auto 20px;
}

.slide-caption h2 {
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #ffffff;
}

.slide-caption p {
  font-size: 1.15rem;
  font-weight: 400;
  color: #cbd5e1;
  text-shadow: none; /* No drop shadows */
  margin: 0;
  line-height: 1.5;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--text-light);
  font-size: 1.2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.slider-nav:hover {
  background: #ffffff;
  color: var(--dark);
}

.slider-prev { left: 24px; }
.slider-next { right: 24px; }

/* Grid Cards (Sectors) */
.section-padding {
  padding: 60px 0;
}

.container-width {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 45px;
  position: relative;
}

.section-title h2 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.sector-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 40px 30px;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.sector-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.sector-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.3rem;
  color: var(--dark);
}

.sector-card p {
  color: var(--gray-med);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Recent works */
.portfolio-intro {
  background-color: #ffffff;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 0; /* Remove gap before feature-split */
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.work-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.work-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-smooth);
  padding: 20px;
  text-align: center;
  color: var(--text-light);
}

.work-item:hover img {
  transform: scale(1.08);
}

.work-item:hover .work-overlay {
  opacity: 1;
}

.work-overlay h4 {
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.work-overlay p {
  font-size: 0.85rem;
  margin: 0;
}

/* Split Block with Side-by-Side Images */
.feature-split {
  display: flex;
  align-items: stretch;
  background-color: var(--dark); /* Deep Navy background */
  color: var(--text-light);
  overflow: hidden;
}

.feature-text {
  flex: 1.2;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-text h2 {
  color: var(--text-light);
  margin-bottom: 20px;
  text-transform: uppercase;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.feature-text .lead {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 20px;
}

.feature-text p {
  color: #cbd5e1;
}

.feature-visual {
  flex: 0.8;
  position: relative;
  min-height: 380px;
}

.feature-visual img.feature-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-left: 2px solid var(--primary);
}

/* Testimonial Cards */
.testimonials {
  background-color: #ffffff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.testimonial-card {
  padding: 35px;
  border-radius: 12px;
  background: var(--light);
  border: 1px solid var(--gray-light);
  position: relative;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  border-color: var(--primary);
}

.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--dark-accent);
  margin-bottom: 15px;
}

.testimonial-footer {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

/* Subpage hero header */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-accent) 100%);
  color: var(--text-light);
  padding: 50px 0;
  text-align: center;
  border-bottom: 3px solid var(--primary);
}

.page-hero h1 {
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-hero p {
  color: #94a3b8;
  font-size: 1.1rem;
  margin: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 35px 25px;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-card h3 {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card h3 i {
  color: var(--primary);
}

.service-card ul {
  list-style: none;
  margin-top: 12px;
}

.service-card ul li {
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card ul li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}

/* ==========================================================================
   ROUNDED CAPSULE FOOTER WITH GRADIENT
   ========================================================================== */
footer.site-footer {
  position: relative;
  background: var(--dark); /* Deep Navy Blue */
  color: #cbd5e1;
  padding-top: 60px;
  overflow: hidden;
  border-top: 1px solid #1e293b;
}

#footer-canvas {
  display: none; /* Hide background particle animation */
}

.footer-main {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
  color: #cbd5e1;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

/* Cyan Inquire button */
.btn-inquire {
  display: inline-block;
  background-color: var(--primary); /* Cyan background */
  color: #ffffff !important; /* Make Inquire Now text color white */
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 5px;
}

.btn-inquire:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 0 12px rgba(74, 209, 229, 0.4);
  transform: translateY(-2px);
}

/* Footer Bottom Area */
.footer-bottom-line, .footer-bottom {
  position: relative;
  z-index: 2;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom p {
  color: #cbd5e1; /* whitish gray */
  margin: 0;
  font-size: 0.85rem;
}

.footer-bottom p a {
  color: #cbd5e1; /* whitish gray link color */
  transition: var(--transition-smooth);
  text-decoration: none;
}

.footer-bottom p a:hover {
  color: #ffffff; /* Hover states to full white */
}

.footer-copyright {
  font-size: 0.72rem; /* Reduced by 2px (~2 points) */
  color: #94a3b8; /* whitish gray */
  margin-right: 5px;
}

/* Dark Circular Social Media Buttons in Footer */
.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #111827; /* Dark circular background */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 1.15rem;
  transition: var(--transition-smooth);
}

.footer-social-btn:hover {
  background-color: #1f2937;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   MODAL OVERLAYS (GLASSMORPHISM)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 10000;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #ffffff;
  width: 90%;
  max-width: 520px;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.modal-overlay.open .modal-box {
  transform: scale(1);
}

.modal-header {
  background: var(--dark);
  color: var(--text-light);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: var(--text-light);
  font-size: 1.25rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--dark-accent);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  background-color: var(--light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.btn-submit {
  display: block;
  width: 100%;
  background: var(--primary);
  color: #ffffff; /* Make submit button text color white */
  border: none;
  padding: 11px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-submit:hover {
  background: var(--primary-hover);
}

.form-status {
  margin-top: 12px;
  text-align: center;
  font-size: 0.9rem;
  display: none;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .work-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-split {
    flex-direction: column;
  }
  .feature-text {
    padding: 40px;
  }
  .feature-visual {
    width: 100%;
    min-height: 280px;
  }
  .feature-visual img.feature-img {
    border-left: none;
    border-top: 2px solid var(--primary);
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  footer.site-footer {
    border-radius: 0; /* Keep footer flat on all screens */
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 30px 0; /* Conserve vertical real estate */
  }
  .container-width {
    padding: 0 12px; /* Pull margins wider to fit larger text */
  }
  .section-title {
    margin-bottom: 25px;
  }
  .sectors-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .sector-card {
    padding: 24px 20px; /* Maximize size of text inside card */
    border-radius: 6px;
  }
  .testimonial-card {
    padding: 20px;
    border-radius: 8px;
  }
  .feature-text {
    padding: 25px 15px;
  }
  .feature-visual {
    width: 100%;
    min-height: 220px;
  }
  .site-header {
    padding: 10px 0;
  }
  .nav-toggle {
    display: block;
  }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0;
    border: none;
    border-bottom: 2px solid var(--primary);
    padding: 10px 20px;
    box-shadow: var(--shadow-md);
  }
  nav.main-nav.open {
    display: block;
  }
  nav.main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .slide-caption h1 {
    font-size: 1.8rem;
  }
  .slide-caption p {
    font-size: 0.95rem;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* Hardware Accelerated GPU Layers (OpenGL ES) for smooth rendering */
.slide, 
.slide img,
.sector-card, 
.work-item img, 
.modal-overlay,
.modal-box,
.btn-submit,
.btn-inquire,
.footer-social-btn {
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

/* ==========================================================================
   INTRO GRID SQUARES LOADER
   ========================================================================== */
#intro-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  grid-auto-rows: 60px;
  pointer-events: none;
  overflow: hidden;
}

.loader-square {
  width: 100%;
  height: 100%;
  animation: squareMoveUp 0.8s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes squareMoveUp {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh);
    opacity: 0;
  }
}
