:root {
    --primary: #4285F4;
    --secondary: #34A853;
    --dark: #333333;
    --light: #f8fafc;
    --accent: #34A853;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: IRANYekanX;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.8;
}

.container {
    max-width: 1370px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر */
header {
    background: linear-gradient(135deg, var(--primary), var(--primary));
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
}

.logo-img {
    height: 40px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
}

.logo-slogan {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: -15px;
}

.nav-links {
    display: flex;
    list-style: none;
    position: relative;
}

.nav-links li {
    margin-right: 20px;
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 0;
    display: block;
}

.nav-links a:hover {
    color: var(--secondary);
}

/* اسلایدر هیرو */
.hero-slider {
    width: 100%;
    height: 700px;
    position: relative;
    margin-top: 40px;
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0);
}

.slide-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

.slide-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.slide-btn {
    display: inline-block;
    background-color: #ffba00;
    color: #333;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.slide-btn:hover {
    background-color: #2d8e47;
    transform: translateY(-3px);
}

/* درباره شرکت */
.about {
    background-color: white;
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: var(--primary);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-title.animated {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    margin: 15px auto;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.about-content.animated {
    opacity: 1;
    transform: translateY(0);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary);
}

.highlight {
    color: var(--primary);
    font-weight: bold;
}

.features {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.feature-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.feature-item i {
    color: var(--secondary);
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.about-image.animated {
    opacity: 1;
    transform: translateY(0);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* پروژه‌ها */
.projects {
    background-color: #f1f5f9;
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    padding: 30px 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.project-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-logo {
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-logo.hrm {
    background: linear-gradient(135deg, #4285F4, #34A853);
}

.project-logo.finance {
    background: linear-gradient(135deg, #4285F4, #EA4335);
}

.project-logo.hse {
    background: linear-gradient(135deg, #34A853, #FBBC05);
}

.project-logo.attendance {
    background: linear-gradient(135deg, #EA4335, #4285F4);
}

.project-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary);
}

.project-info p {
    color: #64748b;
    margin-bottom: 15px;
}

/* زیرسیستم‌ها */
.subsystems-container {
    margin-top: 60px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.subsystems-container.animated {
    opacity: 1;
    transform: translateY(0);
}

.subsystems-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 24px;
    position: relative;
}

.subsystems-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
    margin: 15px auto;
}

.subsystems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.subsystem-card {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.subsystem-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.subsystem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.subsystem-logo {
    width: 85px;
    height: 85px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 35px;
}

.subsystem-card h4 {
    color: var(--dark);
    font-size: 16px;
}

.subsystem-card p {
    font-size: 13px;
    color: #64748b;
}

/* مشتریان */
.clients {
    background-color: white;
    padding: 60px 0;
}

.clients-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    padding: 10px 0;
}

.client-logo {
    flex: 0 0 300px;
    text-align: center;
    padding: 15px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.client-logo.animated {
    opacity: 1;
    transform: translateY(0);
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

/* تماس با ما */
.contact {
    background-color: var(--dark);
    color: white;
    padding: 80px 0;
}

.contact .section-title {
    color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.contact-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.contact-icon {
    background-color: var(--secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* نقشه */
.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #222;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.map-container.animated {
    opacity: 1;
    transform: translateY(0);
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: red;
    font-size: 30px;
    z-index: 10;
}

/* دکمه بازگشت به بالا */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

/* فوتر */
footer {
    background-color: var(--dark);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}

.copyright {
    color: #94a3b8;
    font-size: 14px;
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Responsive adjustments for mobile --- */
@media (max-width: 992px) {
    .hero-slider {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 28px;
        cursor: pointer;
        margin-right: 0;
        margin-left: 10px;
        z-index: 1101;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        background: var(--primary);
        flex-direction: column;
        align-items: flex-start;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        padding: 20px 0;
        display: none;
        z-index: 1100;
    }

        .nav-links.open {
            display: flex;
        }

        .nav-links li {
            margin: 0 0 10px 0;
            width: 100%;
        }

    nav {
        position: relative;
    }
}

@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        background: var(--primary);
        position: static;
    }

        .nav-links li {
            margin: 0 0 8px 0;
        }

    .logo {
        align-items: flex-start;
    }

    .hero-slider {
        height: 180px;
    }

    .slide-content h1 {
        font-size: 15px;
    }

    .slide-content p {
        font-size: 11px;
    }

    .slide-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .projects-grid,
    .subsystems-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .project-card,
    .subsystem-card {
        padding: 15px 8px;
    }

    .client-logo img {
        max-height: 32px;
    }

    .back-to-top {
        width: 36px;
        height: 36px;
        font-size: 16px;
        left: 10px;
        bottom: 10px;
    }

    footer {
        padding: 15px 0;
    }

    .social-links {
        gap: 10px;
        margin-bottom: 10px;
    }

    .copyright {
        font-size: 11px;
    }
}