:root{
  --blue-1: #1f56b8;   /* لون رئيسي قريب للصورة */
  --blue-2: #2f6fd4;
  --dark: #05203a;
  --muted: #6b7280;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 16px;
  --container: 1150px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: 'Cairo', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  color:var(--dark);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  direction:rtl;
}

/* container */
.container{max-width:var(--container);margin:0 auto;padding:24px}

/* header */
.site-header{position:sticky;top:0;background:rgba(255,255,255,0.9);backdrop-filter:blur(4px);z-index:40;border-bottom:1px solid rgba(0,0,0,0.05)}
.header-inner{display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:12px}
.logo{width:64px;height:64px;object-fit:contain;border-radius:8px}
.brand-text h1{margin:0;font-size:18px;color:var(--blue-1);font-weight:800}
.brand-text .small{margin:0;font-size:12px;color:var(--muted)}

.main-nav a{margin-left:18px;color:var(--dark);text-decoration:none;font-weight:600}
.main-nav .btn-outline{padding:8px 12px;border-radius:8px;border:1px solid var(--blue-1);color:var(--blue-1)}

/* HERO SLIDER */
.hero-slider {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.hero-slider .slide.active {
  opacity: 1;
  transform: translateY(0);
  animation: revealSteps 1.8s ease forwards;
}

/* تأثير "السلالم" أثناء الظهور */
@keyframes revealSteps {
  0% {
    clip-path: polygon(0 0, 0 0, 0 15%, 0 15%, 0 100%, 0 100%);
  }
  20% {
    clip-path: polygon(0 0, 100% 0, 0 15%, 0 15%, 0 100%, 0 100%);
  }
  40% {
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0 30%, 0 100%, 0 100%);
  }
  60% {
    clip-path: polygon(0 0, 100% 0, 100% 60%, 0 60%, 0 100%, 0 100%);
  }
  80% {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 85%, 0 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 100%, 0 100%);
  }
}

/* Overlay & content */
.hero-slider .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.slider-content h1 {
  font-size: 44px;
  font-weight: bold;
  margin-bottom: -20px;
  
}

.slider-content p {
  font-size: 18px;
  
}

.slider-content .btn-primary {
  background: #1f56b8;
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(31, 86, 184, 0.2);
  transition: background 0.3s;
}
.slider-content .btn-primary:hover {
  background: #2f6fd4;
}

/* Responsive */
@media (max-width: 768px) {
  .slider-content h1 {
    font-size: 28px;
  }
  .slider-content p {
    font-size: 15px;
  }
  .hero-slider {
    height: 80vh;
  }
}


/* HERO */
.hero{padding:56px 0;background:linear-gradient(90deg, rgba(31,86,184,0.06), rgba(47,111,212,0.03));overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1fr 420px;gap:36px;align-items:center}
.hero-title{font-size:34px;margin:0 0 12px;color:var(--blue-1);font-weight:800;letter-spacing:0.6px}
.lead{color:var(--muted);margin:0 0 18px;font-size:15px}
.hero-cta{display:flex;gap:12px;margin-bottom:18px}
.btn-primary{background:var(--blue-1);color:#fff;padding:12px 18px;border-radius:12px;text-decoration:none;font-weight:700;box-shadow:0 6px 18px rgba(31,86,184,0.14)}
.btn-ghost{background:transparent;border:2px solid rgba(31,86,184,0.12);padding:10px 16px;border-radius:12px}

.quick-info{display:flex;gap:18px;color:var(--muted);font-size:14px;margin-top:8px}


/* ===== FLOATING SOCIAL ===== */
.floating-social {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.floating-social a {
  width: 48px;
  height: 48px;
  background: #004c91;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  transition: 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.floating-social a:hover {
  transform: translateX(5px) scale(1.1);
  background: #007bff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}


/* hero media */
.hero-media{position:relative;display:flex;justify-content:center;align-items:center}
.doctor-photo{width:340px;border-radius:12px;box-shadow:0 18px 40px rgba(12,40,70,0.12);transform:translateX(0);transition:transform .6s}
.doctor-photo:hover{transform:translateY(-8px)}
.implant{position:absolute;right:-20px;bottom:12px;width:140px;opacity:0.95;filter:drop-shadow(0 8px 20px rgba(47,111,212,0.18))}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.doctor-photo-wrapper {
  position: relative;
  display: inline-block;
}

.doctor-photo {
  width: 320px;
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(0, 120, 255, 0.4);
  transition: transform 0.5s ease;
}

.doctor-photo:hover {
  transform: scale(1.05);
}

/* الأيقونات */
.social-icons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 20px;
  opacity: 0;
}

.social-icons a {
  color: white;
  font-size: 22px;
  background: rgba(0, 123, 255, 0.8);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.social-icons a:hover {
  background: #fff;
  color: #007bff;
  transform: scale(1.2);
}

/* حركة الظهور */
.show-icons .social-icons {
  opacity: 1;
}

.show-icons .social-icons a {
  animation: floatIcons 2s forwards;
}

.show-icons .social-icons a:nth-child(1) {
  animation-delay: 0.3s;
}
.show-icons .social-icons a:nth-child(2) {
  animation-delay: 0.8s;
}
.show-icons .social-icons a:nth-child(3) {
  animation-delay: 1.2s;
}
.show-icons .social-icons a:nth-child(4) {
  animation-delay: 1.6s;
}
.show-icons .social-icons a:nth-child(5) {
  animation-delay: 2s;
}

@keyframes floatIcons {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* استجابة الموبايل */
@media (max-width: 768px) {
  .social-icons a {
    font-size: 18px;
    width: 38px;
    height: 38px;
  }
}


/* استجابة الموبايل */
@media (max-width: 768px) {
  .doctor-photo {
    width: 200px;
  }

  .social-icons a {
    font-size: 18px;
    width: 38px;
    height: 38px;
  }
}


/* cases */
.cases-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:18px}
.case-card{display:flex;flex-direction:column;gap:8px;background:var(--card);border-radius:12px;padding:10px;overflow:hidden}
.case-card img{width:100%;height:300px;object-fit:cover;border-radius:10px}

/* footer */
.site-footer{padding:20px 0;text-align:center;color:var(--muted);font-size:14px;border-top:1px solid rgba(0,0,0,0.04);margin-top:28px}

/* modal */
.modal{position:fixed;inset:0;display:grid;place-items:center;background:rgba(0,0,0,0.6);z-index:100}
.modal.hidden{display:none}
.modal-inner{width:90%;max-width:960px;background:transparent}
.modal-content{position:relative;padding-top:56.25%}
.modal-content iframe{position:absolute;inset:0;width:100%;height:100%}
.modal-close{position:absolute;right:-12px;top:-12px;background:#fff;border-radius:50%;padding:8px;border:none;cursor:pointer;box-shadow:0 6px 16px rgba(0,0,0,0.2)}

/* reveal animation util */
.reveal{opacity:0;transform:translateY(18px);transition:all .7s cubic-bezier(.2,.9,.3,1)}
.reveal.show{opacity:1;transform:none}

/* responsiveness */
@media (max-width:1000px){
  .hero-grid{grid-template-columns:1fr 320px}
  .split{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
}
@media (max-width:700px){
  .hero-grid{grid-template-columns:1fr}
  .doctor-photo{width:260px}
  .implant{display:none}
  .main-nav{display:none}
  .header-inner{gap:12px}
  .brand-text h1{font-size:16px}
  .hero-title{font-size:26px}
}

/* ===== HEADER BASE ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.721); /* أبيض شفاف */
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 999;
  transition: background 0.3s ease;
}


.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  max-width: 1200px;
  margin: auto;
}

/* ===== BRAND ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand .logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 1.3rem;
  color: #004c91;
  margin: 0;
}

.brand-text .small {
  font-size: 0.7rem;
  color: #666;
}

/* ===== NAVIGATION ===== */
.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.main-nav a {
  text-decoration: none;
  color: #004c91;
  font-weight: 600;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #007bff;
}

.btn-outline {
  border: 2px solid #004c91;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: #004c91;
  color: #fff;
}

/* ===== MOBILE MENU TOGGLE ===== */
.menu-toggle {
  display: none;
  font-size: 1.6rem;
  color: #004c91;
  cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner {
    
    align-items: center;
    padding: 15px;
  }

  .main-nav {
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 15px;
    display: none;
  }

  .main-nav.show {
    display: flex;
    animation: fadeIn 0.4s ease;
  }

  .menu-toggle {
    display: block;
    margin-top: 10px;
  }
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
  position: relative;
}

.drop-btn {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-menu {
  position: absolute;
  top: 45px;
  right: 0;
  background: #ffffff;
  width: 220px;
  border-radius: 10px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.12);
  padding: 10px 0;
  display: none;
  flex-direction: column;
  text-align: right;
  z-index: 99999;
}

.dropdown-menu a {
  padding: 10px 15px;
  display: block;
  text-decoration: none;
  color: #004c91;
  font-weight: 600;
  transition: 0.3s;
}

.dropdown-menu a:hover {
  background: #e8f3ff;
  color: #007bff;
}

/* إظهار القائمة */
.dropdown.show .dropdown-menu {
  display: flex;
}

/* ===== MOBILE DESIGN ===== */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    background: none;
  }

  .dropdown-menu a {
    padding: 12px;
    background: #ffffffdd;
    border-bottom: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 5px;
  }

  .dropdown-menu a:hover {
    background: #e9f4ff;
  }
}


/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== HEADER BASE ========== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .logo {
  width: 55px;
}

/* NAV NORMAL */
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a {
  color: #000;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  padding: 10px 0;
  border-radius: 10px;
  width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
  z-index: 2000;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.drop-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.drop-btn i {
  transition: .3s;
}

.dropdown.open i {
  transform: rotate(180deg);
}

/* ========== MOBILE STYLE ========== */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .site-header {
    padding: 0px 20px;
  }
  .main-nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 75%;
    height: calc(100vh - 70px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
    gap: 18px;
    transition: 0.35s;
    box-shadow: -3px 0 15px rgba(0,0,0,0.1);
  }

  .main-nav.open {
    right: 0;
  }

  .menu-toggle {
    display: block;
  }

  /* dropdown inside mobile */
  .dropdown-menu {
    position: relative;
    top: 0;
    width: 100%;
    box-shadow: none;
    background: #f7f7f7;
    border-radius: 8px;
    margin-top: 5px;
  }

  .dropdown a,
  .dropdown button {
    width: 100%;
    text-align: right;
  }
}

/* ===== SPACE FOR FIXED HEADER ===== */
body {
  padding-top: 100px; /* علشان المحتوى ميختفيش ورا الهيدر */
}

/* ====== SERVICES SECTION ====== */
.services-section {
  padding-bottom: 50px;
  background: #f9f9f9;
  text-align: center;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 60px;
  color: #222;
  position: relative;
}

.services-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.service-card {
  position: relative;
  width: 330px;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: #fff;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.service-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: all 0.6s ease;
  filter: brightness(85%);
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.5s ease;
}

.service-overlay h3 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  transform: translateY(40px);
  transition: all 0.5s ease;
  text-decoration: underline;
}
.service-overlay h3 a{
   color: #fff;
}

/* Hover Effects */
.service-card:hover .service-image {
  transform: scale(1.1) rotate(2deg);
  filter: brightness(110%);
}

.service-card:hover .service-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.6);
}

.service-card:hover .service-overlay h3 {
  transform: translateY(0);
}
.service-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}

.service-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .service-card {
    width: 280px;
    height: 330px;
  }
  .service-overlay h3 {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .services-container {
    flex-direction: column;
    gap: 25px;
  }
  .service-card {
    width: 90%;
    height: 300px;
  }
  .section-title {
    font-size: 28px;
  }

}


/* ====== ABOUT DOCTOR SECTION ====== */
.about-doctor {
  position: relative;
  background-image: url('/css/about\ cover.webp'); /* صورة الخلفية */
  background-size: cover;
  background-position: center;
  padding: 120px 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-doctor .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 60, 160, 0.75); /* الأزرق الشفاف */
  z-index: 1;
}

.about-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
}

.about-image img {
  width: 380px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  opacity: 1;
  transform: translateX(-80px);
  transition: all 1s ease;
}

.about-text {
  color: #fff;
  max-width: 550px;
  opacity: 0;
  transform: translateX(80px);
  transition: all 1s ease;
}

.about-text h2 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.about-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #e6eaff;
}

.about-text p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #f2f4ff;
}

.btn-about {
  background: #fff;
  color: #0030a0;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-about:hover {
  background: #0030a0;
  color: #fff;
}

/* Animation when visible */
.about-image.show,
.about-text.show {
  opacity: 1;
  transform: translateX(0);
}
/* ===== Animation for About Section ===== */
.about-image img,
.about-text {
  opacity: 0;
  transition: all 2s ease-out;
}

.about-image img {
  transform: translateX(-80px);
}

.about-text {
  transform: translateX(80px);
}

.about-image img.show,
.about-text.show {
  opacity: 1;
  transform: translateX(0);
}


/* ===== Responsive ===== */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    width: 280px;
  }

  .about-text {
    max-width: 90%;
  }

  .about-text h2 {
    font-size: 32px;
  }

  .about-text p {
    font-size: 16px;
  }
}

.reels-section {
  background: #f9fcff;
  text-align: center;
}

.reels-section .section-title {
  font-size: 2rem;
  color: #004c91;
  margin-bottom: 10px;
}

.reels-section .section-desc {
  color: #555;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.reels-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.reel-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 15px;
  transition: transform 0.8s ease, box-shadow 0.8s ease;
  opacity: 0;
  transform: translateY(60px);
}

.reel-card iframe,
.reel-card .fb-video {
  width: 100%;
  border-radius: 15px;
}

.reel-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Reveal Animation */
.reel-card.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 1.2s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .reels-grid {
    flex-direction: column;
    align-items: center;
  }

  .reel-card {
    width: 90%;
  }
}


/* ====== REVIEWS SECTION ====== */
.reviews-section {
  padding: 100px 5%;
  background: #f5f8ff;
  text-align: center;
  overflow: hidden;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 50px;
  color: #0030a0;
}

.reviews-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: nowrap;
  overflow: hidden;
  position: relative;
  min-height: 220px;
}

.review-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  width: 350px;
  padding: 25px;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s ease;
}

.review-card img {
  width: 80px;
  height: 80px;
  border-radius: 10%;
  object-fit: cover;
}

.review-card h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0030a0;
}

.review-card p {
  font-size: 15px;
  color: #555;
  margin: 8px 0 0;
}

.review-card.show {
  opacity: 1;
  transform: translateX(0);
}

/* ====== MAP SECTION ====== */
.map-section {
  padding: 0;
  margin: 0;
  background: #fff;
  text-align: center;
}

.map-box {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.map-box iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 48, 160, 0.6);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.map-box:hover .map-overlay {
  opacity: 1;
  backdrop-filter: blur(2px);
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .review-card {
    width: 90%;
    flex-direction: column;
    text-align: center;
  }
  .reviews-container {
    flex-direction: column;
    gap: 25px;
  }
  .map-box iframe {
    height: 300px;
  }
}
