:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --accent: #f59e0b;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --whatsapp: #25D366;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
}

.logo-accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-btn {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
}

.nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.mobile-only {
    display: none;
}

.nav-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.nav-socials a {
    color: var(--dark);
    transition: color 0.3s ease;
}

.nav-socials a:hover {
    color: var(--primary);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-left: 1rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid rgba(15, 23, 42, 0.2);
    border-radius: 50px;
    padding: 0.45rem 0.9rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.25s ease;
}

.lang-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-toggle .chevron {
    transition: transform 0.55s ease;
}

.lang-switcher.open .chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    min-width: 160px;
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
    z-index: 2000;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0.75rem 1.2rem;
    background: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
    background: var(--light);
    color: var(--primary);
}

.lang-option.active {
    color: var(--primary);
    font-weight: 700;
    background: rgba(14, 165, 233, 0.06);
}

.lang-flag {
    font-size: 1.2rem;
}

/* RTL support for Arabic */
[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}
[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}
[dir="rtl"] .lang-option {
    text-align: right;
}
[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}


/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider {
    display: flex;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.7; /* Dark overlay effect */
}

.slider-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

.slider-overlay h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease forwards;
}

.slider-overlay p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    animation: fadeInUp 1.2s ease forwards;
    opacity: 0;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 255, 255, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease forwards;
    opacity: 0;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp:hover {
    background: var(--white);
    color: var(--whatsapp);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 255, 255, 0.3);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 20;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-btn.prev { left: 2%; }
.slider-btn.next { right: 2%; }

/* Services Section */
.services-section {
    padding: 6rem 5%;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--light);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    background: var(--white);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    font-size: 1rem;
}

/* Treatments Section */
.treatments-section {
    padding: 6rem 5%;
    background-color: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.treatment-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.treatment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.treatment-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1.2rem;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
}

.treatment-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.treatment-card p {
    color: var(--gray);
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn {
    background-color: var(--whatsapp);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

footer {
    background: #0f172a;
    color: #f1f5f9;
    padding: 4rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-about p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-contact h3,
.footer-social h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.footer-contact li svg {
    color: var(--primary);
}

.footer-contact a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 1.25rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-icon.facebook:hover {
    background: #1877F2;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.4);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(220, 39, 67, 0.4);
}

.social-icon.youtube:hover {
    background: #FF0000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: background 0.2s;
    z-index: 1100;
}

.hamburger:hover {
    background: rgba(14, 165, 233, 0.08);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 4px;
    transition: transform 0.35s ease, opacity 0.35s ease;
    transform-origin: center;
}

/* X shape when open */
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Responsive */
@media (max-width: 768px) {
    .slider-overlay h1 {
        font-size: 2.5rem;
    }

    .slider-overlay p {
        font-size: 1.1rem;
    }

    /* Hide nav links by default on mobile */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        z-index: 1050;
        padding: 2rem;
        animation: navFadeIn 0.3s ease forwards;
        overflow-y: auto;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a:not(.nav-btn):not(.nav-socials a) {
        font-size: 1.3rem;
        font-weight: 600;
    }

    .nav-links .nav-btn {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
        margin-top: 1rem;
    }

    .mobile-only {
        display: flex !important;
    }

    .hamburger {
        display: flex;
        order: -1;
    }

    .logo {
        margin: 0 auto;
    }

    /* Keep lang switcher above the menu overlay */
    .lang-switcher {
        z-index: 1200;
    }
}

@keyframes navFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
