:root {
    --primary: #0D9488;
    --primary-light: #14B8A6;
    --primary-dark: #0F766E;
    --secondary: #0F172A;
    --accent: #F59E0B;
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Dental Elements */
.dental-bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    color: rgba(13, 148, 136, 0.15);
    font-size: 3rem;
    animation: floatingIcons 15s linear infinite;
    opacity: 0.5;
}

.icon-1 { top: 10%; left: 10%; font-size: 4rem; animation-duration: 20s; }
.icon-2 { top: 20%; right: 15%; font-size: 2.5rem; animation-duration: 15s; animation-delay: -2s; }
.icon-3 { top: 60%; left: 15%; font-size: 5rem; animation-duration: 25s; animation-delay: -5s; }
.icon-4 { top: 70%; right: 10%; font-size: 3.5rem; animation-duration: 18s; animation-delay: -7s; }
.icon-5 { top: 40%; left: 50%; font-size: 2rem; animation-duration: 12s; animation-delay: -3s; }
.icon-6 { top: 85%; left: 40%; font-size: 4.5rem; animation-duration: 22s; animation-delay: -10s; }
.icon-7 { top: 30%; right: 40%; font-size: 3rem; animation-duration: 17s; animation-delay: -8s; }
.icon-8 { top: 15%; left: 30%; font-size: 2.5rem; animation-duration: 14s; animation-delay: -1s; }

@keyframes floatingIcons {
    0% { transform: translateY(100vh) rotate(0deg) scale(0.8); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-20vh) rotate(360deg) scale(1.2); opacity: 0; }
}

/* Image Slider */
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image.slide {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1.5s ease-in-out;
    transform: scale(1.05);
}

.hero-image.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

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

.nav-links .btn-primary {
    color: white;
}

.nav-links .btn-primary:hover {
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.5);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-main);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 50px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary-dark);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.2s;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.4s;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.6s;
}

.free-notice {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent), #d97706);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 32px;
    box-shadow: 0 10px 15px rgba(245, 158, 11, 0.3);
    opacity: 0;
    transform: scale(0.9);
    animation: zoomIn 0.8s forwards 0.8s;
}

.free-notice i {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 1s;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeLeft 1s forwards 0.5s;
}

.image-blob {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: blobShape 8s ease-in-out infinite alternate;
}

@keyframes blobShape {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: normal;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--secondary);
    animation: floatCard 4s ease-in-out infinite alternate;
    z-index: 10;
}

.card-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 15%;
    left: -20px;
    animation-delay: -2s;
}

.floating-card i {
    color: var(--primary);
    font-size: 1.5rem;
}

@keyframes floatCard {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-20px); }
}

/* Services */
.services {
    padding: 100px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid var(--border);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
    transition: all 0.4s;
}

.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    font-weight: 700;
    transition: color 0.4s;
}

.service-card:hover h3 {
    color: white;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
}

.gallery-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.gallery-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.gallery-banner p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.btn-glow {
    background: white;
    color: var(--primary-dark);
    border: none;
    padding: 16px 36px;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-glow:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.6);
}

/* Modal Gallery */
.hearts-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1000;
}

.heart-icon {
    position: absolute;
    color: rgba(236, 72, 153, 0.4); /* Pink/Red color with opacity */
    font-size: 2rem;
    animation: floatingHearts 10s linear infinite;
    opacity: 0;
}

.h-1 { left: 10%; animation-duration: 12s; font-size: 3rem; }
.h-2 { left: 30%; animation-duration: 15s; animation-delay: -2s; font-size: 2rem; }
.h-3 { left: 50%; animation-duration: 10s; animation-delay: -5s; font-size: 4rem; }
.h-4 { left: 70%; animation-duration: 14s; animation-delay: -7s; font-size: 2.5rem; }
.h-5 { left: 90%; animation-duration: 11s; animation-delay: -3s; font-size: 3.5rem; }
.h-6 { left: 20%; animation-duration: 16s; animation-delay: -10s; font-size: 2rem; }
.h-7 { left: 60%; animation-duration: 13s; animation-delay: -8s; font-size: 3rem; color: rgba(253, 224, 71, 0.5); } /* Yellow sparkle */
.h-8 { left: 80%; animation-duration: 12s; animation-delay: -1s; font-size: 2.5rem; }

@keyframes floatingHearts {
    0% { transform: translateY(100vh) rotate(0deg) scale(0.5); opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { transform: translateY(-20vh) rotate(360deg) scale(1.2); opacity: 0; }
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2010;
}

.close-modal:hover {
    color: var(--accent);
}

.gallery-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: scale(0.95);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.gallery-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

.prev-slide, .next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
    z-index: 2010;
}

.prev-slide:hover, .next-slide:hover {
    background: var(--primary);
}

.prev-slide { right: -60px; }
.next-slide { left: -60px; }

/* Location & Contact */
.location-contact {
    padding: 100px 0;
}

.location-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: white;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.location-info h2, .contact-info h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item h4 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.info-item p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.3s, transform 0.3s;
}

.map-link:hover {
    color: var(--primary-dark);
    transform: translateX(-5px);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.social-btn:hover {
    transform: translateX(-10px);
}

.whatsapp { background: #25D366; }
.telegram { background: #0088cc; }
.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

.social-btn i {
    font-size: 1.5rem;
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    text-align: center;
    padding: 32px 0;
}

.dev-credit {
    margin-top: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

.dev-credit span {
    color: var(--primary-light);
    font-weight: 800;
    font-size: 1rem;
}

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

@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Utility for scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================
   RESPONSIVE - TABLET 992px
======================== */
@media (max-width: 992px) {
    .hero-container, .location-container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        order: 2;
        text-align: center;
    }

    .hero-image-wrapper {
        order: 1;
        max-width: 480px;
        margin: 0 auto 32px auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .free-notice {
        justify-content: center;
    }

    .card-1 { right: 0px; top: 10%; padding: 10px 14px; font-size: 0.85rem; }
    .card-2 { left: 0px; bottom: 10%; padding: 10px 14px; font-size: 0.85rem; }

    .gallery-banner {
        padding: 40px 24px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================
   RESPONSIVE - MOBILE 768px
======================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: var(--shadow-md);
        text-align: center;
        gap: 20px;
    }
    
    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .location-container {
        padding: 28px 20px;
        gap: 32px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-card {
        padding: 28px 20px;
    }

    /* Gallery Modal */
    .prev-slide { right: 8px; width: 40px; height: 40px; font-size: 16px; }
    .next-slide { left: 8px; width: 40px; height: 40px; font-size: 16px; }
    .modal-content { height: 65vh; width: 95%; }
    .gallery-banner h2 { font-size: 1.8rem; }
    .gallery-banner p { font-size: 1rem; }
    .close-modal { top: -45px; font-size: 44px; }
}

/* ========================
   RESPONSIVE - SMALL 480px
======================== */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .badge {
        font-size: 0.8rem;
    }

    .hero-image-wrapper {
        max-width: 100%;
    }

    .free-notice {
        flex-direction: column;
        text-align: center;
        padding: 14px 16px;
        font-size: 0.95rem;
        gap: 8px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .btn-glow {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 14px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 24px 16px;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .card-1, .card-2 {
        padding: 8px 12px;
        font-size: 0.78rem;
        gap: 8px;
    }

    .card-1 i, .card-2 i {
        font-size: 1.1rem;
    }

    .gallery-banner {
        padding: 32px 16px;
    }

    .gallery-banner h2 {
        font-size: 1.6rem;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .location-info h2, .contact-info h2 {
        font-size: 1.5rem;
    }

    .social-btn {
        font-size: 0.95rem;
        padding: 14px 16px;
        justify-content: center;
    }

    .modal-content {
        height: 55vh;
        width: 95%;
    }

    .close-modal {
        top: -40px;
        font-size: 38px;
    }

    .logo {
        font-size: 1.2rem;
    }

    footer {
        padding: 24px 0;
        font-size: 0.9rem;
    }
}

/* ========================
   RESPONSIVE - TINY 360px
======================== */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .card-1 { display: none; }
    .card-2 { display: none; }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-banner h2 {
        font-size: 1.4rem;
    }

    .modal-content {
        height: 50vh;
    }
}
