/* ==========================================================================
   1. RESET & VARIABLES
   ========================================================================== */
:root {
    --primary-color: #0d2c54;     /* آبی تیره سازمانی */
    --secondary-color: #c99c33;   /* طلایی متالیک (تاج) */
    --dark-neutral: #1a202c;      /* زغالی تیره */
    --light-neutral: #f7fafc;     /* خاکستری بسیار روشن */
    --white: #ffffff;
    --text-color: #4a5568;        /* رنگ متن اصلی */
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --font-family: 'Vazirmatn', Tahoma, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   2. BUTTONS & UI ELEMENTS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #b08524;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 156, 51, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-primary-outline {
    border: 2px solid var(--secondary-color);
    color: var(--primary-color);
    background-color: transparent;
    padding: 8px 20px;
}

.btn-primary-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* ==========================================================================
   3. SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
}

.brand-name {
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.main-navigation ul {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 700;
    color: var(--dark-neutral);
    padding: 5px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: 0.3s ease;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    background-image: url('img/654db567a01afbcbb29115d1_Starting_an_Import_Export_Business_in_Singapore.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 90vh;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 44, 84, 0.95) 0%, rgba(13, 44, 84, 0.6) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
}

.hero-tagline {
    font-weight: 900;
    color: var(--secondary-color);
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    line-height: 1.8;
    color: #e2e8f0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* ==========================================================================
   5. SERVICES SECTION
   ========================================================================== */
.services-section {
    padding: 100px 0;
    background-color: var(--light-neutral);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-bottom: 3px solid transparent;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--secondary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(199, 156, 51, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   6. ABOUT SECTION
   ========================================================================== */
.about-section {
    padding: 100px 0;
    background-color: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feature-item {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
}

.feature-item span {
    color: var(--secondary-color);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e4d8c 100%);
    color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 8px 24px rgba(13, 44, 84, 0.15);
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 1rem;
    color: #cbd5e1;
}

/* ==========================================================================
   7. CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background-color: var(--light-neutral);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.contact-desc {
    margin-bottom: 40px;
    color: #cbd5e1;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item .icon {
    font-size: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.contact-form {
    background-color: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.contact-form h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    border-radius: var(--border-radius);
    outline: none;
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(199, 156, 51, 0.1);
}

/* ==========================================================================
   8. SITE FOOTER
   ========================================================================== */
.site-footer {
    background-color: #0b1e36;
    color: #e2e8f0;
    padding: 80px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
}

.footer-logo-area h4 {
    margin-bottom: 0;
}

.footer-logo-area h4::after {
    display: none;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

.footer-col p {
    margin-bottom: 15px;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ==========================================================================
   9. UX ANIMATION TRANSTIONS (SCROLL TRIGGERS)
   ========================================================================== */
.reveal-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade.is-visible,
.reveal-slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   10. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .about-container,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .about-stats {
        flex-direction: row;
    }
    .stat-card {
        flex: 1;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background-color: var(--white);
        box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.05);
        transition: right 0.4s ease;
        padding: 40px;
        z-index: 999;
    }

    .main-navigation.is-open {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 25px;
    }

    .header-cta {
        display: none; /* مخفی کردن دکمه مشاوره تلفنی در سایزهای کوچک برای خلوت ماندن هدر */
    }

    .hero-section {
        height: auto;
        padding: 120px 0 80px 0;
        background-attachment: scroll; /* رفع مشکل هیرو در گوشی‌های قدیمی‌تر */
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        flex-direction: column;
    }

    .contact-info, .contact-form {
        padding: 30px 20px;
    }
}