/* ============================================
   DESIGN SYSTEM - Modern Construction (Light)
   Theme: Architectural / Clean / Precision
   ============================================ */

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

:root {
  /* Palette: Concrete & Safety Yellow */
  --c-bg-main: #ffffff;
  --c-bg-surface: #f8fafc;
  /* Slate 50 */
  --c-bg-accent: #f1f5f9;
  /* Slate 100 */

  --c-primary: #f59e0b;
  /* Safety Amber */
  --c-primary-dark: #d97706;

  --c-text-main: #0f172a;
  /* Slate 900 */
  --c-text-muted: #64748b;
  /* Slate 500 */

  --c-border: #e2e8f0;
  /* Slate 200 */
  --c-shadow: rgba(15, 23, 42, 0.05);

  /* Spacing */
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 8rem;

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--c-bg-main);
  background-image:
    radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 40px 40px;
  /* Subtle blueprint dot grid */
  color: var(--c-text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

ul {
  list-style: none;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   HEADER
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001; /* Above nav links */
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: var(--c-text-main);
}

.desktop-only-btn {
  display: block;
  margin-left: 2rem; /* Prevent overlap with nav links */
}

.mobile-only-btn {
  display: none;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    right: -100%; /* Start off-screen right */
    left: auto;   /* Unset left */
    top: 70px;
    gap: 0;
    flex-direction: column;
    background-color: #fff;
    width: 60%; /* Not full width, maybe 80% or 100% depending on preference. User said "from right", usually side drawer or full width. Let's do 100% for readability */
    width: 100%;
    text-align: center;
    transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1); /* Ease-out-expo - smooth tween */
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    padding: 2rem 1rem;
    border-top: 1px solid var(--c-border);
    height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
    left: auto;
  }

  .nav-link {
    margin: 1rem 0;
    font-size: 1.35rem; /* Larger text */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0;
  }
  
  .nav-icon {
    width: 28px; /* Larger icons on mobile */
    height: 28px;
    stroke-width: 1.5;
  }

  .desktop-only-btn {
    display: none;
  }

  .mobile-only-btn {
    display: block !important;
    width: 100%;
  }

  .no-scroll {
    overflow: hidden;
  }
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--c-text-main);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  margin-left: auto; /* Push to right */
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  /* Hide icons on desktop if preferred, but user asked for them. Let's keep them small/subtle */
  display: inline-block;
}

.nav-link:hover {
  color: var(--c-text-main);
}

.btn-primary {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to bottom, #fcd34d, #f59e0b); /* Gold to Amber gradient */
  color: #451a03; /* Dark Brown/Black text for high contrast */
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid #d97706; /* Darker orange border */
  border-bottom-color: #b45309; /* Even darker bottom border for depth */
  box-shadow: 0 2px 4px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.4); /* Bevel effect */
  text-shadow: 0 1px 0 rgba(255,255,255,0.3); /* Etched text effect */
  transition: transform 0.1s, box-shadow 0.1s;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(to bottom, #fbbf24, #d97706);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.4);
}

.btn-primary:active {
  background: linear-gradient(to bottom, #f59e0b, #d97706);
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); /* Pressed look */
  border-top-color: #b45309;
}

.btn-outline {
  padding: 0.75rem 1.5rem;
  background: #0f172a; /* Solid black/dark slate */
  color: #fff; /* White text */
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid #0f172a;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-outline:hover {
  background: #334155;
  border-color: #334155;
  transform: translateY(-1px);
}

.btn-white-outline {
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--c-text-main);
  font-weight: 700;
  border-radius: 4px;
  border: 2px solid rgba(15, 23, 42, 0.2); /* Darker, thicker border for visibility */
  transition: 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-white-outline:hover {
  background: var(--c-text-main);
  color: #fff;
  border-color: var(--c-text-main);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* ============================================
   HERO SECTION
   ============================================ */
section {
  padding: 4rem 0; /* Reduced to 4rem per user request */
}

@media (max-width: 768px) {
  section {
    padding: 2rem 0;
  }
}

.content-section {
  padding: 3rem 0 8rem 0; /* Reduced top padding for main content areas */
}

/* Specific section overrides if needed */
.hero {
  padding-top: 140px;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden; /* Prevent 3D model slide from causing scrollbars */
}

@media (max-width: 768px) {
  .hero {
    padding-bottom: 2rem;
    padding-top: 130px; /* Increased from 100px to fix header overlap */
  }
}

/* No overlay - raw background image */
.hero::before {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

/* Glassy Blurred Background */
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out; /* Smooth crossfade */
  filter: blur(2px); 
  transform: scale(1.1); /* Scale up to hide blurred edges */
  z-index: 0;
}

/* 3D Model Container - Must be above overlay */
.hero-visual-3d {
  position: absolute;
  right: -5%;
  bottom: -5%;
  width: 55%; 
  height: 100%; 
  z-index: 10; /* Fix interaction blocked by glass overlay */
}

/* Optional Tint for readability */
.hero-overlay-glass {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.1); /* Light tint */
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 10;
  /* Solid White Card */
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 
    0 10px 40px rgba(15, 23, 42, 0.15),
    0 4px 12px rgba(15, 23, 42, 0.08);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  /* Solid Badge */
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-text-main);
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

/* Modern Display Typography */
.hero-title {
  font-size: clamp(4.2rem, 6.5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--c-text-main);
  font-weight: 700;
  letter-spacing: -0.03em;
  /* Subtle text gradient for premium feel */

}

.text-highlight {
  color: var(--c-primary);
  /* background: none; */
  /* -webkit-text-fill-color: var(--c-primary); */
    background: linear-gradient(135deg, var(--c-primary) 0%, rgb(255, 145, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.125rem;
  color: #09090a; /* Slate 600 - slightly lighter for modern feel */
  font-weight: 400;
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.hero-visual-3d {
  display: block;
  position: absolute;
  right: 0;
  bottom: 0px;
  width: 55vw; 
  max-width: 900px;
  height: 100%; 
  border: none;
  outline: none;
  z-index: 1;
  pointer-events: auto;
}

/* Hide static if needed, or keep for fallback logic handled in HTML */
.hero-visual {
  display: none; 
}

.hero-visual:hover {
  transform: none;
}

/* Remove old CSS illustrations */
.blueprint-barrier,
.blueprint-block {
    display: none;
}

.blueprint-barrier::after {
  /* Yellow Strip */
  content: '';
  position: absolute;
  top: 30%;
  left: 0;
  right: 0;
  height: 24px;
  background: repeating-linear-gradient(45deg,
      var(--c-primary),
      var(--c-primary) 10px,
      #fbbf24 10px,
      #fbbf24 20px);
  opacity: 0.9;
}

.blueprint-block {
  position: absolute;
  bottom: 20%;
  left: 0;
  width: 180px;
  height: 120px;
  background: #e2e8f0;
  border: 2px solid #94a3b8;
  transform: rotate(-15deg);
  box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.05);
}

.blueprint-block::before {
  /* Hollow core indication */
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;
  width: 25%;
  height: 60%;
  background: #cbd5e1;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.blueprint-block::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 20%;
  width: 25%;
  height: 60%;
  background: #cbd5e1;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1);
}


/* ============================================
   APPROVALS SECTION (Responsive Marquee)
   ============================================ */
.approvals-section {
  background: #f1f5f9;
  color: #0f172a;
  padding: 2rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}

.approvals-track {
  display: flex;
  align-items: center;
}

.approval-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  flex-shrink: 0;
}

.approval-item img {
  width: 60px;
  height: auto;
}

.approval-text-main {
  font-weight: 700;
  font-size: 1.25rem;
  color: #000000;
}

.approval-text-sub {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.approval-divider {
  width: 1px;
  height: 40px;
  background: #cbd5e1;
  display: none; /* Default hidden */
}

/* Desktop Styles */
@media (min-width: 769px) {
  .approvals-track {
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
  }

  .approval-divider {
    display: block;
  }

  .approval-clone {
    display: none; /* Hide duplicated items on desktop */
  }
}

/* Mobile Styles (Marquee Animation) */
@media (max-width: 768px) {
  .approvals-section .container {
    max-width: 100%;
    padding: 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  }

  .approvals-track {
    width: max-content;
    gap: 4rem; /* Larger gap for scrolling */
    animation: marquee-scroll 20s linear infinite;
  }

  /* .approval-item { } - Removed empty rule */
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   MULTI-PAGE LAYOUTS (NEW)
   ============================================ */

/* Multi-page specific styles */
.page-header {
  background: var(--c-surface);
  padding: 1rem 0;
  padding-top: 120px;
  border-bottom: 1px solid var(--c-border);
  /* margin-bottom: 2rem; */
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--c-text-main);
  margin-bottom: 0.5rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--c-text-muted);
}

.breadcrumb a {
  color: var(--c-text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Sidebar Layout */
.layout-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.sidebar-menu {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  overflow: hidden;
  /* position: sticky; - Removed per user request */
  /* top: 120px; */
}

.sidebar-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-text-main);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  color: var(--c-text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--c-border);
  transition: background 0.2s;
}

.sidebar-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  overflow: visible;
  transition: transform 0.2s;
}

.sidebar-link:hover .sidebar-icon,
.sidebar-link.active .sidebar-icon {
  transform: scale(1.1);
}

.sidebar-link:hover,
.sidebar-link.active {
  background: var(--c-bg);
  color: var(--c-primary);
  font-weight: 500;
}

/* Product List Updates */
.product-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Vertical Card Pivot - Fixing the "Terrible" look */
.product-item {
  display: flex;
  flex-direction: column; /* Vertical Stack */
  align-items: stretch;
  gap: 0; /* Remove gap, handle via padding */
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  overflow: hidden;
  padding: 0; /* Full bleed image */
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%; /* Equal height */
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08); /* Stronger shadow */
}

.product-image {
  width: 100%;
  height: 240px; /* Large, fixed height for consistency */
  flex-shrink: 0;
  background: #f1f5f9;
  border-radius: 0; /* Full bleed */
  overflow: hidden;
}

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

.product-details {
  flex: 1;
  padding: 1.5rem; /* More breathing room */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  background: #fff;
}

.product-title {
  font-size: 1.35rem; /* Larger Title */
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--c-text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-title .heading-icon {
    width: 20px;
    height: 20px;
}

/* Description Text Truncation */
.product-details div[style*="color: var(--c-text-muted)"] {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.85rem;
  margin-bottom: 0.5rem !important;
  line-height: 1.4;
  max-height: 4.2em; /* 3 lines at 1.4 line-height */
  transition: max-height 0.3s ease, -webkit-line-clamp 0s 0.3s, overflow 0s 0.3s;
}

/* Show full text on hover */
.product-item:hover .product-details div[style*="color: var(--c-text-muted)"] {
  -webkit-line-clamp: unset;
  overflow: visible;
  max-height: 20em; /* Large enough for expanded text */
  transition: max-height 0.3s ease; /* Instant unset of clipping on hover */
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  margin-top: auto;
}

.spec-row {
  display: inline-flex;
  gap: 0.25rem;
  border: none;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--c-text-muted);
}

.spec-row strong {
    color: var(--c-text-main);
}

/* Tablet Products */
@media (max-width: 1024px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Revert to Stack */
@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem; /* 50% reduced side padding for hero content wrapper */
  }

  .hero-visual-3d {
    position: relative;
    right: auto;
    width: 100%;
    height: 340px; /* Reduced specific to mobile aspect ratios */
    margin-top: 1rem;
    margin-bottom: 2rem;
  }

  .product-list {
    grid-template-columns: 1fr; /* 1 Column */
  }

  .product-item {
     /* Vertical on mobile too for big images */
     flex-direction: column;
  }
  
  .product-image {
    width: 100%;
    height: 220px;
  }

  .hero-content {
    /* Clear Frost - High Transparency Glass */
    background: rgba(255, 255, 255, 0.15); /* Very subtle tint */
    backdrop-filter: blur(8px); /* Smooths out background noise */
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4); /* Clean definition */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1rem 1rem;
    
    /* Ensure text stands out on the blurred bg */
    text-shadow: 0 1px 2px rgba(0,0,0,0.1); 
  }
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-item {
  position: relative;
  background: #e2e8f0;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 1.5rem;
  opacity: 0;
  transition: 0.3s;
}

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

.project-title {
  color: #fff;
  font-size: 1.25rem;
  font-family: var(--font-display);
}

.project-loc {
  color: var(--c-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products-section {
  padding: var(--sp-xl) 0;
  background: var(--c-bg-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-lg);
}

/* Default Grid (Used in Logistics etc) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Flexbox Override for Centering Orphans in Products */
.products-section .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.product-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  /* Flex Props */
  flex: 1 1 300px;
  max-width: 400px;
  width: 100%;
}

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

/* ============================================
   PROJECTS PAGE
   ============================================ */
.projects-header .header-content {
  /* max-width: 800px; - Removed to allow full width */
}

.header-desc {
  font-size: 1.25rem;
  color: var(--c-text-muted);
  max-width: 700px;
  margin-top: 1.5rem;
  line-height: 1.7;
}

.projects-section {
  padding-bottom: 8rem;
}

.project-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  border-color: var(--c-primary);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--c-bg-accent);
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover .card-image-wrapper img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.project-location {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.project-location::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--c-primary);
  border-radius: 50%;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--c-text-main);
  line-height: 1.3;
}

.card-description {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: var(--c-bg-surface);
  color: var(--c-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--c-border);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--c-bg-surface);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--c-text-main);
  font-size: 1.5rem;
  /* Using font icons or simple CSS shapes for clarity */
}

.heading-icon {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.75rem;
  overflow: visible;
  flex-shrink: 0;
}

/* CSS Icons (Simplified) */
.icon-shape-barrier {
  width: 24px;
  height: 32px;
  background: var(--c-text-main);
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0% 100%);
}

.icon-shape-stopper {
  width: 32px;
  height: 12px;
  background: var(--c-primary);
  border-radius: 2px;
}

.icon-shape-block {
  width: 32px;
  height: 20px;
  border: 3px solid var(--c-text-main);
}

.product-card h3 {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 1.8rem;
}

.section-header {
  text-align: center;
  margin-bottom: 6rem;
}

.section-header h2 {
  margin-bottom: 1.5rem;
}

.section-header p {
  margin-left: auto;
  margin-right: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--c-text-main);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 2.5rem;
}

h3 {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

.product-card p {
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.specs-table {
  width: 100%;
  font-size: 0.9rem;
  border-collapse: collapse;
}

.specs-table td {
  padding: 0.5rem 0;
  color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-bg-surface);
}

.specs-table td:first-child {
  font-weight: 500;
  color: var(--c-text-main);
}

/* ============================================
   SUPPLY / LOGISTICS
   ============================================ */
#logistics .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.supply-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: left;
  /* Flex Props matching Product Cards */
  flex: 1 1 300px;
  max-width: 400px;
  width: 100%;
  overflow: hidden; /* Ensure images stay inside corners */
}

/* Full Width Image Container - Matches Product Card style */
.supply-image-container {
  height: 200px;
  position: relative;
  background: #f8fafc;
  margin: -1.5rem -1.5rem 1.5rem -1.5rem; /* Negative margins to bleed to edge */
  overflow: hidden;
}

.supply-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  padding: var(--sp-xl) 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-weight: 600;
  font-size: 1.1rem;
}

.form-card {
  background: var(--c-bg-surface);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid var(--c-border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--c-text-main);
}

.form-input {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  background: #fff;
  font-family: var(--font-body);
  transition: 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-card .btn-primary {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  font-size: 1rem;
}

.footer {
  background-color: #0f172a; /* Slate 900 */
  color: #94a3b8; /* Slate 400 */
  padding: 5rem 0 2rem;
  margin-top: 8rem; /* Significant gap from content */
  font-size: 0.95rem;
}

/* Ensure footer stays at bottom on short pages but maintains margin */
main + .footer {
  margin-top: auto; 
  padding-top: 5rem;
}

/* If the page is long, the 8rem margin on .footer handles it */


.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-title {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #94a3b8;
  transition: 0.2s;
}

.footer-link:hover {
  color: var(--c-primary);
  transform: translateX(5px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b; /* Slate 800 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  background: #1e293b;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: 0.2s;
}

.social-icon:hover {
  background: var(--c-primary);
  color: #000;
  transform: translateY(-3px);
}

/* Responsive Edits */

/* Fix Contact Page Layout */
@media (max-width: 900px) {
  .contact-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  .contact-layout > div {
    width: 100%;
  }
}

/* Fix Floating Buttons on Mobile */
@media (max-width: 768px) {
  .floating-buttons-container {
    bottom: 5rem; /* Raise slightly above potential bottom bars */
    right: 1rem;  /* Ensure it's not sticking to edge */
    z-index: 1000; /* Ensure visibility */
  }

  /* Make them smaller on mobile */
  .btn-float {
    width: 48px;
    height: 48px;
  }

  .icon-float {
    width: 24px;
    height: 24px;
  }
}

/* Responsive Footer */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-visual {
    display: none;
  }

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

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

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

  .sidebar-menu {
    position: static;
    margin-bottom: 2rem;
  }
}

/* Slideshow Styles */
.product-card .image-container {
  height: 200px;
  position: relative;
  background: #f8fafc;
  margin: -1.5rem -1.5rem 1.5rem -1.5rem;
  overflow: hidden;
}

.product-card .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.product-card .slide.active {
  opacity: 1;
}

/* ============================================
   FLOATING ACTION BUTTONS
   ============================================ */
.floating-buttons-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column-reverse; /* Stack upwards */
  gap: 1rem;
  pointer-events: none; /* Let clicks pass through container gap */
}

.btn-float {
  pointer-events: auto; /* Re-enable clicks on buttons */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Bubble Look - No External Shadow */
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 0.4), /* Top Highlight */
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);     /* Bottom Shade */
  position: relative;
  /* overflow: hidden; Removed to allow border glow to show */
}

@keyframes float-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Glowing Border */
.btn-float::before {
  content: '';
  position: absolute;
  inset: -3px; /* Border thickness */
  border-radius: 50%;
  z-index: -1;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,255,255,0.8) 100%);
  animation: float-spin 2s linear infinite;
}

/* Glassy Shine */
.btn-float::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
  border-radius: 30px 30px 0 0; /* Match parent radius manually since overflow is visible */
  pointer-events: none;
}

.icon-float {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.1));
  z-index: 2;
}

.btn-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.btn-float:hover::before {
  animation-duration: 1s; /* Faster spin on hover */
}

.btn-float:active {
  transform: translateY(1px) scale(0.95);
  box-shadow: 
    inset 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 1. Call - Primary Gold */
.btn-float-call {
  background: radial-gradient(circle at 30% 30%, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
  border: 1px solid #d97706;
}
.btn-float-call::before {
  background: conic-gradient(from 0deg, transparent 0 70%, #fcd34d 100%);
}

/* 2. WhatsApp - Brand Green */
.btn-float-whatsapp {
  background: radial-gradient(circle at 30% 30%, #4ade80 0%, #25D366 50%, #128C7E 100%);
  border: 1px solid #128C7E;
}
.btn-float-whatsapp::before {
  background: conic-gradient(from 0deg, transparent 0 70%, #4ade80 100%);
}

/* 3. Email - Contrast Slate */
.btn-float-email {
  background: radial-gradient(circle at 30% 30%, #475569 0%, #0f172a 50%, #020617 100%);
  border: 1px solid #020617;
}
.btn-float-email::before {
  background: conic-gradient(from 0deg, transparent 0 70%, #e5e7eb 100%);
}

/* ============================================
   ABOUT PAGE
   ============================================ */

/* About Hero */
.about-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  padding-top: 100px;
  margin-bottom: 0;
}



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

.about-hero-content {
  text-align: left;
  color: #fff;
  max-width: 700px;
  margin: 0 auto;
}

.about-hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 1rem;
}

.about-hero-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* About Sections */
.about-section {
  padding: 5rem 0;
}

.about-values-bg {
  background: var(--c-bg-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

/* Two-Column Content Grid */
.about-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--c-text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-text p strong {
  color: var(--c-text-main);
}

/* Stats Row */
.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* About Image */
.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Value Cards (Vision/Mission) */
.value-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.value-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-primary);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.value-card--mission {
  border-left-color: var(--c-text-main);
}

.value-card-icon {
  width: 56px;
  height: 56px;
  background: var(--c-bg-surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--c-primary);
}

.value-card--mission .value-card-icon {
  color: var(--c-text-main);
}

.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.value-card p {
  color: var(--c-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Policy Grid (HSE) */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.policy-card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.policy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.1);
}

.policy-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #92400e;
}

.policy-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--c-text-main);
}

.policy-card p {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* About CTA */
.about-cta {
  padding: 5rem 0;
  background: var(--c-text-main);
  text-align: center;
}

.cta-content h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* About Page Responsive */
@media (max-width: 1024px) {
  .policy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-hero {
    min-height: 260px;
  }
  
  .about-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-image {
    order: -1; /* Image first on mobile */
  }
  
  .about-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .stat-item {
    flex: 1 1 45%;
  }
  
  .value-cards {
    grid-template-columns: 1fr;
  }
  
  .policy-grid {
    grid-template-columns: 1fr;
  }
  
  .value-card,
  .policy-card {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .floating-buttons-container {
    bottom: 1.5rem;
    right: 1rem;
    gap: 0.75rem;
    flex-direction: row-reverse;
  }
  
  .btn-float {
    width: 52px;
    height: 52px;
  }
  
  .icon-float {
    width: 26px;
    height: 26px;
  }
}