/* ========================================
   MODERN GREEN THEME - FULLY RESPONSIVE
======================================== */

:root {
  --primary-green: #10b981;
  --dark-green: #059669;
  --light-green: #d1fae5;
  --emerald: #34d399;
  --forest: #047857;

  --white: #ffffff;
  --black: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --font-base: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-base);
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ========================================
   TOP BAR
======================================== */

.top-bar {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  color: var(--white);
  padding: 12px 0;
  font-size: 14px;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-right {
  justify-content: flex-end;
}

.top-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 500;
}

.top-link:hover {
  opacity: 0.8;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--white);
  color: var(--primary-green);
}

/* ========================================
   NAVIGATION
======================================== */

.navbar {
  background: var(--white);
  padding: 15px 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary-green), var(--emerald));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 13px;
  color: var(--gray-500);
  margin: 0;
  font-weight: 500;
}

.navbar-nav {
  gap: 5px;
}

.nav-link {
  padding: 10px 18px !important;
  color: var(--gray-700) !important;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-green) !important;
  background: var(--light-green);
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #25d366;
  color: var(--white);
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.btn-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

/* ========================================
   MOBILE MENU - RIGHT SIDE SLIDE
======================================== */

@media (max-width: 991px) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    right: -100%;
    /* width: 300px; */
    width: 360px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    overflow-y: auto;
    z-index: 9999;
  }

  .navbar-collapse.show {
    /* right: 190px; */
    right: 0px;
  }

  .navbar-collapse.collapsing {
    right: -100%;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Mobile Menu Header */
  .mobile-menu-header {
    padding: 20px;
    background: linear-gradient(
      135deg,
      var(--primary-green),
      var(--dark-green)
    );
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .mobile-menu-header .logo-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 24px;
  }

  .mobile-menu-header .brand-name {
    color: white;
    font-size: 18px;
    margin: 0;
  }

  .mobile-menu-header .brand-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
  }

  /* Close Button */
  .mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
  }

  .mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
  }

  /* Mobile Nav Links */
  .navbar-nav {
    padding: 20px;
    gap: 5px;
  }

  .nav-item {
    margin-bottom: 5px;
  }

  .nav-link {
    padding: 12px 15px !important;
    border-radius: 10px;
    display: block;
    transition: var(--transition);
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--light-green);
    color: var(--primary-green) !important;
    transform: translateX(5px);
  }

  .btn-whatsapp {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  /* Mobile Menu Footer */
  .mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
  }

  .mobile-social-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
  }

  .mobile-social-links a {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    transition: var(--transition);
  }

  .mobile-social-links a:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-3px);
  }

  .mobile-contact-info {
    text-align: center;
  }

  .mobile-contact-info a {
    display: block;
    padding: 8px;
    color: var(--gray-700);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
  }

  .mobile-contact-info a:hover {
    color: var(--primary-green);
  }

  /* Overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 9998;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Hamburger Icon */
  .navbar-toggler {
    border: none;
    padding: 8px;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-toggler-icon {
    width: 25px;
    height: 2px;
    background: var(--primary-green);
    display: block;
    position: relative;
    transition: var(--transition);
  }

  .navbar-toggler-icon::before,
  .navbar-toggler-icon::after {
    content: "";
    width: 25px;
    height: 2px;
    background: var(--primary-green);
    position: absolute;
    left: 0;
    transition: var(--transition);
  }

  .navbar-toggler-icon::before {
    top: -8px;
  }

  .navbar-toggler-icon::after {
    bottom: -8px;
  }
}

/* ========================================
   HERO SECTION
======================================== */

.hero-section {
  position: relative;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  padding: 80px 0;
  overflow: hidden;
}

.hero-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.hero-shape.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--primary-green);
  top: -200px;
  right: -150px;
  animation: float 8s ease-in-out infinite;
}

.hero-shape.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--emerald);
  bottom: -150px;
  left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-shape.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--dark-green);
  top: 50%;
  left: 20%;
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(5deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(-5deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--white);
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  margin-bottom: 25px;
  font-weight: 700;
  color: var(--primary-green);
  font-size: 14px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.hero-title {
  font-size: 56px;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 35px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 35px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 42px;
  font-weight: 900;
  color: var(--primary-green);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.btn-primary-custom,
.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: var(--transition);
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-green), var(--emerald));
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  color: var(--white);
}

.btn-outline-custom {
  background: var(--white);
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-outline-custom:hover {
  background: var(--primary-green);
  color: var(--white);
  transform: translateY(-3px);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 15px;
}

.trust-stars {
  display: flex;
  gap: 3px;
  color: #fbbf24;
  font-size: 20px;
}

.trust-text {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
}

.hero-image-wrapper {
  position: relative;
  z-index: 1;
}

.hero-image-frame {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), transparent);
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.floating-card {
  position: absolute;
  background: var(--white);
  padding: 20px 25px;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 15px;
  animation: floatCard 3s ease-in-out infinite;
}

.floating-card.card-1 {
  bottom: 40px;
  left: -30px;
}

.floating-card.card-2 {
  top: 40px;
  right: -30px;
  animation-delay: 1.5s;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-green), var(--emerald));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
}

.card-content h4 {
  font-size: 24px;
  font-weight: 900;
  color: var(--gray-900);
  margin: 0 0 3px 0;
}

.card-content p {
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 600;
  margin: 0;
}

/* ========================================
   SERVICES SECTION
======================================== */

.services-section {
  padding: 100px 0;
  background: var(--white);
}

.section-header {
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  padding: 10px 25px;
  background: var(--light-green);
  color: var(--primary-green);
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 15px;
}

.section-title {
  font-size: 42px;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 15px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  border: 2px solid var(--gray-100);
  transition: var(--transition);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-green);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 25px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 15px;
}

.service-description {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-green);
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
}

.service-link:hover {
  gap: 12px;
}

/* ========================================
   WHY CHOOSE SECTION
======================================== */

.why-choose-section {
  padding: 100px 0;
  background: var(--gray-50);
}

.why-image-wrapper {
  position: relative;
}

.image-main {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.image-main img {
  width: 100%;
}

.image-overlay {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 55%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 5px solid var(--white);
}

.image-overlay img {
  width: 100%;
}

.experience-badge {
  position: absolute;
  top: -30px;
  left: -30px;
  background: linear-gradient(135deg, var(--primary-green), var(--emerald));
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  color: var(--white);
}

.experience-badge h2 {
  font-size: 48px;
  font-weight: 900;
  margin: 0 0 5px 0;
}

.experience-badge p {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.why-content {
  padding-left: 20px;
}

.section-text {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 35px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.feature-item {
  display: flex;
  gap: 20px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.feature-content p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

/* ========================================
   TESTIMONIALS SECTION
======================================== */

.testimonials-section {
  padding: 100px 0;
  background: var(--white);
}

.testimonial-card {
  background: var(--gray-50);
  padding: 35px;
  border-radius: 20px;
  border: 2px solid var(--gray-100);
  transition: var(--transition);
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-green);
  background: var(--white);
}

.testimonial-stars {
  display: flex;
  gap: 5px;
  color: #fbbf24;
  font-size: 18px;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 25px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary-green), var(--emerald));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.author-info h5 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 3px 0;
}

.author-info p {
  font-size: 14px;
  color: var(--gray-500);
  margin: 0;
}

/* ========================================
   CTA SECTION
======================================== */

.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.cta-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cta-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cta-shape.shape-1 {
  width: 500px;
  height: 500px;
  top: -200px;
  right: -150px;
}

.cta-shape.shape-2 {
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -100px;
}

.cta-title {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 15px;
}

.cta-subtitle {
  font-size: 18px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-cta-primary,
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: var(--transition);
}

.btn-cta-primary {
  background: var(--white);
  color: var(--primary-green);
}

.btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-cta-secondary:hover {
  background: var(--white);
  color: var(--primary-green);
  transform: translateY(-3px);
}

/* ========================================
   FOOTER
======================================== */

.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 80px 0 30px;
}

.footer-about p {
  font-size: 15px;
  line-height: 1.8;
  margin: 20px 0 25px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-green), var(--emerald));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
}

.footer-brand h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-green);
  transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 12px;
}

.footer-links ul li a,
.footer-contact ul li a {
  color: var(--gray-400);
  font-size: 15px;
  transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-contact ul li a:hover {
  color: var(--primary-green);
  padding-left: 5px;
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-contact ul li i {
  color: var(--primary-green);
  font-size: 16px;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: var(--gray-400);
}

.footer-bottom a {
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--primary-green);
}

.footer-bottom span {
  margin: 0 10px;
}

/* ========================================
   SCROLL TO TOP
======================================== */

.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-green), var(--emerald));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.scroll-top-btn.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1199px) {
  .hero-title {
    font-size: 48px;
  }
  .section-title {
    font-size: 36px;
  }
  .cta-title {
    font-size: 36px;
  }
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 40px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .section-title {
    font-size: 32px;
  }
  .services-section,
  .why-choose-section,
  .testimonials-section,
  .cta-section {
    padding: 70px 0;
  }
  .floating-card {
    display: none;
  }
  .image-overlay {
    display: none;
  }
  .experience-badge {
    position: relative;
    top: 0;
    left: 0;
    margin-top: 20px;
    display: inline-block;
  }
  .why-content {
    padding-left: 0;
    margin-top: 30px;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 14px;
  }
  .top-bar {
    font-size: 12px;
  }
  .top-bar-left,
  .top-bar-right {
    justify-content: center;
  }
  .brand-name {
    font-size: 18px;
  }
  .brand-tagline {
    font-size: 11px;
  }
  .hero-section {
    padding: 50px 0;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-stats {
    gap: 20px;
  }
  .stat-number {
    font-size: 32px;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .btn-primary-custom,
  .btn-outline-custom {
    width: 100%;
    justify-content: center;
  }
  .section-title {
    font-size: 28px;
  }
  .service-card {
    padding: 30px 20px;
  }
  .services-section,
  .why-choose-section,
  .testimonials-section,
  .cta-section {
    padding: 50px 0;
  }
  .cta-title {
    font-size: 28px;
  }
  .cta-subtitle {
    font-size: 16px;
  }
  .footer {
    padding: 50px 0 20px;
  }
  .scroll-top-btn {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 575px) {
  .lang-btn {
    padding: 5px 10px;
    font-size: 12px;
  }
  .btn-whatsapp {
    padding: 10px 20px;
    font-size: 13px;
  }
  .hero-image-frame {
    border-radius: 20px;
  }
  .stat-item {
    flex: 1;
  }
}

/* ========================================
   PAGE HEADER SECTION
======================================== */
.page-header {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  padding: 80px 0;
  color: white;
  position: relative;
}

/* ========================================
   ABOUT PAGE STYLES
======================================== */
.about-story-section {
  padding: 100px 0;
}

.mission-vision-section {
  padding: 100px 0;
  background: var(--gray-50);
}

.mission-vision-section .card {
  transition: var(--transition);
}

.mission-vision-section .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.values-section {
  padding: 100px 0;
}

.value-card {
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-green);
}

.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  color: white;
}

/* ========================================
   SERVICES PAGE STYLES
======================================== */
.services-detail-section {
  padding: 100px 0;
}

.service-detail-row {
  margin-bottom: 80px;
}

.service-icon-overlay {
  animation: float 3s ease-in-out infinite;
}

.how-it-works-section {
  padding: 100px 0;
  background: var(--gray-50);
}

.step-card {
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-green);
}

.faq-section {
  padding: 100px 0;
}

.accordion-button:not(.collapsed) {
  background: var(--gray-50);
  color: var(--gray-900);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-green);
}

/* ========================================
   BLOG PAGE STYLES
======================================== */
.blog-section {
  padding: 100px 0;
}

.blog-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.blog-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-green);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.blog-content {
  padding: 25px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--gray-500);
}

.blog-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-green);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition);
}

.blog-card:hover .blog-read-more {
  gap: 12px;
}

.newsletter-section {
  padding: 80px 0;
  background: var(--gray-50);
}

.page-link:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
}

/* ========================================
   CONTACT PAGE STYLES
======================================== */
.contact-cards-section {
  padding: 100px 0;
}

.contact-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  border: 2px solid var(--gray-200);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form-wrapper {
  background: white;
  padding: 50px;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

.working-hours-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  color: white;
}

.map-section {
  padding: 100px 0;
  background: var(--gray-50);
}

.info-card {
  background: white;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* ========================================
   CROSS-BROWSER COMPATIBILITY
======================================== */

/* Normalize CSS for all browsers */
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* Smooth scrolling for all browsers */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Fix for Safari/iOS */
button,
input,
select,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Flexbox fixes for IE11 */
.d-flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.flex-wrap {
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.align-items-center {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.justify-content-center {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.justify-content-between {
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

/* Grid fixes for older browsers */
.row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

/* Transform fixes */
.hover-lift:hover {
  -webkit-transform: translateY(-5px);
  -ms-transform: translateY(-5px);
  transform: translateY(-5px);
}

/* Transition fixes */
a,
button,
.btn,
.card {
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

/* Border radius fixes */
.rounded,
.rounded-3,
.rounded-4 {
  -webkit-border-radius: inherit;
  -moz-border-radius: inherit;
  border-radius: inherit;
}

/* Box shadow fixes */
.shadow,
.shadow-sm,
.shadow-lg {
  -webkit-box-shadow: inherit;
  -moz-box-shadow: inherit;
  box-shadow: inherit;
}

/* Gradient fixes */
.bg-gradient-green,
.bg-success-gradient {
  background: -webkit-linear-gradient(
    135deg,
    var(--primary-green),
    var(--dark-green)
  );
  background: -moz-linear-gradient(
    135deg,
    var(--primary-green),
    var(--dark-green)
  );
  background: -o-linear-gradient(
    135deg,
    var(--primary-green),
    var(--dark-green)
  );
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
}

/* Fix for iOS Safari button styling */
input[type="submit"],
input[type="button"],
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: inherit;
}

/* Fix for Chrome autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--gray-700);
  -webkit-box-shadow: 0 0 0px 1000px var(--white) inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* Fix for Firefox */
@-moz-document url-prefix() {
  .navbar-collapse {
    overflow-x: hidden;
  }
}

/* Fix for Edge */
@supports (-ms-ime-align: auto) {
  .navbar-collapse {
    overflow-x: hidden;
  }
}

/* Object-fit polyfill for IE */
.img-fluid {
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Prevent text overflow */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

/* ========================================
   UTILITY CLASSES
======================================== */
.text-purple {
  color: var(--purple-color);
}

.bg-purple {
  background: var(--purple-color);
}

.min-vh-100 {
  min-height: 100vh;
}

/* ========================================
   ADDITIONAL RESPONSIVE FIXES
======================================== */
@media (max-width: 991px) {
  .contact-form-wrapper {
    padding: 30px;
  }

  .about-story-section,
  .mission-vision-section,
  .values-section,
  .stats-section,
  .services-detail-section,
  .how-it-works-section,
  .faq-section,
  .blog-section,
  .contact-cards-section,
  .map-section {
    padding: 70px 0;
  }
}

@media (max-width: 767px) {
  .about-story-section,
  .mission-vision-section,
  .values-section,
  .stats-section,
  .services-detail-section,
  .how-it-works-section,
  .faq-section,
  .blog-section,
  .contact-cards-section,
  .working-hours-section,
  .map-section {
    padding: 50px 0;
  }

  .contact-form-wrapper {
    padding: 25px;
  }

  .page-header {
    padding: 60px 0;
  }
}
