* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
    list-style: none;
    text-decoration: none;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 12%;
}

.logo {
    color: #212832;
}

.navmenu {
    display: flex;
}

.navmenu li {
    position: relative;
}

.navmenu a {
    color: #212832;
    font-size: 16px;
    text-transform: capitalize;
    font-weight: 500;
    padding: 15px 25px;
    transition: all .42s;
}

.navmenu a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: #00c7f1;
    bottom: -2px;
    left: 0;
    transition: all .42s;
}

.navmenu a:hover::after {
    width: 100%;
}

.btn-icon {
    display: flex;
    align-items: center;
}

#menu-icon {
    font-size: 35px;
    color: #212832;
    z-index: 10001;
    cursor: pointer;
    display: none;
}

section {
    padding: 60px 12%;
}

.home {
    width: 100%;
    height: 100vh;
    background-image: url(pics/Decore.png);
    background-position: center;
    background-size: cover;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

.home-img img {
    max-width: 100%;
    width: 800px;
    height: auto;
}

.home-text h4 {
    color: #212832;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.home-text h1 {
    color: #212832;
    font-size: 65px;
    font-family: 'Volkhov';
    font-weight: 700;
    line-height: 70px;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
}

.home-text p {
    color: #212832;
    font-size: 16px;
    font-weight: 500;
    line-height: 30px;
    margin-bottom: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    ;
}

.btn1 {
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    color: #FFF;
    text-transform: capitalize;
    padding: 10px 20px;
    background: #1ec0e9;
    border-radius: 10px;
    margin-right: 40px;
    transition: all .42s;
}

.btn1:hover {
    transform: translateY(-5px);
}

header.sticky {
    background-color: #2454c0;
    padding: 22px 12%;
    box-shadow: 0px 4px 15px rgb(0 0 0 / 8%);
    transition: .43s;
}

/* ========================= */
/*        SERVICII GRID      */
/* ========================= */

.Servici {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 60px 5%;
}

.Servici .main-dest {
    display: contents !important; 
}

.Servici .box {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: rgba(0,0,0,0.1) 0px 8px 20px;
    transition: 0.3s ease;
}

.Servici .box:hover {
    transform: translateY(-6px);
}

/* imagine */
.Servici .hov-img {
    height: 220px;
}

.Servici .hov-img img {
    height: 100%;
    object-fit: cover;
}

/* overlay */
.Servici .details-overlay {
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: 0.3s ease;
}

.Servici .hov-img:hover .details-overlay {
    opacity: 1;
}

/* buton detalii */
.Servici .details-button {
    background: #2454c0;
    border-radius: 25px;
    padding: 8px 18px;
    font-size: 14px;
    transition: 0.3s;
}

.Servici .details-button:hover {
    background: #1c3f91;
}

/* titlu */
.Servici .text-in h5 {
    margin-top: 15px;
}


.center-text {
    text-align: center;
}

.center-text p {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 5rem;
    align-items: center;
    justify-content: center;
}

.center-text h4 {
    font-size: 25px;
    color: #2454c0;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5rem;
}

.text-mid {
    width: 100%;
    height: auto;
}

.obiectiv h1 {
    font-size: 25px;
    color: #2454c0;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5rem;
}


.scop h1 {
    font-size: 25px;
    color: #2454c0;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5rem;
}

.cate-pro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, auto));
    gap: 2rem;
    text-align: center;
}

.row {
    padding: 60px 40px;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) -4px 9px 25px -6px;
    transition: all .42s;
}

.row img {
    width: 75px;
    height: auto;
    margin-bottom: 20px;
}

.row h5 {
    font-size: 16px;
    color: #121215;
    font-weight: 600;
    margin-bottom: 15px;
}

.row p {
    color: #2454c0;
    font-size: 14px;
    font-weight: 500;
}

.row:hover {
    transform: translateY(-8px);
}

.main-dest {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, auto));
    align-items: center;
    gap: 2rem;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background: #ffffff;
    color: #000000; 
    padding: 20px;
    max-width: 80%;
    height: 70vh; 
    overflow: auto;
    border-radius: 10px;
    max-height: unset; 
    line-height: 1.6; 
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #000000;
    color: #FFF;
    padding: 5px 10px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.popup.active .popup-content {
    opacity: 1;
    transform: scale(1);
}

.main-dest {
    display: flex;
    gap: 2rem;
}

.box {
    flex: 1;
    position: relative;
}

.hov-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    width: 100%; /* Set your desired width */
}

.hov-img img {
    width: 100%;
    height: auto;
    transition: all .42s;
}

.details-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1; /* Keep the button always visible */
    transition: opacity 0.3s ease;
}

.details-button {
    background-color: #2454c0;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.details-button:hover {
    background-color: #2454c0;
}

.text-in h5 {
    width: auto; 
    text-align:center
}


.text-in h5 {
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-transform: capitalize;
    background: #2454c0;
    padding: 10px;
    border-radius: 25px;
    align-items: center;
    justify-content: center;
}

.pret h1 {
    font-size: 25px;
    color: #2454c0;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

table {
    border-collapse: collapse;
    margin: 0;
    width: 100%;
    box-shadow: 0 0 5px rgba(0, 0, 0, .25);
}

table tr {
    padding: .45em;
}

thead tr {
    background-color: #2454c0;
}

tbody tr:nth-child(even) {
    background-color: #eaeaea;
}

table th,
table td {
    font-size: 1em;
    padding: 1em;
    text-align: center;
}

thead th {
    font-size: 15px;
    font-size: 500;
}

/* Secțiunea generală */
/*.personal {
  padding: 60px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.text-personal h1 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}


.personal-detail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}


.person {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 250px;
  text-align: center;
  transition: transform 0.3s ease;
}

.person:hover {
  transform: translateY(-5px);
}


.person img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}


.person h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #222;
}

.person .role {
  font-weight: bold;
  color: #009688;
  margin-bottom: 10px;
  font-size: 0.95rem;
}


.person .desc {
  font-size: 0.9rem;
  color: #555;
  text-align: justify;
}


@media (max-width: 900px) {


.personal {
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='644' height='77.3' viewBox='0 0 1000 120'%3E%3Cg fill='none' stroke='%23FFECEA' stroke-width='6.9' %3E%3Cpath d='M-500 75c0 0 125-30 250-30S0 75 0 75s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 45c0 0 125-30 250-30S0 45 0 45s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 105c0 0 125-30 250-30S0 105 0 105s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 15c0 0 125-30 250-30S0 15 0 15s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500-15c0 0 125-30 250-30S0-15 0-15s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 135c0 0 125-30 250-30S0 135 0 135s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3C/g%3E%3C/svg%3E");
    border-radius: 0 100px 0 0;
}

.text-personal h1 {
    font-size: 25px;
    margin-bottom: 50px;
    color: #121215;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 25px;
    text-align: center;
}

.img-personal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.personal-detail{
    display:
}

.first {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.first p {
    letter-spacing: 2px;
}

.first img {
    max-width: 100%;
    height: auto;
}

.second {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.second p {
    letter-spacing: 2px;
}

.second img {
    max-width: 100%;
    height: auto;
}

.third {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.third p {
    letter-spacing: 2px;
}

.third img {
    max-width: 100%;
    height: auto;
}

.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.contact h1 {
    font-size: 50px;
    font-weight: 800;
}

.contact h3 {
    font-size: 25px;
    font-weight: 400;
}

.contact-details {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 8rem;
    margin-top: 5rem;
    margin-bottom: 5rem;
}

.contact-texts {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3rem;
}

.contact-texts i {
    color: #2454c0;
}

.contact-img img {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    max-width: 100%;
    height: auto;
}

.phone {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.8rem;
}

.phone i {
    font-size: 35px;
}

.phone p {
    font-size: 20px;
}

.email {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.8rem;
}

.email i {
    font-size: 35px;
}

.email p {
    font-size: 20px;
}

.location {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.8rem;
}

.location i {
    font-size: 35px;
}

.location p {
    font-size: 20px;
}


@media screen and (max-width: 926px) {
    .contact-img img {
        width: 370px;
    }
    #menu-icon {
        display: block;
    }
    .navmenu {
        position: absolute;
        top: -600px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #2454c0;
        text-align: left;
        transition: all .42s;
    }
    .navmenu a {
        color: white;
        display: block;
        padding: 16px;
        margin: 8px;
    }
    .navmenu.open {
        top: 100%;
    }
    .main-dest {
        display: flex;
        align-items: center;
        justify-self: center;
        flex-direction: column;
    }
}

@media screen and (max-width: 600px) {
    .contact h1 {
        font-size: 25px;
    }
    .contact h3 {
        font-size: 20px;
    }
    .contact-img img {
        display: none;
    }
    .contact-texts {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
    .contact-details {
        gap: 0;
    }
    .phone {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .home {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
}*/
/* === SECTIUNEA ECHIPA === */
.personal {
  padding: 60px 20px;
  text-align: center;
}

.text-personal h1 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #222;
}

.personal-detail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.person {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  width: 250px;
  text-align: center;
  transition: transform 0.3s ease;
}

.person:hover {
  transform: translateY(-5px);
}

.person img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.person h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #222;
}

.person .role {
  font-weight: bold;
  color: #2454c0;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.person p {
  font-size: 0.9rem;
  color: #555;
  text-align: justify;
}

/* === SECTIUNEA CONTACT === */
.contact {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.contact h1 {
  font-size: 50px;
  font-weight: 800;
}

.contact h3 {
  font-size: 25px;
  font-weight: 400;
}

.contact-details {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 8rem;
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.contact-img img {
  max-width: 350px;
  height: auto;
}

.contact-texts {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3rem;
}

.contact-texts i {
  color: #2454c0;
  font-size: 35px;
}

.contact-texts p {
  font-size: 20px;
  margin: 0;
}

.phone,
.email,
.location {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.8rem;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .contact-details {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }

  .contact-img img {
    width: 80%;
    max-width: 300px;
  }

  .personal-detail {
    gap: 20px;
  }

  .person {
    width: 45%;
  }
}

@media (max-width: 1200px) {
    .Servici {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .Servici {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .Servici {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {
  .person {
    width: 100%;
  }

  .contact h1 {
    font-size: 36px;
  }

  .contact h3 {
    font-size: 18px;
  }

  .contact-details {
    gap: 2rem;
  }
}

/* === SECTIUNEA VIDEO === */
.videos {
  width: 100%;
  background-color: #f8f8f8;
  padding: 80px 20px;
  text-align: center;
}

.video-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 10px;
}

.video-header h3 {
  font-size: 1.1rem;
  font-weight: 400;
  color: #555;
  margin-bottom: 50px;
}

/* Containerul principal */
.video-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cardul fiecărui video */
.video-box {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  width: 500px;
  max-width: 100%;
}

.video-box:hover {
  transform: translateY(-5px);
}

/* Videoclipul în sine */
.video-box video {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 3px solid #2454c0;
  background-color: #000;
}

/* Descrierea de sub video */
.video-box p {
  font-size: 1rem;
  color: #333;
  padding: 15px;
  margin: 0;
}

/* === MEDIA QUERIES === */

/* Tablete */
@media (max-width: 900px) {
  .video-container {
    gap: 2rem;
  }

  .video-box {
    width: 90%;
  }

  .video-header h1 {
    font-size: 1.8rem;
  }

  .video-header h3 {
    font-size: 1rem;
  }
}

/* Telefoane */
@media (max-width: 600px) {
  .videos {
    padding: 60px 10px;
  }

  .video-box {
    width: 100%;
  }

  .video-box p {
    font-size: 0.95rem;
  }
}
