:root {
    --blanco: #ffffff; /* White */
    --hueso: #cccccc; /* Light Gray */
    --plomo-claro: #999999; /* Gray */
    --plomo: #666666; /* Dark Gray */
    --plomo-oscuro: #333333; /* Very Dark Gray */
    --negro-plomo: #2b2b2b; /* Black */
    --negro: #000000; /* Black */
    --rojo: #ff0000; /* red */
    --rojo-oscuro: #080000; /*dark red */
}

body {
    user-select: none; /* Disable text selection */
    -webkit-user-select: none; /* For Safari */
    -ms-user-select: none; /* For Internet Explorer */
}

img {
    pointer-events: none; /* Disable interactions with images */
}

body {
    display: flex;
    height: 100vh;
    margin: 0;
    background-color: var(--negro);
    color: var(--blanco);
    font-family: Arial, sans-serif;
    font-size: 20px;
    flex-direction: column;
    overflow-x: hidden;
}

/* Scrollbar */
body::-webkit-scrollbar {
    width: 4px;
}
body::-webkit-scrollbar-track {
    background: var(--negro); /* Background of the scrollbar track */
}
body::-webkit-scrollbar-thumb {
    background-color: var(--negro); /* Color of the scrollbar thumb */
    border-radius: 2px; /* Roundness of the scrollbar thumb */
    border: 3px solid var(--rojo); /* Padding around the scrollbar thumb */
}
body::-webkit-scrollbar-thumb:hover {
    background-color: var(--rojo); /* Color of the scrollbar thumb on hover */
}

.sb-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20rem;
    color: var(--blanco);
    text-shadow: 0 0 10px var(--blanco), 0 0 20px var(--blanco);
    background-color: var(--negro);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    letter-spacing: -5rem;
}

.sb-hero.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--negro);
    color: var(--blanco);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

header.visible {
    opacity: 1;
    pointer-events: auto;
}

.logo {
    font-size: 24px;
    font-weight: lighter;
    color: var(--blanco);
    text-shadow: 0 0 40px var(--plomo-claro), 0 0 10px var(--blanco);
}
.name{
    font-family: 'Times New Roman', Times, serif;
    font-size: 24px;
    font-weight: lighter;
    color: var(--blanco);
}
.red-text {
    color:red;
}

.hamburger-menu {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    position: relative;
    z-index: 1001;
}
.hamburger-menu.rotated {
    transform: rotate(-90deg);
}
/* Menu hidden state */
.menu-hidden {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease-in-out;
}
/* Menu visible state */
.menu-visible {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--negro);
    z-index: 1000;
    transition: width 0.3s ease-in-out;
    width: 20rem;
}

#menu ul {
    display: flex;
    flex-direction: row;
    margin: 0;
    list-style-type: none;
    width: 100%;
}
#menu li {
    padding: 0 2rem;
    text-align: center;
}
#menu a:hover {
    color: var(--rojo);
}
#menu a {
    color: var(--blanco);
    text-decoration: none;
    display: block;
}

.social-link i {
    font-size: 16px;
    padding-right: 4px;
}

.main-container {
    display: flex;
    flex-grow: 1;
    width: 100%;
}

#main-content {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    flex-grow: 1;
}

.highlight{
    color: red;
}

/*PROJECTS*/
.project-block{
    border: none;
    align-content: center;
    align-self: center;
    margin-top: 10rem;
    height: 50rem;
}
.project-text{
    font-size: 32px;
    font-weight: bold;
    color: var(--blanco);
    text-shadow: 0 0 40px var(--plomo-claro), 0 0 10px var(--negro);
    letter-spacing: 4rem;
}

.card-heading{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 5rem;
}

.title{
    color: var(--rojo);
    background-color: var(--negro);
    width: fit-content;
    height: 3rem;
    letter-spacing: 0.5rem;
}
.info{
    letter-spacing: 0.5rem;
}
.info:hover{
    color: var(--rojo);
}

.details-box {
    display: none;
    background-color: var(--negro);
    color: var(--blanco);
    padding: 1rem;
    border: 2px solid var(--rojo);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.details-box.visible {
    display: block;
    max-height: fit-content;
    opacity: 1;
}
.vehicle-specs{
    display: flex;
    justify-content: space-evenly;
    color: var(--plomo);
    padding: 1rem;
}

.vehicle-specs ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.vehicle-specs li {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--plomo-claro);
}

.vehicle-specs li:last-child {
    border-bottom: none;
}

.side-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    max-width: 100%;
}
.stacked-images{
    display: flex;
    max-width: 100%;
    flex-direction: column;
    justify-content: space-around;
}

#fullpic{
    margin: 0 auto;
}
#fullpic img{
    width: 100%;
    border-radius: 1rem;
}
.landscape {
    height: fit-content;
    width: fit-content;
    padding: 0.2rem;
    background-color: var(--negro);
    border: 1px solid var(--negro);
    border-radius: 2rem;
    align-items: center;
}
.landscape img{
    width: 32rem;
    border-radius: 1rem;
}
.portrait img{
    width: 36rem;
    border-radius: 1rem;
}

/* General mobile styles */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        font-size: 16px;
    }

    .sb-hero{
        font-size: 10rem;
        letter-spacing: -2.2rem;        
    }

    header {
        flex-direction: row;
        align-items: center;
    }

    .logo {
        font-size: 2rem;
    }

    .hamburger-menu {
        font-size: 20px;
    }

    #main-content {
        padding: 1rem;
    }

    .content-block {
        width: 100%;
        margin: 2rem 0;
    }

    .landscape img,
    .portrait img {
        width: 100%;
        height: auto;
    }

    .side-images {
        flex-direction: column;
        align-items: center;
    }

    .stacked-images {
        flex-direction: row;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .project-block{
        border: none;
        align-content: center;
        align-self: center;
        margin-top: 10rem;
        height: 20rem;
    }

    .project-text {
        font-size: 24px;
        letter-spacing: 0.1rem;
        transform: scaleY(1.2);
    }

    .title {
        font-size: 12px;
    }
}

.error-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    background-color: var(--negro);
    color: var(--blanco);
}

.error-container h1 {
    font-size: 8rem;
    margin: 0;
    color: var(--rojo);
}

.error-container p {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.error-container .button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    color: var(--blanco);
    border: 2px solid var(--blanco);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.error-container .button:hover {
    color: var(--rojo);
    border: 2px solid var(--rojo);
}