:root{
  --green: #409B44;
  --green-dark: #2F7A33;
  --green-light: #E8F5E9;
  --gold: #F2A93B; 
  --dark: #1B2A1F;
  --text: #4A4A4A;
  --light-bg: #F7FAF7;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(64,155,68,0.12);
  --transition: all 0.35s ease;
}

*{margin:0;padding:0;box-sizing:border-box;}

html{scroll-behavior:smooth;}

body{
  font-family:'Poppins', sans-serif;
  color:var(--text);
  line-height:1.7;
  overflow-x:hidden;
  background:var(--white);
}

.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
}

h1,h2,h3,h4{
  color:var(--dark);
  font-weight:700;
  line-height:1.3;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
img{max-width:100%;display:block;}
a{text-decoration:none;color:inherit;}
ul{list-style:none;}

/* ============ BUTTONS ============ */
.btn{
  display:inline-block;
  padding:11px 26px;
  border-radius:50px;
  font-weight:600;
  font-size:14px;
  transition:var(--transition);
  cursor:pointer;
  border:2px solid transparent;
}

.btn-primary{
  background:var(--green);
  color:var(--white);
  box-shadow:0 8px 20px rgba(64,155,68,0.35);
}
.btn-primary:hover{
  background:var(--green-dark);
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(64,155,68,0.45);
}

.btn-outline-light{
  border-color:var(--white);
  color:var(--white);
  background:transparent;
}
.btn-outline-light:hover{
  background:var(--white);
  color:var(--green-dark);
  transform:translateY(-3px);
}

/* ============ HEADER ============ */
#header{
  position:fixed;
  top:0;left:0;right:0;
  width:100%;
  z-index:1000;
  background:linear-gradient(to bottom, rgba(8,18,10,0.55), rgba(8,18,10,0));
  transition:var(--transition);
  padding:18px 0;
}
#header.scrolled{
  background:rgba(255,255,255,0.97);
  box-shadow:0 4px 20px rgba(0,0,0,0.06);
  padding:10px 0;
  backdrop-filter:blur(8px);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
}
.logo img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}
.logo-icon{
  font-size:34px;
  background:linear-gradient(135deg,var(--green),var(--green-dark));
  color:white;
  width:48px;height:48px;
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 16px rgba(64,155,68,0.35);
}
.logo-text h1{
  font-size:22px;
  margin:0;
  color:var(--dark);
}
#header:not(.scrolled) .logo-text h1{color:var(--white);}
.logo-text h1 span{color:var(--green);}
.logo-text small{
  font-size:11px;
  letter-spacing:2px;
  color:var(--text);
  display:block;
  margin-top:-2px;
}
#header:not(.scrolled) .logo-text small{color:rgba(255,255,255,0.8);}

#nav ul{
  display:flex;
  gap:34px;
}
#nav a{
  font-weight:500;
  font-size:15px;
  position:relative;
  padding:6px 0;
  color:var(--dark);
  transition:var(--transition);
}
#header:not(.scrolled) #nav a{color:var(--white);}
#nav a::after{
  content:'';
  position:absolute;
  bottom:0;left:0;
  width:0%;height:2px;
  background:var(--green);
  transition:var(--transition);
}
#nav a:hover, #nav a.active{color:var(--green);}
#header:not(.scrolled) #nav a:hover, #header:not(.scrolled) #nav a.active{color:var(--gold);}
#nav a:hover::after, #nav a.active::after{width:100%;}

.call-now{padding:9px 22px;font-size:13px;}

.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}
.hamburger span{
  width:26px;height:3px;
  background:var(--white);
  border-radius:3px;
  transition:var(--transition);
}
#header.scrolled .hamburger span{background:var(--dark);}

.testi-logo-img{
  width: 85px;
  height: 85px;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 15px;
}

/* ============ HERO ============ */
.hero{
  position:relative;
  height:100vh;
  min-height:650px;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:#0e1f10 url('https://images.unsplash.com/photo-1497436072909-f5e4be1713c9?q=80&w=1800&auto=format&fit=crop') center/cover no-repeat;
}
.hero-video{
  position:absolute;
  top:0;left:0;
  width:100%;height:100%;
  object-fit:cover;
  z-index:0;
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(120deg, rgba(8,18,10,0.75) 0%, rgba(8,18,10,0.55) 50%, rgba(8,18,10,0.8) 100%);
  z-index:1;
}
.hero-content{
  position:relative;
  z-index:2;
  color:var(--white);
  max-width:640px;
  margin-left:80px;
  text-align:left;
}
.hero-title{
  font-size:38px;
  color:var(--white);
  margin-bottom:14px;
}
.hero-title span{color:var(--gold);}
.hero-desc{
  font-size:15px;
  color:rgba(255,255,255,0.88);
  max-width:520px;
  margin-bottom:22px;
}
.hero-features{
  display:flex;
  flex-wrap:wrap;
  gap:12px 24px;
  margin-bottom:26px;
}
.feature-item{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:500;
  color:var(--white);
}
.feature-item .dot{
  width:7px;height:7px;
  border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 0 3px rgba(242,169,59,0.25);
}

/* ============ FADE / REVEAL ANIMATIONS ============ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s ease forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* Starting positions before you scroll to them */
.reveal.slide-left { transform: translateX(-100px); }
.reveal.slide-right { transform: translateX(100px); }
.reveal.slide-up { transform: translateY(80px); }
.reveal.zoom-in { transform: scale(0.8); }
.reveal.flip-in { transform: rotateX(30deg) scale(0.9); }

/* The state when they enter the screen */
.reveal.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0) scale(1) rotate(0deg) !important;
}

/* Staggered delays so they don't all appear at the exact same millisecond */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* ============ SECTION GENERAL (Spacing Fix) ============ */
section {
  padding: 30px 0; /* Massively reduced from 100px */
  overflow: hidden; 
}

.section-label {
  display: inline-block;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 18px; /* Tighter font size */
  margin-bottom: 5px; /* Tighter margin */
}

.section-label.center { display: block; text-align: center; }
.section-label.light { color: var(--gold); }

.section-header {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 25px; /* Tighter spacing below headers */
}
.section-header h2 { font-size: 32px; margin-bottom: 10px; }
.muted { color: #6b7d6c; font-size: 15px; }
.stars { color: var(--gold); }

/* ============ PROJECTS (Text Size Fix) ============ */
.projects {
  position: relative;
  background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat fixed;
  text-align: center;
  padding: 80px 0; /* Reduced banner height */
}
.projects-overlay {
  background: linear-gradient(135deg, rgba(8,18,10,0.95), rgba(8,18,10,0.8));
}
.projects .container { position: relative; z-index: 2; }

/* New class specifically for that paragraph */
.projects-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px; /* NORMAL size, no longer hurting eyes */
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

/* ============ TESTIMONIALS (Visibility Fix) ============ */
/* Removed the hardcoded opacity: 0 so they stop disappearing */
.testi-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}
/* ============ ABOUT ============ */
.about{background:var(--light-bg);}
.about .section-header{margin-bottom:60px;}
.about .section-header h2 span{color:var(--green);}
.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}
.about-images{ position:relative; }
.img-main{
  border-radius:18px;
  box-shadow:var(--shadow);
  width:100%;
  height:380px;
  object-fit:cover;
}

.about-text p{margin-bottom:26px;color:var(--text);font-size:15px;}
.call-line{
  display:flex;
  align-items:center;
  gap:14px;
}
.call-icon-sm{
  width:46px;height:46px;
  background:var(--green);
  color:var(--white);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:20px;
  flex-shrink:0;
}
.call-line small{color:#8a9a8b;font-size:12px;letter-spacing:1px;text-transform:uppercase;}
.call-line h3{color:var(--green-dark);font-size:20px;margin-top:2px;}

/* ============ SPECIALIZATION ============ */
.specialization{background:var(--white); padding-top: 100px;}
.specialization .section-header { margin-bottom: 60px; }

.spec-layout{
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:60px;
  align-items:center;
}
.spec-image img{
  width:100%;
  height:480px;
  object-fit:cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.spec-content{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.spec-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:30px 24px;
}

.spec-item{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.spec-item .spec-icon{
  width:48px;height:48px;
  background:var(--green-light);
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  font-size:24px;
  flex-shrink:0;
  transition:var(--transition);
}
.spec-item:hover .spec-icon{
  background:var(--green);
  color: white;
}
.spec-item h4{font-size:16px;margin-bottom:6px;}
.spec-item p{font-size:13px;color:#788879;line-height:1.6;}

/* ============ TESTIMONIALS ============ */
.testimonials{background:var(--light-bg);}
.testi-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:30px;
}
.testi-card{
  display:flex;
  gap:20px;
  background:var(--white);
  border-radius:18px;
  padding:35px;
  box-shadow:0 6px 18px rgba(0,0,0,0.04);
  transition: var(--transition);
  opacity:0;
}
.testi-card:hover{
  box-shadow: var(--shadow);
  transform:translateY(-5px);
}
.quote-mark{
  font-size:40px;
  color:var(--green);
  font-weight:800;
  line-height:0.5;
  display:block;
  margin-bottom:10px;
  font-family:Georgia, serif;
}
.testi-body p{
  font-size:14px;
  color:#5a6b5b;
  margin-bottom:14px;
  line-height:1.7;
}
.testi-body h4{font-size:15px;color:var(--green-dark);margin-bottom:4px;}

/* ============ PROJECTS (banner) ============ */
.projects{
  position:relative;
  background:url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat fixed;
  text-align:center;
  padding:160px 0;
}
.projects-overlay{
  background:linear-gradient(135deg, rgba(8,18,10,0.85), rgba(8,18,10,0.6));
}
.projects .container{position:relative;z-index:2;}
.projects h2.light{
  color:var(--white);
  font-size:32px;
  font-weight:500;
  max-width:800px;
  margin:0 auto 40px;
  line-height:1.8;
}
.light{color:var(--white);}

/* ============ SERVICES ============ */
.services{background:var(--white);}
.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
}
.service-card{
  background:var(--light-bg);
  border-radius:18px;
  padding:40px 30px;
  border-left:4px solid var(--green);
  transition:var(--transition);
}
.service-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow);
  background:var(--white);
}
.service-card h3{font-size:19px;margin-bottom:12px;}
.service-card p{font-size:14.5px;color:#788879;margin-bottom:20px;}

.view-details{
  color:var(--green);
  font-weight:600;
  font-size:14px;
  transition:var(--transition);
}
.view-details:hover{color:var(--green-dark);letter-spacing:1px;}

/* ============ TEAM ============ */
.team{background:var(--light-bg);}
.team-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:25px;
}
.team-card{
  background:var(--white);
  border-radius:18px;
  padding:35px 20px;
  text-align:center;
  box-shadow:0 6px 18px rgba(0,0,0,0.04);
  transition:var(--transition);
}
.team-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow);
}
.team-img{
  width:80px;height:80px;
  margin:0 auto 20px;
  background:var(--green-light);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:36px;
}
.team-card h4{font-size:15px;margin-bottom:6px;}
.team-card span{font-size:12.5px;color:#8a9a8b;}

/* ============ STATS ============ */
.stats{
  background:linear-gradient(135deg, #16331a, var(--green-dark));
  padding:70px 0;
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  text-align:center;
  gap:30px;
}
.stat-item h2{
  color:var(--white);
  font-size:46px;
  margin-bottom:8px;
}
.stat-item p{
  color:rgba(255,255,255,0.85);
  font-weight:500;
  letter-spacing:1px;
}

/* ============ FOOTER ============ */
.footer{
  background:var(--dark);
  color:rgba(255,255,255,0.75);
  padding-top:80px;
  position:relative;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1.4fr 1fr;
  gap:40px;
  padding-bottom:50px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.footer .logo-text h1{color:var(--white);}
.footer .logo-text small{color:rgba(255,255,255,0.6);}
.footer-col h4{
  color:var(--white);
  margin-bottom:18px;
  font-size:16px;
}
.footer-col p{font-size:14px;margin-bottom:10px;}
.footer-col ul li{margin-bottom:10px;}
.footer-col ul a{
  font-size:14px;
  transition:var(--transition);
}
.footer-col ul a:hover{color:var(--green);padding-left:4px;}
.map-box{
  background:rgba(255,255,255,0.05);
  border:1px dashed rgba(255,255,255,0.2);
  border-radius:12px;
  padding:40px 20px;
  text-align:center;
  font-size:14px;
  cursor:pointer;
  transition:var(--transition);
}
.map-box:hover{border-color:var(--green);color:var(--green);}

.footer-bottom{
  text-align:center;
  padding:24px 0;
  font-size:13px;
  color:rgba(255,255,255,0.5);
}

/* Fixed floating buttons */
.floating-contacts { 
  position: fixed; 
  right: 30px; 
  bottom: 30px; 
  display: flex; 
  flex-direction: column; 
  gap: 15px; 
  z-index: 9999; /* Super high z-index so nothing overlaps it */
}

.float-btn { 
  width: 50px; 
  height: 50px; 
  background: var(--green); 
  color: var(--white); 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 22px; 
  box-shadow: 0 8px 20px rgba(64,155,68,0.4); 
  transition: var(--transition); 
}

.float-btn:hover { 
  background: var(--green-dark); 
  transform: scale(1.1); 
}

/* (Make sure you delete the old .scroll-top rules completely so you don't have dead code) */

/* (Make sure you delete the old .scroll-top rules completely so you don't have dead code) */

.scroll-top{
  position:fixed;
  bottom:30px;
  right:30px;
  width:48px;height:48px;
  border-radius:50%;
  background:var(--green);
  color:var(--white);
  border:none;
  font-size:20px;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(64,155,68,0.4);
  opacity:0;
  visibility:hidden;
  transform:translateY(20px);
  transition:var(--transition);
  z-index:999;
}
.scroll-top.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.scroll-top:hover{background:var(--green-dark);}

/* ============ RESPONSIVE ============ */
@media(max-width:1024px){
  .about-grid{grid-template-columns:1fr;}
  .spec-layout{grid-template-columns:1fr;}
  .spec-image img{height:320px;}
  .spec-list{grid-template-columns:1fr;}
  .testi-grid{grid-template-columns:1fr;}
  .services-grid{grid-template-columns:repeat(2,1fr);}
  .team-grid{grid-template-columns:repeat(3,1fr);}
  .stats-grid{grid-template-columns:repeat(2,1fr);gap:40px;}
  .footer-grid{grid-template-columns:1fr 1fr;}
}

@media(max-width:768px){
  #nav, .call-now{display:none;}
  .hamburger{display:flex;}
  #nav.open{
    display:flex;
    position:absolute;
    top:100%;left:0;right:0;
    background:var(--white);
    flex-direction:column;
    padding:20px;
    box-shadow:0 10px 20px rgba(0,0,0,0.08);
  }
  #nav.open ul{flex-direction:column;gap:18px;}
  #nav.open a{color:var(--dark)!important;}
  .hero-title{font-size:38px;}
  .hero-desc{font-size:15px;}
  .spec-list,.services-grid,.team-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  section{padding:70px 0;}
  .section-label { font-size: 20px; }
  .section-header h2 { font-size: 30px; }
}

/* ===== SERVICES HEADER ANIMATION (FIXED) ===== */

.services .section-header {
  position: relative;
  overflow: hidden;
  padding-top: 25px;
}

/* horizontal line (top sweep) */
.services .section-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #409B44, transparent);
  transition: left 0.8s ease;
}


.services .section-header.line-animate::before {
  top: 0;
}