/* Mobile styles (320px - 744px) */
@media (max-width: 744px) {
    :root {
        /* Font settings */
        --font-size: 18px;
        --font-weight: 400;
        --heading-font-size: 32px;
        --heading-font-weight: 700;

        /* Alignment and spacing */
        --justify-content: center;
        --align-items: center;
        --padding: 20px;
        --text-align: left;

        /* Color settings */
        --primary-color: #333;
        --secondary-color: #797979;
        --background-color: #050712;
        /* --background-color: rgba(136, 57, 0, 0.933); */
    }

/* General body styling */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    background-color: var(--background-color); /* Ensure background is applied */
    position: relative;
}


/* ---------- HEADERS ---------- */
.headerContainer {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Center align items vertically */
    padding: 0 2.55vw;
    position: absolute;
    top: 2.5vh;
    width: 95%;
    box-sizing: border-box;
    z-index: 3;
}

.headerLeft {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically within the column */
    align-items: flex-start; /* Align text to the left */
    text-align: left;
}

/* Fixed sizes for header text */
.headerLeft1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 1.525rem; /* Fixed font size */
    color: #a1a1a1;
    margin: 0;
}

.headerLeft1 a {
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
    position: relative;
    display: inline-block;
    overflow: hidden;
    margin: 0;
}

.headerLeft1 a::before,
.headerLeft1 a::after {
    content: '';
    position: absolute;
    top: 90%;
    height: 2px;
    background-color: rgba(161, 161, 161, 0.75);
    transition: width 0.3s ease-out, transform 0.3s ease-out;
    width: 0;
    left: 50%;
    transform: translateX(-50%);
}

.headerLeft1 a:hover::before {
    width: 50%;
    transform: translateX(-100%);
}

.headerLeft1 a:hover::after {
    width: 50%;
    transform: translateX(0);
}

.headerLeft2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 0.75rem; /* Fixed size */
    color: #a1a1a1;
    margin-top: 0;
    text-align: left; /* Align text to the left */
}

/* ---------- RIGHT HEADER ---------- */
.headerRight {
    display: flex;
    align-items: center; /* Ensure content is vertically centered */
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    color: #a1a1a1;
    white-space: nowrap;
    padding: 0;
    gap: 2vw;
}

.headerRight p {
    font-size: 1.5rem;
    margin: 1vw 2vw;
}

.headerRight a {
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
    overflow: hidden;
    transition: color 0.3s ease;
}

.headerRight a::before,
.headerRight a::after {
    content: '';
    position: absolute;
    top: 90%;
    height: 2px;
    background-color: rgba(161, 161, 161, 0.75);
    width: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease-out, transform 0.3s ease-out;
}

.headerRight a:hover::before {
    width: 50%;
    transform: translateX(-100%);
}

.headerRight a:hover::after {
    width: 50%;
    transform: translateX(0);
}

/* ---------- Dropdown Menu ---------- */
.dropdown-menu {
    display: none;
    background-color: rgba(0, 0, 0, 0.866);
    position: fixed; /* Use fixed positioning for screen-centered alignment */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.50);
    padding: 15px;
    width: 300px; /* Fixed width */

    /* Centering on the screen */
    top: 35%; /* Align vertically */
    left: 50%; /* Align horizontally */
    transform: translate(-50%, -50%); /* Offset the top and left by 50% of the element's width/height */
    z-index: 999; /* Ensure it stays on top of other elements */
    backdrop-filter: blur(10px);
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu a {
    display: block;
    color: #a1a1a1;
    text-decoration: none;
    padding: 10px 15px;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 1.525rem; /* Fixed font size */
    margin: 5px 0;
    position: relative;
    overflow: hidden;
    background-color: #4444446b;
    border: 0px solid transparent;
    border-radius: 0px;
    text-align: center;
    transition: background-color 0.3s ease, font-weight 0.3s ease;
}

.dropdown-menu a::before,
.dropdown-menu a::after {
    content: '';
    position: absolute;
    top: 90%;
    height: 2px;
    background-color: rgba(161, 161, 161, 0.8);
    width: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease-out, transform 0.3s ease-out;
}

.dropdown-menu a:hover::before {
    width: 50%;
    transform: translateX(-100%);
}

.dropdown-menu a:hover::after {
    width: 50%;
    transform: translateX(0);
}

/* Hover effect for dropdown links */
.dropdown-menu a:hover {
    color: #1D1E1E;
    background-color: #ffe60014;
    border-width: 1px;
}


/* ---------- Footer Background ---------- */
.footerRight {
    position: fixed;
    bottom: 2.5vh;
    text-align: right;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    color: #a1a1a1;
    width: 100%;
    z-index: 2;
    display: flex;
    justify-content: space-between; /* Distribute elements evenly */
    align-items: center; /* Align items vertically in the center */
    padding: 0 2.5vw;
    box-sizing: border-box;
}

.footerRight a {
    margin-right: 2vw;
    margin-bottom: 1vh;
    text-decoration: none;
    color: inherit;
    font-size: 1rem; /* Fixed font size */
    font-weight: 400;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
    padding: 5px 0;
    box-sizing: border-box;
}

.footerRight a::before {
    content: '';
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%) scaleX(0);
    width: 100%;
    height: 2px;
    background-color: rgba(161, 161, 161, 0.75);
    transition: transform 0.3s ease-out;
    transform-origin: center;
}

.footerRight a:hover::before {
    transform: translate(-50%, -50%) scaleX(1);
}

/* ---------- Ruled Lines Background ---------- */
.ruled-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.15),
            rgba(255, 255, 255, 0.15) 1px,
            transparent 1px,
            transparent 320px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.15),
            rgba(255, 255, 255, 0.15) 1px,
            transparent 1px,
            transparent 320px
        );
    background-position: center;
    background-size: 160px 160px;
}
}