/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== THEME VARIABLES ===== */
:root {
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --primary-color: #00b4d8;   /* brighter dental blue */
  --card-bg: #f8fbff;         /* slightly blue-tinted white */
}


[data-theme="dark"] {
  --bg-color: #0f172a;
  --text-color: #f1f5f9;
  --primary-color: #38bdf8;
  --card-bg: #1e293b;
}


/* Apply theme colors globally */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

h1, h2, h3 {
  color: var(--text-color);
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
  color: var(--text-color);
}

/* ===== HEADER ===== */
header {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 20px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  color: var(--text-color);
  font-size: 24px;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* ===== HERO SECTIONS ===== */
.hero, .about-hero, .services-hero {
  padding: 50px 20px;
  text-align: center;
  color: var(--text-color);
}

.hero h2, .about-hero h2, .services-hero h2 {
  font-size: 36px;
}

.hero p, .about-hero p, .services-hero p {
  max-width: 700px;
  margin: auto;
  font-size: 18px;
  color: var(--text-color);
}

/* HERO IMAGE */
.hero-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===== SECTIONS ===== */
section {
  padding: 50px 0;
}

/* ===== GRID & FEATURES ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.feature {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid var(--primary-color);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* ===== FEATURE CARD ===== */
.feature-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid var(--primary-color);
  text-decoration: none;
  color: var(--text-color);
  min-height: 300px;
  gap: 15px;
}

.feature-card > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card h3 {
  margin: 0 0 15px 0;
  color: var(--text-color);
  font-size: 20px;
}

.feature-card-desc {
  margin: 0;
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.5;
}

.read-more {
  margin-top: auto;
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.feature-card:hover .read-more {
  color: var(--primary-color);
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
  width: 100%;
  grid-auto-rows: minmax(280px, auto);
}

.gallery-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--bg-color);
  color: var(--text-color);
  text-align: center;
  padding: 20px;
  margin-top: 50px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  header .container { flex-direction: column; gap: 15px; }
  nav { flex-wrap: wrap; justify-content: center; }
  .hero h2 { font-size: 24px; }
  .hero p { font-size: 16px; }
}

/* ===== SERVICE IMAGE HELPERS ===== */
.service-image img {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  max-width: 400px;
  width: 100%;
  display: block;
  margin: 15px auto;
}

/* ===== SERVICE CARD FOR TEXT + IMAGE ===== */
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 30px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.service-card.horizontal {
  flex-direction: row;
  gap: 20px;
  text-align: left;
}

.service-card.horizontal .service-text { flex: 1; }
.service-card.horizontal .service-image { flex: 1; }

.service-text h3,
.service-text p,
.service-text a {
  color: var(--text-color);
}

.service-text a {
  color: var(--primary-color);
  text-decoration: none;
}

.service-text a:hover {
  text-decoration: underline;
}
.appointment-section{
padding:60px;
text-align:center;
}

.appointment-section{
padding:60px 20px;
text-align:center;
}

.appointment-form{
max-width:500px;
margin:auto;
display:flex;
flex-direction:column;
gap:15px;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea{
padding:12px;
border-radius:8px;
border:1px solid #ccc;
}

.appointment-form button{
padding:14px;
background:#0077b6;
color:white;
border:none;
border-radius:8px;
cursor:pointer;
}
.theme-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* NAVBAR FIX */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline-block;
}

nav a {
    text-decoration: none;
    font-weight: 500;
}