/* ===========================
   FONTS â€“ ARABIC
=========================== */
@font-face {
    font-family: 'DINNextArabicBold';
    src: url('fonts/DINNextLTArabic-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DINNextArabicLight';
    src: url('fonts/DINNextLTArabic-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ===========================
   GLOBAL
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'DINNextArabicLight', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    height: 100vh;
    overflow: hidden;        /* ðŸ”’ no page scroll */
}

/* BACKGROUND */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('babckground.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

/* ===========================
   LOGO (TOP-RIGHT)
=========================== */
.top-logo {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 100;
}

.top-logo img {
    width: 160px;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    filter: none;
    display: block;
}

/* ===========================
   LANGUAGE SWITCH (TOP-LEFT)
=========================== */
.lang-switch {
    position: fixed;
    top: 30px;
    left: 40px;
    z-index: 150;
    font-family: 'DINNextArabicBold', sans-serif;
    font-size: 1rem;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: 0.3s;
}

.lang-switch:hover {
    background: rgba(0, 0, 0, 0.55);
}

/* ===========================
   TAGLINE â€“ FIXED UNDER LOGO
=========================== */
.left-tagline {
    position: fixed;          /* ðŸ”’ doesnâ€™t move when anything scrolls */
    top: 55%;               /* under the logo */
    right: 60px;
    max-width: 600px;
      transform: translateY(-40%);
    text-align: center;
    z-index: 50;
}

.left-tagline h2 {
    font-family:  'DINNextArabicLight', sans-serif;
    font-size: 2rem;
    font-weight: normal;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 8px;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.6);
}

/* ===========================
   FORM CONTAINER
=========================== */
.container {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 40px;
    padding-top: 0;
    overflow-y: auto;         /* internal scroll if content is tall */
}

/* CONTENT BOX (TRANSPARENT) */
.content-box {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 50px 45px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    max-width: 550px;
    width: 100%;
    text-align: center;
}

h1 {
    font-family: 'DINNextArabicBold', 'DINNextArabicLight', sans-serif;
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: normal;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
}

/* ===========================
   FORM
=========================== */
.form-group {
    margin-bottom: 20px;
    text-align: right;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group label {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: normal;
    font-family: 'DINNextArabicLight', sans-serif;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'DINNextArabicLight', sans-serif;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    text-align: right;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: #9B7D64;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'DINNextArabicBold', 'DINNextArabicLight', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(44, 95, 45, 0.4);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 95, 45, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    display: none;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.message.success {
    background: rgba(212, 237, 218, 0.9);
    color: #155724;
    border: 1px solid rgba(195, 230, 203, 0.9);
}

.message.error {
    background: rgba(248, 215, 218, 0.9);
    color: #721c24;
    border: 1px solid rgba(245, 198, 203, 0.9);
}

.social-links {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.social-links p {
    color: #f0f0f0;
    font-size: 0.95rem;
    font-family: 'DINNextArabicLight', sans-serif;
    text-align: center;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {

    .top-logo {
        top: 20px;
        right: 20px;
    }

    .lang-switch {
        top: 20px;
        left: 20px;
        font-size: 0.95rem;
        padding: 6px 12px;
    }

    .left-tagline {
        top: 110px;
        right: 20px;
        max-width: 70%;
    }

    .left-tagline h2 {
        font-size: 1.6rem;
    }

    .container {
        padding: 20px;
        align-items: center;
    }

    .content-box {
        padding: 40px 32px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 768px) {

    /* allow page to scroll naturally on small screens */
    body {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .top-logo {
        top: 15px;
        right: 15px;
    }

    .top-logo img {
        width: 130px;
    }

    .lang-switch {
        top: 15px;
        left: 15px;
        font-size: 0.9rem;
        padding: 5px 10px;
    }

    /* TAGLINE: now in normal flow ABOVE the form */
    .left-tagline {
        position: static;                 /* ❗ no longer fixed */
        top: auto;
        right: auto;
        max-width: 90%;
        margin: 90px 15px 10px 15px;      /* space below logo, above form */
        text-align: center;
    }

    .left-tagline h2 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    /* FORM CONTAINER BELOW TAGLINE */
    .container {
        position: relative;
        height: auto;
        justify-content: flex-start;
        align-items: center;
        padding: 0 16px 32px 16px;
        overflow: visible;                /* no internal scroll */
    }

    .content-box {
        padding: 32px 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    h1 {
        font-size: 2.3rem;
    }
}


@media (max-width: 480px) {

    .top-logo {
        top: 12px;
        right: 12px;
    }

    .top-logo img {
        width: 115px;
    }

    .lang-switch {
        top: 12px;
        left: 12px;
    }

    .left-tagline {
        top: 90px;
        right: 12px;
        max-width: 82%;
    }

    .left-tagline h2 {
        font-size: 1.05rem;
    }

    .container {
        padding: 14px;
    }

    .content-box {
        padding: 28px 20px;
    }

    h1 {
        font-size: 2rem;
    }
}
