@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

body {
    font-family: 'Roboto', 'Arial';
    background-color: steelblue;

}

.my-divs {
    height: 100vh;
    overflow: hidden;
}

.butoane {
    visibility: hidden;
    position: absolute;
}

.arrow-down::after {
    content: "";
    width: 40px;
    height: 40px;
    position: absolute;
    margin: auto;
    top: 40rem;
    right: 0;
    bottom: 0;
    left: 0;
    border-right: 4px solid rgba(255,255,255, 0.8);
    border-bottom: 4px solid rgba(255,255,255, 0.8);
    transform: rotate(45deg);
    cursor: pointer;

}


.arrow-up::after {
    content: "";
    width: 40px;
    height: 40px;
    position: absolute;
    margin: auto;
    top: 40rem;
    right: 0;
    bottom: 0;
    left: 0;
    border-right: 4px solid rgba(255,255,255, 0.8);
    border-bottom: 4px solid rgba(255,255,255, 0.8);
    transform: rotate(225deg);
    cursor: pointer;

}

.arrow-back::after {
    content: "";
    width: 40px;
    height: 40px;
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 40rem;
    left: 0;
    border-right: 4px solid rgba(255,255,255, 0.8);
    border-bottom: 4px solid rgba(255,255,255, 0.8);
    transform: rotate(225deg);
    cursor: pointer;

}

/* Containerul principal negru transparent */
.about-container {
    background-color: rgba(0, 0, 0, 0.5);
    height: 100vh;
    width: 100vw;
    padding: 0 5%; /* Padding lateral */
    
    /* Folosim Flexbox pentru a centra totul vertical */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Rândul de sus care ține: Box - Imagine - Box */
.top-row {
    display: flex;
    justify-content: space-between; /* Împarte spațiul egal între ele */
    align-items: center; /* Le aliniază pe centru vertical */
    width: 100%;
    margin-bottom: 20px; /* Spațiu între partea de sus și textul de jos */
}

/* Stilul pentru cutiile laterale (verde în desenul tău) */
.side-box {
    background-color: #6EACDA; /* Stil similar cu Skills */
    border: 1px solid aliceblue;
    border-radius: 10px;
    width: 35%; /* Lățimea cutiilor */
    height: 400px; /* Înălțime fixă sau scoate linia pentru automat */
    padding: 20px;
    
    /* Centrare conținut în cutie */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Stil specific pentru imaginile din cutiile laterale (stânga/dreapta) */
.side-box img {
    max-width: 100%;   /* Imaginea va ocupa maxim 80% din lățimea cutiei */
    height: 100%;     /* Își păstrează proporțiile corecte */
    border-radius: 8px; /* Opțional: colțuri rotunjite la imagine */
    margin-bottom: 15px; /* Spațiu sub imagine */
    object-fit: contain; /* Asigură că imaginea se vede bine */
}

/* Stil specific pentru listele din interiorul cutiilor laterale */
.side-box ul {
    text-align: left;     /* Aliniază textul la stânga pentru a se vedea bulinele normal */
    width: 100%;           /* Lățimea listei în interiorul cutiei */
    padding-left: 20px;   /* Spațiu în stânga pentru a nu tăia bulinele */
    margin-top: 15px;     /* Spațiu între titlu și listă */
}

.side-box li {
    margin-bottom: 8px;   /* Spațiu între rândurile listei */
    color: #fff;          /* Culoarea textului */
    line-height: 1.4;     /* Spațiere între rândurile de text lung */
    text-shadow: 2px 2px 2px rgba(26,25,25,0.5);
    font-size: large;
}

/* Zona centrală (Computer + Titlu) */
.center-piece {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1; /* Ocupă spațiul rămas, dar nu mai mult decât imaginile */
}

.center-piece img {
    height: 180px; /* Ajustează mărimea imaginii cu computerul */
    width: auto;
    margin-bottom: 10px;
}

#a4, #a7, #a11, #a14 {
    width: 350px;  /* Setează lățimea dorită (poți pune 300px sau 400px) */
    height: auto;  /* Păstrează proporțiile corecte (nu o turtește) */
    margin-bottom: 15px;
    object-fit: contain;
}

.center-piece h1, .center-piece h2 {
    color: #fff;
    margin: 10px 0;
    text-shadow: 2px 2px 2px rgba(3, 3, 3, 1);
}

/* Textul de jos (Paragraful) */
.description {
    color: #fff;
    line-height: 1.8;
    letter-spacing: 0.5px;
    font-size: 1.2rem;
    text-align: center;
    max-width: 1200px; /* Sa nu fie prea lung pe ecrane mari */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/*#div1 {
    background-color: #3f65c8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* background-size: cover;
    background-repeat: no-repeat; 
    text-align: center;
    position: relative;
}*/


#div1 h1 {
    margin: 1rem;
    color: #fff;
    text-shadow: 1px 1px 5px rgb(0,0,0,1);
}

#div1 i {
    text-shadow: 1px 1px 5px rgb(0,0,0,1);
    font-size: 1.8rem;
    color: #fff;
}

#div1 p {
    color: #fff;
    text-shadow: 1px 1px 5px rgb(0,0,0,1);
    line-height: 2;
    letter-spacing: 0.6px;
    font-size: 1.5rem;

}

.img-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.img-div div {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgb(226, 230, 9);
}

.img-div div img {
    height: 200px;
    border-radius: 50%;
}

.my-divs {


    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;

    background: url('img/blue.png');
    background-size: cover;
    background-repeat: no-repeat;
    
}

/*
#div2 div {
    background-color: rgba(0, 0, 0, 0.5);
    height: 100vh;
    width: 100vw;
    padding-left: 10%;
    padding-right: 10%;

}

#div2 div img {
    height: 200px;
    width: 200px;
    margin-top: 10%;

}

#div2 div h1 {
    color: #fff;
    margin: 30px auto 30px;
}

#div2 div p {
    color: #fff;
    line-height: 2;
    letter-spacing: 0.5px;
    font-size: 1.2rem;
}*/

#div3 {

    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0px 10% 0px;
    background-color: #3f65c8;

}

#skill_title {
    width: 100%;
    padding: 50px;
    /* background-color: red; */
}


#skill_title h1, .skills h3, .skills p ,.side-box h1, .side-box p{
    color: #fff;
    text-shadow: 2px 2px 2px rgba(26,25,25,0.5);
}

.skills h3, .skills p {
    margin-top: 20px;
}



.skills-wrap {
    display: inline;
}

.skills {
    background-color: #6EACDA;
    border: 1px solid aliceblue;
    width: 30%;
    margin: 5px 5px 20px;
    padding: 25px;
    height: auto;
    display: inline-block;
    border-radius: 10px;
}

.skills img {
    width: 50%;
    height: auto;
}

#divfinal {

    background: url('img/blue.png');
    background-size: cover;
    background-repeat: no-repeat;


    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

#divfinal h1, #divfinal p {
    color: #fff;
    text-shadow: 2px 2px 2px rgba(3, 3, 3, 1);
    margin: 15px;
}

#divfinal p {
    font-size: 1.5rem;
}

.overlay {
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.5);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
   padding: 10px;
}

form {
    padding: 10px;
}

form input, form textarea, button {
    width: 100%;
    padding: 10px;
    font-size: 1.2rem;
    margin-bottom: 5px;
    background: #09276e;
    border-radius: 5px;
    color: #0ec7f9;
    border-color: #0ec7f9;
}

form input:focus {
    outline: none;
}

form input::placeholder, form textarea::placeholder {
    color: #0ec7f9;
} 

form textarea {
    font-family: inherit;
    font-size: 1.2rem;
}

form textarea:focus {
    outline: none;
}

form button {
    border-color: #0ec7f9;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease-in;
}

form button:hover {
    background-color: #0ec7f9;
    color: #09276e;
    border-color: #09276e;
}


@media(max-width: 600px) {
    .skills {
        width: 70vw;
    }

    .skills-wrap {
        overflow: auto;
    }

    #div1 h1 {
        font-size: 1.5rem
    }
}

@media(max-width: 450px) {
   #div2 div p {
       font-size: 1rem;
       line-height: 1.2;
   }
}


@media(max-width: 350px) {
    #div2 div p {
        font-size: 1rem;
        line-height: normal;
    }
 }

/* Adaptare pentru mobil (totul unul sub altul) */
@media(max-width: 900px) {
    .top-row {
        flex-direction: column;
    }
    .side-box {
        width: 80%;
        margin-bottom: 20px;
        height: auto;
    }
    .center-piece {
        order: -1; /* Pune imaginea cu computerul prima sus pe mobil */
        margin-bottom: 20px;
    }
}