/* ===== ROOT VARIABLES ===== */
:root {
    --blue-dark: #2980b9;
    --blue-medium: #3498db;
    --blue-light: #5dade2;
    --blue-sky: #87ceeb;
    --yellow: #fdb813;
    --yellow-dark: #f39c12;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --gray-dark: #64748b;
    --text-dark: #2c3e50;
    --text-light: #5a6c7d;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

body[dir="rtl"] {
    font-family: 'Vazir', 'Segoe UI', Tahoma, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

input, textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVBAR ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: var(--transition);
}

#navbar.scrolled {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.brand-arf {
    color: var(--text-dark);
}

.brand-cargo {
    color: var(--yellow);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.lang-btn {
    background: var(--yellow);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background: var(--yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 184, 19, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #87ceeb 0%, #5dade2 100%);
    overflow: hidden;
    padding-top: 70px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.15;
}

.cloud {
    position: absolute;
    background: var(--white);
    border-radius: 100px;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.cloud-1 {
    width: 200px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.cloud-2 {
    width: 300px;
    height: 80px;
    top: 50%;
    right: 15%;
    animation-delay: 5s;
}

.cloud-3 {
    width: 250px;
    height: 70px;
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    color: var(--text-dark);
}

.hero-badge {
    display: inline-block;
    background: rgba(253, 184, 19, 0.2);
    color: var(--yellow-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(253, 184, 19, 0.3);
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--text-dark);
}

.hero-text h1 .highlight {
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 32px;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    padding: 24px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-mini {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.6);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--yellow);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(253, 184, 19, 0.3);
}

.btn-primary:hover {
    background: var(--yellow-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(253, 184, 19, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-secondary:hover {
    background: var(--text-dark);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-images {
    position: relative;
    height: 500px;
}

.hero-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.3; }
}

.hero-plane {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 200px;
    animation: fly 6s infinite ease-in-out;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

@keyframes fly {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-ship {
    position: absolute;
    bottom: 20%;
    left: 5%;
    width: 180px;
    animation: wave 5s infinite ease-in-out;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

@keyframes wave {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

.hero-warehouse {
    position: absolute;
    bottom: 10%;
    right: 15%;
    width: 160px;
    animation: float 4s infinite ease-in-out;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.scroll-arrow {
    font-size: 1.5rem;
}

/* ===== SECTION COMMON ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: var(--yellow);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-badge.light {
    background: var(--white);
    color: var(--text-dark);
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 16px;
    font-weight: 700;
}

.section-title.light {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle.light {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== SERVICES ===== */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--yellow);
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--text-dark);
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-badge {
    display: inline-block;
    background: var(--white);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== STATS ===== */
.stats-section {
    background: var(--gray-light);
    color: var(--text-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--yellow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
}

/* ===== WHY US ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.why-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.why-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--yellow);
}

.why-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.why-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.why-cta {
    background: var(--white);
    padding: 48px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: var(--shadow-lg);
}

.cta-content {
    color: var(--text-dark);
}

.cta-content h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.cta-content p {
    color: var(--text-light);
}

.btn-cta {
    background: var(--yellow);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(253, 184, 19, 0.3);
}

.btn-cta:hover {
    background: var(--yellow-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(253, 184, 19, 0.4);
}

/* ===== TRACKING ===== */
.tracking-section {
    background: linear-gradient(180deg, #87ceeb 0%, #5dade2 100%);
    color: var(--text-dark);
}

.tracking-box {
    max-width: 700px;
    margin: 0 auto;
}

.tracking-form {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.input-group {
    flex: 1;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--text-light);
}

[dir="rtl"] .input-icon {
    left: auto;
    right: 16px;
}

.input-group input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border-radius: 10px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 1rem;
}

[dir="rtl"] .input-group input {
    padding: 16px 48px 16px 16px;
}

.input-group input::placeholder {
    color: var(--text-light);
}

.btn-track {
    background: var(--yellow);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(253, 184, 19, 0.3);
}

.btn-track:hover {
    background: var(--yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(253, 184, 19, 0.4);
}

#trackingResult {
    background: var(--white);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: none;
}

#trackingResult.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== CONTACT ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--gray-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateX(-5px);
}

[dir="rtl"] .contact-card:hover {
    transform: translateX(5px);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: var(--yellow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
}

.contact-details h4 {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-details p {
    color: var(--text-light);
}

.contact-hours {
    padding: 24px;
    background: var(--text-dark);
    color: var(--white);
    border-radius: var(--border-radius);
}

.contact-hours h4 {
    margin-bottom: 12px;
    font-weight: 600;
}

.contact-hours p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    background: var(--gray-light);
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue-medium);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    background: var(--yellow);
    color: var(--white);
    padding: 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

.btn-submit:hover {
    background: var(--yellow-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#contactResult {
    margin-top: 16px;
    padding: 16px;
    border-radius: 8px;
    display: none;
}

#contactResult.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

#contactResult.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#contactResult.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== FOOTER ===== */
#footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .brand-logo {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--yellow);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--yellow);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
        gap: 24px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
    }

    [dir="rtl"] .nav-menu {
        right: auto;
        left: -100%;
    }

    .nav-menu.active {
        right: 0;
    }

    [dir="rtl"] .nav-menu.active {
        right: auto;
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-images {
        height: 350px;
    }

    .hero-plane,
    .hero-ship,
    .hero-warehouse {
        width: 120px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-cta {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
    }

    .tracking-form {
        flex-direction: column;
    }

    .btn-track {
        width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .why-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
