/* Variables - Professional Dental Palette */
:root {
  --primary-color: #0056b3;   /* Trustworthy Blue */
  --secondary-color: #00a8cc; /* Clean Cyan/Teal */
  --accent-color: #ff6b6b;    /* Warm Alert/CTA */
  --bg-light: #f8f9fa;        /* Light Grey Background */
  --text-dark: #333333;       /* Dark Grey Text */
  --text-light: #666666;      /* Medium Grey Text */
  --white: #ffffff;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  --container-width: 1200px;
  --radius: 8px;
  --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-color);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 50px;
  font-weight: 500;
  border: 2px solid var(--secondary-color);
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 168, 204, 0.2);
}

.btn:hover {
  background-color: transparent;
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 4px 6px rgba(0, 86, 179, 0.2);
}

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

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
  padding: 15px 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary-color);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--primary-color);
}

/* Hero Section */
.hero {
  height: 90vh;
  min-height: 600px;
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url("https://images.unsplash.com/photo-1629909613654-28e377c37b09?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80") no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-content {
  max-width: 600px;
}

.hero-tag {
  display: inline-block;
  background-color: rgba(0, 168, 204, 0.1);
  color: var(--secondary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--primary-color);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

/* Services Section */
.services {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--secondary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-img-wrapper {
  height: 200px;
  width: 100%;
  margin-bottom: 25px;
  border-radius: var(--radius);
  overflow: hidden;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* About Section */
.about {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  position: relative;
}

.about-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.experience-badge {
  position: absolute;
  bottom: 30px;
  right: -30px;
  background-color: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  text-align: center;
  border-left: 4px solid var(--secondary-color);
}

.experience-badge h4 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  line-height: 1;
  margin-bottom: 5px;
}

.experience-badge p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-features {
  margin-top: 30px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.check-icon {
  color: var(--secondary-color);
  background-color: rgba(0, 168, 204, 0.1);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Stats Section */
.stats {
  background-color: var(--primary-color);
  padding: 60px 0;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Gallery Section */
.gallery {
  padding: 100px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-quote {
  color: var(--secondary-color);
  font-size: 2rem;
  position: absolute;
  top: 20px;
  right: 20px;
  opacity: 0.2;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-light);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* FAQ Section */
.faq {
  padding: 100px 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  background: var(--white);
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-dark);
}

.faq-question:hover {
  background-color: #f9f9f9;
}

.faq-toggle {
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #fafafa;
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  padding: 20px;
}

/* Appointment CTA */
.cta {
  background: linear-gradient(rgba(0, 86, 179, 0.9), rgba(0, 86, 179, 0.9)), url('../images/clinic.jpg') no-repeat center center/cover;
  background-attachment: fixed;
  padding: 100px 0;
  color: var(--white);
  text-align: center;
}

.cta h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: #cccccc;
  padding: 70px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 25px;
  font-size: 1.2rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-contact i {
  color: var(--secondary-color);
  margin-top: 5px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .experience-badge {
    right: 20px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 1001;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    height: 100vh;
    text-align: center;
    transition: 0.3s;
    padding-top: 80px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    left: 0;
  }

  .hero {
    text-align: center;
    justify-content: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
}
