
.servicedetails-section {
    padding: 80px 0 0 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh;
    direction: rtl;
    text-align: right;
}

/* Service Images Gallery Styles */
.service-images-gallery {
    margin-bottom: 50px;
    direction: ltr; /* Reset direction for gallery */
}

.gallery-container {
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.main-image {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(0.8);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.main-image:hover .image-overlay {
    opacity: 1;
}

.main-image:hover .gallery-main-img {
    transform: scale(1.05);
    filter: brightness(0.6);
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.main-image:hover .overlay-content {
    transform: translateY(0);
}

.overlay-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.overlay-subtitle {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.thumbnail-images {
    display: flex;
    padding: 20px;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
}

    .thumbnail-item.active {
        border-color: #feca00;
        transform: scale(1.1);
        /*    box-shadow: 0 8px 25px rgba(254, 202, 0, 0.4);*/
    }

    .thumbnail-item:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.thumbnail-item.active .thumbnail-img {
    filter: brightness(1.1);
}

.thumbnail-item:hover .thumbnail-img {
    filter: brightness(1.2);
}

/* Gallery Animation */
@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-container {
    animation: galleryFadeIn 0.8s ease-out;
}

.servicedetails-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.servicedetailscard {
    /*    background: white;*/
    border-radius: 20px;
    /*    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);*/
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 600px;
    transition: all 0.3s ease;
}

/*.servicedetailscard:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}*/

.servicedetails-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #feca00;
}

.servicedetails-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(45deg, #feca00, #ffd700);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(254, 202, 0, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.servicedetails-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.servicedetails-icon-wrapper:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(254, 202, 0, 0.4);
}

    .servicedetails-icon-wrapper:hover .servicedetails-icon {
        transform: scale(1.1);
    }

.servicedetails-content {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.servicedetails-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.servicedetails-description {
    flex: 1;
    margin-bottom: 30px;
}

.servicedetails-text {
    = line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    text-align: justify;
}

.servicedetails-subheading {
    font-weight: 600;
    color: #2c3e50;
    margin: 30px 0 15px 0;
    position: relative;
}

.servicedetailslist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.servicedetailslist-item {
    position: relative;
    padding: 12px 30px 12px 30px;
    line-height: 1.6;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

    .servicedetailslist-item:last-child {
        border-bottom: none;
    }

    .servicedetailslist-item::before {
        content: '✓';
        position: absolute;
        right: 0;
        top: 12px;
        width: 20px;
        height: 20px;
        background: linear-gradient(45deg, #feca00, #ffd700);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        font-weight: bold;
    }

    .servicedetailslist-item:hover {
        color: #2c3e50;
        padding-right: 40px;
    }

.servicedetails-contact-section {
    margin-top: 30px;
    text-align: center;
}

.servicedetails-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #feca00, #ffd700);
    color: black;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    /*    font-weight: 600;*/
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(254, 202, 0, 0.3);
    position: relative;
    overflow: hidden;
}

    .servicedetails-contact-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: all 0.6s ease;
    }

    .servicedetails-contact-btn:hover::before {
        left: 100%;
    }

    .servicedetails-contact-btn:hover {
        box-shadow: 0 12px 35px rgba(254, 202, 0, 0.4);
        color: white;
        text-decoration: none;
    }

.servicedetails-btn-text {
    position: relative;
    z-index: 2;
}

.servicedetails-btn-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.servicedetails-contact-btn:hover .servicedetails-btn-icon {
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .servicedetails-section {
        padding: 40px 0;
    }

    .servicedetails-container {
        padding: 0 15px;
    }

    /* Gallery responsive styles */
    .main-image {
        height: 300px;
    }

    .overlay-title {
        font-size: 2rem;
    }

    .overlay-subtitle {
        font-size: 1rem;
    }

    .thumbnail-images {
        padding: 15px;
        gap: 10px;
    }

    .thumbnail-item {
        width: 60px;
        height: 60px;
    }

    .servicedetailscard {
        min-height: auto;
    }

    .servicedetails-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .servicedetails-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .servicedetails-icon {
        width: 45px;
        height: 45px;
    }

    .servicedetails-content {
        padding: 30px 25px;
    }

    .servicedetails-heading {
        font-size: 2rem;
    }

    .servicedetails-text {
        font-size: 1rem;
    }

    .servicedetails-subheading {
        font-size: 1.2rem;
    }

    .servicedetails-contact-btn {
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    /* Gallery mobile styles */
    .main-image {
        height: 250px;
    }

    .overlay-title {
        font-size: 1.5rem;
    }

    .overlay-subtitle {
        font-size: 0.9rem;
    }

    .thumbnail-images {
        padding: 10px;
        gap: 8px;
    }

    .thumbnail-item {
        width: 50px;
        height: 50px;
    }

    .servicedetails-content {
        padding: 25px 20px;
    }

    .servicedetails-heading {
        font-size: 1.8rem;
    }

    .servicedetails-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .servicedetails-icon {
        width: 40px;
        height: 40px;
    }

    .servicedetails-text {
        font-size: 0.95rem;
    }

    .servicedetailslist-item {
        font-size: 0.9rem;
        padding: 10px 0 10px 25px;
    }
}

@keyframes servicedetailsFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.servicedetailscard {
    animation: servicedetailsFadeIn 0.6s ease-out;
}

.servicedetailslist-item:hover::before {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(254, 202, 0, 0.5);
}

.servicedetails-subheading:hover {
    color: #feca00;
    transition: color 0.3s ease;
}

/* Bottom Features Section */
.service-bottom-features {
    padding: 60px 0 90px 0;
    background-color: rgba(0,0,0,0.7);
    color: #e8eef5;
}

.features-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.features-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
}

.features-subtitle {
    margin: 0 auto 30px auto;
    max-width: 980px;
    color: white;
    line-height: 1.8;
}

.features-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.feature-card {
    background: white;
    color: #0d2038;
    border-radius: 16px;
    padding: 26px 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .feature-card:hover {
        box-shadow: 0 18px 40px rgba(0,0,0,0.18);
    }

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 14px auto;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .feature-icon i {
        color: #FFD700;
        font-size: 30px;
    }

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 8px 0 6px 0;
}

.feature-desc {
    color: #4d5b70;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 600px) {
    .features-title {
        font-size: 1.6rem;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
    }
}

/* Contact Popup Styles */
.contact-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

    .contact-popup-overlay.show {
        display: flex;
    }

.contact-popup {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: popupSlideIn 0.3s ease-out;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

    .contact-popup::-webkit-scrollbar {
        display: none; /* WebKit */
    }

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px 30px;
    border-bottom: 2px solid #f0f0f0;
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.popup-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

    .popup-close:hover {
        background: #f0f0f0;
        color: #666;
    }

.popup-content {
    padding: 25px 30px 30px 30px;
}

.popup-subject {
    background: linear-gradient(45deg, #feca00, #ffd700);
    color: black;
    padding: 12px 20px;
    border-radius: 10px;
    margin: 0 0 25px 0;
    font-weight: 600;
    text-align: center;
}

.contact-form {
    direction: rtl;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #2c3e50;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        font-size: 1rem;
        transition: all 0.3s ease;
        box-sizing: border-box;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #feca00;
            box-shadow: 0 0 0 3px rgba(254, 202, 0, 0.1);
        }

    .form-group textarea {
        resize: vertical;
        min-height: 100px;
    }

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.popup-cancel-btn,
.popup-send-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
    font-size: 1.2rem;
}

.popup-cancel-btn {
    background: #f0f0f0;
    color: #666;
}

    .popup-cancel-btn:hover {
        background: #e0e0e0;
        color: #555;
    }

.popup-send-btn {
    background: linear-gradient(45deg, #feca00, #ffd700);
    color: black;
    box-shadow: 0 8px 25px rgba(254, 202, 0, 0.3);
}

    .popup-send-btn:hover {
        box-shadow: 0 12px 35px rgba(254, 202, 0, 0.4);
    }


/* Mobile Responsive for Popup */
@media (max-width: 600px) {
    .contact-popup {
        width: 95%;
        margin: 20px;
    }

    .popup-header {
        padding: 20px 20px 15px 20px;
    }

    .popup-content {
        padding: 20px 20px 25px 20px;
    }

    .popup-title {
        font-size: 1.3rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .popup-cancel-btn,
    .popup-send-btn {
        width: 100%;
    }
}

/* Success Popup Styles */
.success-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    backdrop-filter: blur(5px);
}

    .success-popup-overlay.show {
        display: flex;
    }

.success-popup {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    padding: 40px 30px;
    text-align: center;
    animation: successSlideIn 0.4s ease-out;
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-icon {
    margin-bottom: 20px;
}

    .success-icon i {
        font-size: 4rem;
        color: #28a745;
        animation: successPulse 0.6s ease-out;
    }

@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.success-message {
    color: #666;
    line-height: 1.6;
    margin: 0 0 25px 0;
    font-size: 1rem;
}

.success-close-btn {
    background: linear-gradient(45deg, #feca00, #ffd700);
    color: black;
    border: none;
    border-radius: 50px;
    padding: 12px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(254, 202, 0, 0.3);
    text-align: center;
    min-width: 120px;
    justify-self: center;
}

    .success-close-btn:hover {
        box-shadow: 0 12px 35px rgba(254, 202, 0, 0.4);
    }

/* Mobile Responsive for Success Popup */
@media (max-width: 600px) {
    .success-popup {
        width: 95%;
        margin: 20px;
        padding: 30px 20px;
    }

    .success-icon i {
        font-size: 3rem;
    }

    .success-title {
        font-size: 1.3rem;
    }

    .success-close-btn {
        width: 100%;
        padding: 15px 20px;
    }
}
