/* ===================================
   PERSIAN RTL WEBSITE STYLES
   =================================== */

:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #f39c12;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
}

/* ===================================
   BASE STYLES
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    direction: rtl;
    text-align: right;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark-color);
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

p {
    color: var(--text-light);
    font-size: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* ===================================
   BOOTSTRAP OVERRIDES
   =================================== */

.btn {
    font-weight: 600;
    border-radius: 6px;
    padding: 0.625rem 1.5rem;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

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

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

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

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

.form-control, .form-select {
    border-color: var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,102,204,0.25);
}

.form-label {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ===================================
   TOP BAR
   =================================== */

.top-bar {
    background-color: #1a1a1a;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

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

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    background-color: white;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    color: var(--primary-dark);
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
}

.dropdown-item {
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    text-align: right;
    direction: rtl;
}

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

/* ===================================
   HERO SLIDER
   =================================== */

.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider .swiper {
    height: 100%;
}

.hero-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide-1 {
   background-image: url(IMG_5293.jpeg);
}

.slide-2 {
    background-image: url();
}

.slide-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.slide-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.3);
    z-index: -1;
}

.slide-content h1 {
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    animation: slideInUp 0.8s ease-out;
}

.slide-content p {
    color: rgba(255,255,255,0.8);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.slide-content .btn {
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(0,0,0,0.5);
}

.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
    background-color: white;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   FEATURE BOXES
   =================================== */

.feature-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,102,204,0.1);
    border-radius: 50%;
    margin-right: auto;
}

.feature-box h5 {
    margin-top: 1rem;
    color: var(--dark-color);
}

.feature-box p {
    margin-bottom: 0;
}

.feature-box .stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: auto;
    content: "";
}

/* ===================================
   BENEFIT ITEMS
   =================================== */

.benefit-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-item h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* ===================================
   PRODUCT CARDS
   =================================== */

.product-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-card h5 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ===================================
   SERVICE CARDS
   =================================== */

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    border-right: 4px solid var(--primary-color);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(-8px);
}

.service-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.5;
    position: absolute;
    top: 20px;
    left: 30px;
}

.service-card h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

/* ===================================
   TESTIMONIAL CARDS
   =================================== */

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    margin: 20px;
}

.testimonial-card .stars {
    font-size: 0.9rem;
}

.testimonial-card h6 {
    color: var(--dark-color);
    margin-top: 1rem;
}

.testimonial-card p {
    line-height: 1.8;
}

/* ===================================
   BLOG CARDS
   =================================== */

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-card p {
    flex-grow: 1;
}

.blog-card .btn {
    align-self: flex-start;
    margin-top: 1rem;
}

/* ===================================
   CONTACT FORM
   =================================== */

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.contact-form .form-label {
    color: var(--dark-color);
}

.contact-form .form-control,
.contact-form .form-select {
    border-color: var(--border-color);
}

.contact-form .btn {
    margin-top: 1rem;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.tracking-wide {
    letter-spacing: 0.05em;
}

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

.text-white-50 {
    color: rgba(255,255,255,0.5);
}

.bg-light {
    background-color: #f8f9fa !important;
}

.bg-dark {
    background-color: #2c3e50 !important;
}

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

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

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

/* ===================================
   SECTIONS
   =================================== */

section {
    padding: 5rem 0;
}

section h6 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

section p.lead {
    font-size: 1.25rem;
    color: var(--text-light);
}

/* ===================================
   FOOTER
   =================================== */

footer {
    background-color: #1a1a1a;
    color: #ecf0f1;
}

footer h5 {
    color: white;
}

footer address {
    font-style: normal;
    line-height: 2;
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

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

footer hr {
    border-color: rgba(255,255,255,0.1);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 0.95rem;
    }

    section {
        padding: 3rem 0;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .product-card,
    .benefit-item,
    .feature-box,
    .service-card {
        margin-bottom: 1.5rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.95rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .hero-slider {
        height: 300px;
    }

    .slide-content h1 {
        font-size: 1.4rem;
    }

    .slide-content p {
        font-size: 0.85rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    section {
        padding: 2rem 0;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .display-4 {
        font-size: 1.3rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
    }

    .feature-box,
    .benefit-item,
    .product-card,
    .service-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    footer .row {
        text-align: center;
    }

    footer address {
        text-align: center;
    }

    .col-md-6, .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   SCROLLBAR STYLING
   =================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===================================
   HOVER EFFECTS
   =================================== */

.hover-white:hover {
    color: white !important;
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .navbar,
    .top-bar,
    .swiper-button-next,
    .swiper-button-prev,
    .contact-form {
        display: none;
    }
}
