*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

html{
    scroll-behavior: smooth;
}

/* -------------------header--------------------- */

#header{
    width: 100%;
    height: 100vh;
    background-image: url(/Images/F0348487-Physiotherapist_and_patient.jpg);
    background-size: cover;
    background-position: center;  
    margin-bottom: 0;  
    animation: slideDown 0.8s ease forwards;
}




#menu {
    display: none;
    cursor: pointer;
    /* z-index: 1100; */
    font-size: 32px;
  }

nav{
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    background-color: rgb(91, 169, 91);
    padding: 20px 60px;
    color: #fff;
    font-size: 18px;
    display: transparent;
    opacity: 0.9;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
   
}


@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.logo1{
 height: 40px;
 width: auto;
 object-fit: contain;
}

.logo2{
    font-size: 18px;
}

.links{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    list-style: none;
    gap: 20px;
    color: #fff;
}

.links li a{
    text-decoration: none;
    color: #fff;
    transition: 0.6s ease;
}

.links li a:hover{
    color: rgb(91, 169, 91);
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 50px;
}


.btn {
    width: 100px;
    height: 40px;
    border-radius: 20px;
    color: rgb(91, 169, 91);
    background-color:#fff;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    box-shadow: black 0px 4px 8px, rgb(45, 38, 38) 0px 6px 20px;
}

.btn:hover{
    background-color: rgb(91, 169, 91);
    color: #fff;   
}

.header-text{
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    color: black;
    /* text-align: center; */
    justify-content: center;
    margin-left: 5%;
    line-height: 40px;
}

.header-text h1{
    font-size: 50px;
    margin-bottom: 20px;
    font-weight: 1000;
}

.header-text p{
    font-size: 18px;
    margin-bottom: 30px;
}

.btn1{
    width: 30%;
    height: 40px;
    border-radius: 20px;
    color: white;
    background-color: rgb(91, 169, 91);
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.btn2{
    width: 20%;
    height: 40px;
    border-radius: 20px;
    color: rgb(91, 169, 91);
    background-color:#fff;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    margin-left: 20px;

}

.btn2:hover{
    background-color: rgb(91, 169, 91);
    color: #fff;   
}   


.btn1:hover{
    background-color: #fff;
    color: rgb(91, 169, 91);
}

/* SERVICES */

.services-section{
    width: 100%;
    min-height: 100vh;
    background-color: rgb(188, 246, 188);
    margin-top: 0;
     background: linear-gradient(135deg, #a9fab0, #eaf4fb);
     padding: 20px 0;
}

.services {
  padding: 80px 10%;
  text-align: center;
}

.service-title{
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.service-header {
    line-height: 30px;
    margin-bottom: 5px;
    margin-left: 30px; 
}



.service-header p{
    font-size: 1.2rem;
    color: rgb(64, 61, 61);
    width: 60%;
}

.service-header h2{
    font-size: 2.5rem;
    color: black;
    font-weight: 1000;
    width: 50%;
    line-height:50px;
    margin-bottom: 30px;
}

.services h2 {
  margin-bottom: 50px;
  font-size: 2.2rem;
}

.service-grid {
  display: flex;
  gap: 30px;
  text-align: center;
  justify-content: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-grid:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}


.service-card {
  background: #ffffff;
  width: 320px;
  padding: 35px 28px;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0ea5e9, transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover::before {
  opacity: 0.1;
}
.service-card:hover {
  transform: translateY(-12px);
}


.service-card img {
    width: 60px;
    height: 60px;
    color: blue;
}   

.service-card p {
    margin-top: 15px;
    font-size: 1rem;
    color: rgb(64, 61, 61)
}

.service-card:hover {
  background: rgb(91, 169, 91);
  color: white;
  transform: translateY(-10px);
}



/* CONDITIONS */
.conditions-section {
  padding: 80px 8%;
  background: #f9fbfd;
  font-family: 'Poppins', sans-serif;
}

.conditions-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.conditions-header .subtitle {
  color: #1a8cff;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 14px;
}

.conditions-header h2 {
  font-size: 36px;
  margin: 15px 0;
  color: #0b2545;
}

.conditions-header .description {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.condition-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  cursor: pointer;
}

.condition-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.condition-card h3 {
  font-size: 20px;
  margin: 20px 20px 10px;
  color: #0b2545;
}

.condition-card p {
  font-size: 15px;
  color: #666;
  margin: 0 20px 25px;
  line-height: 1.5;
}

.condition-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(26, 140, 255, 0.2);
}

@media (max-width: 768px) {
  .conditions-header h2 {
    font-size: 28px;
  }
}



/* ABOUT US */

.about {
  padding: 80px 10%;
  background: #f8fafc;
  animation: heroFade 1.2s ease forwards;
}

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


.about-container {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  background-size: cover;
  background-position: center;
}

.about-content {
  flex: 1;
}

.about-content h5 {
  color: #0ea5e9;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.about-content h2 {
  font-size: 36px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 18px;
}

/* OUR GALLERY */

.gallery {
  padding: 90px 10%;
  background: #f8fafc;
}


.gallery-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.gallery-header h2 {
  font-size: 36px;
  color: #0f172a;
  margin-bottom: 12px;
}

.gallery-header p {
  color: #475569;
  font-size: 16px;
}


.gallery-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  perspective: 1200px;
}


.gallery-item {
  width: 260px;
  height: 340px;
  border-radius: 20px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  gap: 50%;
}

/* IMAGE */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  
}

/* HOVER EFFECT */
.gallery-item:hover {
  transform: translateY(-18px) rotateX(8deg) rotateY(-8deg);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.25);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* VARIATION FOR NATURAL LOOK */
.gallery-item:nth-child(2):hover {
  transform: translateY(-18px) rotateX(-6deg) rotateY(10deg);
}

.gallery-item:nth-child(4):hover {
  transform: translateY(-18px) rotateX(10deg) rotateY(6deg);
}


/* ----------------------Testimonials---------------------- */
.testimonials {
    padding: 20px 60px;
    align-items: center;
    justify-content: center;
    background: #f8fafc;

}


.testimonials-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

h1 {
  color: #4c6249;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
}

h1 span {
  font-weight: 800;
  color: #4c6249;
}

.divider {
  width: 80px;
  height: 4px;
  background: #45476e;
  margin: 25px auto 60px;
  border-radius: 2px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  color: black;
  padding: 35px 30px;
  border-radius: 50px;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: background 0.5s, transform 0.5s;
}

.card:hover{
    background-color:rgb(169, 228, 167);
    transform: translateY(-10px);
    box-shadow: 0 10px 25px white;
}


.card h3 {
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
}

.card h3::after {
  content: "";
  width: 35px;
  height: 3px;
  background: #ff004f;
  position: absolute;
  left: 0;
  bottom: -8px;
  border-radius: 2px;
}

.card ul {
  list-style: none;
  margin-top: 20px;
}

.card ul li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  font-size: 15px;
}

.card ul li::before {
  content: "✓";
  color: #ff004f;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.card ul li:hover {
   content: "✓";
   color: white 
}

.card p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.line{
    display: block;
    width: 40px;
    height: 2px;
  background: #45476e;
    margin: 0 auto 10px;
}

/* CONTACT US */
.contact{
    height: 20%;
    padding: 20px 60px;
}

.container{
  gap: 20px;
}
.contact-right{
    flex-basis: 35%;
    margin-top: 0;
    font-size: 30px;
    margin-left: 40px;
}
form textarea::placeholder,
form input::placeholder {
    color: #555;
}
form input,
form textarea {
    color: #000 !important;
}
form textarea {
    color: #000;
}
.row{
    display: flex;
}
.contact-right{
    flex-basis: 60%;
}
.contact-left p{
    margin-top: 30px;
}


.btn1:hover{
    color:black ;
    background-color: #fff;
}

.contact-right form{
    width:100%;
}

form input, form textarea{
    width: 100%;
    border:0;
    outline: none;
    background: #f0f0f0;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}

.social-icons{
    margin-top: 30px;
}
.social-icons i{
    text-decoration:none ;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}
.social-icons i:hover{
    color:#0ea5e9;
    transform: translateY(-5px);
}
.copyright{
    display: flex;
    justify-content: space-between;
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
    color: white;
    padding: 20px 60px;
}
.copyright p{
   transition: 0.3s ease;
}

.copyright p:hover{
    color: #0400ff;
}

.policy{
    display: flex;
    justify-content: space-between;
    margin-left: 20px;
    color: #fff;
    cursor: pointer;
    gap: 20px;
} 



.btn,
.btn1,
.btn2 {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover,
.btn1:hover,
.btn2:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}










@media (max-width: 768px) {

  body{
    overflow-x: hidden;
    margin: 0;
  }

  .header-text p{
    font-weight: 700;
  }

  nav{
  min-height: 5vh;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0;
  }
  
  .logo2 {
    display: none;
  }

  .reach {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
    width: 70%;
  }

  /* Hide menu initially */
  #menu {
    display: block;
    margin-top: 10px;
    /* margin-left: 50vh; */
  }


  .links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: black;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 25px 20px;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    transition: all 0.35s ease;
    display: none;
  }

  /* When active */
  .links.active{
    display: block;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;

  }

  .links li {
    width: 100%;
  }

  .links a {
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    color: #222;
  }

  .links a:hover {
    color: rgb(91, 169, 91);
  }

  .links .btn {
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    font-size: 0.95rem;
    display: none;
  }

  /* -------- Hero Section -------- */
  .header-text {
    text-align: center;
    margin-top: 50px;
  }

  .header-text h1 {
    font-size: 1.6rem;
  }

  .reach {
    flex-direction: column;
    gap: 14px;
  }

  .btn1,
  .btn2 {
    width: 100%;
  }

   .about-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .about-image img {
    width: 100%;
    max-width: 360px;
    margin: auto;
    border-radius: 16px;
  }

  /* ================= SERVICES ================= */
  
.services-section {
  padding: 60px 18px;
  }

.service-header {
  margin-bottom: 40px;
  width: 100%;
  margin-left: 0;
}

  .service-header h2 {
  font-size: 1.7em;
  line-height: 1.4;
  margin-bottom: 20px;
  width: 100%;
  }

  .service-header p{
  font-size: 1rem;
  width: 100%;
  margin: auto;
  }

  .service-title {
  font-size: 1.2rem;
  }

 

  .service-grid {
  padding: 20px 60px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  /* gap: 22px; */
  }

  .service-card {
    padding: 28px 20px;
    
  }
  
  /* =====================conditions================= */ 
   .conditions-header h2 {
    font-size: 28px;
  }



  /* ================= TESTIMONIALS ================= */
  .cards {
    flex-direction: column;
    gap: 25px;
    align-items: center;
    justify-content: center;
  }

  .card {
    width: 100%;
    padding: 22px;
  }

  /* ================= CONTACT ================= */
  .row {
    flex-direction: column;
    gap: 35px;
  }

  .contact-left {
    font-size: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 0;
  }
   .contact-right {
    font-size: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 0;
  }
  

  .contact-left,
  .contact-right {
    width: 100%;
    text-align: center;
  }

  .contact-right label {
    text-align: left;
  }

  .contact-right input,
  .contact-right textarea {
    width: 100%;
  }

  /* ================= GALLERY ================= */
  .gallery-container {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gallery-item img {
    width: 100%;
    border-radius: 16px;
  }

  /* ================= FOOTER ================= */
  .copyright {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 20px;
  }

  .policy {
    flex-direction: column;
    gap: 6px;
  } 
}


