/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* RTL Layout */
body {
    direction: rtl;
    background-color: #FFF8F7;
    /* Background color */
    color: #291716;
    /* Text color */
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #950018;
    /* Primary color */
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 70%;
    /* margin: 0 auto; */
    padding: 0 1rem;
}

.navbar .logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
}

.navbar .nav-links li {
    margin: 0 1rem;
}

.navbar .nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.navbar .nav-links a:hover {
    background-color: #0303037d;
    /* Light red on hover */
}

/* .navbar .auth-buttons {
    display: flex;
}

.navbar .auth-buttons a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin-left: 1rem;
    border: 1px solid #ffffff75;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar .auth-buttons .login-btn:hover,
.navbar .auth-buttons .signup-btn:hover {
    background-color: #0303037d;
} */

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all .2s ease-in-out;
}

.hamburger:hover {
    /* color: #0303037d; */
    filter: drop-shadow(3px 3px 3px #00000067);
}

.nav-menu{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu .logo {
    display: none;
}

/* Responsive Navbar */
@media (max-width: 1000px) {

    .navbar .nav-links,
    .navbar .auth-buttons {
        display: none;
    }

    .hamburger {
        display: block;
        font-size: 2rem;
        /* Align to the left */
    }

    .nav-menu {
        align-items: normal !important;
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        height: 100%;
        background-color: #950018;
        /* Primary color */
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 1rem;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu .menu-logo {
        display: block;
        text-align: right;
        margin-bottom: 1rem;
    }

    .nav-menu .nav-links {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* Right align items */
    }

    .nav-menu .nav-links li {
        margin: .5rem 0;
        width: 100%;
    }

    .nav-menu .nav-links a {
        border: 1px solid #ffffff75;
        font-weight: 900;
        font-size: 1.1rem;
        display: block;
        width: 100%;
        padding: 1rem;
        transition: background-color 0.3s ease;
    }

    .nav-menu .nav-links a:hover {
        background-color: #0303037d;
        /* Light red on hover */
    }

    /* .nav-menu .auth-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 1rem;
    }

    .nav-menu .auth-buttons a {
        background-color: white;
        color: #950618;
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }

    .nav-menu .auth-buttons a:hover {
        background-color: transparent;
        color: white;
    } */

    .nav-menu .logo{
        display: block;
        margin-bottom: 1rem;
        margin-right: 0.1rem;
        font-size: 2rem !important;
    }
}

@media (max-width: 1400px) {
    .navbar .container {
        min-width: 90%;
    }
}

/* Overlay */
.overlay {
    cursor: pointer;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}
/* Main Section Styles */
.main-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background-color: #FFF8F7;
    /* Background color */
}

.main-section .container {
    width: 70%;
    display: flex;
    flex-flow: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.main-section .left {
    min-width: 60%;
    display: flex;
    justify-content: end;
}

.main-section .left img {
    height: 70dvh;
    object-fit: cover;
    max-width: 100%;
    border-radius: 10px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.main-section .right {
    max-width: 50%;
    text-align: right;
}

.main-section .right h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.main-section .right p {
    font-size: 1.5rem;
    text-align: justify;
    margin-bottom: 1rem;
}

.main-section .right div{
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.main-section .right .download-btn img {
    width: 1.5rem;
}

.main-section .right .download-btn {
    width: 100%;
    padding: 1rem .5rem;
    border-radius: 7px;
    font-weight: bold;
    background-color: #850014;
    border: none;
    color: white;
    transition: all .2s ease-in-out;
    cursor: pointer;
    display: flex;
    flex-flow: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.main-section .right .download-btn:hover {
    box-shadow: 3px 3px 17px #0000003a;
    border: 1px solid #850014;
    background-color: transparent;
    color: #850014;
}

.main-section .right .login-btn:hover {
    background-color: #535F72;
    /* Secondary color */
}

@media (max-width: 1400px) {
    .main-section .container {
        min-width: 90%;
    }
    .main-section .right {
        max-width: 40%;
    }

    /* .main-section .left {
        min-width: 70%;
    } */

    .main-section .left {
        width: 100%;
    }

    .main-section .right div {
        gap: 1rem;
        flex-flow: column;
    }
}

@media (max-width: 1000px) {
    .main-section .container{
        position: relative;
    }

    .main-section .left {
        width: 100%;
        height: inherit;
    }

    .main-section .left img{
        width: 100%;
        height: inherit;
    }

    .main-section .right {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 0);
        max-width: 70%;
        width: 70%;
    }

    .main-section .left .gradient-layout {
        display: none;
    }

}

@media (max-width: 768px) {
    .main-section {
        margin-bottom: 7rem;
    }

    .main-section .right div{
        gap: 1rem;
        flex-flow: column;
    }

    .main-section .right h2 {
        font-size: 2rem !important;
    }

    .main-section .right p {
        font-size: 1rem !important;
    }

    .main-section .right {
        bottom: -6rem;
    }

    .main-section .right {
        max-width: inherit;
        width: 100%;
    }
}

/* Products Section Styles */
.title-container{
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.title-container h1{
    width: 70%;
}

.card-container {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    cursor: pointer;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    width: calc(17.5% - 10px);
    text-align: center;
    background-color: #FFF8F7;
    border: 1px solid #950018;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    margin: 20px 0 10px;
    font-size: 1.5em;
    color: #950018;
}

.card p {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #535F72;
}

.card button {
    background-color: #950018;
    color: white;
    border: none;
    border-radius: 0 0 10px 10px;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.card button:hover {
    background-color: #850015;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1400px) {
    .title-container h1 {
        width: 90%;
    }

    .card {
        width: calc(45% - 10px);
    }
}

@media (max-width: 1200px) {
    .card-container {
        flex-direction: row;
        flex-wrap: wrap;
    }

}

@media (max-width: 1000px) {
    .main-section .container {
        flex-direction: column;
        gap: 2rem;
    }

    .main-section .left {
        width: 100%;
    }

    .main-section .left img {
        width: 100%;
        height: auto;
    }

    .main-section .right {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        text-align: center;
    }

    .main-section .right div {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .main-section .container {
        flex-direction: column;
        text-align: center;
    }

    .main-section .left,
    .main-section .right {
        max-width: 100%;
        width: 100%;
        padding: 0 1rem;
    }

    .main-section .right {
        margin-top: 20px;
    }
}




/* Footer Styles */
.footer {
    margin-top: 2rem;
    background-color: #950018;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
}

.footer .container{
    width: 70%;
    display: flex;
    flex-flow: row-reverse;
    justify-content: space-between;
    align-items: center;
}

.footer .container .contact-us {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer .container .contact-us div {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: .25rem;
    direction: ltr;
    text-align: left;
}

.footer .container .contact-us div span {
    font-weight: bold;
}

.footer .container .contact-us div img{
    width: 1.5rem;
    height: 1.5rem;
}


.footer .container .roles{
    display: flex;
    align-items: center;
    gap: .25rem;
}

.footer .container .roles img{
    filter: invert(1);
    width: 1.5rem;
    height: 1.5rem;
}

.footer .container .roles a{
    color: white;
}

@media (max-width: 1400px) {
    .footer .container {
        width: 90%;
    }
}


/* roles dialog */

#roles-dialog{
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    padding: 1rem;
    border: none;
    border-radius: 17px;
    box-shadow: 3px 3px 7px #00000024;
}

#roles-dialog .header{
    display: flex;
    flex-flow: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
}

#roles-dialog .header span{
    cursor: pointer;
    padding: .5rem .75rem;
    border-radius: 50%;
    background-color: #850014;
    color: white;
    box-shadow: 3px 3px 7px #00000024;
}

#roles-dialog .content{
    margin-top: 2rem;
    display: flex;
    flex-flow: column;
}

#roles-dialog .content span{
    font-weight: bold;
    border-bottom: 1px solid #85001477;
    padding: .75rem 0;
    color: #850014;
}

#roles-dialog .content span:last-child{
    border-bottom: none;
}

@media (max-width: 570px) {
    #roles-dialog {
        width: 100%;
        padding: .5rem;
    }

    #roles-dialog .content span {
        font-size: .75rem;
    }
}
