/* ============================
   GLOBAL STYLES & VARIABLES
============================ */

:root {
  --green-main: #35c241;
  --green-dark: #1a8c27;
  --green-soft: #e5f8e8;
  --text-main: #1f2933;
  --text-muted: #6b7280;
  --bg-light: #f7f9fb;
  --border-soft: #e5e7eb;
  --white: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;                /* BASE FONT SIZE */
  line-height: 1.6;
  color: var(--text-main);
  background: #ffffff;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================
   HEADER & NAVIGATION
============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.brand img {
  height: 44px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.main-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green-dark);
  border-color: var(--green-main);
}

/* Nav Toggle (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ============================
   HERO SECTION
============================ */

.hero {
  position: relative;
  z-index: 1;
  padding: 50px 0;
}

/* Background image + green overlay */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(7, 83, 34, 0.94), rgba(52, 211, 153, 0.8)),
    url("images/hero-digital-bg.jpg") center/cover no-repeat;
  opacity: 1;
  z-index: -1;
}

/* subtle pattern overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.18) 0, transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.06) 0, transparent 55%);
  opacity: 0.9;
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bfffd5;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffffff;
}

.hero-text h1 {
  font-size: 40px;
  margin: 0 0 4px;
  letter-spacing: 1px;
  color: #ffffff;
}

.hero-text h2 {
  font-size: 22px;
  margin: 0 0 16px;
  font-weight: 500;
  color: #e9ffe9;
}

.hero-text p {
  margin: 0 0 18px;
  color: #d6f8db;
  font-size: 16px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 15px;
  color: #c1f5cf;
  padding: 20px 0;
}

.hero-contact span strong {
  color: #ffffff;
}

/* Hero right side */

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
  gap: 12px;
}

.stat {
  background: rgba(6, 95, 70, 0.85);
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(187, 247, 208, 0.4);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.32);
}

.stat-number {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: #c4ffe2;
}

.hero-services-card {
  margin-top: 6px;
  background: rgba(15, 23, 42, 0.94);
  border-radius: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(52, 211, 153, 0.55);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
}

.hero-services-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #c2ffda;
}

.hero-services-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  color: #efffef;
}

/* ============================
   BUTTONS
============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-main), var(--green-dark));
  color: var(--white);
  box-shadow: 0 8px 18px rgba(31, 187, 70, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(31, 187, 70, 0.45);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.75);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ============================
   GENERIC SECTIONS & LAYOUT
============================ */

.section {
  padding: 35px 0;
}

.section.light {
  background: var(--bg-light);
}

.section.dark {
  background: #0b1720;
  color: #e5e7eb;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.section.dark .section-header p {
  color: #9ca3af;
}

/* Layout helpers */

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

/* Generic cards (used for portfolio / other blocks) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.section.light .card p {
  color: var(--text-muted);
}

/* Check list (Why Choose Us) */

.check-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 16px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 16px;
  color: var(--green-main);
}

/* ============================
   ABOUT SECTION
============================ */

.about-section {
  position: relative;
  overflow: hidden;
}

/* subtle graphic background on right side */
.about-section::before {
  content: "";
  position: absolute;
  right: -140px;
  top: 40px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #86efac 0, #22c55e 35%, rgba(16, 185, 129, 0.1) 70%, transparent 100%);
  opacity: 0.25;
  pointer-events: none;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.about-text h3 {
  margin-top: 8px;
  margin-bottom: 14px;
  font-size: 22px;
}

.about-text p {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 16px;
}

.about-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: var(--green-dark);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green-main);
}

/* small highlight rows under text */
.about-highlights {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.about-highlight .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green-main);
  margin-top: 4px;
}

.about-highlight strong {
  font-size: 16px;
}

.about-highlight p {
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* cards on the right */

.about-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.about-card {
  background: var(--white);
  border-radius: 18px;
  padding: 18px 18px 20px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  border-color: #a7f3d0;
}

.about-card:hover::before {
  opacity: 1;
}

.about-card-label {
  position: relative;
  display: inline-block;
  padding: 3px 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--green-dark);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-card p {
  position: relative;
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
}

.about-card ul {
  position: relative;
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 16px;
  color: var(--text-muted);
}

.about-card ul li {
  margin-bottom: 4px;
}


/* ABOUT – mobile alignment fixes */
@media (max-width: 960px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-text {
    order: 1;
  }

  .about-card-grid {
    order: 2;
  }

  .about-section::before {
    right: -80px;
    top: auto;
    bottom: -60px;
    width: 220px;
    height: 220px;
    opacity: 0.2;
  }
}

@media (max-width: 600px) {
  .about-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .about-text h3 {
    font-size: 18px;
  }

  .about-text p {
    font-size: 15px;
  }

  .about-highlights {
    gap: 8px;
  }

  .about-highlight {
    padding: 8px 10px;
  }

  .about-card {
    padding: 14px 14px 16px;
  }

  .about-card-label {
    font-size: 12px;
  }
}


/* ============================
   WHO WE ARE SECTION
============================ */

.who-we-are-section {
  background: linear-gradient(115deg, #ffffff, #f6fff8);
}

.who-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr);
}

.who-card {
  background: #ffffff;
  padding: 24px 22px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #ebebeb;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.who-card:hover {
  transform: translateY(-6px);
  border-color: #9bf4b6;
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.2);
}

.who-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  background: #dcfce7;
  color: #0f9443;
  font-size: 22px;
  transition: all 0.25s ease;
}

.who-card:hover .who-icon {
  background: #16a34a;
  color: #ffffff;
}

.who-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #024725;
}

.who-card p {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

/* ============================
   SERVICES SECTION
============================ */

.services-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top right, #bbf7d0 0, #ecfdf5 32%, #f9fafb 70%);
}

/* subtle abstract blob elements */
.services-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.services-bg::before {
  content: "";
  position: absolute;
  left: -160px;
  top: 40px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #22c55e 0, rgba(22, 163, 74, 0.1) 55%, transparent 100%);
  opacity: 0.25;
}

.services-bg::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle at 70% 70%, #4ade80 0, rgba(16, 185, 129, 0.05) 55%, transparent 100%);
  opacity: 0.25;
}

/* quick pills row */

.services-overview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.services-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
  background: #ecfdf5;
  font-size: 14px;
  color: #047857;
}

.services-pill i {
  font-size: 16px;
}

/* service blocks */

.service-block {
  position: relative;
  margin-bottom: 32px;
  padding: 20px 20px 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.service-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(34, 197, 94, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.service-block:hover::before {
  opacity: 1;
}

.service-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.service-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  }

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  color: #0f766e;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.35);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-block:hover .service-icon {
  background: #16a34a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.6);
}

.service-header h3 {
  margin: 0;
  font-size: 18px;
}

.service-subtitle {
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--text-muted);
}

.service-tag {
  position: relative;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.service-intro {
  position: relative;
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--text-muted);
}

/* sub services grid */

.subservice-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sub-card {
  background: #f9fafb;
  border-radius: 14px;
  padding: 14px 14px 16px;
  border: 1px solid #e5e7eb;
  font-size: 16px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sub-card h4 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 16px;
  color: #065f46;
}

.sub-card p {
  margin: 0;
  color: #6b7280;
}

.sub-card:hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

/* ============================
   TESTIMONIALS SECTION (SLIDER)
============================ */

.testimonials-section {
  background: linear-gradient(120deg, #f0fdf4, #ffffff);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

/* Background Design */
.testimonials-section::before {
  content: "";
  position: absolute;
  right: -120px;
  top: 100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.25), rgba(255, 255, 255, 0) 70%);
  z-index: 0;
}

/* Slider Container */
.testimonial-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Track */
.testimonial-track {
  display: flex;
  animation: slideDesktop 18s linear infinite;
}

/* Testimonial Card */
.testimonial-card {
  flex: 0 0 50%; /* 2 per slide on desktop */
  padding: 24px;
  box-sizing: border-box;
  margin: 0;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #ecfdf5;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  min-height: 200px;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(34, 197, 94, 0.3);
  border-color: #bbf7d0;
}

/* Quote Icon */
.quote-icon {
  font-size: 24px;
  color: #16a34a;
  margin-bottom: 10px;
}

.testimonial-card p {
  font-size: 16px;
  font-style: italic;
  color: #475569;
  margin-bottom: 12px;
}

.testimonial-card h4 {
  margin: 10px 0 0;
  font-size: 16px;
  color: #065f46;
}

.testimonial-card span {
  font-size: 15px;
  color: #6b7280;
}

/* Desktop Animation (2 per slide) */
@keyframes slideDesktop {
  0%,
  20% {
    transform: translateX(0%);
  }

  25%,
  45% {
    transform: translateX(-50%);
  }

  50%,
  70% {
    transform: translateX(-100%);
  }

  75%,
  95% {
    transform: translateX(-150%);
  }

  100% {
    transform: translateX(0%);
  }
}

/* Pause on hover */
.testimonial-track:hover {
  animation-play-state: paused;
}

/* ============================
   CONTACT SECTION
============================ */

.contact-section {
  background: linear-gradient(130deg, #f0fdf4, #ffffff);
}

.contact-grid {
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 16px;
}

.contact-list li {
  margin-bottom: 12px;
}

.contact-form {
  background: var(--white);
  border-radius: 18px;
  padding: 20px 20px 22px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  border: 1px solid #a7f3d0;
}

.form-row {
  margin-bottom: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--green-main);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

/* ============================
   FOOTER
============================ */

.site-footer {
  padding: 14px 0;
  background: #020617;
  color: #9ca3af;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer-contact a {
  color: #bbf7d0;
}

.footer-contact a:hover {
  color: var(--white);
}

/* ============================
   RESPONSIVE BREAKPOINTS
============================ */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-media {
    max-width: 420px;
    margin-top: 10px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subservice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .who-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 8px 16px;
  }

  .main-nav {
    position: absolute;
    top: 58px;
    right: 0;
    left: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.open {
    max-height: 280px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 10px 18px 16px;
    gap: 10px;
  }

  .nav-toggle {
    display: block;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .subservice-grid {
    grid-template-columns: 1fr;
  }

  .who-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Testimonials: 1 card per slide on mobile */
  .testimonial-card {
    flex: 0 0 100%;
  }

  .testimonial-track {
    animation: slideMobile 18s linear infinite;
  }

  @keyframes slideMobile {
    0%,
    16% {
      transform: translateX(0%);
    }
    20%,
    36% {
      transform: translateX(-100%);
    }
    40%,
    56% {
      transform: translateX(-200%);
    }
    60%,
    76% {
      transform: translateX(-300%);
    }
    80%,
    96% {
      transform: translateX(-400%);
    }
    100% {
      transform: translateX(0%);
    }
  }
}

@media (max-width: 640px) {
  .services-overview-row {
    gap: 8px;
  }

  .service-block {
    padding: 16px 14px 18px;
  }

  .service-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-tag {
    margin-top: 4px;
  }
}
