@font-face {
    font-family: 'vcr_font'; /* Choose a name for your font */
    src: url('fonts/VCR_OSD_MONO_1.001.ttf') format('truetype'); /* Path to your TTF file */
    font-weight: normal; /* Adjust as needed */
    font-style: normal; /* Adjust as needed */
}
@font-face {
    font-family: 'written_font'; /* Choose a name for your font */
    src: url('fonts/X_diff_PressStart2P-Regular_2.ttf') format('truetype'); /* Path to your TTF file */
    font-weight: normal; /* Adjust as needed */
    font-style: normal; /* Adjust as needed */
}

#loading {
  /* (A1) COVER FULL PAGE */
  position: fixed;
  top: 0; left: 0; z-index: 999;
  width: 100vw; height: 100vh;

  /* (A2) SPINNER IMAGE */background-color: #1d12ff;
  background-image: url("berimbau/images/Berimbau-version2.gif");
  background-position: center;
  background-repeat: no-repeat;
}

html {
    overflow-x: hidden;
}

body {
    /* cursor: url('images/cursor_big.png'), auto; */
    margin: 0;
    font-family: 'vcr_font', monospace; /* A monospace font fits the aesthetic */
    font-size: 100px; /* <-- Add or change this for base font size */
    background-image: url('images/version1.webp'); /* <--- Change this to your image path */
    background-size: cover; /* This makes the image cover the entire background */
    background-position: center; /* This centers the image */
    background-repeat: no-repeat; /* This prevents the image from repeating */
    background-attachment: fixed; /* (Optional) This makes the background image fixed when scrolling */
    color: #000000; /* Text color */
    min-height: 100vh; /* Full viewport height */
    position: absolute; /* For star positioning */
    overflow-x: hidden;
}

/* a { */
/*  cursor: url('images/pointer_black.png'), pointer; */
/*   color: #f51616; */
/*   text-decoration: none; */
/* }*/

.container {
    display: flex;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    /* ADDED padding-left to create space for the rotated sidebar */
    padding-left: 0; /* Adjust this value based on the sidebar's rotated height */
    position: relative; /* So children inside can be positioned relative to it if needed */
    min-height: 100vh; /* Ensure container takes full height for positioning */
    margin-left: -50px;
}

/* Sidebar for Desktop */
.sidebar {
    position: fixed; /* Take out of flow for precise positioning */
    top: 0;
    left: 0; /* Position at the top-left of its containing parent */
    /* width: 100vh;  Make its width equal to the viewport height (effectively its new height) */
    height: 100px; /* This will be its width after rotation, adjust as needed */
    padding: 20px 15px 0 15px; /* NEW: Added 20px padding to the top (before rotation) */
    display: flex;
    flex-direction: row; /* NEW: Arrange h1 and nav horizontally within the sidebar */
    justify-content: flex-start; /* Align content to the start of the row */
    align-items: center; /* Vertically center content within the 50px height */
    gap: 8px; /* Space between "GABRIELA CUDMANI" and the "email cv" buttons */
    transform-origin: top left; /* Pivot point for rotation */
    transform: rotate(-90deg) translateX(-100%); /* Rotate and then translate back */
    z-index: 10; /* Ensure it stays above other content if necessary */
     /* height: 60px;This determines the "thickness" of the sidebar */
   }

.sidebar h1 {
    font-size: 40px; /* Ensure this is the desired size */
    margin-bottom: 0;
    color: #000;
    white-space: nowrap;
    line-height: 1; /* This is crucial for tight vertical spacing */
    font-weight: normal;
    order: 2; /* Keep this as 2 based on your previous state */
    display: inline-block; /* Essential so border only applies to content width */
    border-bottom: 5px solid #000; /* Adjust '3px' for thickness, and '#000' for color */
    padding-bottom: 2px; /* Optional: Adjust space between text and underline */
}


.linkedin-btn {
    order: 1; /* Places LINKEDIN last */
}

.email-btn {
    order: 2; /* Places EMAIL in the middle */
}

.cv-btn {
    order: 3; /* Places CV first */
}

.sidebar nav {
    order: 1; /* NEW: This will make the nav appear first */
    margin-top: 10px; /* Add some space between title and buttons if removed from h1 */
    position: relative;
    top: -18px; /* Adjust this value. Start with small increments (e.g., 1px, 2px, -1px, -2px).
                Positive value moves it down. Negative value moves it up. */
}


.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* ADDED: Use Flexbox for horizontal alignment */
    gap: 0;    /* ADDED: Space between the items (adjust as needed) */
}

.sidebar nav ul li {
    white-space: nowrap;
}

.sidebar .button {
    display: inline-block;
    padding: 5px 10px;
    text-decoration: none;
    color: #000000;
    background-color: transparent;
    font-size: 40px; /* Make sure this matches h1's font-size */
    line-height: 1; /* Make sure this matches h1's line-height */
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.sidebar .button:hover {
    /*background-color: rgba(0, 0, 0, 0);*/
    /* color: rgba(255, 255, 255, 0.31); /* Dark text on hover for contrast */
    transform: scale(0.88); /* ADDED: Shrink by 5% */
    color: rgba(0, 0, 0, 0.11);
}

/* Main Content Area */
.content {
    flex-grow: 1; /* Takes up remaining space */
    padding: 20px;
    margin-left: 200px; /* NEW: Adjust this value as needed based on exact visual spacing */
}

.item-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    gap: 10px; /* Space between items */
}

.item-list li {
    margin-bottom: 5px; /* Adjust vertical spacing */
}

.item-link {
    text-decoration: none;
    color: rgb(0, 0, 0);
    background-color: transparent;
    padding: 2px 5px; /* Smaller padding for inline links */
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    display: inline-block; /* NEW: Essential for transform to work reliably on scale */
}

.item-link:hover {
    /*background-color: #f51616;*/
    color: rgba(0, 0, 0, 0.11);
    font-size: 100px; /* <-- Add or change this */
    transform: scale(0.95); /* ADDED: Shrink by 5% */

}
/*
.item-link:hover::after {
    content: "<"
}
 */

.fade-in-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-in, transform 0.5s ease-in;
  /* Add a delay to each item for a staggered effect */
}

.fade-in-item.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 2000px) {
  /* Your styles for large, curved monitors go here */
  /* For example: */
    .container {
        font-size: 170px;
    }

    .sidebar h1 {
    font-size: 50px;
    }

    .sidebar {
        font-size: 50px;
    }

    .sidebar .button {
        font-size: 50px;
    }

    .sidebar nav {
        top: 10px;
    }

    .item-link:hover {
        font-size: 170px; /* <-- Add or change this */
    }

}

/* Responsive Design for Phone Version */
@media (max-width: 1100px) {
    .container {
        font-size: 50px;
    }

    .sidebar {
        font-size: 30px;
    }

    .sidebar nav {
        top: 8px;
    }

    .item-link:hover {
        font-size: 50px; /* <-- Add or change this */
    }

}

/* Responsive Design for Phone Version */
@media (max-width: 768px) {
    body, html {
        margin-left: -10px;
        padding: 0;
    }

    .container {
        font-size: 40px;
        flex-direction: column;
        min-height: auto; /* Allow height to collapse */
        width: 90%;
        margin: 0 auto;
        padding: 0; /* REMOVE PADDING TO AVOID EXTRA SPACE */
    }


    .sidebar {
        font-size: 40px;
        position: relative; /* Change back to relative positioning for mobile */
        width: 100%; /* Full width on phone */
        height: auto; /* Auto height */
        top: auto;
        left: 0;
        transform: none; /* Remove all transforms for mobile */
        border-right: none;
        flex-direction: column;
        /* border-bottom: 2px solid #03FF2C; Horizontal border for mobile */
        align-items: flex-start;
        padding: 16px;
        margin-bottom: 8%;
    }

    .sidebar h1 {
        font-size: 40px;
        margin-bottom: -30px;
        white-space: normal; /* Allow text to wrap again */
        order: 0; /* NEW: Reset to default order for mobile */
        display: inline-block; /* Essential so border only applies to content width */
        border-bottom: 5px solid #000; /* Adjust '3px' for thickness, and '#000' for color */
        padding-bottom: 2px; /* Optional: Adjust space between text and underline */
    }

    .sidebar nav {
        order: 0; /* NEW: Reset to default order for mobile */
        flex-wrap: wrap; /* NEW: Allows items to wrap to the next line if space is limited */

    }

    .sidebar nav ul {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
    }


    .sidebar .button {
        padding: 0;
    }

    .sidebar .button:hover {
        transform: none; /* Deactivates the scaling effect on hover */
        background-color: transparent; /* Ensures background color remains unchanged */
        color: #000000; /* Sets text color back to the default color */
    }

    .content {
        padding: 10px;
        margin-left: 0; /* Reset margin for mobile */
        text-align: left; /* NEW: Align text content to the left */
    }

    .item-list {
        flex-direction: column;
        gap: 5px;
    }



    .item-link:hover {
        transform: none; /* Deactivates the scaling effect on hover */
        font-size: 40px; /* Overrides the hover font size and keeps the non-hover size */
        background-color: transparent; /* Ensures background color remains unchanged */
        color: #000000; /* Sets text color back to the default color */
    }

    body::before,
    body::after {
        width: 100px;
        height: 100px;
    }

    body::before {
        top: 5%;
        left: 80%;
    }

    body::after {
        bottom: 10%;
        left: 10%;
    }
}

/* Further optimization for very small screens if needed */
@media (max-width: 390px) {
    .container {
        font-size: 33px;
        flex-direction: column;
        min-height: auto; /* Allow height to collapse */
    }

    .content {
        padding-bottom: 50px;
    }

    .sidebar {
        font-size: 33px;
        position: relative; /* Change back to relative positioning for mobile */
        width: 100%; /* Full width on phone */
        height: auto; /* Auto height */
        top: auto;
        left: 0;
        transform: none; /* Remove all transforms for mobile */
        border-right: none;
        flex-direction: column;
        /* border-bottom: 2px solid #03FF2C; Horizontal border for mobile */
        align-items: flex-start;
        padding: 16px;
        margin-bottom: 8%;
    }

    .sidebar h1 {
        font-size: 33px;
        margin-bottom: -30px;
        white-space: normal; /* Allow text to wrap again */
        order: 0; /* NEW: Reset to default order for mobile */
        display: inline-block; /* Essential so border only applies to content width */
        border-bottom: 5px solid #000; /* Adjust '3px' for thickness, and '#000' for color */
        padding-bottom: 2px; /* Optional: Adjust space between text and underline */
    }

    .sidebar nav {
        flex-wrap: wrap; /* NEW: Allows items to wrap to the next line if space is limited */

    }

    .sidebar .button {
        font-size: 33px; /* Make sure this matches h1's font-size */
    }

    .item-link:hover {
        font-size: 33px; /* Overrides the hover font size and keeps the non-hover size */

    }

}
