﻿:root {
    /* Color Palette */
    --primary-color: #88C273;
    --secondary-color: #A3DC9A;
    --accent-color: #FCCD2A;
    --success-color: #347928;
    --error-color: #E63946;
    --light-green: #C0EBA6;
    --light-yellow: #FFF9BD;
    --light-orange: #FFD6BA;
    --background-light: #FFFBE6;
    --teal-green: #8ADAB2;
    --light-teal: #B3FFAE;
    /* Text Colors */
    --text-primary: #2C3E50;
    --text-secondary: #546E7A;
    --text-light: #FFFFFF;
    /* Background Colors */
    --background: #FFFFFF;
    --surface: #FFFBE6;
    --overlay: rgba(255, 255, 255, 0.95);
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #88C273 0%, #A3DC9A 100%);
    --gradient-secondary: linear-gradient(135deg, #FCCD2A 0%, #FFD6BA 100%);
    --gradient-green: linear-gradient(135deg, #88C273 0%, #347928 100%);
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 1rem;
    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 15px;
    --radius-lg: 50px;
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.5s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, sans-serif;
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    margin-bottom: 60px;
}

/* Focus Styles */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-color);
    outline: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    padding: 1rem 0;
}

    .navbar.scrolled {
        padding: 0.75rem 0;
        background: rgba(255, 255, 255, 0.98);
    }

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all var(--transition-slow);
}

.navbar-nav .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    margin: 0 0.625rem;
    position: relative;
    transition: all var(--transition-slow);
}

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 0;
        height: 2px;
        background: var(--accent-color);
        transition: width var(--transition-slow);
    }

    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after {
        width: 100%;
    }

.navbar-toggler {
    border: none;
    padding: 0.3125rem;
}

.navbar-toggler-icon {
    color: var(--light-orange);
    background-color: var(--primary-color);
}

.navbar-toggler:focus {
    box-shadow: none;
}






/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
        background-size: cover;
        background-position: center;
    }

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Buttons */
.btn-primary-custom {
    background: var(--accent-color);
    border: none;
    color: var(--text-primary);
    padding: 0.75rem 1.875rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all var(--transition-fast);
    box-shadow: 0 5px 15px rgba(252, 205, 42, 0.3);
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

    .btn-primary-custom:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(252, 205, 42, 0.4);
        color: var(--text-primary);
    }

/* Sections */
.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -0.9375rem;
        left: 50%;
        transform: translateX(-50%);
        width: 5rem;
        height: 0.25rem;
        background: var(--accent-color);
        border-radius: 0.125rem;
    }

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    margin-bottom: 1.875rem;
    height: 100%;
}

    .card:hover {
        transform: translateY(-0.625rem);
        box-shadow: var(--shadow-lg);
    }

/* Product Cards */
.product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    margin-bottom: 1.875rem;
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-0.625rem);
        box-shadow: var(--shadow-lg);
    }

.product-icon {
    width: 8.375rem;
    height: 8.375rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.8rem;
    overflow: hidden;
}

    .product-icon img {
        width: 70%;
        height: 70%;
        object-fit: contain;
    }

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.9375rem;
    color: var(--primary-color);
    text-align: center;
}

.product-features {
    list-style: none;
    padding: 0;
}

    .product-features li {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        position: relative;
        padding-right: 1.5625rem;
    }

        .product-features li::before {
            content: '✓';
            position: absolute;
            right: 0;
            color: var(--success-color);
            font-weight: bold;
        }

/* Customer Cards - Redesigned */
.customer-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    margin-bottom: 1.875rem;
    height: 100%;
    position: relative;
}

    .customer-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
    }

.customer-images {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.customer-business-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.customer-owner-img {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
    z-index: 2;
    transition: all var(--transition-normal);
    animation: float 3s ease-in-out infinite;
}

.customer-card:hover .customer-business-img {
    transform: scale(1.1);
}

.customer-card:hover .customer-owner-img {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.customer-info {
    padding: 1.5rem;
}

.customer-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3125rem;
    color: var(--primary-color);
}

.customer-position {
    color: var(--text-secondary);
    margin-bottom: 0.9375rem;
    font-weight: 500;
}

.customer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--background-light);
    border-radius: var(--radius-sm);
}

.customer-address, .customer-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

    .customer-address i, .customer-phone i {
        color: var(--accent-color);
        width: 20px;
    }

.customer-testimonial {
    font-style: italic;
    color: var(--text-secondary);
    border-right: 3px solid var(--light-green);
    padding-right: 1rem;
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.875rem;
    box-shadow: var(--shadow-md);
}

.form-control {
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9375rem;
    margin-bottom: 1.25rem;
    transition: all var(--transition-fast);
    width: 100%;
    font-family: inherit;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(136, 194, 115, 0.25);
        outline: none;
    }

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3.75rem 0 1.875rem;
}

    .footer h5 {
        font-weight: 700;
        margin-bottom: 1.25rem;
        position: relative;
        padding-bottom: 0.625rem;
    }

        .footer h5::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 2.5rem;
            height: 0.125rem;
            background: var(--accent-color);
        }

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 0.625rem;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: all var(--transition-fast);
        display: inline-block;
    }

        .footer-links a:hover {
            color: white;
            padding-right: 0.3125rem;
        }

/* Social Links */
.social-links {
    display: flex;
    gap: 0.625rem;
}

    .social-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        text-decoration: none;
        transition: all var(--transition-fast);
    }

        .social-links a:hover {
            background: var(--accent-color);
            transform: translateY(-0.3125rem);
        }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.875rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(136, 194, 115, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(136, 194, 115, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(136, 194, 115, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .navbar-nav {
        text-align: right;
        padding-top: 1.25rem;
    }

        .navbar-nav .nav-link {
            margin: 0.3125rem 0;
            display: inline-block;
        }

    .hero {
        text-align: center;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .social-links {
        justify-content: center;
        margin-top: 1.25rem;
    }

    .customer-images {
        height: 200px;
    }

    .customer-owner-img {
        width: 80px;
        height: 80px;
        top: 10px;
        right: 10px;
    }

    .customer-info {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .customer-images {
        height: 180px;
    }

    .customer-owner-img {
        width: 70px;
        height: 70px;
        animation: float 2.5s ease-in-out infinite;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn-primary-custom {
        display: none;
    }

    .hero {
        background: #88C273 !important;
        color: black !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
