/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;

    /* Glass effect */
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}


/* Desktop nav links (default) */
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links li a {
    color: #1a1a1a;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Hamburger (hidden on desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    scroll-behavior: smooth;
}

/* Hero section */
.hero {
    position: relative;
    height: 100vh;
    background: url('img/woundlab.jpg') no-repeat right center;
    background-size: contain;
    background-position: center top;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    color: black;
    padding-top: 100px;
    background-color: #fff;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-overlay {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 10px;
    max-width: 90%;
    margin-bottom: 30px;
}

.hero-overlay h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-overlay p {
    font-size: 1.5rem;
    line-height: 1.4;
}

.locations-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 90%;
}

.hero .location-card {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 20px 25px;
    border-radius: 10px;
    max-width: 300px;
    text-align: center;
    color: #000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.hero .location-card:hover {
    transform: translateY(-5px);
}

/* About section */
.about-container {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px 20px 50px 20px;
    flex-direction: row;
    margin-top: 70px;
}

.about-container img {
    width: 50%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.about-text {
    width: 50%;
}

/* Services Section */
.services-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
    direction: rtl; /* Persian text right-to-left */
}

.services-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.services-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Cards */
.services-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 250px;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Footer */
.footer {
    background-color: #222;
    color: #f5f5f5;
    padding: 40px 20px 20px;
    margin-top: 40px;
    direction: rtl; /* Persian-friendly */
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1 1 200px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 10px;
    font-weight: 700;
}

.footer-section p {
    margin: 5px 0;
    font-size: 0.95rem;
}

.instagram-link {
    color: #ff8c00;
    font-weight: 600;
    text-decoration: none;
}

.instagram-link:hover {
    color: #ffa733;
}

.footer-bottom {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 15px;
    font-size: 0.9rem;
}

/* ========= MOBILE MENU FIX (ONLY THIS PART WAS CHANGED) ========= */
@media (max-width: 768px) {

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Hide nav links by default on mobile */
    .nav-links {
        display: none;
        flex-direction: column;
        direction: rtl;
        text-align: right;
        position: absolute;
        top: 15px;
        right: 50px;
        background-color: rgba(255,255,255,0.95);
        padding: 25px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        width: 100px;
        z-index: 999;
    }

    /* When clicked: show menu */
    .nav-links.active {
        display: flex;
    }

    /* About page responsive */
    .about-container {
        flex-direction: column;
        padding: 20px;
        margin-top: 80px;
    }

    .about-container img,
    .about-text {
        width: 100%;
    }

    .hero .hero-overlay {
        padding: 15px;
    }

    .hero .hero-overlay h1 {
        font-size: 1.8rem;
    }

    .hero .hero-overlay p {
        font-size: 1rem;
    }

    .services-cards {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 90%;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        flex: 1 1 auto;
    }
    .footer a[href^="tel"] {
        color: #fff !important;    /* force white */
        text-decoration: none;      /* optional: remove underline */
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .hero .hero-overlay h1 {
        font-size: 1.5rem;
    }

    .hero .hero-overlay p {
        font-size: 0.9rem;
    }
}