/* Tablet styles (745px - 1280px) */
@media (min-width: 745px) and (max-width: 1280px) {
    :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;
    }

/* 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: 575px;
    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;
}

.content-wrapper .about-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 60px;
    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;
    font-size: 20px;
    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 content wrapper */
.content-wrapper {
    width: 80%; /* Adjust width as needed */
    margin: 0 auto; /* Center the content wrapper */
}

/* Style for the about body text */
.about-body {
    text-align: left; /* Left-align all text within the about body */
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-style: italic;
    color: #E0D202;
    font-size: 18px;
    line-height: 1.6;
}

/* Center and style the main paragraph text */
.centered-text {
    text-align: center;
    font-size: 18px; /* Set font size to 18px */
    margin-top: 20px;
}

/* Style for the about body text */
.about-body {
    text-align: left; /* Left-align all text within the about body */
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-style: italic;
    color: #E0D202;
    font-size: 18px;
    line-height: 1.6;
}

/* Center and style the main paragraph text */
.centered-text {
    text-align: center;
    font-size: 18px; /* Set font size to 18px */
    margin-top: 20px;
}

/* Style for the about body text */
.about-body {
    text-align: left; /* Left-align all text within the about body */
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-style: italic;
    color: #E0D202;
    font-size: 18px;
    line-height: 1.6;
}

/* Center and style the main paragraph text */
.centered-text {
    text-align: center;
    font-size: 18px; /* Set font size to 18px */
    margin-top: 20px;
}

/* Style for the about body text */
.about-body {
    text-align: left; /* Left-align all text within the about body */
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-style: italic;
    color: #E0D202;
    font-size: 18px;
    line-height: 1.6;
}

/* Center and style the main paragraph text */
.centered-text {
    text-align: center;
    font-size: 18px; /* Set font size to 18px */
    margin-top: 20px;
}

/* Style for the about body text */
.about-body {
    text-align: left; /* Left-align all text within the about body */
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-style: italic;
    color: #E0D202;
    font-size: 18px;
    line-height: 1.6;
}

/* 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 */
}


/* ---------- ARROWs LEFT/RIGHT ---------- */
/* Container for the arrows */
#arrowContainer {
    position: fixed;
    bottom: 10%; /* Keep the arrows vertically centered */
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between; /* Space out the two arrows */
    align-items: center;
    z-index: 4; /* Ensure the arrows stay on top */
    pointer-events: none; /* Ensure the container doesn't block clicks */
}

/* Override pointer events for clickable items */
#arrowR, #arrowL {
    pointer-events: auto; /* Re-enable click for arrows */
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 4;
}

#blockImage {
    display: block; /* Ensure the image is treated as a block-level element */
    position: fixed; /* Keep the image fixed relative to the viewport */
    bottom: 10%; /* Place the image 10% above the bottom of the viewport */
    left: 50%; /* Center the image horizontally */
    transform: translateX(-50%); /* Offset the image by half its width to center perfectly */
    width: 100px; /* Fixed width of the image */
    height: auto; /* Height is auto to maintain aspect ratio */
    opacity: 0.8; /* Slightly transparent */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth transition for transform and opacity */
    pointer-events: auto; /* Make the image clickable */
    z-index: 5; /* Ensure the image is above most other content */
}


/* Styling for the arrows */
#arrowImageR, #arrowImageL {
    width: 60px; /* Same width for both images */
    height: auto;
    opacity: 0.65; /* Default transparency for both arrows */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hover effects for both arrows */
#arrowR:hover #arrowImageR, #arrowL:hover #arrowImageL {
    transform: scale(1.1);
    opacity: 0.55; /* Same hover opacity for both */
}


/* ---------- HEADERS ---------- */
.headerContainer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 2.5vw;
    position: fixed; /* Change to fixed */
    top: 0; /* Aligns the header to the top of the screen */
    width: 100%;
    box-sizing: border-box;
    z-index: 2;
    padding-top: 20px; /* Add padding at the top */
    padding-bottom: 20px; /* Add padding at the bottom */
}

.headerLeft {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

/* Fixed sizes for header text */
.headerLeft1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 1.75rem; /* Fixed font size */
    color: #a1a1a1;
    margin: 0;
}

.headerLeft1 a {
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
    position: relative; /* Required for absolute positioning of pseudo-elements */
    display: inline-block; /* Ensures the link does not span the full container width */
    overflow: hidden; /* Hides anything outside the boundary of the link */
}

.headerLeft1 a::before,
.headerLeft1 a::after {
    content: '';
    position: absolute;
    top: 90%; /* Center vertically */
    height: 2px; /* Line thickness */
    background-color: rgba(161, 161, 161, 0.75); /* Using variable for transparency */
    transition: width 0.3s ease-out, transform 0.3s ease-out; /* Smooth transitions for width and movement */
    width: 0; /* Start with no width */
    left: 50%; /* Start from the center */
    transform: translateX(-50%); /* Center the lines exactly at the middle */
}

.headerLeft1 a: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 */
}

.headerLeft1 a:hover::after {
    width: 50%; /* Extend to half the element's width */
    transform: translateX(0); /* Start from the center and extend right */
}

.headerLeft2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 0.85rem; /* Fixed size */
    color: #a1a1a1;
    margin-top: 0px;
    text-align: center;
}

.headerRight {
    display: flex;
    align-items: center;
    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; /* Fixed font size */
    margin: 1vw 2vw;
}

.headerRight a {
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
    font-size: 1.5rem; /* Fixed font size */
    position: relative;
    display: inline-block;
    overflow: hidden;
    transition: color 0.3s ease;
}

.headerRight a::before,
.headerRight a::after {
    content: '';
    position: absolute;
    top: 90%; /* Center vertically */
    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.20);
    padding: 15px;
    width: 300px; /* Fixed width */
    
    /* Centering on the screen */
    top: 50%; /* Vertically center */
    left: 50%; /* Horizontally center */
    transform: translate(-50%, -50%); /* Offset the top and left by 50% of the element's width/height */
    z-index: 10; /* 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;
    z-index: 10; /* Ensure it stays on top of other elements */
}

.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: #a1a1a1;
    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: 240px 240px;
}
/* Style for the 3D background canvas */
#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none; /* Ensures clicks go through the canvas */
}

}