* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: poppins, sans-serif;
}
/*MAIN HEADING*/

:root {
  --primary-color: #2a9d8f;
  --accent-color: #ffb703;
  --dark-text: #212529;
  --light-text: #f8f9fa;
  --mild-dark-text: #264653;
}

header {
  background: #134942;
  max-width: 100%;
  z-index: 1000;
}
header ul li a {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f9f9f9;
}
.contact-banner {
  display: flex;
  justify-content: space-around;
  padding: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f9f9f9;
  list-style-type: none;
}

/*NEW NAVBAR GOES HERE*/
.nav-bar {
  position: sticky;
  top: -1px;
  z-index: 1000;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f9fa;
  color: var(--light-text-color);
  padding: 15px 20px;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: bold;
}
.logo a {
  text-decoration: none;
  color: #212529;
  cursor: pointer;
}
.brand {
  color: #ffb703;
  /* background-color: #c1121f; */
  border-radius: 6px;
}
.city {
  font-size: 1.3rem;
  letter-spacing: 0.3rem;
}
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  color: #212529;
  font-weight: 600;
  text-decoration: none;
  padding: 10px;
  display: block;
}

.nav-links li a.active,
.nav-links li a[href*="#"]:not([href="#"]):visited {
  border-bottom: 2px solid #9e2a2b;
}

.nav-links li a.active,
.nav-links ul li a.active,
.nav-links li.has-submenu > a.active,
.nav-links li a:hover,
.nav-links ul li a:hover {
  border-bottom: 1px solid #9e2a2b;
}

.nav-links li:hover > ul {
  display: block;
  transition: all 0.8s ease-in;
}

.nav-links ul {
  display: none;
  position: absolute;
  background-color: #f8f9fa;
  top: 100%;
  left: 0;
  list-style: none;
  min-width: 180px;
  z-index: 999;
  transition: all 0.8s ease-in;
}

.nav-links ul li a {
  padding: 10px;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  background: #212529;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
/*******************************CONTACT FLOATING BUTTON**********************************/
.contact-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 999;
}
.fa-whatsapp {
  color: #25d366;
  font-size: 2rem;
}
.fa-calendar-check {
  font-size: 1.8rem;
}

.contact-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /* background-color: #2a9d8f; */
  background-color: #df7373;
  color: white;
  border: none;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-btn:hover {
  background-color: #da5552;
}

.phone-btn,
.whatsapp-btn,
.appointment-btn {
  text-decoration: none;
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

.contact-wrapper.active .phone-btn,
.contact-wrapper.active .whatsapp-btn,
.contact-wrapper.active .appointment-btn {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
/*******   FLOATING BUTTON ENDS *************/

.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Hero Section */
.eye-care-hero {
  background: linear-gradient(to right, #3f91e5, #72c2f8);
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}

.eye-care-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.eye-care-hero p {
  font-size: 1.2rem;
}

/* Image & Description Section */
.eye-care-image-section {
  background-color: #ffffff;
  padding: 3rem 1rem;
}

.image-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.eye-image {
  flex: 1 1 300px;
  max-width: 75%;
  margin: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.text-content {
  flex: 1 1 300px;
}

.text-content h2 {
  font-size: 1.8rem;
  color: #0077cc;
  margin-bottom: 1rem;
}

.text-content p {
  font-size: 1.2rem;
  line-height: 1.5;
  padding: 10px 0;
  text-align: left;
}

/* Services Section */
.eye-care-details {
  background-color: #f4f4f4;
  padding: 3rem 1rem;
}

.eye-care-details h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #0077cc;
}

.eye-care-details ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.eye-care-details li {
  margin-bottom: 1rem;
}
.container .learn-more {
  font-size: 1.2rem;
}

/* Call-to-Action */
.cta {
  text-align: center;
  margin-top: 2rem;
}
.cta p {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.eyecare-contact-btn {
  display: inline-block;
  background-color: #0077cc;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.eyecare-contact-btn:hover {
  background-color: #005fa3;
}

/* Responsive */
@media (max-width: 768px) {

    .eye-care-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: left;
}
  .eye-care-hero p {
    font-size: 1.1rem;
    text-align: left;
  }
  .image-content {
    flex-direction: column;
    text-align: center;
  }
  .eye-care-image-section {
    padding: 1rem 1rem;
}
  .eye-image {
    flex: 1 1 200px;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }


  .eye-care-details {
    background-color: #f4f4f4;
    padding: 1rem 1rem;
}
.container {
    padding: 1rem 0;
}
  .text-content {
    padding-top: 1rem 15px;
  }
  .text-content p {
    font-size: 1.1rem;
    text-align: left;
  }
  .eye-care-hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .eye-care-hero p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  .eye-care-details {
    border-radius: 30px;
  }
  .container ul li {
    font-size: 1.1rem;
  }
}

/*FOOTER SECTION*/
.footer {
  background-color: #333533;
  color: var(--light-text);
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-box {
  flex: 1;
  min-width: 250px;
  margin: 20px;
}
.footer-box h4 {
  padding-left: 30px;
  margin-top: 15px;
}
.social-media .fa-brands {
  font-size: 1.2rem;
}
.social-media {
  max-width: 80px;
  display: flex;
  justify-content: space-between;
  margin: 7px 30px 0;
}
.footer-box h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-box p,
.footer-box ul,
.footer-box li,
.footer-box a {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--light-text);
  text-decoration: none;
}
.footer-box p {
  padding-left: 30px;
}

.footer-box ul {
  list-style: none;
  padding-left: 32px;
}

.footer-box ul li {
  margin-bottom: 8px;
}

.footer-box a:hover {
  color: #fff;
  text-decoration: underline;
}

.copyright {
  margin-top: 20px;
  text-align: center;
  color: var(--text-color-secondary);
  font-size: 0.9rem;
}
.copyright a {
  color: var(--text-color-secondary);
  font-size: 0.9rem;
}

/*    MEDIA QUERIES            */
:root {
  --primary-color: #2a9d8f;
  --accent-color: #ffb703;
  --dark-text: #212529;
  --light-text: #f8f9fa;
}
@media (min-width: 320px) and (max-width: 480px) {
  /*BANNER SECTION*/
  header ul li a,
  .contact-banner {
    font-size: 0.7rem;
  }
  .contact-banner {
    display: grid;
    flex: 1;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 600px;
  }
  /* FOOTER */
  .footer-box {
    max-width: 300px;
  }
}
/* 481px - 600px: Larger mobile devices (landscape). */
@media (min-width: 481px) and (max-width: 600px) {
  header ul li a,
  .contact-banner {
    font-size: 0.8rem;
  }
  .contact-banner {
    display: grid;
    flex: 1;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 600px;
  }

  /* FOOTER */
  .footer-box {
    max-width: 300px;
  }
}

/* 600px - 768px: Tablets (portrait). */
@media (min-width: 601px) and (max-width: 768px) {
  header ul li a,
  .contact-banner {
    font-size: 0.7rem;
  }
  .contact-banner {
    max-width: 100%;
    margin: auto;
    display: grid;
    flex: 1;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    max-width: 600px;
  }
}
/* 768px - 992px: Tablets (landscape) and small laptops. */

@media (min-width: 768px) and (max-width: 992px) {
  header ul li a,
  .contact-banner {
    font-size: 0.9rem;
  }
  .contact-banner {
    max-width: 100%;
    margin: auto;
    display: grid;
    flex: 1;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-width: 600px;
  }
}

/* ACTIVATE HAMBURGER BUTTON */
@media (max-width: 768px) {
  .nav-bar {
    position: sticky;
    top: 0;
  }
  .nav-links {
    height: 100vh;
    position: absolute;
    top: 80px;
    right: 0;
    flex-direction: column;
    background: #f8f9fa;
    width: 200px;
    display: none;
    transition: transform 0.4s ease;
    padding: 20px;
    z-index: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links ul {
    position: relative;
    top: 0;
  }

  .hamburger {
    display: flex;
  }
}

/*Rotate Animation*/
/* Only animate when fa-xmark appears */
.rotate-in {
  animation: rotatePop 0.5s ease-in-out;
}

/* Rotate + scale animation */
@keyframes rotatePop {
  0% {
    transform: rotate(0deg) scale(0.5);
    opacity: 0;
  }
  100% {
    transform: rotate(180deg) scale(1);
    opacity: 1;
    transition: 0.5s ease;
  }
}
