/* استایل‌های پایه */
body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Vazir', sans-serif;
}

.ltr {
    direction: ltr;
    text-align: left;
    font-family: Arial, sans-serif;
}

/* نویگیشن اصلی */
.main-nav {
    background: #333;
    padding: 15px;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

.language-switcher {
    margin-left: 15px;
}

.lang-link {
    color: white;
    text-decoration: none;
    margin-left: 15px;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
}

/* بخش‌ها */
.section {
    min-height: 100vh;
    padding: 50px;
}

.section-title {
    text-align: inherit;
    margin-bottom: 30px;
}

.hero-section {
    padding-top: 80px;
}

.projects-section {
    background: #f9f9f9;
}

.services-section {
    background: #fff;
}

.team-section {
    background: #f5f5f5;
}

/* کارت‌های پروژه ها */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.project-card img {
    width: 100%;
    border-radius: 8px;
}
.project-details {
    padding: 15px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0;
    color: #666;
    font-size: 0.9em;
}

.project-meta i {
    margin-left: 5px;
}


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

.service-card {
    text-align: center;
    padding: 20px;
}

.service-card img {
    width: 80px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.team-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* دکمه‌ها */
.gallery-btn, .cv-btn {
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.cv-btn {
    padding: 8px 15px;
}


/* استایل های کاروسل */
.hero-section {
    height: 100vh;
    position: relative;
}

.carousel-item {
    height: 100vh;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    bottom: 30%;
    right: 10%;
    left: 10%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.5rem;
}

/* انیمیشن برای متن ها */
.animate__animated {
    animation-duration: 1.5s;
}

/* تنظیمات جهت برای زبان فارسی */
.rtl .carousel-caption {
    text-align: right;
}

.ltr .carousel-caption {
    text-align: left;
}



/* رسپانسیو */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }
    
    .nav-menu {
        flex-direction: column;
        margin-top: 15px;
    }
    
    .projects-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 30px 15px;
    }
}
