/* Basic Reset & General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ff6b35;
  --secondary-color: #2e1f27;
  --accent-color: #ffb627;
  --light-gray: #fff3e0;
  --text-color: #2e1f27;
  --light-text-color: #6a737f;
  --border-radius: 10px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --navbar-height: 80px;
}

/* Fix: prevent horizontal scrollbars on iPhone */
html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

h1,
h2,
h3 {
  font-family: "Inter", sans-serif;
  color: var(--secondary-color);
  line-height: 1.2;
}

h1 {
  font-size: 60px;
  font-weight: 700;
}
h2 {
  font-size: 48px;
  font-weight: 700;
}
h3 {
  font-size: 36px;
  font-weight: 600;
}

p {
  font-size: 18px;
  color: var(--light-text-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

/* Background Colors */
.bg-light-gray {
  background-color: var(--light-gray);
}
.bg-dark-green {
  background-color: var(--primary-color);
  color: #fff;
}
.bg-dark-green h2,
.bg-dark-green p {
  color: #fff;
}

/* Buttons */
.btn {
  padding: 15px 35px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 18px;
  cursor: pointer;
  margin: 0 10px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.3s ease;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-small {
  padding: 12px 25px;
  font-size: 16px;
}

.primary-btn {
  background-color: var(--primary-color);
  color: #fff;
}

.primary-btn:hover {
  background-color: #246f47;
}

.secondary-btn {
  background-color: #fff;
  color: var(--primary-color);
  border: 1px solid #e0e0e0;
}

.secondary-btn:hover {
  background-color: #f0f0f0;
}

.secondary-btn-inverted {
  background-color: #fff;
  color: var(--primary-color);
  border: 1px solid #fff;
}
.secondary-btn-inverted:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Navbar */
.navbar {
  background-color: #fff;
  height: var(--navbar-height);
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  width: 100%;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
}

.logo img {
  margin-right: 10px;
  height: 40px;
  width: auto;
  max-width: 40px;
  flex-shrink: 0;
}

.nav-links ul {
  list-style: none;
  display: flex;
}

.nav-links ul li {
  margin-left: 30px;
}

.nav-links ul li a {
  text-decoration: none;
  color: var(--light-text-color);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 5px 0;
}

.nav-links ul li a:hover,
.nav-links ul li a.active {
  color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  padding: 10px;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  transition: all 0.3s ease-in-out;
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section with Animated SVG Background */
.hero-section {
  position: relative;
  padding: 120px 0 150px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fbfd 0%, #e0e7eb 100%);
  width: 100%;
}

/* Animated SVG Background */
.hero-svg-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.15;
  z-index: 0;
}

.hero-svg-background svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-svg-background path {
  stroke-width: 1.5;
  fill: none;
}

.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  margin-bottom: 50px;
}

.hero-content h1 {
  font-size: 68px;
  margin-bottom: 25px;
  color: var(--secondary-color);
}

/* Text Reveal Animation Styles */
.reveal-text {
  visibility: hidden;
}

.line {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.line .words {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
}

.word {
  display: inline-block;
  margin-right: 0.3em; /* Add space between words */
}

.whitespace {
  display: inline-block;
  width: 0em; /* Ensure whitespace renders */
}

.hyphen {
  display: inline-block;
}

.hero-content p {
  font-size: 20px;
  color: var(--light-text-color);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Stats Snapshot Section */
.stats-snapshot-section {
  padding-bottom: 100px;
}
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  width: 100%;
}

.stat-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.stat-card h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary-color);
}
.stat-card h3 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary-color);
}
.stat-card p {
  font-size: 16px;
  color: var(--light-text-color);
}

.large-image-card {
  grid-column: span 2;
  min-height: 350px;
  padding: 0;
  overflow: hidden;
}

.large-image-card .image-placeholder {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--border-radius);
}

.dark-card {
  background-color: var(--secondary-color);
  color: #fff;
}
.dark-card h2,
.dark-card h3,
.dark-card p {
  color: #fff;
}

.light-card .card-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--light-text-color);
  flex-wrap: wrap;
  gap: 10px;
}
.light-card .card-header i {
  margin-right: 10px;
  color: var(--primary-color);
  font-size: 24px;
}
.light-card .card-header span {
  font-weight: 500;
}
.light-card .card-header .increase {
  margin-left: auto;
  background-color: #e6ffed;
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
}

.green-card {
  background-color: #e6ffed;
  color: var(--primary-color);
}
.green-card h2,
.green-card p {
  color: var(--primary-color);
}

.icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}
.icon-card i {
  margin-bottom: 15px;
  color: var(--primary-color);
}
.dark-card.icon-card i {
  color: #fff;
}

/* About Us Section */
.about-section .about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 60px;
  position: relative;
  max-width: 100%;
  overflow: hidden; /* Prevent overflow on mobile */
}

.about-text {
  flex: 1;
  max-width: 600px;
}
.about-text h3 {
  font-size: 40px;
  margin-bottom: 25px;
}
.about-text p {
  margin-bottom: 20px;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}
.about-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: block;
}

.floating-box {
  position: absolute;
  bottom: -20px;
  left: 20px; /* previously -30px */
  background-color: #fff;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 230px;
  z-index: 5;
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}

.floating-box:hover {
  transform: rotate(-3deg) scale(1.03) translateY(-5px);
}
.floating-box i {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 15px;
}
.floating-box h4 {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 5px;
}
.floating-box p {
  font-size: 14px;
  color: var(--light-text-color);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 40px 30px;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 5px solid transparent;
  opacity: 1;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.service-card .service-icon {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 48px;
}
.service-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
}
.service-card p {
  font-size: 16px;
  line-height: 1.5;
}

/* Solutions Section */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.solution-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.solution-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.solution-card:hover img {
  transform: scale(1.05);
}

.solution-card-content {
  padding: 25px;
}

.solution-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
.solution-card p {
  font-size: 16px;
  margin-bottom: 20px;
}
.solution-card .read-more {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
}
.solution-card .read-more i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}
.solution-card .read-more:hover i {
  transform: translateX(5px);
}

/* Call to Action Section */
.cta-section {
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 {
  font-size: 42px;
  margin-bottom: 20px;
  color: #fff;
}
.cta-section p {
  font-size: 20px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  align-items: flex-start;
}

.contact-info {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}
.contact-info h3 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 30px;
}
.contact-info p {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}
.contact-info p i {
  margin-right: 15px;
  color: var(--primary-color);
  font-size: 24px;
}

.social-links {
  margin-top: 30px;
  display: flex;
  gap: 20px;
}
.social-links a {
  color: #fff;
  font-size: 28px;
  transition: color 0.3s ease;
}
.social-links a:hover {
  color: var(--primary-color);
}

.contact-form-wrapper {
  background-color: #fff;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  color: var(--text-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: auto;
  padding: 15px 40px;
  font-size: 18px;
}

.form-messages {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  display: none;
}
.form-messages.success {
  background-color: #e6ffed;
  color: var(--primary-color);
  border: 1px solid #c6f6d5;
}
.form-messages.error {
  background-color: #ffeaea;
  color: #dc3545;
  border: 1px solid #fbb4b4;
}

.thank-you-message {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
.thank-you-message i {
  color: var(--primary-color);
  margin-bottom: 30px;
  animation: bounceIn 0.8s ease-out;
}
.thank-you-message h3 {
  font-size: 36px;
  margin-bottom: 15px;
}
.thank-you-message p {
  font-size: 18px;
  color: var(--light-text-color);
  margin-bottom: 30px;
  max-width: 400px;
}
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: rgba(255, 255, 255, 0.7);
  padding: 30px 0;
  font-size: 16px;
}

/* Scroll Reveal Animations */
.fade-in-up,
.anim-slide-left,
.anim-slide-right,
.anim-fade-in,
.anim-slide-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.anim-slide-left {
  transform: translateX(-50px);
}
.anim-slide-right {
  transform: translateX(50px);
}
.anim-fade-in {
  transform: none;
  transition: opacity 0.8s ease-out;
}

.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}
.delay-300 {
  transition-delay: 0.3s;
}
.delay-400 {
  transition-delay: 0.4s;
}
.delay-500 {
  transition-delay: 0.5s;
}
.delay-600 {
  transition-delay: 0.6s;
}
.anim-fade-in-delay {
  transition-delay: 0.2s;
}
.anim-fade-in-delay-2 {
  transition-delay: 0.4s;
}
.anim-fade-in-delay-3 {
  transition-delay: 0.6s;
}

.fade-in-up.animate,
.anim-slide-left.animate,
.anim-slide-right.animate,
.anim-fade-in.animate,
.anim-slide-up.animate {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Responsive Design */
@media (max-width: 992px) {
  :root {
    --navbar-height: 70px;
  }

  h1 {
    font-size: 52px;
  }
  h2 {
    font-size: 40px;
  }
  h3 {
    font-size: 30px;
  }
  p {
    font-size: 17px;
  }

  .hero-content h1 {
    font-size: 58px;
  }
  .hero-content p {
    font-size: 18px;
  }

  .hero-actions .btn {
    padding: 12px 25px;
    font-size: 16px;
  }

  .snapshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .large-image-card {
    grid-column: span 2;
    min-height: 300px;
  }

  .about-section .about-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
    overflow: hidden;
  }
  .about-image {
    order: -1;
    max-width: 100%;
  }
  .floating-box {
    position: static;
    transform: none;
    margin: 20px auto 0;
    max-width: 280px;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .solutions-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .cta-section h2 {
    font-size: 36px;
  }
  .cta-section p {
    font-size: 18px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 70px;
  }

  .navbar .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    border-top: 1px solid #eee;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
  }

  .navbar .nav-links.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links ul {
    flex-direction: column;
    align-items: center;
  }
  .nav-links ul li {
    margin: 15px 0;
  }
  .nav-links ul li a {
    font-size: 20px;
  }

  .hamburger {
    display: flex;
  }

  h1 {
    font-size: 44px;
  }
  h2 {
    font-size: 34px;
  }
  h3 {
    font-size: 28px;
  }

  .hero-section {
    padding: 80px 0 100px;
  }
  .hero-content h1 {
    font-size: 48px;
  }
  .hero-content p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }
  .hero-actions .btn {
    margin: 10px 0;
    width: 100%;
    max-width: 300px;
  }

  .stats-snapshot-section {
    padding-top: 60px;
  }
  .snapshot-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .large-image-card {
    grid-column: span 1;
    min-height: 250px;
  }

  .section-padding {
    padding: 80px 0;
  }
  .section-header {
    margin-bottom: 40px;
  }

  .about-image {
    max-width: 100%;
  }
  .floating-box {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin-top: 20px;
    max-width: 100%;
  }

  .services-grid,
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding: 30px;
  }
  .contact-form-wrapper {
    padding: 30px;
  }
  .contact-info h3 {
    font-size: 28px;
  }
  .about-section .about-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .about-text {
    max-width: 100%;
  }

  .about-image {
    order: -1;
    width: 100%;
    max-width: 100%;
  }

  .about-image img {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    display: block;
  }

  .floating-box {
    position: static !important;
    transform: none !important;
    margin: 20px auto 0;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --navbar-height: 60px;
  }

  .logo {
    font-size: 26px; /* Changed from 18px to 20px */
  }
  .logo img {
    height: 36px; /* Changed from 32px to 36px */
    max-width: 36px;
  }

  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 30px;
  }
  h3 {
    font-size: 24px;
  }
  p {
    font-size: 15px;
  }

  .container {
    padding: 0 15px;
  }

  .hero-section {
    padding: 60px 0 80px;
  }
  .hero-content {
    padding: 0 10px;
  }
  .hero-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
  }
  .hero-content p {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .btn {
    padding: 12px 25px;
    font-size: 16px;
    margin: 5px;
  }

  .stat-card {
    padding: 25px 20px;
  }
  .stat-card h2 {
    font-size: 36px;
  }
  .stat-card h3 {
    font-size: 28px;
  }
  .stat-card p {
    font-size: 14px;
  }

  .large-image-card {
    min-height: 200px;
  }

  .about-text h3 {
    font-size: 28px;
  }

  .service-card {
    padding: 30px 20px;
  }
  .service-card .service-icon {
    font-size: 40px;
  }
  .service-card h3 {
    font-size: 22px;
  }
  .service-card p {
    font-size: 15px;
  }

  .cta-section {
    padding: 60px 0;
  }
  .cta-section h2 {
    font-size: 28px;
  }
  .cta-section p {
    font-size: 16px;
  }

  .contact-info,
  .contact-form-wrapper {
    padding: 25px 20px;
  }

  .section-padding {
    padding: 60px 0;
  }

  .floating-box {
    position: static !important;
    transform: none !important;
    margin: 20px auto 0;
    padding: 20px;
    max-width: 100%;
  }

  .floating-box i {
    font-size: 36px;
  }

  .floating-box h4 {
    font-size: 18px;
  }
  .floating-box p {
    font-size: 13px;
  }
  .about-image img {
    max-width: 100%;
  }

  .floating-box {
    max-width: 100%;
    padding: 20px 15px;
  }

  /* Prevent oversized images */
  img,
  video,
  iframe {
    max-width: 100%;
    height: auto;
    display: block;
  }
}
