/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    line-height: 1.6;
    color: #333;
    direction: rtl;
}

/* Force font weight for all elements */
h1, h2, h3, h4, h5, h6, p, span, div, button, a {
    font-family: 'Rubik', sans-serif !important;
    font-weight: 500 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
}

.navbar {
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}



/* Language Button */
.lang-btn {
    display: flex;
    align-items: center;
}

.lang-btn-img {
    height: 35px;
    width: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.lang-btn-img:hover {
    opacity: 0.8;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 10px;
}

.burger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle:hover .burger-line {
    background-color: #4A90E2;
}

.mobile-menu-toggle.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Banner Section */
.banner {
    position: relative;
    height: 300px;
    background-image: url('images/contact.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Contact Section */
.contact-section {
    padding: 120px 0 80px;
    background: #f8f9fa;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Back Button */
.back-button-container {
    margin-bottom: 40px;
    text-align: right;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #4A90E2;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rubik', sans-serif;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.back-button:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.back-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.back-button svg {
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(-3px);
}

.contact-card {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.contact-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 40px;
    font-weight: 600;
    line-height: 1.3;
}

.contact-info {
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    gap: 10px;
}

.contact-text {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.phone-numbers .contact-text {
    cursor: pointer;
}

.contact-item:first-child .contact-text {
    cursor: pointer;
}

.social-link {
    color: #4A90E2;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 10px 20px;
    border: 2px solid #4A90E2;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #4A90E2;
    color: white;
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    text-align: right;
}

.form-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Rubik', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

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

.submit-btn {
    background: #4A90E2;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 20px auto 0;
    font-family: 'Rubik', sans-serif;
}

.submit-btn:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.visit-section {
    border-top: 2px solid #eee;
    padding-top: 40px;
}

.visit-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.visit-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.visit-text {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.footer-logo {
    display: flex;
    justify-content: flex-start;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-links {
    display: flex;
    gap: 60px;
    align-items: center;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    color: white;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.footer-column h4 a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-column h4:hover,
.footer-column h4 a:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-media-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-icon.x-twitter:hover {
    background: #000000;
    border-color: #000000;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
}

.social-icon.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Success Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    margin: 20px;
    overflow: hidden;
    transform: scale(0.7) translateY(50px);
    transition: all 0.3s ease;
    position: relative;
}

.popup-overlay.show .popup-container {
    transform: scale(1) translateY(0);
}

.popup-content {
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.success-icon {
    color: #28a745;
    margin-bottom: 20px;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.popup-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.popup-message {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.popup-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: right;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: #666;
    font-weight: 400;
}

.detail-value {
    color: #4A90E2;
    font-weight: 500;
}

.popup-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.popup-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rubik', sans-serif;
    text-decoration: none;
}

.popup-btn.primary {
    background: #4A90E2;
    color: white;
}

.popup-btn.primary:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.popup-btn.secondary {
    background: #6c757d;
    color: white;
}

.popup-btn.secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 80px;
    }

    .logo {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }



    .lang-btn {
        order: 1;
    }

    .mobile-menu-toggle {
        order: 3;
        display: flex !important;
    }

    .contact-section {
        padding: 100px 0 60px;
        min-height: calc(100vh - 70px);
    }

    .back-button-container {
        margin-bottom: 30px;
        text-align: center;
        padding: 0 15px;
    }

    .back-button {
        padding: 10px 18px;
        font-size: 0.95rem;
    }

    .contact-card {
        margin: 15px auto;
        padding: 40px 25px;
        border-radius: 15px;
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-title {
        font-size: 1.5rem;
        margin-bottom: 35px;
        line-height: 1.4;
    }

    .contact-item {
        margin-bottom: 30px;
    }

    .contact-text {
        font-size: 1.1rem;
    }



    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        gap: 40px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-media-icons {
        gap: 15px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
        height: 70px;
    }

    .logo-img {
        height: 40px;
    }

    .lang-btn-img {
        height: 30px;
    }

    .burger-line {
        width: 20px;
        height: 2px;
    }

    .banner {
        height: 400px;
    }

    .contact-section {
        padding: 90px 0 40px;
        min-height: calc(100vh - 60px);
    }

    .back-button-container {
        margin-bottom: 25px;
    }

    .back-button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .back-button svg {
        width: 18px;
        height: 18px;
    }

    .contact-card {
        margin: 10px auto;
        padding: 30px 20px;
        border-radius: 12px;
        max-width: 400px;
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-title {
        font-size: 1.3rem;
        margin-bottom: 30px;
        line-height: 1.3;
    }

    .contact-item {
        margin-bottom: 25px;
    }

    .contact-text {
        font-size: 1rem;
    }



    .social-link {
        font-size: 1rem;
        padding: 8px 16px;
    }

    .visit-title {
        font-size: 1.2rem;
    }

    .visit-text {
        font-size: 0.85rem;
    }

    .footer-content {
        padding: 0 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .footer-column h4 {
        font-size: 0.9rem;
    }

    .footer-logo-img {
        height: 45px;
    }

    .social-media-icons {
        gap: 10px;
    }

    .social-icon {
        width: 35px;
        height: 35px;
    }

    .social-icon svg {
        width: 16px;
        height: 16px;
    }

    .popup-container {
        width: 95%;
        max-width: 450px;
    }

    .popup-content {
        padding: 30px 20px;
    }

    .popup-title {
        font-size: 1.5rem;
    }

    .popup-message {
        font-size: 1rem;
    }

    .popup-actions {
        flex-direction: column;
        gap: 10px;
    }

    .popup-btn {
        width: 100%;
        justify-content: center;
    }
}
