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

/* ==========================================================================
   1. CORE CSS DESIGN TOKENS (REFINE FOR HEAVY CONSTRUCTION LOOK)
   ========================================================================== */
:root {
  /* Colors - Shift to High-End Clean Construction Palette */
  --bg-primary: #ffffff;          /* Pure white foundation */
  --bg-secondary: #f7f9fc;        /* Light concrete gray for alternate sections */
  --bg-dark: #111622;             /* Deep structural charcoal (for headers, footer, hero overlays) */
  --bg-glass: rgba(255, 255, 255, 0.85); /* Frosted light glass */
  --bg-glass-heavy: rgba(17, 22, 34, 0.95); /* Frosted dark glass for navigation */
  
  --accent: #ff6f00;              /* Safety Construct Orange (Cranes, Vests, CAT Machines) */
  --accent-rgb: 255, 111, 0;
  --accent-secondary: #2b5a9e;    /* Civil Steel Blue (representing steel trusses & public trust) */
  --accent-sec-rgb: 43, 90, 158;
  
  --text-dark: #1a202c;           /* Charcoal black for main text */
  --text-muted: #4a5568;          /* Slate gray for secondary descriptions */
  --text-light: #f8f9fa;          /* Pure alabaster for dark sections */
  
  --border-glass: rgba(0, 0, 0, 0.08); /* Subtle dark border for light cards */
  --border-glass-hover: rgba(255, 111, 0, 0.3); /* Warm orange boundary */
  --border-glass-blue: rgba(43, 90, 158, 0.3);
  
  --shadow-glow: 0 4px 20px rgba(255, 111, 0, 0.15);
  --shadow-glow-blue: 0 4px 20px rgba(43, 90, 158, 0.15);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.04);
  
  /* Fonts */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions & Spacing */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 8px;           /* Cleaner, sharper corporate corners */
  --border-radius-lg: 16px;
  
  --container-width: 1280px;
}

/* ==========================================================================
   2. GLOBAL BASE STYLES & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Modern Industrial Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border: 2px solid var(--bg-secondary);
  border-radius: 5px;
}

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

/* Typography Resets */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Background Grids & Blueprint Elements */
.ambient-glow {
  position: absolute;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.04) 0%, rgba(var(--accent-sec-rgb), 0.02) 50%, rgba(0,0,0,0) 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-1 { top: 10%; left: -10%; }
.ambient-glow-2 { bottom: 20%; right: -10%; }

/* ==========================================================================
   3. PREMIUM CIVIL GLASSMORPHIC CONTAINERS & CARDS
   ========================================================================== */
.glass-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  padding: 2.2rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  opacity: 0;
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.glass-card:hover::before {
  opacity: 1;
}

/* ==========================================================================
   4. NAVIGATION HEADER (SHRINKING GLASSMORPHISM)
   ========================================================================== */
#scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.05);
}

#scroll-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  transition: width 0.1s ease-out;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 1.2rem 0;
  transition: var(--transition-slow);
  background: #ffffff;
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* On-scroll shrinking navigation with light frosted glass */
header.shrink {
  padding: 0.7rem 0;
  background: #ffffff;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--text-dark);
}

/* Make logo image in header slightly bigger and shrink smoothly */
.logo img {
  height: 54px !important; /* Bigger logo image! */
  width: auto !important;
  object-fit: contain;
  border-radius: 4px;
  transition: var(--transition-slow) !important;
}

header.shrink .logo img {
  height: 42px !important; /* Shrunk logo image */
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.brand-main {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  transition: var(--transition-normal);
}

.brand-sub {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-normal);
}

header.shrink .brand-main {
  font-size: 1.15rem;
}

header.shrink .brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.8px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.2);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
}

header:not(.shrink) nav a {
  color: var(--text-muted);
}

header:not(.shrink) nav a:hover, header:not(.shrink) nav a.active {
  color: var(--text-dark);
}

header.shrink nav a {
  color: var(--text-muted);
}

header.shrink nav a:hover, header.shrink nav a.active {
  color: var(--text-dark);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  transition: var(--transition);
}

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

/* Mobile Menu Toggle */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
}

.menu-btn-burger {
  width: 24px;
  height: 2.5px;
  background: var(--text-dark); /* Always dark on white background */
  display: block;
  position: relative;
  transition: var(--transition);
}

header.shrink .menu-btn-burger {
  background: var(--text-dark);
}

.menu-btn-burger::before, .menu-btn-burger::after {
  content: '';
  width: 24px;
  height: 2.5px;
  background: var(--text-dark); /* Always dark on white background */
  position: absolute;
  left: 0;
  transition: var(--transition);
}

header.shrink .menu-btn-burger::before, header.shrink .menu-btn-burger::after {
  background: var(--text-dark);
}

.menu-btn-burger::before { top: -8px; }
.menu-btn-burger::after { top: 8px; }

/* Open State Burger */
.menu-btn.open .menu-btn-burger {
  background: transparent !important;
}
.menu-btn.open .menu-btn-burger::before {
  transform: rotate(45deg);
  top: 0;
  background: var(--text-dark) !important;
}
.menu-btn.open .menu-btn-burger::after {
  transform: rotate(-45deg);
  top: 0;
  background: var(--text-dark) !important;
}

/* ==========================================================================
   5. PREMIUM DYNAMIC BUTTONS (SOLID CONSTRUCTION ACTORS)
   ========================================================================== */
.btn-electric {
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.25);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.btn-electric:hover {
  transform: translateY(-2px);
  background: #e66400; /* Darker safety orange */
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.35);
}

.btn-electric.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--border-glass);
  box-shadow: none;
}

header.shrink .btn-electric.btn-secondary {
  color: var(--text-dark);
  border-color: var(--border-glass);
}

.btn-electric.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--text-dark);
  color: var(--text-dark);
}

header.shrink .btn-electric.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--text-dark);
  color: var(--text-dark);
}

/* ==========================================================================
   6. FOOTER STYLES (DEEP CHARCOAL CIVIL GROUND)
   ========================================================================== */
footer {
  background-color: var(--bg-dark);
  border-top: 4px solid var(--accent);
  padding: 80px 0 30px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

footer h4, footer .logo {
  color: #ffffff !important;
}

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

.footer-col h4 {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 3px;
  background: var(--accent);
}

.footer-col p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact-icon {
  color: var(--accent);
  font-weight: bold;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ==========================================================================
   7. UTILITIES & HELPER CLASSES
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
  z-index: 1;
}

.section-header p {
  font-size: 1.1rem;
  margin-top: 1rem;
  color: var(--text-muted);
}

.accent-text {
  color: var(--accent);
}

.blue-text {
  color: var(--accent-secondary);
}

.text-center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Status Badges */
.badge-status {
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-status.ongoing {
  background: rgba(255, 111, 0, 0.1);
  color: var(--accent);
  border: 1px solid rgba(255, 111, 0, 0.2);
}

.badge-status.completed {
  background: rgba(43, 90, 158, 0.1);
  color: var(--accent-secondary);
  border: 1px solid rgba(43, 90, 158, 0.2);
}

/* ==========================================================================
   8. MOTION CONTROLS & WIDGETS
   ========================================================================== */
/* Floating Scroll Percentage Widget */
#scroll-top-widget {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

#scroll-top-widget.visible {
  opacity: 1;
  visibility: visible;
}

#scroll-top-widget:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent);
}

#scroll-top-widget svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

/* Scroll reveals (progressive enhancement CSS keyframes) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-up {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    .scroll-reveal {
      animation: reveal-up auto linear backwards;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
  }
}

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

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

/* ==========================================================================
   9. RESPONSIVE MEDIA ENHANCEMENTS
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  section { padding: 60px 0; }
  
  /* Prevent logo text and image from merging with hamburger menu button on mobile screens */
  .logo {
    gap: 0.4rem !important;
  }
  
  .logo img {
    height: 38px !important;
  }
  
  header.shrink .logo img {
    height: 32px !important;
  }

  .brand-main {
    font-size: 1.05rem !important;
  }

  .brand-sub {
    font-size: 0.6rem !important;
    letter-spacing: 0.5px !important;
  }
  
  .menu-btn {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-dark);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 2rem 2rem;
    transition: var(--transition-slow);
    z-index: 1000;
  }
  
  nav.open {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.2rem;
  }
  
  header nav a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.15rem;
  }
  
  header:not(.shrink) nav a:hover, header:not(.shrink) nav a.active,
  header.shrink nav a:hover, header.shrink nav a.active {
    color: var(--accent) !important;
  }
  

  

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}


/* ==========================================================================
   10. SPECIALIZED PAGE HEADER & ACCESSIBILITY CONTROLS
   ========================================================================== */
.page-header {
  background: linear-gradient(180deg, #111622 0%, #1a233a 100%) !important;
  padding-top: 165px !important;
  padding-bottom: 75px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  text-align: center !important;
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: #ffffff !important;
  font-weight: 800;
  margin-top: 0.5rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8) !important;
  max-width: 800px;
  margin: 1rem auto 0 !important;
  font-size: 1.1rem;
}

.page-header .accent-text {
  color: var(--accent) !important;
}

/* ==========================================================================
   11. FLOATING WHATSAPP INTEGRATION WIDGET
   ========================================================================== */
#whatsapp-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.wa-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.wa-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.wa-btn svg {
  width: 25px;
  height: 25px;
  fill: #ffffff;
}

.wa-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  z-index: -1;
  animation: waPulse 2s infinite ease-out;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}

.wa-tooltip {
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: var(--border-radius);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: var(--transition);
  white-space: nowrap;
}

#whatsapp-widget:hover .wa-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
