/* ==========================================================================
   CSS Reset & Variables Setup (High-Contrast Mixed Theme - Advanced UI/UX)
   ========================================================================== */


:root {
  /* Colors - High Contrast Mixed Design */
  --primary: #0f172a;
  /* Dark slate navy for headers, footers, and dark sections */
  --bg-body: #f8fafc;
  /* Ultra-clean slate off-white body background */
  --bg-card: #ffffff;
  /* Pure white for content cards and panels */
  --bg-card-hover: #f1f5f9;
  /* Soft gray for hover states */
  --bg-section-alt: #0f172a;
  /* Dark navy background for high-contrast alternating sections */

  --accent: #0284c7;
  /* Refined Azure Blue Primary */
  --accent-light: #0ea5e9;
  /* Bright Blue hover accent */
  --accent-dark: #0369a1;
  /* Deeper shade for active elements */
  --accent-glow: rgba(2, 132, 199, 0.1);
  --accent-tint: rgba(2, 132, 199, 0.05);

  /* ⚡ Warm Accent (Amber — Phase A Spice) */
  --accent-warm: #f59e0b;
  /* Amber warm highlight for numbers, icons, markers */
  --accent-warm-dark: #d97706;
  /* Deeper amber for hover */
  --accent-warm-glow: rgba(245, 158, 11, 0.18);
  --accent-warm-tint: rgba(245, 158, 11, 0.08);

  --text-main: #334155;
  /* Slate-700 for body copy on light background */
  --text-headings: #0f172a;
  /* Slate-900 for dark headings on light background */
  --text-muted: #64748b;
  /* Cool slate gray for labels */
  --text-inverse: #ffffff;
  /* White text on dark navy components */
  --text-inverse-muted: #cbd5e1;
  /* Muted light gray for text on dark background */

  --border-color: #e2e8f0;
  /* Soft divider gray */
  --border-hover: #cbd5e1;
  --border-accent: rgba(2, 132, 199, 0.15);

  /* Fonts */
  --font-header: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing System (8px Grid) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;

  /* Utilities */
  --radius-sm: 4px;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 30px -3px rgba(15, 23, 42, 0.06);
  --container-width: 1200px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ==========================================================================
   Preloader Styles (HSS Circular Saw & Laser Cutting Animation)
   ========================================================================== */
.preloader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0f172a;
  /* Dark navy background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  /* Force overlay on top */
  transition: opacity 0.5s ease-out, visibility 0.5s;
}

.preloader-wrapper.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.saw-blade-container {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.saw-blade-svg {
  animation: rotateSaw 2.5s linear infinite;
}

.saw-teeth path {
  fill: var(--accent-light);
  stroke: var(--accent-light);
}

@keyframes rotateSaw {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}


.loader-text {
  font-family: var(--font-header);
}

.loader-text .brand-text {
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.loader-text .status-text {
  font-size: 0.9rem;
  color: var(--text-inverse-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes pulseText {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* ==========================================================================
   Typography Rules
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-header);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-headings);
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}

p {
  color: var(--text-main);
  margin-bottom: var(--space-2);
}

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

a:hover {
  color: var(--accent-light);
}

/* ==========================================================================
   Layout Containers & Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.container-fluid {
  width: 100%;
  padding: 0;
}

.section {
  padding: var(--space-8) 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-section-alt);
  color: var(--text-inverse-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Override headings inside dark sections */
.section-alt h1,
.section-alt h2,
.section-alt h3,
.section-alt h4,
.section-alt h5,
.section-alt h6 {
  color: var(--text-inverse);
}

.section-alt p {
  color: var(--text-inverse-muted);
}

/* Force light themes on cards placed inside dark sections to preserve legibility */
.section-alt .pillar-card,
.section-alt .service-bullet-card {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.section-alt .pillar-card h3,
.section-alt .service-bullet-card h3 {
  color: var(--text-headings);
}

.section-alt .pillar-card p,
.section-alt .service-bullet-card p,
.section-alt .service-bullet-card li {
  color: var(--text-main);
}

/* Dot Grid Background Overlay */
.dot-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.8;
  z-index: 1;
}

/* For light headers, overlay dark dots */
.page-header .dot-grid {
  background-image: radial-gradient(rgba(15, 23, 42, 0.08) 1.5px, transparent 1.5px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ==========================================================================
   Scroll Reveal System (Phase A)
   Elements with class .reveal start invisible and animate in via JS
   adding .reveal-visible when they enter the viewport.
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Header Navigation (Global - High-Contrast Light Glassmorphism)
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  transition: var(--transition);
}

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

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

.logo-wrap img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.logo-wrap:hover img {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: var(--space-4);
}

.nav-links a {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  /* Dark text for light header */
  position: relative;
  padding: var(--space-1) 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--accent);
  /* Ocean Blue underline */
  border-radius: 4px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header-cta {
  display: inline-block;
  background-color: var(--accent);
  color: var(--text-inverse) !important;
  padding: 10px var(--space-3);
  font-family: var(--font-header);
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.header-cta:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.25);
}

/* Show call button on mobile (tap-to-call), hide on desktop */
@media (min-width: 769px) {
  .header-cta {
    display: none;
  }
}

/* Mobile Hamburger Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-headings);
  /* Dark toggle lines on light background */
  transition: var(--transition);
  border-radius: 4px;
}

/* ==========================================================================
   Hero Landing Section & Slider Carousel (High Contrast Dark Navy Background)
   ========================================================================== */

.hero-slider {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 85% 20%, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  padding: var(--space-12) 0;
}

.slide.active {
  display: block;
  opacity: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-6);
  align-items: center;
}

.hero-content {
  max-width: 650px;
}

.badge {
  display: inline-block;
  background-color: rgba(2, 132, 199, 0.15);
  color: var(--accent-light);
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.825rem;
  padding: 6px var(--space-2);
  border-radius: 50px;
  margin-bottom: var(--space-2);
  border: 1px solid rgba(14, 165, 233, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-header .badge {
  background-color: var(--accent-tint);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.slide h1 {
  margin-bottom: var(--space-2);
  color: #ffffff;
  /* White heading for dark slide */
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 900;
}

.slide p {
  font-size: 1.2rem;
  margin-bottom: var(--space-4);
  line-height: 1.6;
  color: var(--text-inverse-muted);
}

.hero-image {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Rotated Border Frame Graphic */
.hero-img-frame {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  border: 6px solid rgba(255, 255, 255, 0.08);
  transform: rotate(2deg);
  transition: var(--transition);
}

.hero-img-frame:hover {
  transform: rotate(0deg) scale(1.02);
  border-color: var(--accent-light);
}

.hero-img-frame img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Decorative background shapes */
.hero-blur-shape {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
  top: 10%;
  right: 10%;
}

/* Slide Dots Navigation */
.slider-dots {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dot.active,
.dot:hover {
  background-color: var(--accent-light);
  transform: scale(1.2);
  box-shadow: 0 0 8px var(--accent-light);
}

/* ==========================================================================
   Page Headers (For Inner Pages - High Contrast Light Gradient)
   ========================================================================== */

.page-header {
  padding: var(--space-12) 0 var(--space-8) 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: var(--accent);
}

.page-header h1 {
  font-size: 2.75rem;
  margin-bottom: var(--space-1);
  color: var(--text-headings);
  font-weight: 800;
}

.page-header p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 750px;
  margin-bottom: 0;
}

/* ==========================================================================
   Button Components
   ========================================================================== */

.btn-group {
  display: flex;
  gap: var(--space-2);
}

.btn {
  display: inline-block;
  padding: 12px var(--space-4);
  font-family: var(--font-header);
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-inverse);
  border: 1px solid var(--accent);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  background-color: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--text-inverse);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff !important;
  border: 1px solid #25d366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
}

.btn-whatsapp:hover {
  background-color: #128c7e;
  border-color: #128c7e;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.btn-whatsapp svg {
  fill: #ffffff;
}

/* ==========================================================================
   Mission, Vision, Quality Policy Cards
   ========================================================================== */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  position: relative;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-4);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08), 0 0 15px var(--accent-glow);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  background-color: var(--accent-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  border: 1px solid var(--border-accent);
  transition: var(--transition);
}

.pillar-card:hover .pillar-icon {
  background-color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.05);
}

.pillar-card:hover .pillar-icon img {
  filter: brightness(0) invert(1);
}

.pillar-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: var(--transition);
}

.pillar-card h3 {
  color: var(--text-headings);
  font-size: 1.35rem;
  margin-bottom: var(--space-2);
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--text-main);
}

/* ==========================================================================
   Metrics / Stats Grid (Contrast Dark Section)
   ========================================================================== */

.metrics-section {
  padding: var(--space-6) 0;
  background-color: #0f172a;
  /* Solid dark navy to create deep section dividers */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.metric-card {
  text-align: center;
  padding: var(--space-3) var(--space-2);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.metric-card:last-child {
  border-right: none;
}

.metric-number {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--accent-warm);
  /* Amber warm accent for energy on dark bg */
  line-height: 1;
  margin-bottom: var(--space-1);
  font-family: var(--font-header);
  text-shadow: 0 0 20px var(--accent-warm-glow);
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-inverse-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Split Grid & Content Blocks
   ========================================================================== */

.layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

.img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-width: 380px;
  /* Cap image container size so portrait images don't stretch vertically */
  width: 100%;
  margin: 0 auto;
  /* Center the container inside grid columns */
}

.img-frame img {
  width: 100%;
  height: auto;
  /* Display full photo without cropping */
  display: block;
  transition: var(--transition);
}

.img-frame:hover img {
  transform: scale(1.03);
}

.content-block h2 {
  color: var(--text-headings);
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-1);
}

.content-block h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 55px;
  height: 3px;
  background-color: var(--accent);
}

.section-alt .content-block h2 {
  color: #ffffff;
}

.content-block p {
  font-size: 1.05rem;
  margin-top: var(--space-3);
  color: var(--text-main);
  text-align: justify;
}

.section-alt .content-block p {
  color: var(--text-inverse-muted);
}

/* ==========================================================================
   What We Do & Bullet Cards
   ========================================================================== */

.what-we-do-intro {
  text-align: center;
  max-width: 750px;
  margin: 0 auto var(--space-6) auto;
}

.what-we-do-intro h2 {
  font-size: 2.25rem;
}

.services-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.service-bullet-card {
  background-color: var(--bg-card);
  padding: var(--space-4);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

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

.service-bullet-card h3 {
  color: var(--accent);
  font-size: 1.35rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-1);
  margin-bottom: var(--space-2);
}

.service-bullet-card ol,
.service-bullet-card ul {
  list-style: none;
  padding-left: 0;
}

.service-bullet-card li {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: var(--space-2);
  padding-left: var(--space-3);
  position: relative;
}

.service-bullet-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-warm);
  /* Amber checkmarks for warmth */
  font-weight: bold;
}

/* ==========================================================================
   Management Layout (About Page Profiles)
   ========================================================================== */

.management-title {
  text-align: center;
  margin-bottom: var(--space-6);
}

.management-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.profile-card {
  display: flex;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.profile-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.profile-img {
  width: 320px;
  min-width: 320px;
  overflow: hidden;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.profile-card:hover .profile-img img {
  transform: scale(1.02);
}

.profile-details {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-details h3 {
  font-size: 1.75rem;
  color: var(--text-headings);
  margin-bottom: 4px;
}

.profile-role {
  font-family: var(--font-header);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-2);
  font-size: 1.1rem;
}

.profile-details p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
}

.profile-card.reverse {
  flex-direction: row-reverse;
}

/* ==========================================================================
   Services Grid Layout (Services Page)
   ========================================================================== */

.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.service-item-card {
  background-color: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.service-item-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  /* Warm amber top-border accent on hover */
  border-top: 3px solid var(--accent-warm);
}

.service-item-img {
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

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

.service-item-card:hover .service-item-img img {
  transform: scale(1.04);
}

.service-item-body {
  padding: var(--space-3);
  flex-grow: 1;
}

.service-item-body h3 {
  color: var(--text-headings);
  font-size: 1.35rem;
  margin-bottom: var(--space-1);
}

.service-item-body p {
  font-size: 0.95rem;
  color: var(--text-main);
}

/* ==========================================================================
   Gallery Filters & Grid
   ========================================================================== */

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.filter-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-header);
  font-weight: 600;
  padding: 10px var(--space-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--text-inverse);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-2);
}

.gallery-item {
  background-color: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.gallery-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.gallery-item:hover .gallery-img-wrap img {
  transform: scale(1.06);
}

/* Gallery Hover Overlay (Phase A) */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(2, 132, 199, 0.5) 100%);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  z-index: 2;
}

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

.gallery-view-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-view-icon {
  transform: translateY(0);
}

.gallery-caption {
  padding: var(--space-2);
  text-align: center;
  font-size: 0.9rem;
  font-family: var(--font-header);
  font-weight: 600;
  color: var(--text-headings);
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Contact Layout & Inquiry Form
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: var(--space-6);
  align-items: start;
}

.contact-info-panel {
  background-color: var(--bg-card);
  padding: var(--space-4);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.contact-info-item {
  margin-bottom: var(--space-3);
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item h4 {
  color: var(--text-headings);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.contact-info-item p,
.contact-info-item a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-info-item a:hover {
  color: var(--accent);
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  height: 520px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-form-panel {
  background-color: var(--bg-card);
  padding: var(--space-4);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-4);
}

.form-group {
  margin-bottom: var(--space-2);
}

.form-group label {
  display: block;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-headings);
}

.form-control {
  width: 100%;
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12), 0 0 12px rgba(2, 132, 199, 0.08);
  transform: translateY(-1px);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   FAQ Accordion (Contact Page)
   ========================================================================== */

.faq-title {
  text-align: center;
  margin-bottom: var(--space-4);
}

.faq-accordion {
  max-width: 800px;
  margin: var(--space-4) auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-headings);
  user-select: none;
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--accent);
  transition: var(--transition);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  color: var(--text-muted);
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease-out;
  font-size: 0.95rem;
}

.faq-item.active {
  border-color: var(--accent);
}

.faq-item.active .faq-content {
  max-height: 250px;
  padding-bottom: 20px;
  transition: max-height 0.35s cubic-bezier(1, 0, 1, 0), padding 0.3s ease-out;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-warm);
  /* Amber X icon when open */
}

/* ==========================================================================
   Map Embed Frame (Contact Page)
   ========================================================================== */

.map-frame {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: var(--space-4);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* ==========================================================================
   Footer Component (Global - Dark Navy Theme)
   ========================================================================== */

.footer {
  background-color: #0f172a;
  /* Deep dark navy */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-8) 0 0 0;
  color: #cbd5e1;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  max-width: 180px;
  margin-bottom: var(--space-2);
  filter: brightness(0) invert(1);
  /* Invert logo to white for dark bg */
}

.footer-col h4 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: var(--space-2);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 4px;
}

.footer-col p,
.footer-col a {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: var(--space-1);
}

.footer-col a:hover {
  color: #38bdf8;
}

.footer-bottom {
  padding: var(--space-3) 0;
  margin-top: var(--space-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: #ffffff;
  background-color: #020617;
  /* Near-black strip */
  /* Extend to full width using negative margin technique */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

.footer-bottom p {
  color: #ffffff !important;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
}

.footer-bottom a {
  color: #38bdf8 !important;
  font-weight: 700;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* ==========================================================================
   LightBox Image Modal
   ========================================================================== */

.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 80%;
}

.lightbox-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: var(--text-inverse);
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--accent-light);
}

.lightbox-caption {
  text-align: center;
  color: var(--text-inverse);
  font-family: var(--font-header);
  font-size: 1.15rem;
  margin-top: var(--space-2);
}

/* ==========================================================================
   Responsive Overrides
   ========================================================================== */

@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-4);
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .btn-group {
    justify-content: center;
  }

  .layout-split {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .layout-split .img-frame {
    order: -1;
    /* Stack images on top of content blocks on mobile/tablets */
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding-top: var(--space-4);
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .metric-card {
    border-right: none;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: var(--space-3) 0;
  }

  .services-cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .footer-col:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    /* Light background drawer on mobile */
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-4) 0;
    gap: var(--space-3);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
    color: var(--text-main);
  }

  .header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .slide {
    padding: var(--space-8) 0;
  }

  .slide h1 {
    font-size: 2.25rem;
  }

  .hero-img-frame {
    max-width: 300px;
    transform: none;
  }

  .hero-img-frame:hover {
    transform: scale(1.02);
  }

  .page-header {
    padding: var(--space-8) 0;
    text-align: center;
  }

  .page-header::before {
    display: none;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .services-list-grid {
    grid-template-columns: 1fr;
  }

  .profile-card,
  .profile-card.reverse {
    flex-direction: column;
  }

  .profile-img {
    width: 100%;
    height: 300px;
  }

  .services-cards-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .map-frame {
    height: 300px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  /* Official WhatsApp green */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  /* Float over elements, below preloader */
  transition: all 0.3s ease;
  animation: pulseWhatsapp 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  /* Darker green on hover */
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  fill: #ffffff;
  display: block;
}

@keyframes pulseWhatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

/* ==========================================================================
   ██████  ██████  ███████ ███    ███ ██ ██    ██ ███    ███
   ██   ██ ██   ██ ██      ████  ████ ██ ██    ██ ████  ████
   ██████  ██████  █████   ██ ████ ██ ██ ██    ██ ██ ████ ██
   ██      ██   ██ ██      ██  ██  ██ ██ ██    ██ ██  ██  ██
   ██      ██   ██ ███████ ██      ██ ██  ██████  ██      ██

   UI/UX PREMIUM DESIGN UPGRADE — Phase D
   Gradient Text, Float Animations, Enhanced Cards,
   Dark Page Headers, Section Eyebrows, and More.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Gradient Text Utility
   Usage: <span class="gradient-text">Your Text</span>
   -------------------------------------------------------------------------- */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-light) 0%, #38bdf8 50%, var(--accent-warm) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

/* Dark section override for gradient text — still renders correctly */
.section-alt .gradient-text {
  background: linear-gradient(135deg, #7dd3fc 0%, var(--accent-warm) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------------------------------------------------------------------------
   2. Hero Image — Floating Animation
   -------------------------------------------------------------------------- */
@keyframes floatImage {
  0%, 100% {
    transform: rotate(2deg) translateY(0px);
  }

  50% {
    transform: rotate(1deg) translateY(-12px);
  }
}

.hero-img-frame {
  animation: floatImage 5s ease-in-out infinite;
}

/* Override hover to stop float momentarily */
.hero-img-frame:hover {
  animation-play-state: paused;
  transform: rotate(0deg) scale(1.02);
  border-color: var(--accent-light);
}

/* --------------------------------------------------------------------------
   3. Hero Section — Enhanced Visual Depth
   Additional orbs and depth elements
   -------------------------------------------------------------------------- */
.hero-slider {
  background: radial-gradient(ellipse at 20% 80%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
              linear-gradient(145deg, #0c1829 0%, #0f172a 40%, #0c2340 100%);
}

/* Second decorative blur shape (bottom left) */
.hero-blur-shape-2 {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
  bottom: 10%;
  left: 5%;
}

/* Hero slide with perspective grid lines */
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.slide .container {
  position: relative;
  z-index: 2;
}

/* Glowing accent pill line above h1 */
.slide h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

/* --------------------------------------------------------------------------
   4. Page Headers (Inner Pages) — Dark Gradient Treatment
   Makes About/Services/Gallery/Contact headers feel premium
   -------------------------------------------------------------------------- */
.page-header {
  background:
    radial-gradient(ellipse at 70% 50%, rgba(2, 132, 199, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, #0c1829 0%, #0f172a 50%, #101f3a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-12) 0 var(--space-8) 0;
}

.page-header::before {
  width: 6px;
  background: linear-gradient(to bottom, var(--accent-warm), var(--accent));
}

.page-header h1 {
  color: #f1f5f9;
  font-weight: 900;
}

.page-header .badge {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--accent-warm);
  border-color: rgba(245, 158, 11, 0.3);
}

.page-header p {
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   5. Section Eyebrow Label — Premium Overlined Title
   Usage: <div class="section-eyebrow">Your Label</div>
   -------------------------------------------------------------------------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: var(--space-2);
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  height: 2px;
  width: 32px;
  background: linear-gradient(to right, var(--accent-warm), rgba(245, 158, 11, 0.15));
  border-radius: 2px;
  flex-shrink: 0;
}

.section-eyebrow::after {
  background: linear-gradient(to left, var(--accent-warm), rgba(245, 158, 11, 0.15));
}

/* Section eyebrow in dark sections */
.section-alt .section-eyebrow {
  color: var(--accent-warm);
}

/* --------------------------------------------------------------------------
   6. Pillar Cards (Mission/Vision/Quality) — Premium Glass with Icon Glow
   -------------------------------------------------------------------------- */
.pillar-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-top: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  border-radius: var(--radius) var(--radius) 0 0;
}

.pillar-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--accent-tint) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Icon background upgrade */
.pillar-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-tint) 0%, var(--accent-warm-tint) 100%);
  border: 1px solid var(--border-accent);
  position: relative;
  overflow: hidden;
}

.pillar-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.4) 100%);
}

.pillar-card:hover .pillar-icon {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

/* --------------------------------------------------------------------------
   7. Metrics Section — Richer Background
   -------------------------------------------------------------------------- */
.metrics-section {
  background:
    radial-gradient(ellipse at center, rgba(14, 165, 233, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
    #0f172a;
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern behind metrics */
.metrics-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.metric-card {
  position: relative;
  transition: var(--transition);
}

.metric-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
}

/* Metric number enhanced glow */
.metric-number {
  text-shadow:
    0 0 20px var(--accent-warm-glow),
    0 0 40px rgba(245, 158, 11, 0.08);
}

/* --------------------------------------------------------------------------
   8. Service Item Cards — Gradient Top Strip + Enhanced Hover
   -------------------------------------------------------------------------- */
.service-item-card {
  position: relative;
  overflow: hidden;
}

.service-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}

.service-item-card:hover::before {
  transform: scaleX(1);
}

.service-item-card:hover {
  border-top: none; /* Remove the amber top-border — replaced by above animation */
}

/* --------------------------------------------------------------------------
   9. Content Block Heading — Upgraded Gradient Underline Decorator
   -------------------------------------------------------------------------- */
.content-block h2::after {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   10. Navigation — Gradient Active Indicator
   -------------------------------------------------------------------------- */
.nav-links a:hover::after,
.nav-links a.active::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
}

/* --------------------------------------------------------------------------
   11. Body Background — Subtle Warm Texture (light pages)
   -------------------------------------------------------------------------- */
body {
  background-color: var(--bg-body);
  background-image:
    radial-gradient(rgba(2, 132, 199, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* --------------------------------------------------------------------------
   12. Section Alt (Dark Navy) — Richer Background
   -------------------------------------------------------------------------- */
.section-alt {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
    var(--bg-section-alt);
}

/* --------------------------------------------------------------------------
   13. Contact Info Panel — Left Accent Bar
   -------------------------------------------------------------------------- */
.contact-info-panel {
  border-left: 4px solid transparent;
  background-image: linear-gradient(#ffffff, #ffffff),
                    linear-gradient(to bottom, var(--accent), var(--accent-warm));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-left: 4px solid;
  border-image: linear-gradient(to bottom, var(--accent), var(--accent-warm)) 1;
}

/* --------------------------------------------------------------------------
   14. Buttons — Gradient Primary + Shine Hover Effect
   -------------------------------------------------------------------------- */
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-primary:hover::after {
  left: 120%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
}

/* --------------------------------------------------------------------------
   15. FAQ Accordion — Enhanced Active State
   -------------------------------------------------------------------------- */
.faq-item.active {
  border-color: var(--accent);
  background: linear-gradient(to right, rgba(2, 132, 199, 0.02) 0%, transparent 100%);
}

.faq-item.active .faq-header {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   16. Gallery Filter Active — Gradient Background
   -------------------------------------------------------------------------- */
.filter-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* --------------------------------------------------------------------------
   17. WhatsApp FAB — Enhanced Shine Ring
   -------------------------------------------------------------------------- */
.whatsapp-float {
  background: linear-gradient(145deg, #25d366 0%, #128c7e 100%);
}

/* --------------------------------------------------------------------------
   18. Profile Cards (About Page) — Left Accent Border
   -------------------------------------------------------------------------- */
.profile-card {
  border-left: 4px solid transparent;
  background-image: linear-gradient(var(--bg-card), var(--bg-card)),
                    linear-gradient(to bottom, var(--accent), var(--accent-warm));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

/* --------------------------------------------------------------------------
   19. Service Bullet Card — Numbered Top Accent
   -------------------------------------------------------------------------- */
.service-bullet-card {
  position: relative;
  overflow: hidden;
}

.service-bullet-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-warm) 0%, var(--accent) 100%);
}

/* --------------------------------------------------------------------------
   20. Map Frame — Enhanced Dark Border Glow
   -------------------------------------------------------------------------- */
.map-frame {
  border: 1px solid rgba(2, 132, 199, 0.2);
  box-shadow: 0 0 0 1px rgba(2, 132, 199, 0.08), 0 20px 40px rgba(15, 23, 42, 0.1);
}

/* ==========================================================================
   SCROLL INTERACTION ENHANCEMENTS — PHASE S
   Features: Progress Bar, Header Shrink, Back-to-Top,
   Hide-on-Scroll-Down, Varied Reveal, Parallax, Clip Reveal,
   Horizontal Scroll Section
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Scroll Progress Bar (fixed top, gradient fill)
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 50%, var(--accent-warm) 100%);
  z-index: 10001;
  width: 0%;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   2. Sticky Header Shrink on Scroll
   -------------------------------------------------------------------------- */
.header.header-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 24px rgba(15, 23, 42, 0.1);
}

.header.header-scrolled .container {
  height: 62px;
}

.header.header-scrolled .logo-wrap img {
  height: 36px;
}

.header.header-scrolled .nav-links a {
  font-size: 0.88rem;
}

.header.header-scrolled .header-cta {
  padding: 6px 18px;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   3. Scroll-Direction-Aware Header (hide on down, show on up)
   -------------------------------------------------------------------------- */
.header.header-hidden {
  transform: translateY(-100%);
}

.header {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.3s ease,
              box-shadow 0.3s ease;
}

/* --------------------------------------------------------------------------
   4. Back to Top Button
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--accent-glow);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease,
              background 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.back-to-top svg {
  fill: #ffffff;
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   5. Varied Scroll Reveal — Animation Types
   Elements with .reveal + data-reveal attribute override default fade-up
   -------------------------------------------------------------------------- */
.reveal[data-reveal="fade-left"] {
  transform: translateX(-40px);
}

.reveal[data-reveal="fade-right"] {
  transform: translateX(40px);
}

.reveal[data-reveal="scale-in"] {
  transform: scale(0.85);
}

.reveal[data-reveal="fade-left"].reveal-visible,
.reveal[data-reveal="fade-right"].reveal-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal[data-reveal="scale-in"].reveal-visible {
  opacity: 1;
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   6. Image Clip Reveal (curtain opening effect)
   -------------------------------------------------------------------------- */
.img-clip-reveal {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: clip-path;
}

.img-clip-reveal.clip-revealed {
  clip-path: inset(0 0 0 0);
}

/* --------------------------------------------------------------------------
   7. Parallax Wrapper
   -------------------------------------------------------------------------- */
.parallax-element {
  will-change: transform;
}

/* --------------------------------------------------------------------------
   8. Horizontal Scroll Section
   -------------------------------------------------------------------------- */
.horizontal-scroll-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
}

.horizontal-scroll-section .container {
  position: relative;
  z-index: 2;
}

.horizontal-scroll-track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-3);
  will-change: transform;
  overflow: visible;
}

.horizontal-scroll-track .gallery-item {
  min-width: 300px;
  max-width: 350px;
  flex-shrink: 0;
}

/* Horizontal scroll spacing fix for full-width overflow */
.horizontal-scroll-section .container-fluid {
  width: 100%;
  overflow: hidden;
  padding: 0;
}

.horizontal-scroll-section .container-fluid .horizontal-scroll-track {
  padding-left: calc((100vw - var(--container-width)) / 2 + var(--space-3));
  padding-right: var(--space-3);
}

/* --------------------------------------------------------------------------
   9. Responsive adjustments for scroll features
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 38px;
    height: 38px;
  }

  .back-to-top svg {
    width: 16px;
    height: 16px;
  }

  .scroll-progress {
    height: 2px;
  }

  .horizontal-scroll-track .gallery-item {
    min-width: 240px;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .horizontal-scroll-track .gallery-item {
    min-width: 200px;
    max-width: 240px;
  }
}

/* Reduced motion preference — disable all scroll-driven animations */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress,
  .header,
  .back-to-top,
  .reveal,
  .img-clip-reveal,
  .parallax-element,
  .horizontal-scroll-track {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    clip-path: none !important;
    opacity: 1 !important;
  }

  .back-to-top {
    display: none !important;
  }
}

