/* Mobile styles (320px - 744px) */
@media (min-width: 100px) and (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;
}


/* ---------- ABOUT BLOCK ---------- */
/* Container for the About section */
.content-wrapper {
    background-color: black; /* Fully opaque black background */
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.7); /* Slightly stronger shadow for depth */
    padding: 20px;
    width: 100%;
    max-width: 375px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    box-sizing: border-box;
    margin-top: 100px;
    margin-bottom: 100px; /* Reduced margin to control spacing at the bottom */
    padding-top: 0px;
    padding-bottom: 20px; /* Reduced padding to eliminate extra space */
    z-index: 1;
}

/* Heading within the About section */
.content-wrapper .about-heading {
    font-size: 48px;
    
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: #a1a1a1;
    margin-bottom: 30px;
}

/* Paragraphs within the About section */
.content-wrapper .about-section p {
    color: #a1a1a1;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 20px;
    padding: 0 10px;
}

.about-body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: var(--primary-color);
    padding: 10px; /* Adjusted padding for more compact content */
    border-radius: 5px;
    margin-top: 0px;
}

.about-body p {
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 10px; /* Adjusted spacing between paragraphs */
}

/* Style for the email link */
.custom-link {
    position: relative;
    color: #E0D202;
    text-decoration: none;
    font-weight: 300; /* Light */
    font-style: italic;
    transition: color 0.3s ease;
    display: inline-block; /* Ensure the width of the link is based on its content */
}

/* Create lines for the underline effect */
.custom-link::before,
.custom-link::after {
    content: '';
    position: absolute;
    top: 95%; /* Position just below the text */
    height: 1px; /* Line thickness */
    background-color: #E0D202; /* Line color with transparency */
    transition: width 0.3s ease-out, transform 0.3s ease-out;
    width: 0; /* Start with no width */
    left: 50%; /* Start from the center */
    transform: translateX(-50%); /* Center the lines exactly at the middle */
}

/* Extend the lines outward from the center on hover */
.custom-link:hover::before {
    width: 50%; /* Extend to half the element's width */
    transform: translateX(-100%); /* Move line to start from the exact center and extend left */
}

.custom-link:hover::after {
    width: 50%; /* Extend to half the element's width */
    transform: translateX(0); /* Start from the center and extend right */
}

/* ---------- 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.4rem; /* 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.69rem; /* Fixed size */
    color: #a1a1a1;
    margin-top: -5px;
    text-align: left; /* Align text to the left */
}

/* ---------- RIGHT HEADER ---------- */
.headerRight {
    display: flex;
    align-items: top; /* Ensure content is vertically centered */
    text-align: Right;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    color: #a1a1a1;
    white-space: nowrap;
    padding: 0;
    gap: 2vw;
}

.headerRight p {
    font-size: 1.25rem;
    margin-top: -5px;
}

.headerRight a {
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
    font-size: 1.25rem;
    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);
}


/* ---------- 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;
}

/* Style for the 3D background canvas */
#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -5;
    pointer-events: none; /* Ensures clicks go through the canvas */
}

}