/* ==== RESET & BASE ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

.about-section,
.services-section,
.gallery-section,
.reviews-section,
.contact-section {
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  background-color: #f8f9fa;
  color: #333;
}

/* ==== GLOBAL CONTAINERS ==== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ==== HEADER ==== */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
}

.header.scrolled {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0;
  padding: 0.5rem 1rem;
  background: #fff;
  border-radius: 25px;
}

.nav img {
  margin-left: 1rem;
  height: 70px;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-list a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #007bff;
  transition: width 0.3s ease;
}

.nav-list a:hover {
  color: #007bff;
}

.nav-list a:hover::after {
  width: 100%;
}

/* ==== BUTTONS ==== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary.mobile-btn {
  display: none;
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #fff;
  color: #007bff;
  border: 2px solid #007bff;
}

.btn-secondary:hover {
  background: #007bff;
  color: #fff;
}

/* ==== NAV TOGGLE (MOBILE) ==== */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
}

.bar {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 4px 0;
  transition: 0.3s;
}

.nav-list.active {
  display: block;
}

/* ==== HERO SECTION with Overlay ==== */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* Dark overlay on top of background images */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* dark filter */
  z-index: -1;
}

.hero-content {
  max-width: 700px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease forwards;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1.5s ease forwards;
}

/* ==== ABOUT SECTION (Improved) ==== */
.about-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
}

.about-img {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
}

.about-img img {
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-img img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 123, 255, 0.25);
}

.about-content {
  flex: 1 1 50%;
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #007bff;
  position: relative;
}

.about-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 4px;
  background: #007bff;
  border-radius: 2px;
}

.about-content p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
  margin-right: 2.5rem;
  line-height: 1.8;
}

/* ==== SERVICES SECTION ==== */
.services-section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card i {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 1rem;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ==== ANIMATIONS ==== */
@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==== SERVICES SECTION ==== */
.services-section {
  padding: 4rem 0;
  background: #fff;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 3rem;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #f9faff;
  border-radius: 15px;
  padding: 2rem 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 123, 255, 0.2);
}

.service-card i {
  font-size: 3rem;
  color: #007bff;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #222;
}

.service-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* CREW EMIRATES DENTIST */

.crew-dentist-section {
  background-color: #fff;
  padding: 4rem 0;
}

.crew-dentist-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.crew-dentist-image {
  flex: 1 1 45%;
  position: relative;
}

.crew-dentist-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.crew-dentist-content {
  flex: 1 1 50%;
}

.crew-dentist-content h2 {
  font-size: 2rem;
  color: #d71920; /* Emirates red */
  margin-bottom: 1rem;
}

.crew-dentist-content h2 span {
  color: #cfa670; /* Gold */
}

.crew-dentist-content .subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  color: #cfa670;
  margin-bottom: 1.5rem;
}

.crew-dentist-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.crew-services {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.crew-services li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.crew-services i {
  color: #cfa670;
  margin-right: 0.5rem;
}

.btn-crew {
  background-color: #d71920;
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-crew:hover {
  background-color: #b8141b;
}

@media (max-width: 768px) {
  .crew-dentist-container {
    gap: 2rem;
  }
  .crew-dentist-content h2 {
    font-size: 1.6rem;
  }
}

/* ==== GALLERY SECTION ==== */
.gallery-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 15px;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ==== ARTICLE SIDE-BY-SIDE ==== */
.article-split {
  padding: 4rem 1rem;
}

.article-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.article-img {
  flex: 1;
}

.article-img img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-content {
  flex: 2;
}

.article-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/*.article-meta {*/
/*  color: #777;*/
/*  font-size: 0.95rem;*/
/*  margin-bottom: 1.5rem;*/
/*}*/

.article-content p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.article-content h2 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.article-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Mobile view: stack image on top */
@media (max-width: 768px) {
  .article-wrapper {
    flex-direction: column;
  }

  .article-title {
    font-size: 1.8rem;
  }

  .article-content p {
    font-size: 1rem;
  }
}

/* ==== ARTICLE SECTION ==== */
.articles-section {
  padding: 4rem 1rem;
  background-color: #f9f9f9;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-content {
  padding: 1.5rem;
}

.article-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.article-content p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

.read-more {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #0056b3;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .articles-section {
    padding: 2rem 1rem;
  }

  .article-card img {
    height: 150px;
  }
}

/* ==== Map Section ==== */
.map-section {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.map-section .section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  position: relative;
}

.map-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* Optional: adjust title size on small screens */
@media (max-width: 768px) {
  .map-section .section-title {
    font-size: 1.5rem;
  }
}

/* ==== REVIEWS SECTION ==== */
.reviews-section {
  padding: 4rem 0;
  background: #f0f4ff;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 3rem;
  font-weight: 700;
}

/* Container to center and control width */
.reviews-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Each review card */
.review-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15);
  padding: 2rem 2.5rem;
  flex: 1 1 300px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 123, 255, 0.3);
}

.review-text {
  font-style: italic;
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.review-stars {
  color: #ffc107; /* Gold stars */
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.review-author {
  font-weight: 700;
  color: #007bff;
  font-size: 1.1rem;
  text-align: right;
}

/* ==== FOOTER SECTION ==== */
.footer-section {
  background: #222;
  color: #eee;
  padding: 3rem 0;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  flex: 1 1 250px;
  text-align: center;
}

.footer-logo img {
  max-width: 350px;
  margin-bottom: 1rem;
}

.footer-logo p {
  font-size: 0.85rem;
  color: #aaa;
}

.footer-social {
  flex: 1 1 200px;
  text-align: center;
}

.footer-social h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #007bff;
}

.social-icons a {
  color: #eee;
  margin: 0 0.7rem;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #007bff;
}

.footer-contact {
  flex: 1 1 100px;
  text-align: center;
}

.footer-contact h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #007bff;
}

.footer-contact p {
  margin: 0.3rem 0;
  font-size: 1rem;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #007bff;
}

.hero-content[data-animate] {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: none !important;
}

/* ==== MOBILE NAVIGATION & GENERAL MOBILE STYLES (max-width: 768px) ==== */
@media (max-width: 768px) {
  /* Navigation toggle */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    margin-left: 1rem;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 1rem;
    background: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    width: 200px;
  }
  .nav-list.active {
    display: flex;
  }
  .nav-list li {
    margin-bottom: 1rem;
  }
  .nav-list li:last-child {
    margin-bottom: 0;
  }
  .nav-list a {
    font-size: 1.1rem;
  } /* Show Book Appointment inside menu */
  .btn-primary.mobile-btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
  } /* Hide original Book Appointment outside menu */
  .btn-primary:not(.mobile-btn) {
    display: none;
  } /* About Section */
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-content {
    flex: none;
    width: 100%;
  }
  .about-content p {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .about-img {
    flex: none;
    width: 100%;
    margin-bottom: 2rem;
  }
  .about-img img {
    max-width: 300px;
  }
  .about-content h2::after {
    content: "";
    position: absolute;
    left: 185px;
    bottom: -8px;
    width: 60px;
    height: 4px;
    background: #007bff;
    border-radius: 2px;
  } /* Reviews Section */
  .reviews-slider {
    flex-direction: column;
    overflow-x: visible;
    gap: 2.5rem;
    padding-bottom: 0;
  }
  .review-card {
    min-width: auto;
    width: 100%;
    max-width: 100%;
    scroll-snap-align: none;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15);
    text-align: center;
    padding: 2.5rem 2rem;
  }
  .review-card h4 {
    text-align: center;
  } /* Contact Section */
  .contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
  }
  .contact-form {
    width: 100%;
    max-width: 100%;
  }
  .form-group {
    width: 100%;
    margin-bottom: 1.5rem;
  }
  .form-group input,
  .form-group textarea {
    width: 100%;
    font-size: 1rem;
    box-sizing: border-box;
  } /* Footer Section */
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    padding: 0 1rem;
  }
  .footer-logo,
  .footer-social {
    flex: none;
    width: 100%;
  }
  .footer-logo img {
    max-width: 250px;
    margin: 0 auto 1rem;
    height: auto;
  }
  .footer-logo p {
    margin-top: 0;
  }
  .footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  .social-icons a {
    margin: 0 0.5rem;
    font-size: 1.3rem;
    transition: color 0.3s ease;
  } /* Initial state for fade-up animation */
  .hero-content[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Make sure it's visible and positioned */
    will-change: opacity, transform;
  } /* When active class is added, show and reset transform */
  .hero-content[data-animate="fade-up"].active {
    opacity: 1;
    transform: translateY(0);
  }
} /* Smaller screens (max-width: 480px) */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .about-content h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
}
