:root {
    --primary-color: #ff9800;
    --primary-dark: #b66d00;
    --secondary-color: #ff9800;
    --dark-color: #121212;
    --dark-light: #1e1e1e;
    --dark-lighter: #2d2d2d;
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --border-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-padding: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    direction: rtl;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    padding: 80px 0;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ff9800, #1a73e8);
    border-radius: 5px;
    border: 2px solid rgba(30, 30, 30, 0.8);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ff6b00, #0d47a1);
}

.error-message {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #ff5252;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
}

.error-message i {
    font-size: 1.2rem;
}

.success-message {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-message i {
    font-size: 1.2rem;
}

.warning-message {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-message i {
    font-size: 1.2rem;
}

.info-message {
    background-color: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #2196f3;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-message i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .error-message,
    .success-message,
    .warning-message,
    .info-message {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #e68900;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.highlight {
    color: var(--secondary-color);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
    color: white;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

.image-placeholder {
    background-color: var(--dark-lighter);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--secondary-color);
    font-size: 4rem;
}

@media (max-width: 768px) {
    .image-placeholder {
        font-size: 3rem;
    }
}

.service-card, .portfolio-item, .mobile-nav {
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.mobile-nav-link {
    animation: slideInLeft 0.4s ease forwards;
    opacity: 0;
}

.mobile-nav-item:nth-child(1) .mobile-nav-link {
    animation-delay: 0.1s;
}

.mobile-nav-item:nth-child(2) .mobile-nav-link {
    animation-delay: 0.15s;
}

.mobile-nav-item:nth-child(3) .mobile-nav-link {
    animation-delay: 0.2s;
}

.mobile-nav-item:nth-child(4) .mobile-nav-link {
    animation-delay: 0.25s;
}

.mobile-nav-item:nth-child(5) .mobile-nav-link {
    animation-delay: 0.3s;
}

.mobile-nav-item:nth-child(6) .mobile-nav-link {
    animation-delay: 0.35s;
}

.mobile-nav-item:nth-child(7) .mobile-nav-link {
    animation-delay: 0.4s;
}

.image-fit {
    object-fit: cover;
    object-position: center;
}

