/* ============================================
   Al Nasr Dental Clinic - Main Stylesheet
   A Modern, Elegant Dental Clinic Website
   RTL Support - Arabic Cairo Font
   ============================================ */

/* ===================== CSS Variables ===================== */
:root {
  /* Primary Colors - Medical Palette */
  --primary-color: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #22d3ee;

  /* Secondary Colors */
  --secondary-color: #14b8a6;
  --secondary-dark: #0d9488;
  --secondary-light: #5eead4;

  /* Neutral Colors */
  --white: #ffffff;
  --off-white: #f8fafc;
  --light-gray: #f1f5f9;
  --medium-gray: #e2e8f0;
  --gray: #94a3b8;
  --dark-gray: #64748b;
  --charcoal: #475569;
  --dark: #1e293b;
  --black: #0f172a;

  /* Accent Colors */
  --accent-gold: #d4af37;
  --accent-blue: #3b82f6;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Font Family */
  --font-family: "Cairo", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-padding: 0 20px;
}

/* ===================== Reset & Base Styles ===================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
  background-color: var(--white);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===================== Typography ===================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--charcoal);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

/* ===================== Utility Classes ===================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: var(--radius-full);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--dark-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(8, 145, 178, 0.4);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

/* ===================== Navigation ===================== */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: transparent;
  padding: 20px 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  padding: 15px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition-base);
}

.navbar.scrolled .logo {
  color: var(--dark);
}

.logo i {
  font-size: 2rem;
  color: var(--primary-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: color var(--transition-base);
}

.navbar.scrolled .nav-links a {
  color: var(--dark);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-light);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--primary-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--white);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.navbar.scrolled .mobile-menu-btn span {
  background: var(--dark);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===================== Hero Section ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("images/hero-bg.png") center center/cover no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.85),
    rgba(8, 145, 178, 0.6)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  max-width: 800px;
}

.hero-title {
  margin-bottom: 20px;
}

.hero-title-main {
  color: rgb(76, 255, 210);
  display: block;
  font-size: 4rem;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.hero-title-sub {
  color: white;
  display: block;
  font-size: 2.5rem;
  font-weight: 600;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-tagline {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-light);
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 35px;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.6s both;
  color: white;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.8s both;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-down {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  transition: all var(--transition-base);
}

.scroll-down:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

/* ===================== About Section ===================== */
.about {
  background: var(--off-white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.02);
}

.about-image-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 25px 30px;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.badge-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
}

.badge-text {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.9;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 25px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--charcoal);
}

.feature-item i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

/* ===================== Services Section ===================== */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-2xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  border: 1px solid var(--medium-gray);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(8, 145, 178, 0.1),
    rgba(20, 184, 166, 0.1)
  );
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.service-icon i {
  font-size: 2rem;
  color: var(--primary-color);
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.service-card:hover .service-icon i {
  color: var(--white);
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 600;
  transition: all var(--transition-base);
}

.service-link:hover {
  color: var(--primary-dark);
  gap: 15px;
}

/* ===================== Doctor Section ===================== */
.doctor {
  background: linear-gradient(
    135deg,
    var(--off-white) 0%,
    var(--light-gray) 100%
  );
}

.doctor-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.doctor-image {
  position: relative;
}

.doctor-image img {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  transition: transform var(--transition-slow);
}

.doctor-image:hover img {
  transform: scale(1.02);
}

.doctor-frame {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--primary-color);
  border-radius: var(--radius-2xl);
  z-index: -1;
}

.doctor-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
}

.doctor-header {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--light-gray);
}

.doctor-header h3 {
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.doctor-specialty {
  display: inline-block;
  background: linear-gradient(
    135deg,
    rgba(8, 145, 178, 0.1),
    rgba(20, 184, 166, 0.1)
  );
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
}

.doctor-bio p {
  margin-bottom: 15px;
  line-height: 1.9;
  color: var(--charcoal);
}

.doctor-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 25px 0;
  padding: 20px 0;
  border-top: 2px solid var(--light-gray);
  border-bottom: 2px solid var(--light-gray);
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--charcoal);
}

.credential-item i {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.doctor-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 25px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--off-white);
  border-radius: var(--radius-xl);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--dark-gray);
  font-weight: 500;
}

/* ===================== Gallery Section ===================== */
.gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 145, 178, 0.9),
    rgba(20, 184, 166, 0.9)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-overlay i {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 10px;
  transform: scale(0.8);
  transition: transform var(--transition-base);
}

.gallery-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1);
}

.gallery-item:hover .gallery-overlay span {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ===================== Lightbox ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.lightbox-close {
  top: 20px;
  left: 20px;
}

.lightbox-prev {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--primary-color);
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
}

.lightbox-caption {
  color: var(--white);
  margin-top: 15px;
  font-size: 1.1rem;
}

/* ===================== Appointment Section ===================== */
.appointment {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.appointment::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.appointment::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.appointment .section-title,
.appointment .section-subtitle {
  color: var(--white);
}

.appointment .section-title::after {
  background: var(--white);
}

.appointment-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.appointment-info h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--white);
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-5px);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon i {
  font-size: 1.3rem;
  color: var(--primary-color);
}

.info-content h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--white);
}

.info-content p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.appointment-form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
}

.appointment-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

.form-group label i {
  color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-family);
  font-size: 1rem;
  border: 2px solid var(--medium-gray);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: all var(--transition-base);
  color: var(--dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 15px center;
  padding-left: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.error-message {
  display: block;
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 5px;
  min-height: 20px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #ef4444;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
}

/* ===================== Contact Section ===================== */
.contact {
  background: var(--off-white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--light-gray);
}

.contact-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.3rem;
  color: var(--white);
}

.contact-details h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--dark);
}

.contact-details p,
.contact-details a {
  color: var(--dark-gray);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.contact-details a:hover {
  color: var(--primary-color);
}

.social-links {
  margin-top: 30px;
  text-align: center;
}

.social-links h4 {
  margin-bottom: 15px;
  color: var(--dark);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icon {
  width: 45px;
  height: 45px;
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-gray);
  transition: all var(--transition-base);
}

.social-icon:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.contact-map {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-container {
  height: 100%;
  min-height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* ===================== Footer ===================== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 15px;
  line-height: 1.7;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.footer-logo i {
  color: var(--primary-light);
  font-size: 1.8rem;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links ul li,
.footer-services ul li {
  margin-bottom: 12px;
}

.footer-links ul a,
.footer-services ul a {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-base);
  display: inline-block;
}

.footer-links ul a:hover,
.footer-services ul a:hover {
  color: var(--primary-light);
  padding-right: 5px;
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact ul i {
  color: var(--primary-light);
  width: 20px;
}

.footer-contact ul a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact ul a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ===================== Success Modal ===================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  padding: 20px;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  padding: 50px 40px;
  border-radius: var(--radius-2xl);
  text-align: center;
  max-width: 400px;
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--secondary-light)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.modal-icon i {
  font-size: 2.5rem;
  color: var(--white);
}

.modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.modal-content p {
  color: var(--dark-gray);
  margin-bottom: 25px;
}

/* ===================== Back to Top Button ===================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* ===================== Animations ===================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== Responsive Design ===================== */

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }

  .hero-title-main {
    font-size: 3rem;
  }

  .hero-title-sub {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctor-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .doctor-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

  /* Navigation */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    box-shadow: var(--shadow-2xl);
    transition: right var(--transition-base);
    z-index: 998;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--dark);
    font-size: 1.1rem;
  }

  .mobile-menu-btn {
    display: flex;
    z-index: 999;
  }

  /* Hero */
  .hero {
    background-attachment: scroll;
  }

  .hero-title-main {
    font-size: 2.5rem;
  }

  .hero-title-sub {
    font-size: 1.5rem;
  }

  .hero-tagline {
    font-size: 1.4rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  /* About */
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-badge {
    bottom: auto;
    top: -15px;
    left: auto;
    right: -15px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 30px 25px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  /* Appointment */
  .appointment-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .appointment-form-wrapper {
    padding: 30px;
  }

  /* Contact */
  .contact-content {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-social {
    order: 1;
  }

  .copyright {
    order: 2;
  }

  /* Lightbox */
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    right: 10px;
  }

  .lightbox-next {
    left: 10px;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  :root {
    --section-padding: 50px 0;
  }

  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  /* Hero */
  .hero-title-main {
    font-size: 2rem;
  }

  .hero-title-sub {
    font-size: 1.3rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* Doctor Stats */
  .doctor-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .doctor-card {
    padding: 25px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Modal */
  .modal-content {
    padding: 30px 20px;
  }

  /* Back to Top */
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    left: 20px;
  }
}

/* Very Small Devices */
@media (max-width: 320px) {
  .hero-title-main {
    font-size: 1.8rem;
  }

  .hero-title-sub {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hero-scroll,
  .back-to-top,
  .lightbox {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 50px 0;
  }

  .section {
    page-break-inside: avoid;
  }
}
