/* ========== original css content (kept and extended) ========== */

body {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    background: #f7f7f7;
    color: #333;
    overflow-x: hidden;
}

/* allow scrolling again */
body, html {
    overflow-y: auto !important;
}

/* restore browser scrollbar */
body::-webkit-scrollbar {
    width: 8px;
}
body::-webkit-scrollbar-thumb {
    background: #3A63E0;
    border-radius: 8px;
}
body::-webkit-scrollbar-track {
    background: #e0e0e0;
}

/* ==================== UPDATED: Language dropdown BOTTOM-LEFT ==================== */

/* Floating box */
.lang-switch {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 3000;
}

/* Custom Select Container */
.custom-select {
    width: 180px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.45);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    user-select: none;
    position: relative;
}

/* Selected option box */
.selected-option {
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 700;
    color: #3A63E0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Arrow icon */
.selected-option .arrow {
    border: solid #3A63E0;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 4px;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.custom-select.active .selected-option .arrow {
    transform: rotate(-135deg);
}

/* Dropdown options */
.options {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 105%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease;
}

.custom-select.active .options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Each option */
.option {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    transition: background 0.2s ease;
}

.option:hover {
    background: rgba(58, 99, 224, 0.08);
}

/* ================= END LANGUAGE SWITCH ================= */

/* ========== HEADER ========== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url(background.png);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    transition: all 1.2s ease;
    z-index: 2000;
    overflow: hidden;
    padding: 20px;
}

.header.shrink {
    height: 90px;
    padding: 0 30px;
    flex-direction: row-reverse;
    justify-content: space-around;
    align-items: center;
}

.header img {
    width: 260px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1.5s ease forwards;
    transition: width 0.8s ease, opacity 0.6s ease, transform 0.6s ease;
}

.header.shrink img { 
    width: 80px; 
    opacity: 1; 
    transform: translateY(0); 
}

.header h1, .header h2 {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.header h1 { animation-delay: 0.5s; }
.header h2 { animation-delay: 0.8s; }

.header.shrink h1, .header.shrink h2 {
    opacity: 1;
    transform: translateY(0);
    font-size: 18px;
    font-weight: 700;
    margin: 0 12px;
}

.header:not(.shrink) h1 {
    font-size: 34px;
    margin: 8px 0 0;
}

.header:not(.shrink) h2 {
    font-size: 20px;
    margin: 6px 0 0;
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); }}
@keyframes fadeIn { to { opacity: 1; }}

/* ========== scroll animations ========== */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========== banner ========== */
.shifa-banner {
    text-align: center;
    margin-top: 150px;
}

.shifa-banner h1 {
    font-size: 60px;
    font-weight: 700;
    color: #3A63E0;
    margin-bottom: 30px;
    padding: 40px 0;
    line-height: 1.1;
}

.shifa-banner img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* ========== mission values ========== */
.mission-values {
    text-align: center;
    padding: 80px 40px;
}

.mv-title {
    font-size: 58px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.mv-title span { color: #3A63E0; }

.mv-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.mv-item { width: 330px; }

.mv-item img {
    width: 330px;
    height: 330px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    transition: transform 1.2s ease;
}

.mv-item.center.show img {
    transform: scale(1.18);
}

.mv-item h2 {
    font-size: 32px;
    font-weight: 700;
    color: #3A63E0;
}

.mv-item p {
    font-size: 20px;
    line-height: 1.7;
    color: #555;
}

/* IMPORT FONT */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;700;800&display=swap');

.dentists-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(180deg, #e8e8e8, #f5f5f5);
    font-family: "Plus Jakarta Sans", sans-serif;
}

/* TITLE */
.title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 70px;
    letter-spacing: -0.5px;
    color: #0f172a;
    opacity: 0;
    animation: fadeDown 1s ease forwards;
}

.title span {
    color: #2d50ff;
}

/* WRAPPER */
.dentists-wrapper {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

/* CARD */
.dentist-card {
    width: 280px;
    padding: 25px 15px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    transition: transform .45s ease, box-shadow .45s ease;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    animation: fadeUpSmooth 1s forwards ease;
}

/* Card delays */
.dentist-card:nth-child(1) { animation-delay: 0.25s; }
.dentist-card:nth-child(2) { animation-delay: 0.45s; }

/* Hover effect */
.dentist-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.18);
}

/* IMAGE */
.image-box {
    width: 210px;
    height: 210px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50%;
    border: 6px solid #e3e7ff;
    position: relative;
    transition: transform .45s ease;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.dentist-card:hover .image-box img {
    transform: scale(1.15);
}

/* TEXT */
.dentist-name {
    font-size: 26px;
    color: #1e3aff;
    margin-top: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.dentist-desc {
    font-size: 18px;
    margin-top: 10px;
    color: #475569;
    line-height: 1.6;
    font-weight: 400;
}

/* ANIMATIONS */
@keyframes fadeUpSmooth {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Contact Section Re-Design ---------- */
.contact-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 80px 8%;
    background: linear-gradient(135deg, #eef7fc, #ffffff);
    font-family: "Cairo", sans-serif;
    gap: 60px;
    position: relative;
    overflow: hidden;
}

/* Soft floating shapes */
.contact-section::before,
.contact-section::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(30, 86, 118, 0.08);
    filter: blur(80px);
    border-radius: 50%;
    animation: floatShape 6s ease-in-out infinite alternate;
}

.contact-section::before {
    top: -40px;
    left: -60px;
}

.contact-section::after {
    bottom: -40px;
    right: -60px;
}

@keyframes floatShape {
    0% { transform: translateY(0px); }
    100% { transform: translateY(40px); }
}

.contact-left h1 {
    font-size: 65px;
    font-weight: 900;
    background: linear-gradient(90deg, #1e5676, #0c2f44);
    -webkit-background-clip: text;
    color: transparent;
    line-height: 1.15;
    animation: fadeSlide 1s ease forwards;
}

/* Contact Boxes */
.contact-right {
    display: flex;
    flex-direction: column;
    gap: 35px;
    min-width: 280px;
}

.contact-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: .35s ease;
    transform: translateY(15px);
    opacity: 0;
    animation: boxFade .8s forwards;
}

.contact-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.contact-box h3 {
    font-size: 26px;
    font-weight: 800;
    color: #1b4e68;
}

.contact-box p {
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

/* Social Icons */
.social-icons i {
    font-size: 30px;
    margin-right: 18px;
    cursor: pointer;
    transition: .3s ease;
}

.social-icons i:hover {
    color: #1b4e68;
    transform: translateY(-4px) scale(1.1);
}

/* Animations */
@keyframes boxFade {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlide {
    0% { opacity: 0; transform: translateX(-40px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 900px) {
    .contact-section {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-left h1 {
        font-size: 48px;
    }

    .social-icons i {
        margin: 0 12px;
    }
}

/* ========== footer ========== */
.footer {
    text-align: center;
    padding: 20px;
    background: #0066aa;
    color: white;
}

/* ========== fade language transition ========== */
.lang-fade {
    transition: opacity 240ms ease, transform 240ms ease;
}
.lang-fade.fade-out {
    opacity: 0;
    transform: translateY(6px);
}
.lang-fade.fade-in {
    opacity: 1;
    transform: translateY(0);
}

#custom-scrollbar,
#custom-scrollbar-track,
#custom-scrollbar-thumb {
    display: none !important;
}

/* disable old hiding rules */
::-webkit-scrollbar { display: block !important; }
html { scrollbar-width: auto !important; }
body { -ms-overflow-style: auto !important; }

/* WhatsApp Floating Button */
.whatsapp-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99999;
    font-family: inherit;
}

/* Circle button */
.wa-button {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: 0.25s;
}

.wa-button svg {
    width: 35px;
}

/* POPUP GROWING FROM BUTTON */
.wa-box {
    width: 260px;
    background: #25D366;
    padding: 15px;
    border-radius: 20px;
    position: absolute;
    bottom: 75px;
    right: 0;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: 0.25s ease;
}

/* When opened */
.wa-box.active {
    transform: scale(1);
    opacity: 1;
}

/* Title inside box */
.wa-box h3 {
    font-size: 17px;
    margin: 0 0 10px 0;
    color: white;
}

/* Message buttons */
.wa-msg {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    background: white;
    color: #333;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-align: right;
    transition: 0.15s;
}

.wa-msg:hover {
    background: #f1f1f1;
}

/* Media Queries for tablets and mobile adjustments already included in original code */

/* All original responsive tweaks for .mv-container, .contact-section, .dentists-section, .title, etc., preserved */

@media (max-width: 1200px) {
    .mv-container {
        gap: 40px;
    }

    .contact-section {
        padding: 60px 6%;
    }
}
/* ===========================
   TABLETS (600px – 900px)
   =========================== */
@media (max-width: 900px) {

    .mv-container {
        gap: 30px;
    }

    .mv-item {
        width: 280px;
    }

    .mv-item img {
        width: 260px;
        height: 260px;
    }

    .title {
        font-size: 44px;
    }

    .dentists-wrapper {
        gap: 40px;
    }

    .contact-section {
        padding: 60px 40px;
    }

    .contact-left h1 {
        font-size: 48px;
    }
}
/* ===========================
   MOBILE (Phones)
   =========================== */
@media (max-width: 600px) {

    /* HEADER */
    .header {
        padding: 10px;
        height: 100vh;
    }

    .header img {
        width: 160px;
    }

    .header.shrink {
        height: 70px;
        padding: 0 15px;
    }

    .header.shrink img {
        width: 55px;
    }

    .header:not(.shrink) h1 {
        font-size: 22px;
    }
    .header:not(.shrink) h2 {
        font-size: 14px;
    }

    /* BANNER */
    .shifa-banner h1 {
        font-size: 32px;
        padding: 20px 0;
    }

    /* MISSION VALUES */
    .mission-values {
        padding: 50px 20px;
    }

    .mv-title {
        font-size: 34px;
    }

    .mv-item {
        width: 100%;
    }

    .mv-item img {
        width: 240px;
        height: 240px;
    }

    .mv-item h2 {
        font-size: 22px;
    }

    .mv-item p {
        font-size: 16px;
    }

    /* DENTISTS */
    .title {
        font-size: 36px;
    }

    .dentist-card {
        width: 100%;
        max-width: 300px;
    }

    .image-box {
        width: 160px;
        height: 160px;
    }

    .dentist-name {
        font-size: 20px;
    }

    .dentist-desc {
        font-size: 14px;
    }

    /* CONTACT */
    .contact-section {
        padding: 40px 20px;
        flex-direction: column;
        text-align: center;
    }

    .contact-left h1 {
        font-size: 34px;
    }

    .contact-right {
        width: 100%;
    }

    .contact-box h3 {
        font-size: 20px;
    }

    .contact-box p {
        font-size: 16px;
    }

    /* LANGUAGE DROPDOWN */
    .custom-select {
        width: 150px;
    }

    .selected-option {
        font-size: 14px;
        padding: 10px 12px;
    }
}
/* ===========================
   MISSION VALUES REDESIGN (≤1200px)
   =========================== */
@media (max-width: 1200px) {

    .mission-values {
        padding: 60px 20px;
    }

    .mv-title {
        font-size: 42px;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .mv-container {
        gap: 30px;
        flex-direction: row;
        justify-content: center;
    }

    .mv-item {
        width: 260px;
        text-align: center;
    }

    .mv-item img {
        width: 220px;
        height: 220px;
        border-radius: 30px;       /* Modern softer square look */
        object-fit: cover;
        transition: transform .6s ease;
    }

    .mv-item.show img {
        transform: scale(1.05);
    }

    .mv-item h2 {
        font-size: 24px;
        margin-top: 12px;
    }

    .mv-item p {
        font-size: 16px;
        line-height: 1.5;
        color: #444;
        margin-top: 6px;
    }
}
/* Language dropdown smaller on small screens */
@media (max-width: 600px) {
    .lang-switch {
        bottom: 10px;
        left: 10px;
    }

    .custom-select {
        width: 120px; /* smaller width */
        font-size: 14px;
        padding: 8px 10px;
    }

    .selected-option {
        padding: 8px 10px;
        font-size: 14px;
    }

    .options {
        font-size: 13px;
    }

    .option {
        padding: 8px 10px;
    }

    .selected-option .arrow {
        padding: 3px;
    }
}

/* Hide mobile banner by default */
.shifa-banner-mobile {
    display: none;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #e0f2ff, #cfe8ff);
    border-radius: 20px;
    margin-top: 80px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.shifa-banner-mobile h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e3aff;
    margin-bottom: 10px;
}

.shifa-banner-mobile p {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.shifa-banner-mobile img {
    width: 90%;
    max-width: 250px;
    border-radius: 12px;
    object-fit: cover;
}

/* Show mobile banner only on small screens */
@media (max-width: 600px) {
    .shifa-banner {
        display: none;
    }
    .shifa-banner-mobile {
        display: block;
    }
    .header h2 {
        display: none;
    }
    .header h1{
        font-size: 22px;
    }
}
.social-icons i {
  margin: 0 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-icons i svg path {
  fill: #000000;
  transition: fill 0.3s ease;
}

/* Hover colors */
.social-icons i:hover svg path {
  fill: #4267B2; /* default (facebook) */
}

/* Instagram hover color */
.social-icons i.fa-instagram:hover svg path {
  fill: #C13584;
}

/* Facebook hover color */
.social-icons i.fa-facebook:hover svg path {
  fill: #4267B2;
}

/* Google Maps hover color */
.social-icons i.fa-map-location-dot:hover svg path {
  fill: #EA4335;
}

.social-icons i:hover {
  transform: scale(1.1);
}


.ba-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 350px;
    overflow: hidden;
    border-radius: 15px;
    margin: auto;
    user-select: none;
}
/* ========== DENTIST MODAL ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  animation: fadeInModal 0.3s ease;
}

.modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: popIn 0.35s ease;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  transition: 0.2s ease;
}

.close-btn:hover {
  color: #1e3aff;
}

/* Image Box */
.modal-body img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #e3e7ff;
  margin-bottom: 15px;
}

/* Dentist Name */
.modal-body h2 {
  font-size: 26px;
  color: #1e3aff;
  margin-bottom: 10px;
  font-weight: 700;
}

/* Dentist Job Title */
.modal-body p {
  font-size: 18px;
  color: #475569;
  margin-bottom: 15px;
  text-align: center; /* centered */
}

/* Experience Box */
#modalExperience {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  text-align: center; /* changed from left → center */
  background: #f8f9ff;
  border-radius: 10px;
  padding: 15px;
  margin-top: 10px;
}

/* Animations */
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


/* ---------- IMAGES ---------- */
.ba-img {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ba-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Initial clipping */
.ba-after {
    clip-path: inset(0 50% 0 0);
}

/* ---------- LABELS ---------- */
.ba-label {
    position: absolute;
    top: 15px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.55);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    z-index: 10;
    pointer-events: none;
}

.ba-before-label {
    left: 15px;
}

.ba-after-label {
    right: 15px;
}

/* ---------- HANDLE ---------- */
.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 5;
}

/* The draggable circle */
.ba-handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.ba-handle-circle .arrow-left,
.ba-handle-circle .arrow-right {
    font-size: 20px;
    font-weight: bold;
    color: #444;
}

/* Line under the circle */
.ba-handle::before {
    content: "";
    position: absolute;
    width: 4px;
    height: 100%;
    background: white;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}
.ba-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: auto;
    padding: 20px 0;
}

/* Mobile: 1 per row */
@media (max-width: 768px) {
    .ba-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .whatsapp-widget {
        bottom: 15px;
        right: 15px;
    }

    .wa-button {
        width: 45px;
        height: 45px;
    }

    .wa-button svg {
        width: 25px;
        height: 25px;
    }

    .wa-box {
        width: 200px;
        padding: 12px;
        border-radius: 16px;
        bottom: 60px; /* adjust distance from button */
    }

    .wa-box h3 {
        font-size: 14px;
    }

    .wa-msg {
        font-size: 12px;
        padding: 8px;
        margin-bottom: 6px;
    }
}

/* ===========================
   DENTISTS SECTION REDESIGN (MOBILE ONLY ≤600px)
   =========================== */
@media (max-width: 600px) {
    .dentists-section {
        padding: 60px 20px;
        background: #f8f9ff;
    }

    .title {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .dentists-wrapper {
        gap: 30px;
    }

    .dentist-card {
        width: 100%;
        max-width: 330px;
        padding: 20px;
        border-radius: 16px;
        transform: translateY(20px);
        animation: fadeUpMob .8s forwards ease;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

    .image-box {
        width: 140px;
        height: 140px;
        border-width: 4px;
    }

    .dentist-name {
        font-size: 20px;
        margin-top: 16px;
    }

    .dentist-desc {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Smooth mobile animation */
    @keyframes fadeUpMob {
        0% { opacity: 0; transform: translateY(30px); }
        100% { opacity: 1; transform: translateY(0); }
    }
}
  