/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  /* Colors */
  --Blue: #084B83;
  --blue-dark: #1f8fcc;
  --green: #00A676;
  --Ligh-Grey: #F7F9F9;
  --White: #ffffff;
  --Heading-Text: #070600;
  --Body-Text: #7a7a7a;
  --Black: #222222;

  /* Typography */
  --font-main: "Inter", sans-serif;

  /* space */
  --space-xsm: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;

  /* border */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* shadow */
  --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
 font-family: var(--font-main);
  color: var(--Body-Text);
  background-color: var(--Ligh-Grey);
}

/* typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--Heading-Text);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.25;
}

h3 {
  font-size: 1.75rem;
  line-height: 1.3;
}

h4 {
  font-size: 1.5rem;
  line-height: 1.35;
}

p {
  font-size: 1rem;
  line-height: 24px;
  color: var(--Body-Text);
  font-weight: 400;
}

section {
  padding: var(--space-xxl) 0;
}

a {
  text-decoration: none;
}
/* utility claseees */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 4px;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background-color: var(--green);
  color: var(--White);
}

.btn-primary:hover {
  background-color: var(--Blue);
}

.btn-outline {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 4px;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background-color: transparent;
  border: 2px solid var(--green) !important;
  color: var(--green);
}

.btn-outline:hover {
  background-color: var(--green) !important;
  color: var(--White);
}

.p-large {
  font-size: 1.125rem;
  line-height: 28px;
}

.p-small {
  font-size: 14px;
  line-height: 20px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title h2 {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-md);
}

.section-title h2::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateX(-0);
  width: 48px;
  height: 4px;
  background-color: var(--green);
  margin-top: 4px;
  border-radius: 4px;
}

/* Header */
/* top bar */
.top-bar-container {
  background-color: var(--Blue);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: var(--space-sm) 0;
}

.top-bar .top-bar-content span {
  color: var(--White);
  margin-right: var(--space-sm);
}

.top-bar-content i{
  margin-right: var(--space-xsm);
}

.top-bar .social-links{
  display: flex;
  gap: var(--space-md);
}
.top-bar .social-links i {
  color: var(--White);
}

.top-bar .social-links i:hover {
  color: var(--Heading-Text);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.fixed-header{
  background-color: var(--White);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 100%;
}

.header-container .logo-text span {
  color: var(--green);
  font-size: 24px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.nav-list a {
  text-decoration: none;
  color: var(--Body-Text);
  transition: 0.2s ease;
}

.nav-list a:hover {
  color: var(--green);
}
.nav-list a.active {
  color: var(--green);
}

.btn-appointment {
  background-color: var(--green);
  display: flex;
  align-items: center;
  gap: var(--space-xsm);
}

.btn-appointment:hover {
  background-color: var(--White);
  color: var(--green);
}

.mobile-menu-toggle {
  font-size: 24px;
  color: var(--Heading-Text);
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: none;
}

/* ====================Hero Section Styles===================== */

#hero-section {
  position: relative;
  height: 100vh;
  background: url('img/img3.jpg') center/cover;
  display: flex;
  align-items: center;
}

#hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  /* background-color: hsl(201, 100%, 91%); */
  z-index:1;
}

#hero-section .container .hero-text{
  
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction:column;
  max-width: 600px;
  height: 100vh;
  text-align: center;
  margin: 0 auto;
  z-index: 500;
  z-index:2;
  position: relative;
}

.hero-text h1 {
  font-weight: 800;
  color: var(--White);
  margin-bottom: var(--space-sm);
}

.hero-text h1 span {
  color: var(--green);
}

.hero-text p {
  color: var(--White);
  margin-bottom: var(--space-md);
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.popup-content {
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
  max-width: 364px;
}

.close-btn {
  position: absolute;
  top: 32px;
  right: 8px;
  font-size: 24px;
  color: white;
  cursor: pointer;
  z-index: 1001;
  background: var(--Heading-Text);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* form styles for popup */
.popup-content .hero-form {
  margin: 0 auto;
  width: 100%;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-form {
  max-width: 364px;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-sm);
  text-align: center;
  /* background: rgba(255, 255, 255, 0.15); */
  /* backdrop-filter: blur(10px); */
  /* -webkit-backdrop-filter: blur(10px); */
  background-color: var(--Blue);
  box-shadow: var(--shadow-sm);
}

.hero-form h4 {
  color: var(--White);
  margin-bottom: var(--space-xsm);
}

.hero-form p {
  margin-bottom: var(--space-sm);
  color: var(--White);
}

.hero-form form input,
select,
textarea,
option {
  width: 100%;
  border-radius: 4px;
  border: none;
  margin-bottom: var(--space-xsm);
  padding: var(--space-xsm);
  color: var(--Body-Text);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 400;
  outline: 1px solid var(--White);
  border: 1px solid var(--White);
}

.hero-form form input:focus {
  outline: 1px solid var(--green);
  border: 1px solid var(--green);
}

.hero-form form select:focus {
  outline: 1px solid var(--green);
  border: 1px solid var(--green);
}

.hero-form form textarea:focus {
  outline: 1px solid var(--green);
  border: 1px solid var(--green);
}

.hero-form .btn-appointment-container .btn-appointment {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =====================States Section========================= */

#states{
  background-color: var(--Blue);
  padding: var(--space-lg);
}

.states-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.state-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 132px;
  padding: 0;
  margin: 0;
}

.state-item .counter {
  font-size: 3rem;
  font-weight: 800;
  color: var(--White);
}

.state-item p{
  color: var(--White);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.completed {
  animation: pulse 0.5s ease;
}

/* ===================Services Section======================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--White);
  border-radius: var(--radius-sm);
  padding: var(--space-xl) var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--green);
  transition: height 0.3s ease;
}

.service-card:hover::before {
  height: 100%;
}

.service-icon .scard-icon{
  color: var(--green);
  z-index: 99;
  font-size: 32px;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--Ligh-Grey);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  z-index: 98;
}

.service-card h3 {
  margin-bottom: var(--space-md);
}

.service-card p {
  margin-bottom: var(--space-md);
}

.service-link {
  color: var(--Blue);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.service-link:hover {
  color: var(--blue-dark);
}

.service-link::after {
  content: '→';
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.service-link:hover::after {
  transform: translateX(3px);
}

/* Doctors Section */

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.doctor-card {
  background: white;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-sm);
}

.doctor-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-image img {
  transform: scale(1.05);
}

.doctor-social {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.doctor-card:hover .doctor-social {
  opacity: 1;
}

.doctor-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--Blue);
  transition: all 0.3s ease;
}

.doctor-social a:hover {
  background: var(--Blue);
  color: white;
}

.doctor-info {
  padding: var(--space-md);
  text-align: center;
}

.doctor-info .p-large {
  margin-bottom: var(--space-sm);
  color: var(--green);
}

.experience {
  margin-bottom: var(--space-md);
}

/* Testimonials Section */
#testimonials{
  background-color: var(--Blue);
}

#testimonials .section-title h2{
  color: var(--White);
}

#testimonials .section-title p{
  color: var(--White);
}

#testimonials .section-title h2::after{
  background-color: var(--White);
}

.testimonials-slider {
  max-width: 800px;
  margin: 48px auto 0;
  position: relative;
}

.testimonial {
  display: none;
  transition: opacity 0.5s ease;
}

.testimonial.active {
  display: block;
}

.testimonial-content {
  background: var(--White);
  backdrop-filter: blur(48px);
  padding: 40px;
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-content::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 15px 15px 0;
  border-style: solid;
  border-color: rgba(255,255,255,1) transparent transparent;
}

.rating {
  color: #f59e0b;
  margin-bottom: var(--space-md);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.testimonial-author img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green);
}

.author-info h4 {
  margin-bottom: var(--space-xsm);
  color: var(--Heading-Text);
}

.author-info p {
  color: var(--Heading-Text);
  font-size: 14px;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: white;
  transform: scale(1.2);
}

.slider-dots {
  text-align: center;
  margin-top: var(--space-md);
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
}

.dot.active {
  background-color: var(--green);
}

/* why choose us */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 32px;
  color: var(--green);
  margin-bottom: var(--space-lg);
}

.feature-card h3 {
  margin: var(--space-md) 0;
}

/* Footer Styles */
.site-footer {
  background-color: var(--Heading-Text);
  color: #fff;
  padding: var(--space-xxl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--green);
}

.footer-col p {
  margin-bottom: var(--space-md);
  opacity: 0.8;
}

.social-links-footer {
  display: flex;
  gap: 16px;
}

.social-links-footer a {
  color: #fff;
  background: rgba(255,255,255,0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links-footer a:hover {
  background: var(--Blue);
  transform: translateY(-3px);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #ddd;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--Blue);
  padding-left: 8px;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.contact-info i {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-links a {
  color: #ddd;
  margin-left: 16px;
}

.footer-links a:hover {
  color: var(--Blue);
}

.footer-bottom{
  padding-bottom: 16px;
}




/* Responsive Styles */

/* Desktop */
@media only screen and (min-width: 1025px){
.hero-content{
  height: 100vh;
  
}


#hero-section{
  height: 100vh;
}

}

/* tablet */
@media only screen and (min-width: 768px) and (max-width: 1024px){
 
  .container{
  padding: 0px 16px;
 }

  .top-bar-container{
  display: none;
 }

 .main-header{
  padding: var(--space-xsm) 0px;
 }

}

/* for mobile devices upto 767 */
@media only screen and (max-width: 767px){

  section{
    padding: var(--space-lg) 0px;
  }

  .container{
  padding: 0px 16px;
  }

h1 {
  font-size: 1.75rem; 
  line-height: 1.25;  
}

h2 {
  font-size: 1.5rem;  
  line-height: 1.3;    
}

h3 {
  font-size: 1.25rem;  
  line-height: 1.35;   
}

h4 {
  font-size: 1.125rem; 
  line-height: 1.4;    
}

p {
  font-size: 14px;     
  line-height: 1.5;    
  color: var(--Body-Text);
  font-weight: 400;
}
  .top-bar-container{
  display: none;
 }
   .nav-list {
    position: fixed;
    top: 56px;
    width: 100%;
    background-color: var(--White);
    flex-direction: column;
    text-align: center;
    padding: var(--space-md) 0;
    box-shadow: var(--shadow-md);
    transition: 0.5s ease;
    z-index: 200;
    display: none;
  }

     .nav-list li a{
    padding: 0px 0px 24px 0px;
  }

 .nav-list.active {
    display: block;
    right: 0;
  }
  
  .mobile-menu-toggle {
    display: block;
  }

  
  .states-container{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
    justify-content: center;
  }

  .states-container .state-item .counter{
    font-size: 2rem;
  }


}
