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

:root {
  /* Primary Colors - Modern green palette for agri-tech */
  --primary-color: #2e7d32;
  --primary-light: #4caf50;
  --primary-dark: #1b5e20;

  /* Secondary Colors */
  --secondary-color: #ff6b35;
  --secondary-light: #ff8a65;

  /* Accent Colors */
  --accent-blue: #2196f3;
  --accent-purple: #9c27b0;

  /* Neutral Colors */
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #424242;
  --text-dark: #212121;
  --text-medium: #757575;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  --gradient-secondary: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--secondary-light) 100%
  );
  --gradient-hero: linear-gradient(
    135deg,
    #1b5e20 0%,
    #2e7d32 50%,
    #4caf50 100%
  );

  /* Typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

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

  /* 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);

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

  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-base: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-dark);
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--medium-gray);
  transition: var(--transition-base);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-logo i {
  font-size: var(--font-size-2xl);
}

.nav-menu {
  display: flex;
  gap: var(--spacing-xl);
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: var(--font-size-base);
  padding: var(--spacing-sm) 0;
  position: relative;
  transition: var(--transition-base);
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition-base);
}

/* Hero Section */
.hero {
  background: var(--gradient-hero);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle fill="url(%23a)" cx="10" cy="10" r="10"/><circle fill="url(%23a)" cx="80" cy="5" r="5"/><circle fill="url(%23a)" cx="40" cy="15" r="8"/><circle fill="url(%23a)" cx="90" cy="18" r="4"/></svg>')
    repeat;
  opacity: 0.1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
}

.highlight {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--secondary-light)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  line-height: 1.6;
  margin-bottom: var(--spacing-2xl);
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.btn {
  padding: var(--spacing-lg) var(--spacing-xl);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-base);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--secondary-color);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

/* Floating Cards in Hero */
.hero-image {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: var(--spacing-xl);
  min-height: 400px;
  width: 100%;
  padding: var(--spacing-2xl);
}

.floating-card {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--white);
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
  min-width: 160px;
  max-width: 300px;
  z-index: 2;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  justify-self: center;
  align-self: center;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.floating-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.floating-card:nth-child(1) {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  animation-delay: 0s;
  z-index: 5;
}

.floating-card:nth-child(2) {
  grid-column: 1;
  grid-row: 3;
  justify-self: start;
  align-self: end;
  animation-delay: 2s;
  z-index: 4;
}

.floating-card:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  align-self: center;
  animation-delay: 4s;
  z-index: 3;
  margin-top: 33px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Enhanced floating animation with subtle rotation */
@keyframes floatEnhanced {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(1deg);
  }
  50% {
    transform: translateY(-20px) rotate(0deg);
  }
  75% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

.floating-card:nth-child(2) {
  animation: floatEnhanced 7s ease-in-out infinite;
}

.floating-card:nth-child(3) {
  animation: floatEnhanced 5s ease-in-out infinite;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-header h2 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
  position: relative;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about {
  padding: var(--spacing-3xl) 0;
  background: var(--light-gray);
}

/* Subtle background for About / farmers benefits section */
.about.has-bg {
  /* Prefer a local image if provided, otherwise fall back to an external stock image */
  /* Darker overlay for better contrast */
  background-color: rgba(6, 35, 12, 0.6);
  background-image: linear-gradient(rgba(6, 35, 12, 0.6), rgba(6, 35, 12, 0.6)),
    url("./assets/farmers-bg.jpg");
  /* background-image: linear-gradient(
      rgba(6, 35, 12, 0.55),
      rgba(6, 35, 12, 0.55)
    ),
    url("https://images.unsplash.com/photo-1501004318641-b39e6451bec6?q=80&w=1600&auto=format&fit=crop&ixlib=rb-4.0.3&s=3d3c8c5f3b6f2e8a5d6a1a9b2c3d4e5f"); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Blend the overlay color with the image to reduce brightness */
  background-blend-mode: multiply, normal;
  color: var(--white);
}

.about.has-bg .about-text p,
.about.has-bg .stat span,
.about.has-bg .section-header p {
  color: rgba(255, 255, 255, 0.9);
}

.about.has-bg .feature {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Force high-contrast text styles inside the dark about background */
.about.has-bg h2,
.about.has-bg h3,
.about.has-bg h4,
.about.has-bg p,
.about.has-bg li,
.about.has-bg span,
.about.has-bg strong,
.about.has-bg em {
  color: rgba(255, 255, 255, 0.95);
}

/* Accent links in About to a warm tone that contrasts with dark overlay */
.about.has-bg a {
  color: var(--secondary-light);
  text-decoration: underline;
}

.about.has-bg a:hover,
.about.has-bg a:focus {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Ensure enough padding on smaller screens */
@media (max-width: 768px) {
  .about.has-bg {
    padding: calc(var(--spacing-3xl) + 2rem) 0;
  }
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: start;
}

.about-text h3 {
  font-size: var(--font-size-2xl);
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
}

.about-text p {
  font-size: var(--font-size-lg);
  line-height: 1.7;
  margin-bottom: var(--spacing-2xl);
  color: var(--text-medium);
}

.stats {
  display: flex;
  gap: var(--spacing-xl);
}

.stat {
  text-align: center;
}

.stat h4 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.stat span {
  font-size: var(--font-size-sm);
  color: var(--text-medium);
  font-weight: 500;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.feature {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature i {
  font-size: var(--font-size-2xl);
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
}

.feature h4 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

.feature p {
  color: var(--text-medium);
  line-height: 1.6;
}

/* Projects Section */
.projects {
  padding: var(--spacing-3xl) 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: var(--spacing-2xl);
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Make anchor-wrapped project cards preserve styles and be fully clickable */
.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-link .project-icon,
.project-link h3,
.project-link .project-description {
  pointer-events: none; /* ensure the whole card link clicks, not inner elements */
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

/* Keep anchor-wrapped project cards visually interactive but prevent content expansion */
.project-link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

/* Clamp descriptions to 3 lines to avoid large pop-out on hover */
.project-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ensure hover doesn't change layout (no height changes) */
.project-card,
.project-link {
  will-change: transform;
}

.project-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.project-icon i {
  font-size: var(--font-size-2xl);
  color: var(--white);
}

.project-card h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-lg);
}

.project-description {
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--text-medium);
  margin-bottom: var(--spacing-lg);
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.feature-tag {
  background: rgba(46, 125, 50, 0.1);
  color: var(--primary-color);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.project-stats {
  display: flex;
  justify-content: space-between;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--medium-gray);
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-color);
}

/* Services Section */
.services {
  padding: var(--spacing-3xl) 0;
  background: var(--light-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-2xl);
}

.service-card {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(76, 175, 80, 0.1),
    transparent
  );
  transition: var(--transition-slow);
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card i {
  font-size: var(--font-size-3xl);
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
}

.service-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-medium);
  line-height: 1.6;
}

/* Contact Section */
.contact {
  padding: var(--spacing-3xl) 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
}

.contact-info h3 {
  font-size: var(--font-size-2xl);
  color: var(--primary-color);
  margin-bottom: var(--spacing-2xl);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.contact-item i {
  font-size: var(--font-size-xl);
  color: var(--primary-color);
  margin-top: var(--spacing-xs);
  min-width: 24px;
}

.contact-item h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
}

.contact-item p {
  color: var(--text-medium);
  line-height: 1.6;
}

.contact-item p a {
  color: var(--text-medium);
  text-decoration: none;
}

.contact-item p a:hover {
  color: var(--text-dark);
  text-decoration: underline;
}

/* Contact Form */
.contact-form-container {
  background: var(--light-gray);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-lg);
}

.contact-form h3 {
  font-size: var(--font-size-2xl);
  color: var(--primary-color);
  margin-bottom: var(--spacing-2xl);
  text-align: center;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-lg);
  border: 2px solid var(--medium-gray);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  transition: var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
}

.footer-logo i {
  font-size: var(--font-size-2xl);
  color: var(--primary-light);
}

.footer-section p {
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
  opacity: 0.8;
}

.footer-section h4 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-lg);
  color: var(--primary-light);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition-base);
}

.footer-section ul li a:hover {
  opacity: 1;
  color: var(--primary-light);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid var(--primary-light);
  border-radius: 50%;
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition-base);
}

.social-links a:hover {
  background: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-lg) 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-2xl);
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .stats {
    justify-content: space-around;
    flex-wrap: wrap;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .section-header h2 {
    font-size: var(--font-size-3xl);
  }
}

@media (max-width: 480px) {
  .container,
  .nav-container,
  .hero-container {
    padding: 0 var(--spacing-md);
  }

  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .btn {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .floating-card {
    display: none;
  }
}

/* Additional responsive adjustments for floating cards */
@media (max-width: 1024px) {
  .hero-image {
    min-height: 300px;
    padding: var(--spacing-lg);
    gap: var(--spacing-lg);
  }

  .floating-card {
    padding: var(--spacing-md);
    font-size: var(--font-size-sm);
    min-width: 140px;
    max-width: 180px;
  }

  .floating-card:nth-child(1) {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: start;
  }

  .floating-card:nth-child(2) {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    align-self: end;
  }

  .floating-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    align-self: center;
  }
}

@media (max-width: 768px) {
  .hero-image {
    min-height: 250px;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .floating-card {
    padding: var(--spacing-sm);
    font-size: var(--font-size-xs);
    min-width: 120px;
    max-width: 160px;
  }

  .floating-card:nth-child(1) {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
  }

  .floating-card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    align-self: end;
  }

  .floating-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: center;
  }
} /* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Form Success Message Styles */
.form-success {
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  text-align: center;
  animation: slideInUp 0.6s ease-out;
}

.success-icon {
  margin-bottom: var(--spacing-lg);
}

.success-icon i {
  font-size: var(--font-size-4xl);
  color: var(--primary-color);
  animation: bounceIn 0.8s ease-out;
}

.form-success h3 {
  font-size: var(--font-size-2xl);
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.form-success p {
  font-size: var(--font-size-lg);
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.success-note {
  font-size: var(--font-size-base) !important;
  color: var(--text-medium) !important;
  margin-top: var(--spacing-lg) !important;
  margin-bottom: var(--spacing-sm) !important;
}

.quick-contact {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-md);
}

.quick-contact p {
  margin-bottom: var(--spacing-sm) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.quick-contact i {
  color: var(--primary-color);
}

.quick-contact a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.quick-contact a:hover {
  color: var(--primary-dark);
}

/* Form Status Styles */
.form-status {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: 500;
  display: none;
}

.form-status.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef5350;
  display: block;
}

.form-status.success {
  background: #e8f5e8;
  color: var(--primary-dark);
  border: 1px solid var(--primary-light);
  display: block;
}

/* Button Loading State */
.btn-loader {
  display: none;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-loader {
  display: inline-block;
}

.btn.loading {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Accessibility Classes */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Focus indicators for better accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
