﻿/* جلوگیری از بیرون زدن المان از صفحه در حالت موبایل */

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
}

img, iframe, video {
    max-width: 100%;
    height: auto;
}

.container, .row, section, article {
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
}
/*-------------------------------------*/

body {
    font-family: Vazirmatn, sans-serif;
    background: #c8f0df;
    margin: 0;
    padding: 0;
    padding-top : 10%;
    background: url('/Images/OfficeAutomationServices/Accounting-Tax-Services/Tax-Preparation-Services3.jpg') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.9;
    overflow-x :hidden;
}

/* بخش هدر */
.hero-section {
    position: relative;
    margin-top: 40px;
    background-color: rgba(97, 77, 32,0.5);
    color: #ffb703;
    text-align: center;
    padding: 100px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0,.7);
    border-color: rgba(227, 163, 18,0.5);
    border: thick;
    border-radius: 10px;
}

    .hero-section .overlay {
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.2), transparent 60%);
    }

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.2s ease-out;
}

    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        line-height: 1.8;
    }


div.box {
    /*background: linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6)), url('../ ') center fixed;*/
    color: #fff;
    background-color: rgba(107, 95, 79, .9);
    border-radius: 15px;
    text-align: right;
    padding: 20px 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    border: ridge;
    border-width: 3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0,.7);
/*    z-index: 2;
    animation: fadeInUp 3.2s ease-out;*/
}


.cta-button {
    background: linear-gradient(90deg, #ffb703, #fb8500);
    color: #fff;
    padding: 14px 40px;
    border-radius: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(251,133,0,0.4);
}

    .cta-button:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(251,133,0,0.6);
    }

/* بخش خدمات */
.services-section {
    padding: 100px 20px;
    text-align: center;
}

    .services-section h2 {
        font-size: 2.5rem;
        margin-bottom: 50px;
        color: #1a237e;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 10px;
}

.service-card {
    background-color: rgb(55, 60, 28);
    text-align:justify;
    /*background: #fff;*/
    color:white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0,.9);
    transition: all 0.4s ease;
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 25px rgb(150, 195, 122, 0.70);
    }

    .service-card h3 {
        text-align:center;
        color: #ffb703;
        margin-bottom: 15px;
        font-size: 1.4rem;
    }

/* فراخوان */
.cta-section {
    background: linear-gradient(to right, #283593, #5c6bc0);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

    .cta-section h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .cta-section p {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

.glow {
    box-shadow: 0 0 15px rgba(255,255,255,0.7);
}

/* فرم تماس */
.contact-section {
    padding: 80px 20px;
    background: #fff;
    text-align: center;
}

    .contact-section h2 {
        color: #1a237e;
        margin-bottom: 40px;
    }

.contact-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    .contact-form input,
    .contact-form textarea {
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 12px;
        font-size: 1rem;
        transition: border 0.3s;
    }

        .contact-form input:focus,
        .contact-form textarea:focus {
            border-color: #3f51b5;
            outline: none;
        }

.success-message {
    display: none;
    margin-top: 20px;
    color: #2e7d32;
    font-weight: bold;
    background: #e8f5e9;
    padding: 10px;
    border-radius: 10px;
}

/* فوتر */
.footer {
    background: #1a237e;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* انیمیشن */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
