html,
body {
	overflow-x: clip;
	max-width: 100vw;
}

.transparent-navbar {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease, color 0.3s ease;
  z-index: 1000;
}

/* Default (on hero) */
.transparent-navbar .nav-link,
.transparent-navbar .navbar-brand,
.transparent-navbar .btn {
  color: #ffe32b !important;
}

/* On hover (optional) */
.transparent-navbar .nav-link:hover {
  color: rgb(18, 235, 235) !important;
}

/* When scrolled */
.transparent-navbar.scrolled .nav-link,
.transparent-navbar.scrolled .navbar-brand {
  color: #ca540a !important;
}

.transparent-navbar.scrolled .btn {
  background-color: #ca540a;
  color: white !important;
  border: none;
}

.transparent-navbar.scrolled .btn:hover {
  background-color: #d96c28 !important;
}

.hero-section {
  background: linear-gradient(120deg, #e9571d96 0%, #ca540a 100%);
  color: white;
  padding: 8rem 0 4rem;
}

.hero-section img {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px;
}

.btn-yellow {
  background-color: #ffe32b;
  color: white;
  border: none;
}

.btn-outline-yellow {
  background-color:transparent;
  color: white;
  border: 2px solid #fff
}

.btn-yellow:hover ,.btn-outline-yellow:hover {
  background-color: #ffe32b;
  color:#b24a08;
}

.services-circle-section {
  background: radial-gradient(circle at center, #fff7e6 0%, #fef3d6 40%, #fff3cc 100%);
  position: relative;
}

.services-orbit {
  position: relative;
  width: 500px;
  height: 500px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 0 2rem;
  box-sizing: border-box;
  min-height: 600px;
  position: relative;
}

.side-bg {
  background-size:cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 100%;
  opacity: 0.6;
  z-index: 0;
}

.left-bg {
  background-image: url('../images/side-left.jpg');
  align-items: flex-start;
  border-bottom-right-radius: 10%;
  border-top-right-radius: 10%;
}

.right-bg {
  background-image: url('../images/side-right.jpg');
  align-items: flex-end;
  border-bottom-left-radius: 10%;
  border-top-left-radius: 10%;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .left-bg, .right-bg {
    display: none;
  }
}

.center-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ca540a;
  color: #ffe32b;
  border-radius: 50%;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@keyframes orbit-rotate {
  from {
    transform: rotate(calc(60deg * var(--i))) translate(200px) rotate(calc(-60deg * var(--i)));
  }
  to {
    transform: rotate(calc(60deg * var(--i) + 360deg)) translate(200px) rotate(calc(-60deg * var(--i) - 360deg));
  }
}

.orbit-card {
  position: absolute;
  z-index: 2;
  top: 40%;
  left: 40%;
  width: 100px;
  height: 100px;
  background: #ffe32b;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: rotate(calc(60deg * var(--i))) translate(200px) rotate(calc(-60deg * var(--i)));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ca540a;
  text-align: center;
  overflow: visible;
  animation: orbit-rotate 60s linear infinite;
}

.services-orbit:hover .orbit-card {
  animation-play-state: paused;
}

.card-content {
  z-index: 2;
  position: relative;
}

.slide-info {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  background: linear-gradient(135deg, #fffcee, #fff7cc);
  color: #ca540a;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, opacity 0.4s ease;
  white-space: normal;
  opacity: 0;
  max-width: 220px;
  min-width: 180px;
  pointer-events: none;
  text-align: left;
  line-height: 1.4;
  border-left: 4px solid #ca540a;
}


.slide-info::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
}

/* expand right for right-side cards */
.orbit-card:nth-child(2),
.orbit-card:nth-child(3),
.orbit-card:nth-child(7) {
  flex-direction: row;
}

.orbit-card:nth-child(2) .slide-info,
.orbit-card:nth-child(3) .slide-info,
.orbit-card:nth-child(7) .slide-info {
  left: 100%;
  margin-left: 10px;
  transform-origin: left;
}

/* expand left for left-side cards */
.orbit-card:nth-child(5),
.orbit-card:nth-child(6),
.orbit-card:nth-child(4) {
  flex-direction: row-reverse;
}

.orbit-card:nth-child(5) .slide-info,
.orbit-card:nth-child(6) .slide-info,
.orbit-card:nth-child(4) .slide-info {
  right: 100%;
  margin-right: 10px;
  transform-origin: right;
}

/* show on hover */
.orbit-card:hover .slide-info {
  transform: translateY(-50%) scaleX(1);
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.orbit-card i {
  font-size: 1.5rem;
}

.orbit-card p {
  font-size: 0.75rem;
  margin-top: 0.3rem;
  color: #d96c28;
}

.orbit-card:hover {
  transform: scale(1.05) rotate(calc(60deg * var(--i))) translate(200px) rotate(calc(-60deg * var(--i)));
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}


@media (max-width: 576px) {
  .services-orbit {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-content: center;
    align-items: center;
    position: static;
  }

  .orbit-card {
    position: static !important;
    transform: none !important;
    animation: none !important;
    margin: 0 auto;
    width: 100px;
    height: 100px;
  }

  .center-title {
    position: static;
    transform: none;
    background: none;
    color: #ca540a;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0;
    box-shadow: none;
  }

  .slide-info {
    display: none !important;
  }
}


.about-hero {
  height: 60vh;
  background-size: cover;
  background-position: center;
  position: relative;
}


.about-diagonal-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7e6, #ffe);
  padding: 0;
}

.about-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  background-color: moccasin;
  position: relative;
}

.about-image {
  flex: 1;
  min-height: 650px;
  background-image: url('../images/about-bg.jpg');
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0% 100%);
}

.about-content {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ca540a;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 8px 0 20px rgba(0, 0, 0, 0.05);
}

/* Mobile Responsive Layout */
@media (max-width: 768px) {
  .about-wrapper {
    flex-direction: column;
    height: auto;
    padding: 1rem !important;
  }

  .about-image {
    width: 100%;
    height: 250px;
    clip-path: none; /* Remove angled edge on mobile */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  .about-content {
    width: 100%;
    padding: 1.5rem;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 0 10px 10px;
  }

  .glass-card {
    box-shadow: none;
  }

  .about h1 {
    font-size: 2rem;
  }

  .mission-box {
    font-size: 0.95rem;
  }
}


.mission-box {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.25);
  border-left: 4px solid #ca540a;
  border-radius: 10px;
  font-size: 0.9rem;
}

.btn-orange {
  background-color: #ca540a;
  color: white;
  border: none;
}

.btn-orange:hover {
  background-color: #b24a08;
  color:#ffe32b;
}

/* Responsive */
@media (max-width: 768px) {
  .about-wrapper {
    flex-direction: column;
    height: auto;
  }

  .about-image {
    clip-path: none;
    height: 250px;
  }

  .about-content {
    padding: 2rem;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }
}
.doctor-flip-card {
  background: #fff3e0;
  padding: 4rem 0;
}

.flip-card-wrapper {
  perspective: 1000px;
  height: 400px;
  width: 300px;
  position: relative;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.flip-card-wrapper:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Front & Back */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.flip-card-front {
  background: #fbf2e9;
  z-index: 2;
}

.flip-card-back {
  background: #fff7e6;
  transform: rotateY(180deg);
  padding: 2rem;
  align-items: center;
}

.flip-card-front img {
  width: 100%;
  height: 80%;
}


.flip-card-front .info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3); 
  color: white;
  text-align: center;
  backdrop-filter: blur(4px);
}

.contact-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, #fff3e0 20%, #ffe0b2 80%);
  opacity: 0.3;
  z-index: -1;
}

.glass-box {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.contact-info h5 {
  margin-top: 1.2rem;
  color: #ca540a;
  font-weight: 600;
}

.contact-info p {
  margin-bottom: 0.75rem;
  color: #444;
}

.glass-footer {
  background: #ca540a;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer a.footer-link {
  color: #ffffff;
  text-decoration: none;
}

.site-footer a.footer-link:hover {
  text-decoration: underline;
}

.site-footer .newsletter-form input {
  background: rgba(255, 178, 110, 0.1);
  border: none;
  color: #fff;
}

.site-footer .newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.site-footer .newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  box-shadow: none;
}

.text-uppercase{
  color:#ffe32b;
}
