* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: #222;
  overflow-x: hidden;
}

.innovation-section {
  padding: 80px 8%;
  background: #fff;
}

/* =========================
   SECTION TITLE
========================= */

.section-title {
  text-align: center;
  margin-bottom: 60px;

  animation: fadeDown 1s ease;
}

.section-title h2 {
  font-size: 48px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 15px;
  line-height: 1.3;
}

.section-title p {
  font-size: 18px;
  color: #6b7280;
  max-width: 850px;
  margin: auto;
  line-height: 1.8;
}

.highlight {
  color: #f9be17;
  position: relative;
}

.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 4px;
  background: #16a34a;
  border-radius: 20px;

  animation: underlineMove 2s infinite;
}

/* =========================
   GRID
========================= */

.innovation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* =========================
   CARD DESIGN
========================= */

.innovation-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: 0.5s ease;
  position: relative;

  opacity: 0;
  transform: translateY(80px);

  animation: fadeUp 1s ease forwards;
}

/* Different delay for each card */

.innovation-card:nth-child(1) {
  animation-delay: 0.2s;
}

.innovation-card:nth-child(2) {
  animation-delay: 0.5s;
}

.innovation-card:nth-child(3) {
  animation-delay: 0.8s;
}

.innovation-card:nth-child(4) {
  animation-delay: 1.1s;
}

/* Hover Animation */

.innovation-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

/* Green Glow Border Animation */

.innovation-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(45deg, transparent, #16a34a, transparent);

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  opacity: 0;
  transition: 0.5s ease;
}

.innovation-card:hover::before {
  opacity: 1;
}

/* =========================
   IMAGE
========================= */

.innovation-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;

  transition: 0.6s ease;
}

.innovation-card:hover img {
  transform: scale(1.08);
}

/* =========================
   CONTENT
========================= */

.card-content {
  padding-top: 25px;
}

.top-space {
  padding-bottom: 25px;
}

.card-content h3 {
  font-size: 30px;
  color: #0f172a;
  margin-bottom: 18px;
  font-weight: 700;

  transition: 0.4s ease;
}

.innovation-card:hover h3 {
  color: #0e6f32;
}

.card-content p {
  color: #6b7280;
  font-size: 17px;
  line-height: 1.9;
}

/* =========================
   KEYFRAMES
========================= */

/* Fade Down */

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade Up */

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Underline Animation */

@keyframes underlineMove {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }

  50% {
    transform: scaleX(1);
    transform-origin: left;
  }

  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

/* Floating Effect */

@keyframes floating {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
  .innovation-grid {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 38px;
  }
}

@media (max-width: 576px) {
  .innovation-section {
    padding: 60px 20px;
  }

  .section-title h2 {
    font-size: 30px;
  }

  .card-content h3 {
    font-size: 24px;
  }

  .innovation-card img {
    height: 220px;
  }
}
