/* ============================================
   DESIGN SYSTEM — Construction Company Website
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600;1,700&display=swap');

/* CSS Custom Properties */
:root {
  /* Primary Colors */
  --primary: #FEAF2F;
  --primary-dark: #e89a1a;
  --primary-light: #ffc55c;

  /* Dark Palette */
  --dark-900: #0a0a14;
  --dark-800: #0f0f1e;
  --dark-700: #1a1a2e;
  --dark-600: #222240;

  /* Light Palette */
  --white: #ffffff;
  --light-100: #f8f9fc;
  --light-200: #eef1f6;
  --light-300: #dde2eb;

  /* Text Colors */
  --text-dark: #1a1a2e;
  --text-body: #4a4a5a;
  --text-muted: #7a7a8a;
  --text-light: #b0b0c0;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 30px rgba(254, 175, 47, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 50%;

  /* Spacing */
  --section-padding: clamp(60px, 8vw, 100px) 0;
  --container-width: 1280px;

  /* Header Heights */
  --topbar-height: 44px;
  --navbar-height: 80px;
  --header-total: 124px; /* topbar + navbar combined */
}

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

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-body);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: var(--header-total); /* offset for fixed header */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul,
ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   SECTION HEADERS (Reusable)
   ============================================ */
.section-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-underline {
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* ============================================
   1. TOP INFO BAR
   ============================================ */
.top-bar {
  background: var(--dark-900);
  padding: 0;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-light);
  z-index: 1001;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(6px, 1.5vw, 20px);
}

.top-bar a {
  color: var(--text-light);
  transition: color var(--transition-fast);
}

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

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-item i {
  color: var(--primary);
  font-size: 0.9rem;
}

/* ============================================
   2. NAVIGATION BAR (Sticky)
   ============================================ */
.navbar {
  position: fixed;
  top: var(--topbar-height); /* sits directly below top-bar */
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: var(--dark-800);
  padding: 0;
  transition: all var(--transition-normal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
  background: rgba(15, 15, 30, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo-image {
  height: 46px;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-text .company-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.nav-logo-text .company-tagline {
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width var(--transition-normal);
}

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

.nav-links a:hover::after {
  width: 60%;
}

.nav-links a.active {
  color: var(--primary);
  background: rgba(254, 175, 47, 0.08);
}

.nav-links a.active::after {
  width: 60%;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 28px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   3. HERO SLIDER
   ============================================ */
.hero {
  position: relative;
  height: 92vh;
  min-height: 600px;
  overflow: hidden;
}

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(10, 10, 20, 0.4) 0%,
      rgba(10, 10, 20, 0.6) 50%,
      rgba(10, 10, 20, 0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 clamp(16px, 4vw, 24px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-welcome {
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-title {
  font-size: clamp(1.75rem, 8vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeInUp 1s ease 0.9s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 1.2s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--primary);
  color: var(--dark-900);
  box-shadow: 0 4px 20px rgba(254, 175, 47, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(254, 175, 47, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Hero Navigation Arrows */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.hero-nav:hover {
  background: var(--primary);
  color: var(--dark-900);
  border-color: var(--primary);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

/* Hero Dots */
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.hero-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  width: 36px;
  border-radius: 6px;
}

/* ============================================
   4. STATISTICS / COUNTER SECTION
   ============================================ */
.stats {
  background: linear-gradient(135deg, var(--dark-700) 0%, var(--dark-900) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.stats .container {
  position: relative;
  z-index: 1;
}

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

.stat-item {
  text-align: center;
  padding: 20px;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(254, 175, 47, 0.3), transparent);
}

.stat-item:last-child::after {
  display: none;
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: rgba(254, 175, 47, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
  font-size: 1.4rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number .suffix {
  font-size: 2rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 2.5px;
}

/* ============================================
   5. SERVICES SECTION
   ============================================ */
.services {
  padding: var(--section-padding);
  background: var(--light-100);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card-image img {
  transform: scale(1.08);
}

.service-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.service-card-body {
  padding: 28px;
}

.service-card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.service-card-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.btn-service {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-service:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(254, 175, 47, 0.4);
}

/* ============================================
   6. WHY CHOOSE US
   ============================================ */
.why-us {
  padding: var(--section-padding);
  background: var(--white);
}

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

.why-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--light-100);
  border-radius: var(--radius-md);
  border: 1px solid var(--light-200);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

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

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.why-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  background: linear-gradient(135deg, rgba(254, 175, 47, 0.1), rgba(254, 175, 47, 0.05));
  border-radius: var(--radius-md);
}

.why-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================
   7. PORTFOLIO / RECENT WORK
   ============================================ */
.portfolio {
  padding: var(--section-padding);
  background: var(--light-100);
}

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

.portfolio-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.portfolio-card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.08);
}

.portfolio-card-image .portfolio-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: var(--dark-900);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-xl);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.portfolio-card-body {
  padding: 24px;
}

.portfolio-card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.portfolio-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================
   8. FOOTER
   ============================================ */
.footer {
  background: linear-gradient(to bottom, var(--dark-800), var(--dark-900));
  padding: 80px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .nav-logo {
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
  color: var(--white);
}

.footer-social .fb {
  background: #1877f2;
}

.footer-social .ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social .li {
  background: #0077b5;
}

.footer-social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.footer-col ul li a::before {
  content: '▸';
  color: var(--primary);
  font-size: 0.7rem;
}

.footer-col ul li a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-contact-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(254, 175, 47, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.9rem;
}

.footer-contact-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.footer-contact-item p strong {
  color: rgba(255, 255, 255, 0.85);
  display: block;
  margin-bottom: 2px;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom span {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================
   9. WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.7rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-normal);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.55);
}

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

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

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

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Scroll reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 998;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--dark-900);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(254, 175, 47, 0.3);
}

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

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(254, 175, 47, 0.45);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .stat-item::after {
    display: none;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    /* clamp takes over, but we can set a max cap here if needed */
  }
}

@media (max-width: 768px) {
  /* On mobile, show compact top-bar with fixed height to avoid gaps */
  .top-bar {
    display: flex;
    height: 36px; /* fixed height prevents gap with navbar below */
    padding: 0;
    font-size: 0.75rem;
  }

  .top-bar .container {
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
  }

  body {
    padding-top: calc(36px + var(--navbar-height)); /* compact topbar + navbar */
  }

  .navbar {
    top: 36px; /* sits flush below the 36px top-bar — no gap */
  }

  .nav-links {
    position: fixed;
    top: calc(36px + var(--navbar-height));
    right: -100%;
    width: 280px;
    height: calc(100vh - 36px - var(--navbar-height));
    background: var(--dark-800);
    flex-direction: column;
    padding: 30px 30px 40px;
    gap: 4px;
    transition: right var(--transition-normal);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
    visibility: hidden;
  }

  .nav-links.open {
    right: 0;
    visibility: visible;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    height: 75vh;
    min-height: 500px;
  }

  .hero-title {
    /* clamp handles this */
  }

  .hero-welcome {
    font-size: 0.95rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .nav-logo-text .company-name {
    font-size: 1rem;
  }

  .nav-logo-text .company-tagline {
    font-size: 0.65rem;
    letter-spacing: 1px;
  }

  .nav-logo-image {
    height: 38px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .top-bar .container {
    justify-content: center;
    text-align: center;
  }

  .hero-nav {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .hero-prev {
    left: 12px;
  }

  .hero-next {
    right: 12px;
  }

  .hero-content {
    padding-top: 60px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .scroll-top {
    bottom: 85px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    /* clamp handles this */
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* On very small screens, hide proprietor name in top-bar to avoid overflow */
  .top-bar-item:nth-child(3) {
    display: none;
  }

  .top-bar {
    font-size: 0.72rem;
  }

  .top-bar-item {
    gap: 5px;
  }

  .nav-logo-text .company-name {
    font-size: 0.85rem;
  }

  .navbar .container {
    height: var(--navbar-height);
  }
}

/* ============================================
   SHARED INNER PAGE COMPONENTS
   ============================================ */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  background-color: var(--dark-900);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 0;
  /* Fixed header is offset by body padding-top */
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 20, 0.7), rgba(10, 10, 20, 0.9));
}

.page-hero-title {
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease;
}

.page-hero-title span {
  color: var(--primary);
}

.page-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 1s ease;
}

.section-spacing {
  padding: 100px 0;
}

.relative {
  position: relative;
}

.z-10 {
  z-index: 10;
}

.bg-light {
  background: var(--light-100);
}

.bg-dark {
  background: var(--dark-900);
}

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

.card-white {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
}

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

/* ABOUT PAGE */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.mv-box {
  background: var(--light-100);
  padding: 24px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.mv-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.mv-box h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.mv-box p {
  font-size: 0.85rem;
  margin: 0;
}

.image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  color: var(--dark-900);
  padding: 30px;
  border-radius: var(--radius-full);
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.exp-number {
  font-size: 2.2rem;
  line-height: 1;
}

.exp-text {
  font-size: 0.85rem;
  line-height: 1.2;
  margin-top: 5px;
}

.founder-card {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-items: stretch;
}

.founder-image {
  flex: 0 0 400px;
  background: var(--light-200);
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  /* Keep head more visible if photo is tall */
}

.founder-content {
  padding: 60px;
  flex: 1;
}

.founder-title {
  color: var(--primary);
  margin-bottom: 24px;
  font-weight: 500;
}

.founder-quote {
  display: flex;
  gap: 20px;
  background: var(--light-100);
  padding: 30px;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  border-left: 4px solid var(--primary);
}

.founder-quote i {
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.5;
}

.founder-quote p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-dark);
  font-weight: 500;
  margin: 0;
}

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

.impact-card {
  background: var(--dark-800);
  padding: 40px;
  border-radius: var(--radius-md);
  border-bottom: 3px solid var(--primary);
  transition: transform var(--transition-normal);
  text-align: center;
}

.impact-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.impact-card h3 {
  color: var(--white);
  margin-bottom: 15px;
}

.impact-card p {
  color: var(--text-light);
}

/* SERVICES PAGE */
.services-full-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  align-items: center;
}

.service-detail-card.reverse .service-detail-img {
  order: 2;
}

.service-detail-card.reverse .service-detail-content {
  order: 1;
  padding: 50px 0 50px 50px;
}

.service-detail-img {
  height: 100%;
  min-height: 400px;
  position: relative;
}

.service-detail-img img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-content {
  padding: 50px 50px 50px 0;
}

.service-detail-content h3 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.service-detail-content p {
  color: var(--text-body);
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.8;
}

.service-detail-content ul {
  display: grid;
  gap: 12px;
}

.service-detail-content li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
  font-weight: 500;
}

.service-detail-content li i {
  color: var(--primary);
}

/* PROJECTS GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding-top: 40px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(254, 175, 47, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-overlay i {
  font-size: 3rem;
  color: var(--white);
  transform: scale(0.5);
  transition: transform var(--transition-fast);
}

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

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

.gallery-item:hover .gallery-overlay i {
  transform: scale(1);
}

/* ============================================
   OUR IMPACT SECTION V2 (Stats Card)
   ============================================ */
.impact-section-v2 {
  background: var(--dark-700);
  background-image: linear-gradient(135deg, var(--dark-700) 0%, var(--dark-800) 100%);
  position: relative;
  overflow: hidden;
}

.impact-section-v2 .text-primary {
  color: var(--primary) !important;
}

.impact-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding-top: 30px;
}

.impact-stats-item {
  background: var(--white);
  padding: 40px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition-normal);
}

.impact-stats-item:hover {
  transform: translateY(-10px);
}

.stats-icon-wrapper {
  margin-bottom: 24px;
}

.stats-icon-box {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #ff9d2e 0%, #ff7e1a 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 126, 26, 0.3);
}

.stats-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.stats-value {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 24px;
}

.stats-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 1200px) {
  .impact-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .impact-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* POLICIES */
.max-w-content {
  max-width: 900px;
  margin: 0 auto;
}

.policy-content h2 {
  margin-bottom: 20px;
  color: var(--text-dark);
}

.policy-content h3 {
  margin: 30px 0 15px;
  color: var(--primary);
  font-size: 1.4rem;
}

.policy-list li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.policy-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.process-step {
  background: var(--light-100);
  padding: 24px;
  border-radius: var(--radius-sm);
  border-top: 4px solid var(--primary);
}

.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(254, 175, 47, 0.2);
  margin-bottom: 10px;
  line-height: 1;
  display: flex;
  justify-content: space-between;
}

.process-step h4 {
  color: var(--text-dark);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.process-step p {
  font-size: 0.85rem;
}

.policy-signature {
  border-top: 1px solid var(--light-300);
  padding-top: 20px;
  margin-top: 40px;
}

/* CONTACT PAGE */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form-container {
  padding: 40px;
}

.form-title {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.form-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--light-100);
  border: 1px solid var(--light-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-body);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(254, 175, 47, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input {
  width: auto;
  margin-top: 4px;
}

.btn-full {
  width: 100%;
  justify-content: center;
  font-size: 1.1rem;
}

.info-card {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(254, 175, 47, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.info-content h4 {
  color: var(--text-dark);
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.info-content p {
  margin: 0;
  line-height: 1.6;
}

.info-content a {
  color: var(--primary);
  font-weight: 500;
}

.contact-social {
  margin-top: 40px;
  border-top: 1px solid var(--light-300);
  padding-top: 30px;
}

.contact-social h4 {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: var(--light-200);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: all var(--transition-fast);
}

.social-icons a:hover {
  background: var(--primary);
  color: var(--white);
}

.map-section {
  line-height: 0;
}

/* MEDIA QUERIES FOR INNER PAGES */
@media (max-width: 992px) {

  .about-grid,
  .contact-grid,
  .service-detail-card {
    grid-template-columns: 1fr;
  }

  .founder-card {
    flex-direction: column;
  }

  .founder-image {
    flex: 0 0 auto;
    height: 320px;
    /* Fixed height for consistent look on mobile */
  }

  .section-spacing {
    padding: 60px 0;
  }

  .service-detail-card.reverse .service-detail-content {
    order: 2;
    padding: 0 24px 40px;
  }

  .service-detail-card.reverse .service-detail-img {
    order: 1;
  }

  .service-detail-content {
    padding: 24px;
  }

  .service-detail-img {
    min-height: 250px;
  }

  .impact-grid,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero-title {
    font-size: 2.5rem;
  }

  .form-row,
  .about-mission-vision,
  .impact-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .founder-content,
  .contact-form-container {
    padding: 24px 20px;
  }

  .experience-badge {
    width: 100px;
    height: 100px;
    padding: 15px;
    bottom: -10px;
    right: -10px;
  }

  .exp-number {
    font-size: 1.5rem;
  }

  .exp-text {
    font-size: 0.7rem;
  }
}

/* ============================================
   VISUAL GALLERY ENHANCEMENTS
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 25px;
  padding: 20px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  background: #000;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
  /* Premium structural enhancement */
  filter: contrast(1.05) saturate(1.1);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.08);
  /* Cinematic zoom */
  filter: contrast(1.15) saturate(1.2) brightness(1.1);
  /* Brilliant coloring on hover */
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-overlay i {
  color: var(--secondary-color, #f59e0b);
  font-size: 3rem;
  transform: scale(0.5);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1);
}

gallery-item:hover .gallery-overlay i {
  transform: scale(1);
}