@font-face {
    font-family: VHS-Gothic;
    src: url(font/vhs-gothic.ttf);
  }

* {
    font-family: VHS-Gothic;
}

a {
    text-decoration: none;
    color: black;
}
/* Base styles */
body {
    background-color: rgba(36, 36, 36, 0.822);
    overflow-x: hidden;
    margin: 0;
    padding: 1rem;
    font-family: system-ui, -apple-system, sans-serif;
}

/* Content layout */
#content {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 1rem;
    max-width: 80vw;
    margin: 0 auto;
}

/* Navigation buttons */
#nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 200px;
    min-width: 150px;
}

button {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
}

button:hover {
    transform: scale(1.05);
}

#nav-buttons img {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

button h3 {
    margin: 0.5rem 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

#first_row {
    display: flex; 
    flex-direction: row; 
    margin-top: 2.5rem;
}

/* Screen content */
.screen {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow-y: scroll;
}
.screen::-webkit-scrollbar {
    display: none;
}

.screen h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.screen p {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.6;
}

/* Grid layout for multiple skills */
#skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.skill {
    color: white;
    margin-bottom: 1rem;
    max-width: 400px;
    aspect-ratio: 16/9; 
    align-self: end;
}

#sql h4 {
    position: relative;
}

#profile_pic img {
    aspect-ratio: 1/1;
}


.skill img {
    margin-top: 0;
    max-width: 60%;
}

.skill h4 {
    margin-bottom: 0;
}

/* Project card styles */
.project {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    color: white;
    margin-bottom: 1rem;
    max-width: 400px;
    aspect-ratio: 16/9;
}

.project:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project:hover img {
    transform: scale(1.05);
}

#description {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project:hover #description {
    opacity: 1;
}

#description h4 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 0.5rem;
}

#description h6 {
    margin: 0;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: normal;
    line-height: 1.4;
}

/* Grid layout for multiple projects */
#projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

/* Contacts section */
#contacts {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
}

#contacts img {
    width: clamp(2rem, 5vw, 4rem);
    height: auto;
    transition: transform 0.2s;
}

#contacts img:hover {
    transform: scale(1.1);
}

/* Media Queries */
@media screen and (max-width: 768px) {
    #content {
        flex-direction: column;
        padding: 0.5rem;
    }

    #nav-buttons {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    button {
        width: auto;
        flex: 1;
        min-width: 120px;
        max-width: 200px;
    }

    #contacts {
        position: static;
        text-align: center;
        margin-top: 2rem;
    }

    #skills .skill {
        width: 40%;
        height: 20vh;
    }
    
    .project {
        max-width: 100%;
    }

}

@media screen and (min-width: 769px) {
    #content {
        max-height:90vh;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 0.5rem;
    }

    button h3 {
        font-size: 0.875rem;
    }

    #nav-buttons img {
        max-width: 100px;
    }

    #description {
        padding: 0.75rem;
        /* Make description always visible on mobile */
        opacity: 1;
    }

    #first_row {
        flex-direction: column;
    }
}