/* استایل‌های سفارشی */
:root {
    --primary: #0a5c8e;
    --primary-dark: #074269;
    --secondary: #28a745;
    --light-bg: #f8f9fc;
}

@font-face {
    font-family: yekan;
    src: url(fonts/pixelboy-BYekan.eot);
    src: url(fonts/pixelboy-BYekan.ttf);
    src: url(fonts/pixelboy-BYekan.woff);
}

@font-face {
    font-family: titr;
    src: url(fonts/pixelboy-BTitrBold.eot);
    src: url(fonts/pixelboy-BTitrBold.ttf);
    src: url(fonts/pixelboy-BTitrBold.woff);
}

body {
    font-family: yekan;
    background-color: #fff;
    color: #1e2a3e;
}

h1, h2, h3, h4, h5, h6 {
    font-family: titr;
}

/* نوار ناوبری */
.navbar {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-bottom: 2px solid var(--primary);
}
.navbar-brand {
    color: var(--primary) !important;
    font-size: 1.5rem;
}
.nav-link {
    color: #2c3e50 !important;
    font-weight: 500;
    margin: 0 0.3rem;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--primary);
}

/* بخش Hero */
.hero-carousel {
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    overflow: hidden;
}

.carousel-item {
    height: 90vh;
    min-height: 500px;
    position: relative;
}

.carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* قرارگیری کپشن در مرکز عمودی و افقی */
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    right: auto;
    bottom: auto;
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 1.5rem;
    padding: 2rem 2.5rem;
    width: 80%;
    max-width: 750px;
    z-index: 2;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.carousel-caption h1 {
    color: #0a5c8e;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.carousel-caption .lead {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(10, 92, 142, 0.7);
    border-radius: 50%;
    padding: 1.2rem;
    background-size: 50%;
}

@media (max-width: 768px) {
    .carousel-item {
        height: 70vh;
        min-height: 450px;
    }
    .carousel-caption {
        width: 90%;
        padding: 1.2rem;
    }
    .carousel-caption h1 {
        font-size: 1.3rem;
    }
    .carousel-caption .lead {
        font-size: 0.9rem;
    }
}

/* کارت خدمات */
.service-card {
    background: white;
    border-radius: 1rem;
    padding: 1.8rem 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0,0,0,0.05);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.service-card i {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}
.service-card p {
    color: #4b5563;
    font-size: 0.95rem;
}

/* بخش مزایا */
.benefit-icon i {
    font-size: 2.5rem;
    color: var(--primary);
    background-color: #e3f2fd;
    padding: 0.8rem;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    line-height: 70px;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bg-light {
    background-color: var(--light-bg) !important;
}

/* باکس تماس */
.contact-box {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}
.contact-box i {
    color: var(--primary);
}
.contact-box .btn-primary {
    background-color: var(--primary);
    border: none;
}
.contact-box .btn-primary:hover {
    background-color: var(--primary-dark);
}
footer {
    background-color: #1e2a3e;
    color: #ccc;
    padding: 1.5rem 0;
    margin-top: 2rem;
}
footer a {
    color: #ddd;
}
footer a:hover {
    color: white;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .service-card {
        padding: 1.2rem;
    }
}