@font-face {
    font-family: "Vazir";
    src: url("https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font/dist/Vazir.woff2") format("woff2");
}

body {
    margin: 0;
    font-family: "Vazir", sans-serif;
    direction: rtl;
    background-color: #f5f7fa;
    color: #222;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #002b5c;
    color: white;
    padding: 10px 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 45px;
    height: 45px;
}

.logo h1 {
    font-size: 20px;
    margin: 0;
}

.nav-bar {
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
}

.nav-bar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.nav-bar a:hover {
    color: #ffcc00;
}

/* دکمه منوی موبایل */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    user-select: none;
}

/* حالت موبایل */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        color: white;
    }

    .nav-bar {
        position: absolute;
        top: 70px;
        right: 0;
        background-color: #002b5c;
        width: 100%;
        flex-direction: column;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        border-bottom: 2px solid #ffcc00;
    }

    .nav-bar.active {
        max-height: 300px;
        opacity: 1;
        padding: 15px 0;
    }

    .nav-bar a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .menu-toggle.open {
        color: #ffcc00;
        transform: rotate(90deg);
        transition: 0.3s;
    }
}

/* Hero Section */
.hero {
    background: url('https://cdn.pixabay.com/photo/2018/01/03/09/09/law-3057635_1280.jpg') center/cover no-repeat;
    height: 85vh;
    position: relative;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn {
    background-color: #ffcc00;
    color: #222;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background-color: #ffd633;
}

/* Services */
.services {
    padding: 60px 10%;
    text-align: center;
}

.service-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.service-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 300px;
    transition: 0.3s;
    overflow: hidden;
}

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

.service-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-box h3 {
    color: #002b5c;
    margin: 15px 0 10px 0;
}

.service-box p {
    padding: 0 15px 20px 15px;
    color: #555;
}

/* About */
.about {
    background-color: #e9eef5;
    padding: 60px 10%;
    text-align: center;
}

.about-content h2 {
    color: #002b5c;
}

.about-content p {
    line-height: 1.8;
    max-width: 700px;
    margin: 20px auto;
    color: #333;
}

/* Footer */
.main-footer {
    background: #002b5c;
    color: white;
    text-align: center;
    padding: 20px 10px;
    font-size: 14px;
}
