/* ==========================
   BASE RESET & TYPOGRAPHY
========================== */
* { margin:0; padding:0; box-sizing:border-box; font-family:'Inter', sans-serif; }
body { background:#fdfdfd; color:#222; line-height:1.6; scroll-behavior:smooth; transition: background 0.5s, color 0.5s; }
a { text-decoration:none; outline:none; }
:focus { outline:3px solid #d4af37; outline-offset:2px; }

/* ==========================
   CSS VARIABLES 
========================== */
:root {
  --primary-color: #d4af37;
  --secondary-color: #f5e6b2;
  --bg-color: #121212;
  --text-color: #f1f1f1;
  --card-bg: rgba(30,30,30,0.85);
  --overlay-color: rgba(0,0,0,0.55);
}

body { background: var(--bg-color); color: var(--text-color); }

/* ==========================
   PAGE TRANSITIONS
========================== */
.fade-in-page { opacity: 0; animation: fadeInPage 0.4s forwards; }
.fade-out-page { opacity: 1; animation: fadeOutPage 0.4s forwards; }

@keyframes fadeInPage {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes fadeOutPage {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* ==========================
   HERO SECTION
========================== */
header {
  position:relative; width:100%; height:100vh; overflow:hidden;
}

#heroParticles { position:absolute; top:0; left:0; width:100%; height:100%; z-index:0; }

.hero-slide {
  position:absolute; top: 0; left: 0; width:100%; height:100%; background-size:cover; background-position:center;
  opacity:0; transition:opacity 1s ease; z-index:1;
}
.hero-slide.active { 
  opacity:1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay { position:absolute; top:0; left:0; width:100%; height:100%; background:var(--overlay-color); z-index:1; }

.hero-content {
    position: relative; /* Changed from absolute */
    text-align: center;
    color: #fff;
    z-index: 2;
    opacity: 0;
    animation: fadeSlide 1.2s forwards;
    max-width: 800px; /* Prevents text from stretching too wide */
    padding: 20px;
}
.hero-content h1 { font-family:'Montserrat',sans-serif; font-weight:700; font-size:3rem; margin-bottom:15px; text-shadow:0 4px 15px rgba(0,0,0,0.6);}
.hero-content .slogan { font-size:1.3rem; margin-bottom:20px; text-shadow:0 3px 10px rgba(0,0,0,0.5); }
.btn-hero {
  padding:12px 28px; background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));
  color:#222; border-radius:25px; font-weight:600; transition:0.4s; position:relative; overflow:hidden;
}
.btn-hero::after {
  content:''; position:absolute; top:0; left:0; width:100%; height:100%;
  background:rgba(255,255,255,0.2); transform:scaleX(0); transform-origin:left; transition:transform 0.4s;
}
.btn-hero:hover::after { transform:scaleX(1); }

/* Hero nav arrows */
.hero-prev, .hero-next {
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(0,0,0,0.4); color:#fff; border:none; padding:12px; border-radius:50%;
  font-size:1.8rem; cursor:pointer; z-index:2; transition:0.3s;
}
.hero-prev:hover, .hero-next:hover { background:rgba(0,0,0,0.7); }
.hero-prev { left:20px; }
.hero-next { right:20px; }

@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(30px); } /* Starts slightly lower */
    100% { opacity: 1; transform: translateY(0); }  /* Ends at perfect center */
}


/* ==========================
   FOOTER SOCIAL ICON
========================== */



footer {
    position: relative;
}

.footer-social {
    position: absolute;
    right: 25px;
    bottom: 20px;
}

.footer-social img {
    width: 42px;
    height: 42px;
    display: block;
    transition: transform 0.3s ease;
}

.footer-social img:hover {
    transform: scale(1.08);
}
/* ==========================
   NAVIGATION
========================== */
nav {
  background:rgba(34,34,34,0.85); backdrop-filter:blur(10px);
  position:sticky; top:0; z-index:1000;
}
.nav-container { max-width:1100px; margin:auto; display:flex; justify-content:space-between; align-items:center; padding:10px 20px; }
.nav-links { list-style:none; display:flex; gap:10px; }
.nav-links li a {
  color:#fff; padding:10px 15px; border-radius:5px; position:relative; transition:0.3s; font-weight:500;
}
.nav-links li a::after {
  content:''; display:block; height:2px; background:var(--primary-color); width:0; transition:width 0.3s; position:absolute; bottom:0; left:0;
}
.nav-links li a:hover::after, .nav-links li a.active::after { width:100%; }

.hamburger { display:none; font-size:2rem; cursor:pointer; color:#fff; }

/* ==========================
   SECTIONS & SERVICE CARDS
========================== */
.section { max-width:1000px; margin:auto; padding:60px 20px; }
h2 { text-align:center; margin-bottom:40px; font-family:'Montserrat',sans-serif; font-weight:600; font-size:2rem; }

.service-cards { display:flex; flex-wrap:wrap; justify-content:center; gap:25px; }
.service-card {
  flex:1 1 200px; background:var(--card-bg); backdrop-filter:blur(10px); border-radius:15px;
  text-align:center; padding:30px; transition:transform 0.5s ease, box-shadow 0.5s ease; cursor:pointer; box-shadow:0 20px 40px rgba(0,0,0,0.08); transform-style: preserve-3d;
}
.service-card:hover, .service-card:focus { transform:translateY(-15px) rotateX(3deg) rotateY(3deg); box-shadow:0 25px 50px rgba(0,0,0,0.15); }
.service-card .icon { font-size:2.5rem; display:block; margin-bottom:15px; }

/* ==========================
   TEAM GRID
========================== */
.team-grid { display:flex; flex-wrap:wrap; justify-content:center; gap:25px; }
.team-card {
  width:220px; background:var(--card-bg); backdrop-filter:blur(8px); border-radius:15px;
  text-align:center; padding:20px; transition:transform 0.5s ease, box-shadow 0.5s ease; transform-style: preserve-3d;
}
.team-card img { 
  width: 100%; 
  height: 250px; /* Set a fixed height that looks good for your design */
  object-fit: cover; /* This crops the image to fit the dimensions without stretching */
  object-position: top; /* Ensures the doctor's face stays in frame if the image is tall */
  border-radius: 12px; 
  margin-bottom: 10px; 
}
.team-card:hover, .team-card:focus { transform:translateY(-10px) scale(1.03) rotateY(2deg); box-shadow:0 25px 50px rgba(0,0,0,0.12); }

/* ==========================
   TESTIMONIALS
========================== */
.testimonial-carousel { max-width:700px; margin:auto; text-align:center; perspective:1000px; }
.testimonial {
  display:none; background:#222; padding:25px; border-left:5px solid var(--primary-color);
  border-radius:10px; font-style:italic; transition:transform 0.6s ease, opacity 0.6s ease;
}
.testimonial.active { display:block; opacity:1; transform:rotateY(0); }

/* ==========================
   CONTACT FORM
========================== */
.contact-form { display:flex; flex-direction:column; max-width:400px; margin:auto; gap:20px; }
.form-group { position:relative; }
.contact-form input, .contact-form textarea {
  padding:12px; width:100%; border-radius:8px; border:1px solid #ccc; background:transparent; transition:0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color:var(--primary-color); outline:none; }
.contact-form label {
  position:absolute; top:12px; left:12px; color: #fff; font-size:0.9rem; pointer-events:none; transition:0.3s;
}
.contact-form input:focus + label, .contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label, .contact-form textarea:not(:placeholder-shown) + label {
  top:-10px; left:10px; font-size:0.8rem; color:var(--primary-color); background:var(--bg-color); padding:0 4px; border-radius:3px;
}
.contact-form button {
  padding:14px; border:none; background:var(--primary-color); color:#222; cursor:pointer;
  border-radius:25px; font-weight:600; transition:0.4s; position:relative; overflow:hidden;
}
.contact-form button:hover::after { transform:scaleX(1); }
.contact-form input,
.contact-form textarea {
  padding:12px;
  width:100%;
  border-radius:8px;
  border:1px solid #ccc;
  background:transparent;
  color:#fff;              /* ADD THIS */
  transition:0.3s;
}
/* ==========================
   BUTTON RIPPLE EFFECT
========================== */
button.ripple::after {
  content:''; position:absolute; top:0; left:0; width:100%; height:100%; background:rgba(255,255,255,0.3); transform:scaleX(0); transition:transform 0.4s; pointer-events:none;
}
button.ripple:active::after { transform:scaleX(1); transition:0s; }

/* ==========================
   MAP CONTAINER
========================== */
.map-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
}
.map-container iframe { position: absolute; top:0; left:0; width:100%; height:100%; border:0; }

/* ==========================
   NEW PATIENT BUTTON
========================== */
a.btn {
  display:inline-block; padding:12px 25px; background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));
  color:#222; border-radius:25px; font-weight:600; transition:0.4s; position:relative; overflow:hidden;
}
a.btn:hover::after { transform:scaleX(1); }

/* ==========================
   FOOTER
========================== */
footer { background:#222; color:#fff; text-align:center; padding:30px; font-size:0.9em; }

/* ==========================
   FADE-IN SECTIONS
========================== */
.fade-in { opacity:0; transform:translateY(20px); transition:all 0.8s ease-out; }
.fade-in.visible { opacity:1; transform:translateY(0); }

/* ==========================
   TOP-LEFT HOME BUTTON
========================== */
.home-btn {
  position: fixed; top:20px; left:20px;
  background: linear-gradient(135deg,var(--primary-color),var(--secondary-color));
  color:#222; font-weight:600; padding:10px 18px; border-radius:25px;
  display:flex; align-items:center; gap:6px; text-decoration:none;
  box-shadow:0 4px 15px rgba(0,0,0,0.2);
  z-index:1000; transition:0.3s;
}
.home-btn:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,0.3); }
.home-btn span.arrow { font-size:1.2rem; }

/* Logo in nav */


/* Center everything */
.hero-content {
  text-align: center;
}

/* HERO WRAPPER */
.hero-wrapper {
  position: relative;
  overflow: hidden;
}

/* Make slides positioned correctly */
.hero-slide {
  position: relative;
}

/* Overlay layer */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

/* Content above overlay */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* STATIC HERO LOGO */
.hero-logo {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);

  width: 1020px;
  max-width: none;        /* Bigger */
  

  padding: 10px 20px;    /* Less padding since no border */

  background: transparent;   /* No glass box */
  
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.6));

  transition: transform 0.4s ease, filter 0.4s ease;
  z-index: 10;
}

.hero-wrapper {
  position: relative;
}
/* ==========================
   ACCESSIBILITY & THEME TOGGLE
========================== */
/* ==========================
   ACCESSIBILITY & THEME TOGGLE (Top Bar)
========================== */
.accessibility-bar {
    position: fixed;
    top: 7px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 1000;
}

.accessibility-bar button {
    padding: 6px 12px;
    border-radius: 25px;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #222;
    transition: 0.3s;
}

.accessibility-bar button:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Ensure sections have a physical footprint even before they fade in */
section {
    scroll-margin-top: 100px; /* Adjust this to your header height */
    min-height: 10vh;
    position: relative;
}


#heroLogo {
    width: 35vw;       /* 35% of viewport width */
    max-width: 300px;  /* never bigger than 300px */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ==========================
   READ MORE BUTTON STYLING
========================== */
.team-card .read-more-btn {
    background: none;
    border: none;
    color: #d4af37;          /* gold color */
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.team-card .read-more-btn:hover {
    color: #ffd700;          /* brighter gold on hover */
    transform: scale(1.05);
    text-decoration: underline;
}

.team-card .read-more-btn:focus {
    outline: none;
}

/* MISSION SECTION */
#mission {
    padding: 60px 20px; /* slightly smaller vertical padding */
    transition: background-color 0.5s ease;
    background-color: #222; /* keep background clean */
}

#mission .mission-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 30px; /* balanced gap between image and text */
}

#mission .mission-image {
    flex: 0 0 250px; /* fixed width for owner image */
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#mission .mission-image img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

#mission .mission-text {
    flex: 1 1 500px;
    text-align: left;
}

#mission h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #d4af37; /* gold accent */
}

#mission .mission-text p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #fff;
    transition: color 0.2s ease;
}

/* ==========================
   ACCEPTED INSURANCES SECTION - INDIVIDUAL BOXES
========================== */
#insurance {
    padding: 60px 20px;
    background-color: transparent; /* no section box */
    text-align: center;
}

#insurance h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #d4af37; /* gold accent for heading */
}

#insurance-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    font-size: 1rem;
}

#insurance-list li {
    padding: 10px 16px;
    border-radius: 12px;
    background-color: #222; /* light neutral box */
    color: #f4f4f4;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
    cursor: default;
}

#insurance-list li:hover {
    background-color: #d4af37; /* gold on hover */
    color: #fff;
    transform: translateY(-2px);
}


/* ==========================
   INSURANCES SECTION
========================== */
#insurance-list {
    display: flex;             /* arrange items in a row */
    flex-wrap: wrap;           /* wrap to next line if needed */
    gap: 20px;                 /* spacing between items */
    list-style: none;          /* remove bullets */
    padding: 0;
    margin: 0;
}

/* ==========================
   OFFICE CAROUSEL
========================== */

#office-carousel {
  text-align: center;
  padding: 80px 20px;
}

.carousel {
  position: relative;
  max-width: 1000px;
  margin: 40px auto 0 auto;
  overflow: hidden;
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.carousel-track img {
  width: 100%;
  flex: 0 0 100%;
  height: 500px;
  object-fit: cover;
}

/* Navigation Buttons */

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 28px;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
  left: 20px;
}


/* HERO CONTACT INFO */
.hero-contact {
  margin-top: 20px;
  font-size: 1rem;
  color: #fff;
  line-height: 1.6;
  text-shadow: 0 3px 8px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.hero-contact p {
  margin: 0;
}

.hero-contact .contact-icon {
  margin-right: 6px;
}
/* Add spacing below the contact info to separate buttons */
.hero-content .btn-hero {
    margin-top: 20px; /* space between contact info and button */
    z-index: 10;      /* keep above overlay */
}

/* Optional: add more padding to bottom of hero-content so it doesn't touch bottom */
.hero-content {
    padding-bottom: 60px; /* extra breathing room */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* Responsive adjustments */
@media(max-width:768px){
  .hero-contact {
    font-size: 0.9rem;
  }
}

.carousel-btn.next {
  right: 20px;
}

#insurance-list .insurance-item {
    display: flex;
    align-items: center;
    background: #222;       /* subtle light background for each insurance */
    padding: 10px 15px;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

/* ==========================
   TESTIMONIAL STARS
========================== */
.testimonial-card {
    display: flex;                 /* Put text and stars side by side */
    justify-content: space-between; /* Push stars to the right */
    align-items: center;           /* Vertically center */
}

.testimonial-stars {
    color: gold;                   /* Gold color */
    font-size: 2rem;               /* Make stars bigger */
    margin-left: 1rem;             /* Space from text */
    white-space: nowrap;           /* Prevent wrapping */
}

#insurance-list .insurance-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#insurance-list .insurance-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

#insurance-list .insurance-logo {
    width: 40px;               /* uniform logo size */
    height: 40px;
    object-fit: contain;
    margin-right: 10px;
}

#insurance-list .insurance-name {
    font-weight: 500;
    font-size: 16px;
}


/* Remove inner background colors so it inherits */

/* Fix: Ensure inactive slides don't catch clicks or confuse the browser */
.hero-slide {
    display: none;
}

.hero-slide.active {
    display: flex; /* Or block/grid depending on your layout */
}

/* Ensure the particles don't block button clicks */
#heroParticles {
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    z-index: 10;
    position: relative;
}

section {
  scroll-margin-top: 100px;
}

/* ==========================
   RESPONSIVE
========================== */
@media(max-width:768px){
  .nav-links{display:none; flex-direction:column; width:100%; background:rgba(34,34,34,0.95); position:absolute; top:60px; left:0;}
  .hamburger{display:block;}
  .section{padding:40px 15px;}
  .hero-content h1{font-size:2rem;}
  .hero-content .slogan{font-size:1rem;}
  .btn-hero{padding:10px 20px;}
  .service-cards, .team-grid{flex-direction:column;align-items:center;}
}

.contact-info-grid a {
    color: #fff;            /* white text */
    text-decoration: none;  /* no underline by default */
    transition: 0.2s;       /* smooth effect on hover */
}

.contact-info-grid a:hover {
    text-decoration: underline; /* show underline on hover */
}

/* Hero contact links */
.hero-contact a {
  color: white;          /* Make text white */
  text-decoration: underline; /* Add underline */
}

.hero-contact a:hover {
  color: #fff; /* Keeps it white on hover */
}