/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors - Professional Green Agricultural Theme */
  --color-primary: #16a34a;
  --color-primary-dark: #15803d;
  --color-primary-light: #22c55e;
  --color-background: #ffffff;
  --color-foreground: #0a0a0a;
  --color-card: #ffffff;
  --color-muted: #f5f5f5;
  --color-muted-foreground: #737373;
  --color-border: #e5e5e5;
  --color-accent: #f0fdf4;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
}

body {
  font-family: var(--font-sans);
  line-height: var(--line-height-normal);
  color: var(--color-foreground);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================
   ✅ HERO SECTION (Cleaned & Fixed)
   ================================ */
.hero {
  position: relative;
  height: 100vh; /* Always fits screen height */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem; /* Space for fixed header */
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers without stretching */
  object-position: center; /* Keeps focus centered */
}

/* Optional subtle overlay to improve text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.85)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 48rem;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--color-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
  line-height: var(--line-height-relaxed);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Smaller screens */
@media (max-width: 768px) {
  .hero {
    height: 100dvh; /* Dynamic viewport on mobile for safer sizing */
    padding-top: 4rem;
  }

  .hero-content {
    text-align: center;
    padding: 2rem 1rem;
  }

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background-color: var(--color-muted);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo-image {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.logo-image img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.logo-text {
  display: none;
}

@media (min-width: 640px) {
  .logo-text {
    display: block;
  }

  .logo-image {
    width: 3.5rem;
    height: 3.5rem;
  }
}

.logo-title {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  color: var(--color-foreground);
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}

.nav-desktop {
  display: none;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  opacity: 0.8;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: var(--color-muted);
  opacity: 1;
}

.btn-desktop {
  display: none;
}

@media (min-width: 768px) {
  .btn-desktop {
    display: inline-flex;
  }
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
}

.nav-mobile.active {
  display: flex;
}

.nav-link-mobile {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  opacity: 0.8;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.nav-link-mobile:hover {
  color: var(--color-primary);
  background-color: var(--color-muted);
  opacity: 1;
}

.btn-mobile {
  margin-top: 0.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 3rem;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0.75)
  );
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-text {
  max-width: 48rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.2);
  margin-bottom: 1.5rem;
}

.hero-badge i {
  color: var(--color-primary);
  font-size: 1rem;
}

.hero-badge span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

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

.hero-description {
  font-size: 1.125rem;
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
  line-height: var(--line-height-relaxed);
}

@media (min-width: 640px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
}

.feature-pill i {
  color: var(--color-primary);
  font-size: 1.25rem;
}

.feature-pill span {
  font-size: 0.875rem;
  font-weight: 500;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

.scroll-indicator-inner {
  width: 1.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 2px solid rgba(22, 163, 74, 0.3);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.5rem;
}

.scroll-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: var(--color-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: rgba(245, 245, 245, 0.3);
}

@media (min-width: 640px) {
  .about {
    padding: 6rem 0;
  }
}

@media (min-width: 1024px) {
  .about {
    padding: 8rem 0;
  }
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-foreground);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-muted-foreground);
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 5rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    gap: 2rem;
  }
}

.card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(22, 163, 74, 0.5);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  background-color: rgba(22, 163, 74, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon i {
  color: var(--color-primary);
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-foreground);
  margin-bottom: 1rem;
}

.card-text {
  color: var(--color-muted-foreground);
  line-height: var(--line-height-relaxed);
}

.innovation-section {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .innovation-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

.innovation-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .innovation-content {
    padding: 3rem;
  }
}

.innovation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.2);
  margin-bottom: 1.5rem;
  width: fit-content;
}

.innovation-badge i {
  color: var(--color-primary);
  font-size: 1rem;
}

.innovation-badge span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
}

.innovation-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-foreground);
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .innovation-title {
    font-size: 1.875rem;
  }
}

.innovation-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--color-muted-foreground);
  line-height: var(--line-height-relaxed);
}

.innovation-highlight {
  font-weight: 500;
  color: var(--color-foreground);
}

.innovation-image {
  position: relative;
  height: 16rem;
  min-height: 25rem;
}

@media (min-width: 1024px) {
  .innovation-image {
    height: auto;
  }
}

.innovation-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Services Section */
.services {
  padding: 5rem 0;
}

@media (min-width: 640px) {
  .services {
    padding: 6rem 0;
  }
}

@media (min-width: 1024px) {
  .services {
    padding: 8rem 0;
  }
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.service-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: rgba(22, 163, 74, 0.5);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.service-image {
  position: relative;
  cursor: pointer;
  height: 12rem;
  overflow: hidden;
  background-color: var(--color-muted);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.service-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
}

.service-icon {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.service-icon i {
  color: white;
  font-size: 1.5rem;
}

.service-content {
  padding: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-foreground);
  margin-bottom: 1rem;
}

.service-text {
  color: var(--color-muted-foreground);
  line-height: var(--line-height-relaxed);
  margin-bottom: 1rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: gap 0.2s ease;
}

.service-link:hover {
  gap: 0.5rem;
}

.services-cta {
  margin-top: 4rem;
  text-align: center;
}

.services-cta-content {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  border-radius: 1.5rem;
  background-color: rgba(22, 163, 74, 0.05);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

@media (min-width: 640px) {
  .services-cta-content {
    flex-direction: row;
  }
}

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

@media (min-width: 640px) {
  .services-cta-text {
    text-align: center;
  }
}

.services-cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-foreground);
  margin-bottom: 0.5rem;
}

.services-cta-description {
  color: var(--color-muted-foreground);
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: rgba(245, 245, 245, 0.3);
}

@media (min-width: 640px) {
  .contact {
    padding: 6rem 0;
  }
}

@media (min-width: 1024px) {
  .contact {
    padding: 8rem 0;
  }
}

.contact-grid {
  /* display: grid;
  gap: 2rem; */
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-foreground);
  margin-bottom: 1rem;
}

.contact-info-text {
  color: var(--color-muted-foreground);
  line-height: var(--line-height-relaxed);
  margin-bottom: 2rem;
}

.contact-cards {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.contact-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.contact-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  background-color: rgba(22, 163, 74, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.contact-card-icon i {
  color: var(--color-primary);
  font-size: 1.25rem;
}

.contact-card-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted-foreground);
  margin-bottom: 0.25rem;
}

.contact-card-value {
  color: var(--color-foreground);
  font-weight: 500;
  transition: color 0.2s ease;
}

a.contact-card-value:hover {
  color: var(--color-primary);
}

.contact-map {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.contact-map img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.contact-form-wrapper {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.contact-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-foreground);
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
}

.form-input,
.form-textarea {
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 8rem;
}

/* Footer */
.footer {
  background-color: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .footer-brand {
    grid-column: span 1;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-image {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-muted);
}

.footer-logo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-logo-title {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  color: var(--color-foreground);
}

.footer-logo-subtitle {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.footer-description {
  color: var(--color-muted-foreground);
  line-height: var(--line-height-relaxed);
  max-width: 28rem;
}

.footer-heading {
  font-weight: 700;
  color: var(--color-foreground);
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: var(--color-muted-foreground);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--color-muted-foreground);
  margin-bottom: 1rem;
}

.footer-contact-link {
  color: var(--color-muted-foreground);
  transition: color 0.2s ease;
}

.footer-contact-link:hover {
  color: var(--color-primary);
}

.footer-contact-text {
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.hidden {
  display: none;
}
/* =========================================================
   ✅ Mobile Responsiveness & Layout Improvements
   ========================================================= */

.hero-content {
  text-align: left;
  padding: 4rem 1rem;
}

.hero-title {
  font-size: 1.8rem;
  line-height: 1.3;
}

.hero-description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Adjust features */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Ensure hero image and overlay behave well */
.hero-background img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --- ✅ Mobile Nav Defaults --- */
.nav-mobile {
  display: none;
  flex-direction: column;
  background-color: #ffffff;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw; /* full viewport width */
  max-width: 100%; /* ensure no overflow */
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid #ddd;
  z-index: 1000;

  /* Smooth animation */
  transition: all 0.3s ease-in-out;
  opacity: 0;
  transform: translateY(-15px);
}

/* When active */
.nav-mobile.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Make sure links fill the width nicely */
.nav-mobile a {
  display: block;
  width: 100%;
  padding: 0.8rem 0;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.nav-mobile a:hover {
  background-color: #f7f7f7;
  color: #b80000;
}

/* --- ✅ Mobile Adjustments --- */
@media (max-width: 768px) {
  /* Hide desktop nav, show mobile menu button */
  .nav-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
  }

  .btn-desktop {
    display: none;
  }

  /* Hero section */
  .hero-content {
    text-align: center;
    padding: 2.5rem 1rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  /* Services & About */
  .services-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .innovation-section {
    flex-direction: column;
  }

  .innovation-image img {
    width: 100%;
    height: auto;
  }

  /* Footer cleanup */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* --- ✅ Desktop Rules --- */
@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* =========================================================
   ✅ Fix Get in Touch Section Overflow
   ========================================================= */

.get-in-touch,
.contact-section,
.contact-container {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Ensure cards/forms inside don’t overflow */
.contact-form,
.contact-card,
.contact-info {
  max-width: 100%;
  overflow: hidden;
}

/* Fix input fields and buttons */
.contact-form input,
.contact-form textarea,
.contact-form button {
  width: 100%;
  box-sizing: border-box;
}

/* Mobile view fine-tuning */
@media (max-width: 768px) {
  .contact-section {
    padding: 2rem 1rem;
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .contact-cards {
    flex-direction: column;
    align-items: stretch;
  }
}

.service-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  border-radius: inherit;
}

/* ============================= */
/* 🎬 VIDEO MODAL — UNIVERSAL FIX */
/* ============================= */

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Modal content wrapper */
.modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: transparent;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive video */
.modal-content video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  max-height: 85vh; /* Prevents overflow on small screens */
  object-fit: contain;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 10;
}

.close:hover {
  transform: scale(1.2);
}

/* ============================= */
/* 📱 RESPONSIVE DESIGN */
/* ============================= */
@media (max-width: 768px) {
  .modal {
    padding: 10px;
  }

  .modal-content {
    max-width: 100%;
    border-radius: 8px;
  }

  .close {
    top: 5px;
    right: 10px;
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .modal-content video {
    max-height: 70vh;
  }

  .close {
    font-size: 24px;
  }
}
