body {
    margin: 0;
    padding: 0;
    background-color: #051623;
    color: aliceblue;
}

.line{
    height: 1px;
    background-color: #F79264;
}

#leftline{
    margin-left: clamp(0px, 11vw, 130%);
    width: 100%;
}

#rightline{
    margin-right: clamp(0px, 11vw, 130%);
    width: 100%;
}


#carousel {
    position: relative;
    overflow: hidden;
    width: 75%;
    margin: 0 auto;
}

#carousel img {
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    margin-bottom: 10px;
    display: none;
    aspect-ratio: 16/9;
    transition: transform 0.1s ease, opacity 0.1s ease; /* Add opacity transition */

    @media (max-width: 500px) {
       margin-bottom: 0;
    }
}

#carousel img.active {
    display: block;
    transform: translateX(0);
    opacity: 1;
}

#carousel img.next {
    transform: translateX(100%) scale(1); /* Change the transform property */
    opacity: 0; /* Hide the next slide */
}


#prev, #next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    cursor: pointer;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border: none;
    outline: none;

    @media (max-width: 1200px) {
        font-size: 50px;
    }

    @media (max-width: 900px) {
        font-size: 40px;
    }

    @media (max-width: 700px) {
        font-size: 30px;
    }

    @media (max-width: 500px) {
        font-size: 25px;
    }

    @media (max-width: 400px) {
        font-size: 20px;
    }

    @media (max-width: 350px) {
        font-size: 15px;
    }

}

#prev { left: 10px; }
#next { right: 10px; }

/* Grid styles */
#grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 20px;
    width: 75%;
    margin: 50px auto;
}

@media (max-width: 500px) {
    #grid {
        margin: 20px auto;
    }
}

#grid img {
    width: 400px; /* Auto width to maintain aspect ratio */
    aspect-ratio: 1/1;
    cursor: pointer;
    margin-bottom: 10px;

    @media (max-width: 1200px) {
        width: 300px;
    }

    @media (max-width: 900px) {
        width: 250px;
    }

    @media (max-width: 700px) {
        width: 200px;
    }

    @media (max-width: 500px) {
        width: 150px;
    }

    @media (max-width: 400px) {
        width: 120px;
    }

    @media (max-width: 350px) {
        width: 100px;
    }

}

/* Full-screen overlay styles */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

#full-screen-image {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    display: block;
}

a {
    text-decoration: none;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 10%;
    background-color: #051623;
    color: aliceblue;
    text-decoration: none;
    margin-bottom: 0;

    @media (max-width: 500px) {
        padding: 15px 5%;
    }
}

.navbar-logo {
    color: aliceblue;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-family: 'Anek Kannada', sans-serif;
    font-weight: 600;
}

.navbar-link {
    color: aliceblue;
    font-size: 23px;
    font-family: 'Anek Kannada', sans-serif;
    font-weight: 400;

    @media (max-width: 1200px) {
        font-size: 20px;
    }

    @media (max-width: 900px) {
        font-size: 18px;
    }

    @media (max-width: 700px) {
        font-size: 16px;
    }

    @media (max-width: 500px) {
        font-size: 14px;
    }

    @media (max-width: 400px) {
        font-size: 12px;
    }

    @media (max-width: 350px) {
        font-size: 10px;
    }
}

.navbar-link:hover {
    color: #F79264;
}

.link-proiecte{
    color: aliceblue;
    text-decoration: none;
}

.proiecte-div-titlu{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    color: #ffffff;
    margin-left: 30px;
    margin-right: 30px;
    white-space: nowrap;
}

.proiecte-titlu{
    font-size: 60px;
    font-weight: 500;
    margin-left: 30px;
    margin-right: 30px;

    @media (max-width: 1200px) {
        font-size: 50px;
    }

    @media (max-width: 900px) {
        font-size: 40px;
    }

    @media (max-width: 700px) {
        font-size: 30px;
    }

    @media (max-width: 500px) {
        font-size: 25px;
    }

    @media (max-width: 400px) {
        font-size: 20px;
    }

    @media (max-width: 350px) {
        font-size: 15px;
    }
}

#stanga{
    margin-left: clamp(0px, 11vw, 130%);
    width: 100%;
    color: #ffffff;
    background-color: #ffffff;
}

#dreapta{
    margin-right: clamp(0px, 11vw, 130%);
    width: 100%;
    color: #ffffff;
    background-color: #ffffff;
}