/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= ROOT COLORS ================= */
:root {
  --primary: #0ea5e9;
  --secondary: #0284c7;
  --accent: #38bdf8;
  --bg: #f8fafc;
  --card: rgba(255, 255, 255, 0.7);
  --text: #0f172a;
  --subtext: #64748b;
}

/* ================= BODY ================= */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #e0f7ff, #ffffff);
  color: var(--text);
}

/* ================= NAVBAR ================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

nav {
  max-width: 95%;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--text);
  padding: 10px 20px;
  border-radius: 30px;
  transition: 0.3s;
}

nav a:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

/* ================= MAIN ================= */
main {
  padding-top: 100px;
}

/* ================= HERO ================= */
.welcome-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
}

.hero-body {
  display: flex;
  max-width: 1200px;
  width: 100%;
  gap: 40px;
  align-items: center;
}

.hero-text-side {
  flex: 1;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero-title span {
  color: var(--primary);
}

/* BUTTON */
.btn-main {
  display: inline-block;
  margin-top: 20px;
  padding: 16px 40px;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
  transition: all 0.3s ease;
}

.btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(14, 165, 233, 0.4);
}

/* PAGINATION DOTS */
.pagination {
  margin-top: 40px;
  display: flex;
  gap: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #cbd5f5;
  border-radius: 50%;
}

.dot.active {
  background: var(--primary);
  width: 30px;
  border-radius: 10px;
}

/* ================= HERO IMAGE ================= */
.hero-image-side {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.main-circle {
  width: 520px;
  height: 520px;
  border-radius: 50%;
  position: relative;
  background: white;
  border: 12px solid #ffffff;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.dentist-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* DISCOUNT BADGE */
.badge-discount {
  position: absolute;
  top: 15%;
  left: -40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  border: 6px solid white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.badge-discount .num {
  font-size: 2rem;
  font-weight: 800;
}

.badge-discount .text {
  font-size: 10px;
  text-align: center;
  padding: 0 10px;
}

/* FLOATING ICONS */
.bubble {
  position: absolute;
  background: var(--accent);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  border: 4px solid white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.b1 {
  bottom: 20px;
  left: 0px;
}

.b2 {
  bottom: -25px;
  left: 45%;
}

.b3 {
  bottom: 60px;
  right: -20px;
}

/* ================= SERVICES ================= */
.services-section {
  padding: 80px 20px;
  text-align: center;
}

.services-section h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
}

.services-section ul {
  max-width: 800px;
  margin: auto;
  list-style: none;
}

.services-section li {
  padding: 15px;
  margin: 10px 0;
  background: var(--card);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* ================= TESTIMONIAL ================= */
.testimonial-section {
  padding: 80px 20px;
  text-align: center;
}

.testimonial {
  max-width: 400px;
  margin: 20px auto;
  padding: 25px;
  border-radius: 20px;
  background: var(--card);
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-author {
  margin-top: 10px;
  color: var(--primary);
  font-weight: 600;
}

/* ================= ABOUT ================= */
.about-section {
  padding: 80px 20px;
  text-align: center;
}

.about-section p {
  max-width: 700px;
  margin: auto;
  color: var(--subtext);
  line-height: 1.7;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1000px) {
  .hero-body {
    flex-direction: column;
    text-align: center;
  }

  .hero-image-side {
    justify-content: center;
  }

  .hero-title {
    font-size: 3rem;
  }

  .main-circle {
    width: 350px;
    height: 350px;
  }
}

/* ================= SMOOTH SCROLL ================= */
html {
  scroll-behavior: smooth;
}

/* ================= ABOUT SECTION ================= */

.about-section {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(135deg, #f0fbff, #ffffff);
}

.about-container {
  max-width: 1100px;
  margin: auto;
}

.about-section h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.about-subtext {
  font-size: 1.1rem;
  color: var(--subtext);
  margin-bottom: 50px;
}

/* CARDS */
.about-cards {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.about-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  width: 300px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.about-card:hover {
  transform: translateY(-10px);
}

/* ICON */
.icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.about-card h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

.about-card p {
  font-size: 14px;
  color: var(--subtext);
}

/* ================= REVIEWS SECTION ================= */
.reviews-section {
  padding: 100px 20px;
  background: white;
  text-align: center;
}

.reviews-container {
  max-width: 1000px;
  margin: auto;
}

.reviews-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--primary);
}

/* AVG RATING BOX */
.avg-rating-box {
  background: linear-gradient(135deg, #f0fbff, #ffffff);
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
  margin-bottom: 50px;
  border: 1px solid rgba(14,165,233,0.1);
}

.avg-num {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
}

.avg-num span {
  font-size: 1.5rem;
  color: var(--subtext);
}

.avg-stars {
  font-size: 2rem;
  margin: 10px 0;
}

/* REVIEW FORM CARD */
.review-form-card {
  background: white;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  margin-bottom: 60px;
  text-align: left;
  border: 1px solid rgba(14,165,233,0.1);
}

.review-form-card h3 {
  margin-bottom: 20px;
  color: var(--text);
  font-size: 1.5rem;
}

.review-form-card textarea {
  width: 100%;
  height: 120px;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 20px;
  resize: none;
  transition: 0.3s;
}

.review-form-card textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14,165,233,0.1);
}

/* STAR RATING INPUT */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 30px;
  color: #cbd5e1;
  cursor: pointer;
  transition: 0.2s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #fbbf24;
}

/* REVIEWS LIST */
.reviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.review-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
  text-align: left;
  border: 1px solid rgba(14,165,233,0.05);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.07);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.review-stars {
  font-size: 1.2rem;
}

.review-date {
  font-size: 0.85rem;
  color: var(--subtext);
}

.review-comment {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 15px;
  font-style: italic;
  flex-grow: 1;
}

.review-author {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.success-msg {
  color: #10b981;
  background: #ecfdf5;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 500;
}

.error-msg {
  color: #ef4444;
  background: #fef2f2;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 500;
}

/* ================= NAV LOGO ================= */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: auto;
  max-height: 60px; /* Capping the height to prevent "massive" logo */
  width: auto;
  max-width: 280px;
  display: block;
  transition: transform 0.3s ease;
}

.nav-logo:hover img {
  transform: scale(1.05);
}

/* ================= CONTACT SECTION ================= */
.contact-section {
  padding: 100px 20px;
  background: white;
  text-align: center;
}

.contact-container {
  max-width: 800px;
  margin: auto;
}

.contact-form-card {
  background: white;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  text-align: left;
  border: 1px solid rgba(14,165,233,0.1);
  margin-top: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-family: inherit;
  font-size: 15px;
  transition: 0.3s;
}

.form-group textarea {
  height: 150px;
  resize: none;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14,165,233,0.1);
}

/* ================= REVIEWS REFINEMENT ================= */
.review-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.review-user-icon {
  width: 35px;
  height: 35px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}

.review-author {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ================= FOOTER ================= */
.main-footer {
  background: #0f172a;
  color: #f8fafc;
  padding: 80px 20px 40px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  max-width: 200px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 25px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact p {
  color: #94a3b8;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i {
  color: var(--primary);
  margin-top: 4px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

/* ================= NAV BUTTONS & LOGO ================= */
.btn-login-small {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(14, 165, 233, 0.2);
}

.btn-login-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

/* ================= RESPONSIVE FOOTER ================= */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .footer-links h3::after, .footer-contact h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-logo {
    margin: 0 auto 20px;
  }
}