:root {
  --primary-dark: #1d1f21;
  --primary-deep: #231f20;
  --accent: #ffb703;
  --accent-dark: #c08800;
  --surface: #17191b;
  --surface-soft: #2b2d30;
  --surface-softest: #3a3d41;
  --text-light: #f7f7f7;
  --text-muted: #b9b9b9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  /* background: #0f1113; */
  color: var(--text-light);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

a:hover {
  color: var(--accent);
}

.header-top {
  background: rgba(247, 247, 247, 0.96);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  letter-spacing: 0.08em;
}

.hero-carousel {
  width: 100%;
  min-height: 600px;
}

.hero-carousel .carousel-item {
  position: relative;
}

.hero-carousel .carousel-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0;
  background: transparent;
}

.hero-carousel .carousel-indicators {
  bottom: 2rem;
  z-index: 10;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 183, 3, 0.8);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
  opacity: 1;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  filter: invert(1);
}

.hero-section,
.page-hero {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  user-select: text;
}

.hero-section::after,
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 100%);
  /* z-index: 1; */
  pointer-events: none;
}

.hero-section .container,
.page-hero .container {
  position: relative;
  z-index: 2;
}

.hero-bg-1 {
  background:url(./../images/construction-1.jpg) no-repeat center center;
  background-attachment: fixed;
  background-size: cover;
}

.hero-bg-1::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(45deg, rgba(255, 183, 3, 0.08) 0px, transparent 2px, transparent 4px, rgba(255, 183, 3, 0.08) 6px),
    repeating-linear-gradient(90deg, transparent 0px, rgba(255, 183, 3, 0.05) 1px, transparent 2px),
    radial-gradient(circle at 20% 30%, rgba(255, 183, 3, 0.12), transparent 35%),
    radial-gradient(circle at 85% 20%, rgba(255, 183, 3, 0.1), transparent 25%);
  z-index: 0;
}

.hero-bg-2 {
  background: linear-gradient(120deg, #14181d 0%, #1f2329 50%, #0f1113 100%);
  background-attachment: fixed;
}

.hero-bg-2::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(30deg, rgba(255, 183, 3, 0.06) 0px, transparent 2px, transparent 4px, rgba(255, 183, 3, 0.06) 6px),
    radial-gradient(circle at 25% 25%, rgba(255, 183, 3, 0.1), transparent 40%),
    radial-gradient(circle at 80% 35%, rgba(255, 183, 3, 0.08), transparent 30%);
  z-index: 0;
}

.hero-bg-3 {
  background: linear-gradient(110deg, #17191d 0%, #22262b 50%, #0f1113 100%);
  background-attachment: fixed;
}

.hero-bg-3::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(60deg, rgba(255, 183, 3, 0.07) 0px, transparent 2px, transparent 4px, rgba(255, 183, 3, 0.07) 6px),
    radial-gradient(circle at 30% 20%, rgba(255, 183, 3, 0.1), transparent 38%),
    radial-gradient(circle at 75% 40%, rgba(255, 183, 3, 0.08), transparent 28%);
  z-index: 0;
}

.hero-bg-4 {
  background: linear-gradient(125deg, #16181c 0%, #212629 50%, #0c0e11 100%);
  background-attachment: fixed;
}

.hero-bg-4::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255, 183, 3, 0.07) 0px, transparent 2px, transparent 4px, rgba(255, 183, 3, 0.07) 6px),
    radial-gradient(circle at 35% 25%, rgba(255, 183, 3, 0.1), transparent 40%),
    radial-gradient(circle at 70% 45%, rgba(255, 183, 3, 0.08), transparent 30%);
  z-index: 0;
}

.hero-bg-5 {
  background: linear-gradient(100deg, #15171b 0%, #1f2329 50%, #0e1012 100%);
  background-attachment: fixed;
}

.hero-bg-5::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(35deg, rgba(255, 183, 3, 0.07) 0px, transparent 2px, transparent 4px, rgba(255, 183, 3, 0.07) 6px),
    radial-gradient(circle at 22% 28%, rgba(255, 183, 3, 0.1), transparent 38%),
    radial-gradient(circle at 78% 32%, rgba(255, 183, 3, 0.08), transparent 32%);
  z-index: 0;
}

.material-image {
  min-height: 180px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 183, 3, 0.12), rgba(29, 31, 34, 0.98));
  color: #fff;
  font-size: 2rem;
}

/* Section spacing */
main > section:not(.hero-section):not(.page-hero) {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

main > section.bg-dark {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
  main > section:not(.hero-section):not(.page-hero) {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  main > section.bg-dark {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

.hero-section .container,
.page-hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

.letter-spacing {
  letter-spacing: 0.25em;
}

.service-card,
.feature-box,
.stat-card,
.team-card,
.cert-card,
.info-card,
.material-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover,
.feature-box:hover,
.stat-card:hover,
.team-card:hover,
.cert-card:hover,
.info-card:hover,
.material-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.18);
}

.icon-circle {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
}

.bg-secondary-emphasis {
  background: rgba(255, 183, 3, 0.08);
}

.footer {
  background: var(--primary-dark);
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--accent);
}

.back-to-top,
.whatsapp-float {
  position: fixed;
  right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.24);
  z-index: 999;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.back-to-top {
  bottom: 1rem;
  background: var(--surface-soft);
  color: var(--text-light);
  opacity: 0;
  pointer-events: none;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.whatsapp-float {
  bottom: 5.5rem;
  background: #25d366;
  color: #fff;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
}

.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 19, 0.88);
  z-index: 2000;
}

.card {
  border: none;
}

input.form-control,
textarea.form-control {
  background: #17191b;
  border: 1px solid #2e3134;
  color: var(--text-light);
}

input.form-control:focus,
textarea.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(255, 183, 3, 0.2);
}

.btn-warning {
  background: linear-gradient(135deg, #ffb703, #ff9933);
  border: none;
}

.btn-warning:hover,
.btn-outline-warning:hover {
  background: #f5a300;
  color: #111;
}

.table-dark {
  background: #131516;
}

.table-dark th,
.table-dark td {
  border-color: #242629;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .page-hero {
    min-height: 280px;
  }

  .service-card,
  .material-card {
    min-height: 320px;
  }
}
