﻿/* Persian Font */
* {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
}

/* Body and General Styles */
body {
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.7;
}

/* Header Styles */
.header-section {
    position: relative;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: #2563eb !important;
}

.brand-text {
    color: #2563eb;
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: #374151 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

    .navbar-nav .nav-link:hover {
        color: #2563eb !important;
        background-color: rgba(37, 99, 235, 0.1);
        transform: translateY(-1px);
    }

    .navbar-nav .nav-link.btn {
        background-color: #2563eb !important;
        border: none;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }

        .navbar-nav .nav-link.btn:hover {
            background-color: #1d4ed8 !important;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
        }

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 0.75rem;
    padding: 0.5rem 0;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    margin: 0.25rem 0.5rem;
}

    .dropdown-item:hover {
        background-color: rgba(37, 99, 235, 0.1);
        color: #2563eb;
        transform: translateX(-5px);
    }

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Footer Styles */
.footer-section {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #e5e7eb;
    position: relative;
    overflow: hidden;
}

    .footer-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    }

.footer-title {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

    .footer-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 30px;
        height: 2px;
        background: linear-gradient(90deg, #3b82f6, #1d4ed8);
        border-radius: 1px;
    }

.company-name {
    color: #60a5fa;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-links a {
        color: #d1d5db;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
        padding: 0.25rem 0;
        display: inline-block;
    }

        .footer-links a:hover {
            color: #60a5fa;
            transform: translateX(-5px);
        }

        .footer-links a::before {
            content: '◀';
            position: absolute;
            right: -15px;
            opacity: 0;
            transition: all 0.3s ease;
            color: #3b82f6;
            font-size: 0.8rem;
        }

        .footer-links a:hover::before {
            opacity: 1;
            right: -20px;
        }

.contact-info p {
    margin-bottom: 0.75rem;
    color: #d1d5db;
    transition: color 0.3s ease;
}

    .contact-info p:hover {
        color: #ffffff;
    }

.contact-info i {
    color: #3b82f6;
    width: 20px;
}

.social-links {
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

    .social-link:hover {
        background: #3b82f6;
        color: white;
        transform: translateY(-3px) scale(1.1);
        box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
    }

.copyright {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-nav {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 0.75rem;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

        .navbar-nav .nav-link.btn {
            margin-top: 0.5rem;
            text-align: center;
        }

    .footer-section .col-md-4.text-md-end {
        text-align: right !important;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 40px;
    }

    .main-content {
        margin-top: 70px;
    }

    .footer-section {
        padding: 3rem 0 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section .col-lg-4,
.footer-section .col-lg-3,
.footer-section .col-lg-2 {
    animation: fadeInUp 0.6s ease forwards;
}

    .footer-section .col-lg-4:nth-child(2) {
        animation-delay: 0.1s;
    }

    .footer-section .col-lg-3:nth-child(3) {
        animation-delay: 0.2s;
    }

    .footer-section .col-lg-2:nth-child(4) {
        animation-delay: 0.3s;
    }

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-slideshow {
        height: 70vh;
    }

    .carousel-item {
        height: 70vh;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card,
    .project-card,
    .blog-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-slideshow {
        height: 60vh;
    }

    .carousel-item {
        height: 60vh;
    }

    .carousel-caption h1 {
        font-size: 1.75rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}



/* About Page Specific Styles */
.section-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Company Introduction */
.company-intro {
    background: #fff;
}

.company-image img {
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.company-image:hover img {
    transform: scale(1.02);
}

.company-stats {
    margin-top: 2rem;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Mission & Vision Cards */
.mission-card,
.vision-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

    .mission-card:hover,
    .vision-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    }

.icon-wrapper {
    text-align: center;
}

.card-title {
    color: #2c3e50;
    font-weight: 600;
}

.card-text {
    line-height: 1.7;
    color: #495057;
}

/* Values Section */
.value-card {
    background: #fff;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

    .value-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

.value-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-emoji {
    font-size: 3rem;
    line-height: 1;
}

.value-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.2rem;
}

.value-text {
    color: #6c757d;
    line-height: 1.6;
}

/* Team Section */
.team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

    .team-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    }

.team-photo {
    margin-bottom: 1.5rem;
}

.team-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid #f8f9fa;
    transition: transform 0.3s ease;
}

.team-card:hover .team-img {
    transform: scale(1.05);
}

.team-name {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.2rem;
}

.team-role {
    font-weight: 500;
    font-size: 1rem;
}

.team-bio {
    font-size: 0.9rem;
    line-height: 1.6;
}

.team-experience {
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* Achievements Section */
.achievement-card {
    background: #fff;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

    .achievement-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

.achievement-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.3rem;
}

.achievement-desc {
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .company-stats {
        margin-top: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .team-img {
        width: 100px;
        height: 100px;
    }

    .value-title,
    .achievement-title {
        font-size: 1.1rem;
    }

    .icon-emoji {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .team-img {
        width: 80px;
        height: 80px;
    }

    .value-card,
    .team-card,
    .achievement-card {
        margin-bottom: 1rem;
    }
}


/* Project Detail Page Styles */
.project-header-section {
    margin-top: 80px;
}

.project-header-image {
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-header-overlay {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(55, 65, 81, 0.6));
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-header-content {
    text-align: center;
    color: white;
}

.project-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Project Info Section */
.project-info-section {
    background: #f8fafc;
    padding: 3rem 0;
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.project-info-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.info-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.info-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.status-completed {
    color: #059669;
}

.status-inprogress {
    color: #d97706;
}

.status-planned {
    color: #7c3aed;
}

/* Project Description Section */
.project-description-section {
    padding: 4rem 0;
}

.project-description-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

    .project-description-content h3 {
        font-size: 1.5rem;
        font-weight: 600;
        margin: 2rem 0 1rem;
        color: #1f2937;
    }

    .project-description-content ul {
        margin: 1rem 0;
        padding-right: 1.5rem;
    }

    .project-description-content li {
        margin-bottom: 0.5rem;
    }

/* Gallery Section */
.gallery-section {
    background: #f8fafc;
    padding: 4rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .gallery-item:hover {
        transform: scale(1.05);
    }

    .gallery-item img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom {
    font-size: 2rem;
    color: white;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.gallery-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .gallery-modal-content img {
        max-width: 100%;
        max-height: 80vh;
        object-fit: contain;
    }

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

    .gallery-modal-close:hover {
        color: #bbb;
    }

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.gallery-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    pointer-events: all;
    transition: background 0.3s ease;
}

    .gallery-nav-btn:hover {
        background: rgba(255, 255, 255, 0.4);
    }

/* Project Highlights Section */
.project-highlights-section {
    padding: 4rem 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

    .highlight-item:hover {
        transform: translateY(-5px);
    }

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.highlight-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: #374151;
}

/* Related Projects Section */
.related-projects-section {
    background: #f8fafc;
    padding: 4rem 0;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

    .project-card:hover {
        transform: translateY(-5px);
    }

.project-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

    .project-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.project-card:hover .project-card-image img {
    transform: scale(1.1);
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-card-overlay {
    opacity: 1;
}

.project-card-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid white;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .project-card-link:hover {
        background: white;
        color: #1f2937;
    }

.project-card-content {
    padding: 1.5rem;
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.project-card-category {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtext {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1rem;
    }

    .footer-desktop {
        display: none;
    }

    .footer-mobile {
        display: block;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

        .footer-links a {
            color: #d1d5db;
            text-decoration: none;
            padding: 0.5rem;
        }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-text {
        font-size: 1.25rem;
    }

    .project-title {
        font-size: 1.75rem;
    }

    .project-subtitle {
        font-size: 1rem;
    }

    .project-description-content {
        font-size: 1rem;
    }

    .gallery-modal-close {
        right: 20px;
        font-size: 30px;
    }

    .project-title {
        font-size: 2rem;
    }

    .project-subtitle {
        font-size: 1.25rem;
    }

    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .related-projects-grid {
        grid-template-columns: 1fr;
    }

    .gallery-modal-nav {
        padding: 0 10px;
    }

    .gallery-nav-btn {
        padding: 0.75rem;
        font-size: 1.25rem;
    }
}