@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;700;800&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    /* overflow: hidden; */
    font-family: "Plus Jakarta Sans", sans-serif;
    scroll-padding-top: 110px;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

header {
    display: flex;
    flex-direction: row;
    height: 110px;
    background-color: #003366; /* Albastru Închis */
    color: #ffffff; /* Alb */
    align-items: center;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: top 0.3s;
    position: fixed;
}

header .logo {
    margin-left: 20px;
    font-size: 24px;
}

nav {
    margin-left: auto;
    margin-right: 20px;
}

.nav-menu {
    list-style-type: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.nav-menu li a:hover {
    text-decoration: underline;
}

main {
    padding-top: 120px; /* Adjust based on header height */
    z-index: 1;
}

.cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.card-container {
    width: 50%; /* Ajustează lățimea cardului */
    height: 200px; /* Ajustează înălțimea cardului */
    perspective: 1000px; /* Asigură adâncimea de perspective necesară */
}

.card {
    width: 100%; /* Se ajustează automat pentru a se potrivi cu containerul */
    height: 100%; /* Se ajustează automat pentru a se potrivi cu containerul */
    position: relative;
    background-color: #4a5d81;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 8px;
    transition: background-color 0.6s;
    overflow: hidden; /* Ascunde conținutul care depășește dimensiunile cardului */
    text-align: center;
    opacity: 0.7;
}

.card .front,
.card .back {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s;
    overflow: auto; /* Permite scroll dacă conținutul depășește dimensiunile */
    padding: 20px;
    box-sizing: border-box; /* Include padding în dimensiunea elementului */
}

.card .front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 30px;
}

.card .front h3 {
    opacity: 1;
    transition: opacity 0.6s;
}

.card .back {
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #191970;
    color: #ffffff;
}

.card:hover .front h3 {
    opacity: 0;
}

.card:hover .back {
    opacity: 1;
}

.card h3 {
    margin: 0;
}

.card p {
    margin: 0;
    text-align: center;
    max-height: 100%; /* Asigură că textul se limitează la înălțimea cardului */
    max-width: 100%;
    overflow: auto; /* Adaugă scrollbar dacă textul depășește dimensiunea cardului */
}

.card#team .back {
    position: absolute;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Două coloane egale */
    gap: 20px; /* Spațiu între coloane */
    transition: opacity 0.6s;
    background-color: #191970;
    color: #ffffff;
    opacity: 0;
    padding: 20px;
    box-sizing: border-box; /* Include padding în dimensiunea elementului */
}

.card#team:hover .front h3 {
    opacity: 0;
}

.card#team:hover .back {
    opacity: 1;
}

.card#team .member-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: auto; /* Adaugă scrollbar dacă textul depășește dimensiunea coloanei */
}

.card#team .member-column img {
    border-radius: 50%; /* Menține colțurile rotunjite */
    height: 70px; /* Ajustează înălțimea imaginii */
    width: 70px; /* Ajustează lățimea imaginii pentru a menține aspectul rotund */
    object-fit: cover; /* Asigură că imaginea se potrivește bine în dimensiunile specificate */
}

.card#team .member-column h5 {
    margin: 0;
}

.card#team .member-column p {
    margin: 0;
    overflow: auto; /* Adaugă scrollbar dacă textul depășește dimensiunea coloanei */
}

.card#team .back .member-column:nth-child(1) {
    border-right: 2px solid #ffffff; /* Linia de separare între coloane */
    padding-right: 10px; /* Spațiu între text și linie */
}

.card#services .back {
    width: 100%;
    height: 100%;
    background-image: url(./images/Servere.jpg);
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
}

.contact-section {
    padding: 50px 20px;
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #ffffff;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.contact-form {
    flex: 1 1 300px;
    max-width: 400px;
    margin: 10px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: calc(100% - 20px);
    margin: 0 10px 15px 10px;
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.contact-form button {
    background-color: #333;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #555;
}

.contact-info {
    flex: 1 1 300px;
    max-width: 400px;
    margin: 10px;
    padding: 20px;
}

.contact-info p {
    margin: 10px 0;
    font-size: 16px;
    color: #ffffff;
}

footer {
    background-color: #003366;
    color: #ffffff;
    padding: 20px 0 0 0;
    text-align: center;
    height: 110px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    /* padding: 20px; */
}

footer p {
    margin-bottom: 5px;
    padding: 0;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    display: inline;
    margin: 0 10px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}
