* {
    box-sizing: border-box;
}

body, html {
    position: relative;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #2f4f4f;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

.hamburger-menu {
    display: none;
    top: 20px;
    left: 20px;
    height: 40px;
    width: 40px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background-color: #ffebcd;
    border-radius: 5px;
    z-index: 2;
}

.hamburger-menu div {
    border-radius: 3px;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    height: 3px;
    background-color: #333;
}

.first-item {
    margin-top: 7px;
}

.third-item {
    margin-bottom: 7px;
}

.hamburger-menu div.change:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
  
.hamburger-menu div.change:nth-child(2) {
    opacity: 0;
}

.hamburger-menu div.change:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
  


.container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.left-column {
    border: 3px solid #ffebcd;
    width: 300px;
    height: 100%;
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    overflow-y: auto;
}

.home-image {
    display: flex;
    flex-direction: column;
    align-items:flex-start;
    flex: 1; 
    background-image: url(./background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    object-fit: cover;
}

.home-title {
   margin-top: 10%;
    width: 100%;
    color: #ffebcd;
    font-size: 80px;
    font-weight: 600;
    text-align: center;
}

.home-subtitle {
    margin-top: 8%;
    width: 70%;
    color: #ffebcd;
    font-size: 20px;
    text-align: justify;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
    overflow-y: auto;
}
.social, 
.hard-skills,
.languages {
    margin-top: 10%;
    text-align: left;
    padding-left: 2px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #ffebcd;
}

.social-links, 
.skills-list, 
.languages-list {
    list-style: none;
    padding-left: 2px; 
}

.left-column li {
    margin-bottom: 10%;
}

.social-links a {
    color: #ffebcd;
    text-decoration: none;
}

.social-links li:hover {
    background-color: #ff7f50;
}

.skill-bar {
    width: 190%;
    background-color: #dddddd;
    height: 15px;
    margin-top: 5px;
    border-radius: 5px;
}

.c-sharp {
    width: 92%;
    height: 100%;
    border-radius: 5px;
    background-color: #a52a2a;
}

.java-progress {
    width: 89%;
    height: 100%;
    border-radius: 5px;
    background-color: #a52a2a;
}

.c-progress {
    width: 80%;
    height: 100%;
    border-radius: 5px;
    background-color: #a52a2a;
}

.sql-progress {
    width: 90%;
    height: 100%;
    border-radius: 5px;
    background-color: #a52a2a;
}

.JavaScript-progress {
    width: 88%;
    height: 100%;
    border-radius: 5px;
    background-color: #a52a2a;
}

.html-progress {
    width: 85%;
    height: 100%;
    border-radius: 5px;
    background-color: #a52a2a;
}

.design-progress {
    width: 85%;
    height: 100%;
    border-radius: 5px;
    background-color: #a52a2a;
}

.left-column > img {
    height: auto;
    width: 100%;
    border-bottom: 3px solid #ffebcd;
    border-top: 3px solid #ffebcd;
}

.menu-popup {
    display: none;
    position: absolute;
    top: 50px;
    width: 100%;
    background: #2f4f4f;
}

.popup-button {
    color: #ffebcd;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 100%;
    padding: 10px 0;
}

/* Responsive design for screens less than 980px wide */
@media (max-width: 980px) {
    .home-image {
        background-size: 100% 100%;
    }

    .home-title {
        padding: 10%;
    }

    .hamburger-menu {
        position: absolute;
        display: flex;
    }

    .hamburger-menu:hover {
        cursor: pointer;
    }

    .hamburger-menu:active {
        background-color: #333;
    }

    .container {
        flex-direction: column;
    }

    .home-title {
        margin-top: 10%;
        width: 100%;
        color: #ffebcd;
        font-size: 30px;
        font-weight: 600;
        text-align: center;
    }

    .left-column {
        width: 100%;
        height: auto; 
        position: absolute;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        background-color: #2f4f4f; 
    }

    .left-column.show {
        transform: translateX(0);
    }

    .left-column > img {
        width: 50%; 
        height: 50%;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    

    .home-image {
        width: 100%;
        height: auto;
    }

    .home-title, .home-subtitle {
        text-align: center;
    }
}
