/* =========================================
   BIOMODIK - PREMIUM LANDING PAGE
   Part 1A
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #faf8f2;
  color: #333;
  overflow-x: hidden;
}



/* =========================================
   FADE ANIMATION
========================================= */

@keyframes fadeUp {
  from {
    opacity: 0;

    transform: translateY(40px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }

  .overlay h1 {
    font-size: 2.4rem;
  }

  .overlay p {
    font-size: 1rem;

    letter-spacing: 1px;
  }

  .hero-btn {
    padding: 12px 28px;

    font-size: 15px;
  }
}

/* =========================================
   SECTION
========================================= */

.section {
  padding: 70px 8%;
}

.section h2 {
  text-align: center;
  font-size: 36px;
  color: #8b5a00;
  font-weight: 700;
  margin-bottom: 45px;
  position: relative;
  letter-spacing: 0.5px;
}

.section h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin: 15px auto 0;
  border-radius: 20px;
  background: #d4a017;
}

/* =========================================
   WHY CHOOSE GRID
========================================= */

.cards {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

  gap: 25px;
}

/* =========================================
   CARD
========================================= */

.card {
  background: #fff;

  border-radius: 16px;

  padding: 30px;

  text-align: center;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

  transition: 0.4s;

  border: 1px solid #eee;
}

.card:hover {
  transform: translateY(-10px);

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.card h3 {
  color: #b77900;

  margin: 18px 0 12px;

  font-size: 24px;
}

.card p {
  color: #555;

  line-height: 1.8;

  font-size: 16px;
}

.card div {
  font-size: 55px;
}

/* =========================================
   NICE HOVER GLOW
========================================= */

.card:hover {
  border-color: #d4a017;
}

/* =========================================
   SCROLL ANIMATION READY
========================================= */

.reveal {
  opacity: 0;

  transform: translateY(50px);

  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;

  transform: translateY(0);
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {
  .section {
    padding: 60px 6%;
  }

  .section h2 {
    font-size: 30px;
  }

  .cards {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  .card {
    padding: 25px 20px;
  }

  .card h3 {
    font-size: 20px;
  }

  .card p {
    font-size: 14px;
  }

  .card div {
    font-size: 46px;
  }
}

/*=========================================
    ABOUT SECTION
=========================================*/

.about {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.about img {
  width: 420px;
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transition: 0.5s ease;
  animation: floatImage 5s ease-in-out infinite;
}

.about img:hover {
  transform: scale(1.03);
}

.about div {
  flex: 1;
  min-width: 300px;
}

.about h3 {
  font-size: 30px;
  color: #8b5a00;
  margin-bottom: 18px;
  font-weight: 700;
}

.about p {
  font-size: 15px;
  line-height: 1.9;
  color: #666;
  text-align: justify;
  margin-bottom: 15px;
}

/*=========================================
    ABOUT IMAGE FLOAT
=========================================*/

@keyframes floatImage {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/*=========================================
    FOOTER
=========================================*/

footer {
  margin-top: 70px;

  background: #5d4037;

  color: #fff;

  text-align: center;

  padding: 25px;

  font-size: 15px;

  letter-spacing: 0.5px;
}

footer p {
  margin: 0;
}

/*=========================================
    SMALL FADE EFFECT
=========================================*/

.fade {
  animation: fadeUp 1s ease;
}

/*=========================================
    SCROLLBAR
=========================================*/

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f4f4f4;
}

::-webkit-scrollbar-thumb {
  background: #c79b2d;
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8b5a00;
}

/*=========================================
    SELECTION COLOR
=========================================*/

::selection {
  background: #d4a017;
  color: #fff;
}

/*=========================================
    MOBILE
=========================================*/

@media (max-width: 768px) {
  .about {
    flex-direction: column;

    text-align: center;

    gap: 30px;
  }

  .about img {
    width: 100%;

    max-width: 350px;
  }

  .about h3 {
    font-size: 24px;
  }

  .about p {
    font-size: 14px;

    text-align: left;
  }

  footer {
    margin-top: 50px;

    padding: 20px;
  }
}

/* Scroll Animation */

.hidden {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.9s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}
