﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --dark: #1a202c;
    --light: #f7fafc;
    --text: #2d3748;
    --accent: #48bb78;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: var(--light);
    color: var(--text);
    overflow-x: hidden;
}

/* Header با افکت گلس مورفیسم */
header {
    background: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

    nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: white;
        transition: width 0.3s ease;
    }

    nav a:hover::after {
        width: 100%;
    }

    nav a:hover {
        transform: translateY(-2px);
    }

/* اسلایدر با افکت‌های مدرن */
.slider {
    position: relative;
    max-width: 1400px;
    margin: 3rem auto;
    height: 600px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.1);
}

    .slide.active {
        opacity: 1;
        animation: zoomIn 1.5s ease-out forwards;
    }

@keyframes zoomIn {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 4rem;
    animation: slideUp 1s ease-out 0.3s both;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.4rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

    .dot:hover {
        background: rgba(255, 255, 255, 0.7);
        transform: scale(1.2);
    }

    .dot.active {
        background: white;
        width: 40px;
        border-radius: 7px;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }

/* دکمه‌های کنترل اسلایدر */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.slider:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    right: 20px; /* در RTL راست = قبلی */
}

.next-btn {
    left: 20px; /* در RTL چپ = بعدی */
}

/* بخش خدمات */
.services {
    max-width: 1400px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
    font-weight: 800;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
        height: 5px;
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        border-radius: 3px;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        opacity: 0;
        transition: opacity 0.4s;
        z-index: 0;
    }

    .service-card:hover::before {
        opacity: 0.05;
    }

    .service-card:hover {
        transform: translateY(-15px) scale(1.02);
        box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25);
        border-color: var(--primary);
    }

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.service-card h3 {
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: #718096;
    line-height: 1.8;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

/* بخش پروژه‌ها */
.projects {
    max-width: 1400px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
    position: relative;
}

    .project-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    }

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
    overflow: hidden;
}

    .project-image::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
        animation: shimmer 3s infinite;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.project-info {
    padding: 2rem;
}

    .project-info h3 {
        font-size: 1.5rem;
        color: var(--dark);
        margin-bottom: 0.8rem;
        font-weight: 700;
    }

    .project-info p {
        color: #718096;
        line-height: 1.8;
        margin-bottom: 1rem;
    }

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-tag {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* بخش نمادها و مجوزها */
.certifications {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    padding: 5rem 0;
    margin-top: 6rem;
}

.cert-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cert-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
}

    .cert-card:hover {
        transform: translateY(-10px) rotate(2deg);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
        border-color: var(--primary);
    }

.cert-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: grayscale(0.3);
    transition: all 0.3s;
}

.cert-card:hover .cert-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

.cert-card h4 {
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 600;
    margin-top: 1rem;
}

.cert-card p {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 0.5rem;
}

/* بخش تیم */
.team {
    background: white;
    padding: 5rem 0;
    margin-top: 6rem;
}

.team-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

    .team-member::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.1), transparent);
        transform: rotate(45deg);
        transition: all 0.5s;
    }

    .team-member:hover::before {
        left: 100%;
    }

    .team-member:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
        border-color: var(--primary);
    }

    .team-member img {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 1.5rem;
        border: 5px solid var(--primary);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
        transition: all 0.3s;
        position: relative;
        z-index: 1;
    }

    .team-member:hover img {
        transform: scale(1.1);
        border-color: var(--secondary);
    }

    .team-member h3 {
        font-size: 1.4rem;
        color: var(--dark);
        margin-bottom: 0.5rem;
        font-weight: 700;
        position: relative;
        z-index: 1;
    }

    .team-member .position {
        color: var(--primary);
        font-weight: 600;
        margin-bottom: 1rem;
        font-size: 1.05rem;
        position: relative;
        z-index: 1;
    }

    .team-member p {
        color: #718096;
        font-size: 0.95rem;
        line-height: 1.6;
        position: relative;
        z-index: 1;
    }

/* فوتر */
footer {
    background: linear-gradient(135deg, #1a202c, #2d3748);
    color: white;
    padding: 4rem 0 1rem;
    margin-top: 6rem;
    position: relative;
}

    footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
        animation: gradient 3s ease infinite;
        background-size: 200% 200%;
    }

@keyframes gradient {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

    .footer-section h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background: var(--primary);
        border-radius: 2px;
    }

.footer-section p {
    color: #cbd5e0;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

    .footer-section ul li {
        margin-bottom: 0.8rem;
    }

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

    .footer-section a:hover {
        color: white;
        transform: translateX(-5px);
    }

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

    .social-links a {
        width: 45px;
        height: 45px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
        font-size: 1.2rem;
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    }

        .social-links a:hover {
            transform: translateY(-5px) rotate(360deg);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.5);
        }

.copyright {
    text-align: center;
    padding: 2rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    color: #cbd5e0;
    font-size: 0.95rem;
}

/* ریسپانسیو */
@media (max-width: 1200px) {
    .header-container,
    .services,
    .projects,
    .cert-container,
    .team-container,
    .footer-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        background: rgba(102, 126, 234, 0.98);
        top: 100%;
        right: 0;
        left: 0;
        padding: 1rem;
        display: none;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slider {
        height: 400px;
        margin: 1.5rem;
        border-radius: 16px;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .projects-grid,
    .cert-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services,
    .projects,
    .team {
        margin: 3rem auto;
    }

    .service-card,
    .project-card,
    .team-member {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .slide-content {
        padding: 2rem 1rem;
    }

        .slide-content h2 {
            font-size: 1.5rem;
        }

    .slider {
        height: 300px;
    }

    .service-icon {
        font-size: 3rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* انیمیشن‌های اضافی */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.project-card,
.team-member,
.cert-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

    .service-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .service-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .service-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .service-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .service-card:nth-child(5) {
        animation-delay: 0.5s;
    }

    .service-card:nth-child(6) {
        animation-delay: 0.6s;
    }
