/* ========== ROOT VARIABLES ========== */
:root {
  --primary-color: #8aa682;
  --primary-dark: #7a9572;
  --bg-light: #fdfcf9;
  --bg-soft-green: #f8faf7;
  --text-dark: #1a1a1a;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ========== BASE STYLES ========== */
body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.serif {
  font-family: "Playfair Display", serif;
}

.py-100 {
  padding: 100px 0;
}
.tracking-widest {
  letter-spacing: 0.15em;
}

/* ========== NAVIGATION ========== */
.navbar {
  background-color: transparent;
  transition: var(--transition);
  padding: 1rem 0;
  z-index: 1100;
}

.navbar.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
}

.navbar-brand img {
  height: 60px;
  width: 210px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  position: relative;
}

@media (min-width: 992px) {
  .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
  }
  .nav-link:hover::after {
    width: 100%;
  }
}

@media (max-width: 991px) {
  .navbar {
    background-color: white !important;
  }
  .navbar-brand img {
    width: 180px;
    height: auto;
  }
  .nav-scrolled img.nav-logo {
    width: 119px;
  }
}

/* ========== HERO SECTION CORE ========== */
/* ========== HERO SECTION FIXES ========== */
.hero-section {
  min-height: 100vh;
  background-image: url("https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?auto=format&fit=crop&q=80&w=2000");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden; /* Prevents logo from causing scrollbars */
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(253, 252, 249, 1) 15%,
    rgba(253, 252, 249, 0.95) 45%,
    rgba(253, 252, 249, 0.4) 100%
  );
  z-index: 0;
}

.z-index-1 { z-index: 1; }

/* ========== NEW LOGO DESIGN ========== */
.hero-logo-container {
    position: relative;
    padding: 30px;
}

/* Adds a soft aura behind the black circle so it blends with the light bg */
.logo-backdrop-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(40px);
    z-index: -1;
}

.logo-circle-frame {
    /* Fluid size: Min 260px, preferred 30vw, Max 450px */
    width: clamp(260px, 28vw, 450px); 
    aspect-ratio: 1/1;
    background-color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid rgba(212, 175, 55, 0.4); /* Elegant gold border */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    transition: all 0.5s ease;
    animation: floatingHero 6s ease-in-out infinite;
}

.logo-inner-img {
    width: 75%; /* Gives padding inside the circle */
    height: 75%;
    object-fit: contain;
}

/* Floating Animation */
@keyframes floatingHero {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

/* ========== RESPONSIVE POLISH ========== */

/* For smaller laptops/tablets - prevent overlap */
@media (max-width: 1199px) {
    .logo-circle-frame {
        width: 320px;
    }
}

/* Tablet & Mobile Switch */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-overlay {
        /* Darken background slightly on mobile for better text contrast */
        background: rgba(253, 252, 249, 0.94);
    }

    .logo-circle-frame {
        width: 250px;
        margin: 2rem auto;
    }

    .display-1 {
        font-size: 3rem;
    }
}

/* Small Phones */
@media (max-width: 575px) {
    .display-1 { font-size: 2.4rem; }
    .logo-circle-frame { width: 200px; }
}
/* ========== SERVICE CARDS ========== */
.service-card {
  height: 100%;
  transition: var(--transition);
  background: white;
  padding-bottom: 20px;
  border-radius: 1.5rem;
}

.img-wrapper {
  position: relative;
  height: 250px;
  border-radius: 1.5rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover img {
  transform: scale(1.05);
}

.icon-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* ========== ABOUT DOCTOR ========== */
.check-circle {
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-right: 12px;
  flex-shrink: 0;
}

/* ========== SPORTS INJURIES ========== */
.condition-tag {
  background: white;
  padding: 10px 20px;
  border-radius: 50px;
  display: inline-block;
  margin: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(138, 166, 130, 0.2);
  transition: var(--transition);
}

.condition-tag:hover {
  background: var(--primary-color);
  color: white;
}

/* ========== LOCATION & CONTACT ========== */
.info-box {
  background-color: var(--text-dark);
  color: white;
  padding: 3rem;
  height: 100%;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 991px) {
  .py-100 {
    padding: 60px 0;
  }
  .hero-section {
    text-align: center;
    padding-top: 120px;
  }
  .hero-overlay {
    background: rgba(253, 252, 249, 0.94);
  }
  .info-box {
    padding: 2.5rem 1.5rem;
  }
  iframe {
    min-height: 350px !important;
  }
}

@media (max-width: 576px) {
  .navbar-brand img {
    width: 150px;
  }
}

/* ========== FOOTER ========== */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
