/* MITSURO Brand Colors */
:root {
    --primary-color: #ac313a;
    --primary-color-rgb: 172, 49, 58;
    --dark-gray: #2d2d2f;
    --gray: #808080;
    --off-white: #f5f5f5;
    --white: #ffffff;
    --black: #000000;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Vazirmatn', sans-serif;
    line-height: 2.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* RTL Support for Persian */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .navbar-nav {
    flex-direction: row-reverse;
}

.rtl .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.rtl .me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

.rtl .text-end {
    text-align: left !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--gray) !important;
}

.text-white {
    color: var(--white) !important;
}

.text-dark {
    color: var(--dark-gray) !important;
}

/* Navigation */
.navbar {
    background-color: var(--dark-gray) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
    color: var(--primary-color);
}

.navbar-toggler:focus {
    box-shadow: none;
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(172, 49, 58, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown menu styling */
.dropdown-menu {
    background-color: var(--dark-gray);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
}

.dropdown-item {
    color: var(--white);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Main Content */
main {
    padding-top: 76px; /* Height of navbar */
}

@media (max-width: 768px) {
    main {
        padding-top: 80px; /* Reduced space for mobile navbar */
    }
}

@media (max-width: 576px) {
    main {
        padding-top: 85px; /* Reduced space for small mobile */
    }
    
    .hero-section {
        padding-top: 15px;
        padding-bottom: 50px;
    }
    
    .hero-content {
        padding-top: 15px;
    }
    
    .hero-content h1 {
        margin-top: 15px;
        font-size: 2rem;
    }
    
    .hero-content p {
        margin-top: 15px;
    }
    
    /* General mobile spacing */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-4 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-gray) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(172, 49, 58, 0.8) 0%, rgba(45, 45, 47, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #8a2a32;
    border-color: #8a2a32;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(172, 49, 58, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-outline-light {
    color: var(--white);
    border-color: var(--white);
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--dark-gray);
}

.btn-light {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--dark-gray);
}

.btn-light:hover {
    background-color: var(--off-white);
    border-color: var(--off-white);
    color: var(--dark-gray);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    text-align: center;
}

.bg-light {
    background-color: var(--off-white) !important;
}

.bg-dark {
    background-color: var(--dark-gray) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background-color: var(--white);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--dark-gray);
    font-weight: 600;
}

.card-text {
    color: var(--gray);
}

/* Service Cards */
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

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

.service-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h5 {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Portfolio */
.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(172, 49, 58, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

/* Team Cards */
.team-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.team-avatar {
    margin-bottom: 1.5rem;
}

.team-card h4 {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-card p {
    color: var(--gray);
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.testimonial-card p {
    color: var(--gray);
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card h6 {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-card small {
    color: var(--gray);
}

/* Stats */
.counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.counter + h5 {
    color: var(--white);
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--dark-gray) !important;
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer h5, .footer h6 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-info-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.contact-item h6 {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-icon {
    color: var(--primary-color);
}

/* Form Elements */
.form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(172, 49, 58, 0.25);
}

.form-select {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(172, 49, 58, 0.25);
}

/* Badges */
.badge {
    border-radius: 6px;
    font-weight: 500;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: var(--dark-gray) !important;
}

.badge.bg-light {
    background-color: var(--off-white) !important;
    color: var(--dark-gray) !important;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #e0e0e0;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.pagination .page-link:hover {
    color: var(--primary-color);
    background-color: var(--off-white);
}

/* Accordion */
.accordion-button {
    background-color: var(--white);
    color: var(--dark-gray);
    border: none;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    background-color: var(--white);
    color: var(--gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .counter {
        font-size: 2.5rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-collapse {
        background-color: var(--dark-gray);
        border-radius: 8px;
        margin-top: 10px;
        padding: 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    .navbar-toggler {
        padding: 4px 8px;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(172, 49, 58, 0.25);
    }
    
    .navbar-toggler[aria-expanded="true"] {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }
    
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    /* Additional spacing for mobile */
    .hero-section {
        padding-top: 10px;
        padding-bottom: 40px;
    }
    
    .hero-content {
        padding-top: 10px;
    }
    
    .hero-content h1 {
        margin-top: 10px;
    }
}

/* Animation Classes */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Image Placeholders */
.image-placeholder {
    background: var(--off-white);
    border: 2px dashed var(--gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 1.2rem;
    min-height: 200px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8a2a32;
} 

/* Client Brands Section */
.client-brands-carousel {
    overflow: hidden;
    position: relative;
}

.client-brand-item {
    text-align: center;
    padding: 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.client-logo {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
    object-fit: contain;
}

.client-brand-item:hover .client-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Responsive adjustments for client brands */
@media (max-width: 768px) {
    .client-brand-item {
        height: 100px;
        padding: 0.75rem;
    }
    
    .client-logo {
        max-height: 50px;
    }
}

@media (max-width: 576px) {
    .client-brand-item {
        height: 80px;
        padding: 0.5rem;
    }
    
    .client-logo {
        max-height: 40px;
    }
}

/* Animation for client brands */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.client-brand-item {
    animation: fadeInUp 0.6s ease forwards;
}

.client-brand-item:nth-child(1) { animation-delay: 0.1s; }
.client-brand-item:nth-child(2) { animation-delay: 0.2s; }
.client-brand-item:nth-child(3) { animation-delay: 0.3s; }
.client-brand-item:nth-child(4) { animation-delay: 0.4s; }
.client-brand-item:nth-child(5) { animation-delay: 0.5s; }
.client-brand-item:nth-child(6) { animation-delay: 0.6s; } 