/* Variables */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #ecf0f1;
    --text-color: #333;
    --light-text-color: #fff;
    --font-vazirmatn: 'Vazirmatn', sans-serif;
    --transition: all 0.3s ease;
}

/* General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-vazirmatn);
    background-color: var(--accent-color);
    color: var(--text-color);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 40px 0 10px;
    color: var(--secondary-color);
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
    text-align: center;
}

/* Header */
.main-header {
    background-color: var(--light-text-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-size: 28px;
    font-weight: 900;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

    .logo a:hover {
        color: var(--primary-color);
    }

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

    .main-nav ul li {
        margin-left: 30px;
    }

        .main-nav ul li a {
            text-decoration: none;
            color: var(--text-color);
            font-weight: 700;
            transition: var(--transition);
        }

            .main-nav ul li a:hover {
                color: var(--primary-color);
            }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

    .menu-toggle:hover {
        color: var(--primary-color);
    }

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    gap: 40px;
}

.hero-txt {
    flex: 1;
    min-width: 300px;
}

    .hero-txt h1 {
        font-size: 2.5rem;
        font-weight: bold;
        line-height: 1.4;
        margin-bottom: 20px;
        background: linear-gradient(90deg, #00c6ff, #0072ff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .hero-txt p {
        font-size: 1.1rem;
        margin-bottom: 30px;
        color: #ddd;
    }

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-button,
.cta-button-secondary {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease-in-out;
    text-align: center;
}

.cta-button {
    background: #00c6ff;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 198, 255, 0.4);
}

    .cta-button:hover {
        background: #0072ff;
        box-shadow: 0 8px 20px rgba(0, 114, 255, 0.6);
    }

.cta-button-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

    .cta-button-secondary:hover {
        background: #fff;
        color: #2c5364;
    }

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

    .hero-image img {
        max-width: 100%;
        border-radius: 20px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
        transition: transform 0.4s ease;
    }

        .hero-image img:hover {
            transform: scale(1.05);
        }

/* Services Section */
.services-section {
    padding: 80px 0;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.service-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    padding: 40px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    flex: 1 1 300px;
    max-width: 350px;
}

    .service-item:hover {
        transform: translateY(-12px) scale(1.03);
        box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    }

.icon_khadamat i {
    font-size: 60px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.4s ease;
}

.service-item:hover .icon_khadamat i {
    transform: rotate(10deg) scale(1.2);
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-item p {
    color: #666;
    margin-bottom: 20px;
}

.learn-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
}

    .learn-more:hover {
        text-decoration: underline;
    }

/* Why Us Section */
.why-us-section {
    padding: 80px 0;
}

.why-us-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.why-us-item {
    background: linear-gradient(135deg, #ffffff, #f1f1f1);
    padding: 35px 25px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: 0.3s ease-in-out;
    text-align: center;
    flex: 1 1 300px;
    max-width: 350px;
}

    .why-us-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }

    .why-us-item i {
        font-size: 65px;
        margin-bottom: 15px;
        color: black;
        transition: transform 0.4s ease;
    }

    .why-us-item:hover i {
        transform: scale(1.15);
    }

    .why-us-item h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        color: var(--secondary-color);
    }

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.stat-item {
    padding: 30px;
    border-radius: 15px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    transition: transform 0.4s ease;
    text-align: center;
    flex: 1 1 200px;
    max-width: 250px;
}

    .stat-item:hover {
        transform: translateY(-10px);
    }

    .stat-item i {
        font-size: 75px;
        margin-bottom: 10px;
        color: #fff;
    }

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 8px;
    display: block;
}

/* Partners Section */
.partners-section {
    padding: 80px 0;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.partner-item {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
    text-align: center;
    flex: 1 1 250px;
    max-width: 300px;
}

    .partner-item:hover {
        transform: translateY(-10px) scale(1.05);
    }

    .partner-item img {
        max-width: 150px;
        filter: grayscale(100%);
        opacity: 0.6;
        transition: all 0.4s ease;
    }

    .partner-item:hover img {
        filter: grayscale(0);
        opacity: 1;
    }

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.testimonial-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}

    .testimonial-item:hover {
        transform: translateY(-8px);
    }

    .testimonial-item h5 {
        font-style: italic;
        font-size: 1.1rem;
        color: #333;
        margin-bottom: 20px;
    }

.testimonial-author h4 {
    font-weight: bold;
    margin-top: 15px;
    color: var(--secondary-color);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border-radius: 20px;
    padding: 60px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 80px 0;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
    }

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: border 0.3s, box-shadow 0.3s;
    font-family: var(--font-vazirmatn);
}

    .form-control:focus {
        border-color: #007bff;
        box-shadow: 0 0 10px rgba(0,123,255,0.3);
        outline: none;
    }

.submit-button {
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-vazirmatn);
}

    .submit-button:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0,114,255,0.4);
    }

/* Footer */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    padding: 50px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-info, .social-media {
    flex: 1;
    min-width: 300px;
    text-align: right;
}

    .social-media a {
        color: var(--light-text-color);
        font-size: 24px;
        margin-left: 20px;
        transition: var(--transition);
    }

        .social-media a:hover {
            color: var(--primary-color);
        }

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 20px;
}

/* ?????????? ????? DataList ???? ????? ???? */
asp|datalist {
    display: block !important;
    width: 100% !important;
}

    asp|datalist item {
        display: block !important;
        width: 100% !important;
        float: none !important;
    }

/* Responsive Styles */
@media (max-width: 1024px) {
    .service-item,
    .why-us-item {
        flex: 1 1 250px;
        max-width: 300px;
    }

    .stat-item {
        flex: 1 1 180px;
        max-width: 220px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background-color: var(--light-text-color);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        opacity: 0;
        visibility: hidden;
        height: calc(100vh - 80px);
        overflow-y: auto;
    }

        .main-nav.active {
            transform: translateX(0);
            opacity: 1;
            visibility: visible;
        }

        .main-nav ul {
            flex-direction: column;
            align-items: flex-end;
            padding: 20px;
        }

            .main-nav ul li {
                margin: 15px 0;
                width: 100%;
                text-align: right;
            }

                .main-nav ul li a {
                    display: block;
                    padding: 10px 0;
                    font-size: 18px;
                    border-bottom: 1px solid rgba(0,0,0,0.05);
                }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-txt h1 {
        font-size: 1.8rem;
    }

    .hero-txt p {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .service-item,
    .why-us-item,
    .stat-item,
    .partner-item {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        float: none !important;
        display: block !important;
        margin-bottom: 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info, .social-media {
        margin-bottom: 20px;
        text-align: center;
    }

    /* ???????? ???? ?????????? DataList ?? ?????? */
    asp|datalist {
        display: block !important;
    }

        asp|datalist item {
            display: block !important;
            width: 100% !important;
            float: none !important;
            clear: both !important;
        }

    .services-grid,
    .why-us-grid,
    .stats-grid,
    .partners-grid {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .service-item,
    .why-us-item,
    .stat-item,
    .partner-item,
    .testimonial-item {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .icon_khadamat i,
 {
        font-size: 40px;
    }
    .why-us-item i{
        font-size:40px;
        color:black;
    }

    .hero-txt h1 {
        font-size: 1.5rem;
    }

    .cta-button,
    .cta-button-secondary {
        width: 100%;
    }
}

/* ???????? ???? ???? ??? ???? DataList */
.mobile-layout-fix {
    display: block !important;
    width: 100% !important;
}

    .mobile-layout-fix > * {
        display: block !important;
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px !important;
    }
/* ?????? ??? ??????? */
#DataList5 .card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    width: 250px;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    cursor: pointer;
    animation: fadeInUp 0.6s ease forwards;
}

/* ??????? ???? */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ???? ?? ???? */
#DataList5 .card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ??? ???? */
#DataList5 .card-img {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

    #DataList5 .card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

/* ???? ???? ??? ??? ??? ???? */
#DataList5 .card:hover img {
    transform: scale(1.15) rotate(1deg);
}

/* ??? ???? */
#DataList5 .card-body {
    padding: 15px;
    background: linear-gradient(135deg, #f9f9f9, #f0f0f0);
    transition: background 0.3s ease;
}

    #DataList5 .card-body h3 {
        font-size: 16px;
        font-weight: 700;
        color: #222;
        margin: 0;
    }

    #DataList5 .card-body p {
        font-size: 13px;
        color: #666;
        margin-top: 8px;
    }

/* ???? ???? ??? ?? ???? */
#DataList5 .card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

/* ???? ????? */
#DataList5 .card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, transparent 80%);
    transform: rotate(25deg);
    opacity: 0;
    transition: opacity 0.5s;
}

#DataList5 .card:hover::before {
    opacity: 1;
}