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

/*body {*/
/*    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
/*    line-height: 1.6;*/
/*    direction: rtl;*/
/*}*/

.section-padding {
    padding: 5rem 0;
}

.section-bg {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

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

.text-dark {
    color: #333 !important;
}

/* ===== About Section ===== */
.about-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.ratio {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.custom-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.about-video-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
}

.about-video-info h4 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.sh {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.sh h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin: 0;
}

/* ===== Barista Team Section ===== */
#barista-team {
    display: block;
    width: 100%;
}

#barista-team h1 {
    color: #fff;
    text-align: center;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
}

#barista-team .lead {
    color: #aaa;
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 3rem;
}

/* Card Styles */
#barista-team .card {
    border: none;
    transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    border-radius: 20px;
    min-height: 450px;
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    #barista-team .card {
        min-height: 350px;
    }
}

@media (max-width: 420px) {
    #barista-team .card {
        min-height: 300px;
        border-radius: 15px;
    }
}

/* Card with Background */
#barista-team .card.card-has-bg {
    transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
    background-size: 120%;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
}

#barista-team .card.card-has-bg::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: inherit;
    filter: grayscale(100%);
    z-index: 1;
}

#barista-team .card.card-has-bg:hover {
    transform: scale(0.98);
    box-shadow: 0 0 5px -2px rgba(0, 0, 0, 0.3);
    background-size: 130%;
}

/* Card Content */
.card-img-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.card-title {
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.card-title a {
    color: white !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #ffca2c !important;
}

.description {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Common Styles for All Items */
#sass, #soosk, #mouse, #kane, #mite, #gall,
#soosk2, #sakhtemane, #tehran, #morianeh, #us {
    transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 30rem;
}

/* Individual Background Images */
#sass { background-image: url("../images/imageSpraying/new/ساس.jpeg"); }
#soosk { background-image: url("../images/imageSpraying/new/openart-4bdd2fe2-cdf9-4aae-8ebf-17f8942e70b3.jpeg"); }
#mouse { background-image: url("../images/imageSpraying/موش.png"); }
#kane { background-image: url("../images/imageSpraying/new/کبوتر.jpeg"); }
#mite { background-image: url("../images/imageSpraying/new/mite.jpeg"); }
#gall { background-image: url("../images/imageSpraying/new/گال.jpeg"); }
#soosk2 { background-image: url("../images/imageSpraying/Untitled design(2).png"); }
#sakhtemane { background-image: url("../images/imageSpraying/new/ساختمان.jpeg"); }
#morianeh { background-image: url("../images/imageSpraying/new/openart-4f1ea70b-7100-41e7-98f1-b8f97f90c934.jpeg"); }
#us { background-image: url("../images/unnamed.jpg"); }
#tehran { background-image: url("../images/imageSpraying/new/tehran.jpeg"); }

/* Special Styles */
#sass h4 a { color: black !important; }
#tehran h4 a { color: black !important; }
#tehran .description { color: whitesmoke !important; }

/* Hover Effects */
#barista-team .card.card-has-bg:hover #sass,
#barista-team .card.card-has-bg:hover #soosk,
#barista-team .card.card-has-bg:hover #mite,
#barista-team .card.card-has-bg:hover #gall,
#barista-team .card.card-has-bg:hover #mouse,
#barista-team .card.card-has-bg:hover #kane,
#barista-team .card.card-has-bg:hover #soosk2,
#barista-team .card.card-has-bg:hover #sakhtemane,
#barista-team .card.card-has-bg:hover #tehran,
#barista-team .card.card-has-bg:hover #morianeh,
#barista-team .card.card-has-bg:hover #us {
    background: linear-gradient(0deg, rgba(255, 186, 33, 0.5) 0%, rgba(255, 186, 33, 1) 100%);
}

/* ===== Reviews Section ===== */
.reviews-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-container-left {
    left: 0;
}

.timeline-container-right {
    left: 50%;
}

.timeline-content {
    padding: 20px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.reviews-block-image-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.reviews-block-info p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.8;
}

/* ===== Contact Section ===== */
#section_5 {
    background-image: url("../images/imageSpraying/new/بکگراند فرم.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: auto;
    min-height: 100vh;
    width: 100%;
    direction: rtl;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    position: relative;
}

#section_5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

#section_5 .container {
    position: relative;
    z-index: 2;
}

#section_5 h2 {
    color: white;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.custom-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    justify-content: center;

}

.form-label {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: white;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.95);
    color: black;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #4cc9f0;
    box-shadow: 0 0 0 2px rgba(76, 201, 240, 0.2);
}

.form-control::placeholder {
    color: #666;
}

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

button[type="submit"] {
    background: linear-gradient(135deg, #4cc9f0, #4361ee);
    color: white;
    border: none;
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #3ab0d9, #3050d5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .section-padding {
        padding: 4rem 0;
    }
}

@media (max-width: 992px) {
    .section-padding {
        padding: 3rem 0;
    }

    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-container-left,
    .timeline-container-right {
        left: 0;
    }

    #sass, #soosk, #mouse, #kane, #mite, #gall,
    #soosk2, #sakhtemane, #tehran, #morianeh, #us {
        height: 25rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 2rem 0;
    }

    .sh {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .about-video-info {
        padding: 1rem;
    }

    .card-img-overlay {
        padding: 1.5rem;
    }

    #sass, #soosk, #mouse, #kane, #mite, #gall,
    #soosk2, #sakhtemane, #tehran, #morianeh, #us {
        height: 20rem;
    }

    .custom-form {
        padding: 1.5rem;

    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 1.5rem 0;
    }

    .ratio {
        border-radius: 15px;
    }

    .custom-video {
        border-radius: 15px;
    }

    .card-img-overlay {
        padding: 1rem;
    }

    #sass, #soosk, #mouse, #kane, #mite, #gall,
    #soosk2, #sakhtemane, #tehran, #morianeh, #us {
        height: 18rem;
    }

    .timeline-container {
        padding: 10px 20px;
    }

    .timeline-content {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    #section_5 {
        padding: 2rem 0;
        min-height: auto;
    }

    .custom-form {
        padding: 1rem;
    }

    textarea.form-control {
        min-height: 100px;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    #barista-team .card,
    #barista-team .card.card-has-bg,
    .btn-primary,
    button[type="submit"] {
        transition: none !important;
        transform: none !important;
    }
}

/* ===== Print Styles ===== */
@media print {
    #section_5 {
        background: white !important;
    }

    #section_5::before {
        display: none;
    }

    #section_5 h2,
    .form-label {
        color: black !important;
    }

    .custom-form {
        background: white !important;
        backdrop-filter: none !important;
    }
}
