@font-face {
    font-family: 'TitleFont';
    src: url('fonts/title font.ttf') format('truetype');
}

@font-face {
    font-family: 'TextFont';
    src: url('fonts/texte font.otf') format('opentype');
}


html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'TextFont', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(to bottom, #f6eee2 20%, #0c6e3d 90%);
}

.reset-page {
    min-height: auto;
    padding-top: 150px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    background: url('photos/bg.png') center/cover no-repeat, linear-gradient(to bottom, #e9e9df 20%, #0c6e3d 90%);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

.reset-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #e9e9df 0%, #4f846c 50%, #4f8f72 100%);
    mix-blend-mode: multiply;
    opacity: 0.4;
}

.reset-page * {
    position: relative;
    z-index: 1;
}


.rp-main {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.rp-card {
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.rp-title {
    color: #000000;
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    font-family: 'TitleFont', 'TextFont', sans-serif;
}

.rp-description {
    color: #053927;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Arabic RTL Text */
.rp-arabic-line {
    font-family: 'Maghribi-Font-2', 'RTL-Maghribi', serif;
    direction: rtl;
    unicode-bidi: isolate;
    font-size: 1.5rem;
    color: #053927;
    margin-bottom: 1rem;
    text-align: center;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.rp-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.rp-input {
    width: 100%;
    max-width: 550px;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    color: #053927;
    font-size: 1.1rem;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

.rp-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.rp-button {
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    padding: 0.6rem 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(5, 57, 39, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #053927;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rp-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(5, 57, 39, 0.5);
}

.rp-button:active {
    transform: scale(0.98);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: #5a5a5a;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1002;
    padding: 0.5rem;
}

@media (max-width: 900px) {
    body {
        padding-top: 0 !important;
        background: linear-gradient(to bottom, #f6eee2 20%, #0c6e3d 90%) !important;
    }

    .hamburger {
        display: block;
    }

    .navbar {
        padding: 1rem;
        justify-content: space-between;
    }

    /* Center Logo on Mobile */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
    }

    .logo img {
        height: 80px;
        /* Slightly smaller on mobile */
    }

    /* Hide Desktop Menu */
    .nav-menu,
    .nav-left {
        display: none;
    }

    /* Mobile Menu State */
    .navbar.active {
        flex-direction: column;
        align-items: center;
        background: #e8e0d4;
        /* Solid background when open */
        height: 100vh;
        /* Full screen menu */
        justify-content: flex-start;
        padding-top: 6rem;
        overflow-y: auto;
    }

    .navbar.active .logo {
        position: absolute;
        top: 10px;
        /* Keep logo at top */
    }

    .navbar.active .hamburger {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .navbar.active .nav-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
        margin-bottom: 2rem;
    }

    .navbar.active .main-menu {
        flex-direction: column;
        width: 80%;
        background: transparent;
        border: none;
        gap: 1rem;
    }

    .navbar.active .nav-link {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .navbar.active .nav-left {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }

    .rp-button {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .reset-page {
        padding-top: 0 !important;
        min-height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .rp-main {
        height: auto !important;
        padding: 1rem !important;
    }

    .rp-title {
        margin-top: 0 !important;
        margin-bottom: 0.5rem !important;
    }

    .rp-description {
        margin-bottom: 1rem !important;
    }

    .rp-form {
        gap: 0.5rem !important;
    }
}


/* Desktop Navbar Text Positioning Fix */
@media (min-width: 769px) {
    .nav-link {
        padding: 1rem 1.5rem 0.3rem 1.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 42px !important;
    }

    .main-menu {
        gap: 0.4rem !important;
    }
}