/* ================= General Reset & Structure ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    background-color: black;
    color: white;
    font-family: 'Lucida Sans Console', monospace;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

.container {
    margin: 0 auto;
    padding: 0px;
    width: 90%;
    max-width: 1200px;
    flex: 1;
}

.yellow-text {
    color: #f39c12; /* Your custom yellow */
}

/* ================= Header & Navigation ================= */
header {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background-color: #000000;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
    max-width: 1200px;
}



.logo {
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    color: #f39c12;
    font-weight: 500;
    margin-right: auto;
    text-decoration: none;
}

nav {
    display: flex;
    margin-right: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
}

nav a:hover {
    font-style: italic;
}

/* Burger Menu for Mobile */
#burger-icon {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
    margin-right: 20px;
}

#main-nav {
    display: flex;
    gap: 15px;
}

#main-nav a {
    display: block;
}

#main-nav a.active {
    font-weight: bold; /* face textul bold */
    font-style: italic; /* face textul italic */
}

/* Ascund meniul pe mobil și îl activez doar la click pe burger */
@media (max-width: 768px) {
    #main-nav {
        display: none; /* Ascund meniul clasic */
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);;
        position: absolute;
        top: 0; /* Începe de la partea de sus a ecranului */
        left: 0; /* Poziționează meniul pe toată lățimea ecranului */
        width: 100vw; /* Lățime completă a ecranului */
        height: 100vh; /* Înălțime completă a ecranului */
        text-align: center;
        padding: 15px 0;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        opacity: 0;
        visibility: hidden;
    }

    #main-nav a {
        display: block;
        padding: 12px;
        color: white;
        text-decoration: none;
        font-size: 18px;
    }

    #main-nav.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        z-index:1100;
    }

    #burger-icon {
        display: block;
        font-size: 30px;
        color: white;
        cursor: pointer;
        padding: 10px;
        z-index: 1200; /* Asigură că burgerul rămâne vizibil */
    }
   
}
/* ================= Main Content ================= */
main {
    padding-top: 100px;
    flex: 1;
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

p {
    font-size: 18px;
    margin-bottom: 20px;
}

.home-container-portfolio {
    margin-top: -50px;

}
.request-a-quote {
    display: block; /* Asigură-te că linkul se comportă ca un bloc */
    width: 100%;
    background-color: #f39c12;
    color: black;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    padding: 15px 0;
    cursor: pointer; /* Schimbă cursorul la hover */
    text-transform: uppercase;
    text-decoration: none; /* Elimină sublinierea */
    position: relative; /* Necesită pentru a utiliza z-index */
    z-index: 10; /* Ajustează acest număr pentru a fi mai mare decât al altor elemente */
}



/* ================= About Page ================= */
.ascii-grid {
    font-family: monospace; /* Font ASCII */
    font-size: 18px;
    text-align: center;
    margin: 0 auto;
    width: 100%; /* Tabelul ocupă toată lățimea paginii */
    box-sizing: border-box; /* Asigurăm bordurile */
}

.row {
    display: flex; /* Layout pe rânduri */
    width: 100%; /* Lățime completă */
    justify-content: space-between; /* Distribuire între colțuri */
    align-items: center; /* Totul pe aceeași linie orizontală */
}

.corner {
    display: inline-block; /* Colțurile rămân statice */
    font-weight: bold; /* Mai proeminent pentru vizibilitate */
    color: white; /* Colțurile sunt albe */
}

.line {
    flex-grow: 1; /* Linie orizontală extinsă */
    height: 1px; /* Grosime linie */
    background-color: black; /* Culoare linie albă */
    margin: 0; /* Eliminăm spațiile implicite */
    padding: 0; /* Asigurăm poziționare exactă */
}

.cell {
    flex: 1; /* Fiecare celulă are lățime egală */
    text-align: left; /* Textul este aliniat la stânga */
    padding-left: 10px; /* Spațiere pentru claritate */
    line-height: 1.5; /* Spațiere între rânduri */
}

.title {
    color: #f39c12; /* Titlurile sunt galbene */
    font-weight: bold; /* Evidențiere */
}



    .team-member {
        display: flex;
        flex-wrap: wrap; /* Allow items to wrap into multiple rows */
        justify-content: space-between; /* Distribute space between items */
        margin-bottom: 90px;
    }

    .team-member .member {
        width: 30%; /* Fiecare membru ocupă 30% din rând */
        display: flex;
        flex-direction: column;
        align-items: center; /* Alinierea textului și elementelor la centru */
        margin-bottom: 40px; /* Spațiu între rânduri */
        position: relative; /* Permite poziționarea absolută a butonului Play */
    }

    /* Stil pentru imaginea membrului */
    .team-member .team-photo {
        width: 100%; /* Ajustează lățimea la 100% din container */
        height: auto; /* Menține proporțiile */
        object-fit: cover; /* Acoperă întregul spațiu */
        border-radius: 5px;
        border: 2px solid black;
    }

    /* Stil pentru butonul Play */
    .video-link {
        position: relative; /* Asigură poziționarea corectă a butonului Play */
        text-decoration: none; /* Elimină sublinierea linkului */
    }

.play-button {
    position: absolute; /* Poziționează absolut în raport cu div-ul membrului echipei */
    top: 50%; /* Poziționează la mijloc pe verticală */
    left: 50%; /* Poziționează la mijloc pe orizontală */
    transform: translate(-50%, -50%); /* Centrează triunghiul */
    font-size: 70px; /* Ajustează dimensiunea simbolului Play */
    color:#f39c12; /* Culoarea simbolului Play */
    padding: 20px; /* Spațiu în jurul simbolului */
    opacity: 0.3; /* Semi-transparent pentru un efect elegant */
    transition: opacity 0.3s; /* Efect de tranziție pentru hover */
}

.video-link:hover .play-button {
    opacity: 1; /* Face simbolul Play complet vizibil la hover */
    color:#f39c12;
}


/* Lightbox styles */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
    justify-content: center;
    align-items: center;
}

.lightbox video {
    display: none; /* Ascunde video-ul până la încărcare */
    max-width: 80%;
    max-height: 80%;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .team-member .member {
        width: 100%; /* Fiecare membru ocupă 100% pe ecrane mici */
    }
}
/* ================= Portfolio Grid ================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 pe rând */
    gap: 15px; /* Spațiu redus între casete */
    justify-content: center;
    margin-top: 20px;
}

.project-box {
    width: 100%;
    max-width: 300px;
    height: 192px;
    position: relative;
    overflow: hidden;
    border-radius: 10px; /* Colțuri rotunjite */
    text-decoration: none;
}

.project-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px; /* Asigură colțurile rotunjite și la imagine */
    transition: transform 0.3s ease-in-out;
}

.project-box:hover img {
    transform: scale(1.05); /* Efect subtil de mărire la hover */
}

.project-box .hover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    text-align: center;
    border-radius: 10px;
}

.project-box:hover .hover-text {
    opacity: 1;
}

.back-link {
    display: inline-block;
    margin: 20px 0;
    font-size: 0.9em;
    text-decoration: none;
    color: white;
    
}



@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 pe rând */
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr; /* O singură casetă pe rând */
        justify-content: center; /* Centrare casetă */
    }

    .project-box {
        max-width: 90%; /* Lățime adaptabilă, dar nu depășește ecranul */
        margin: 0 auto; /* Centrare pe mobil */
    }

    .project-box .hover-text {
        display: none; /* Ascunde complet textul pe mobil */
        }
}


/* ================= Insights Table ================= */

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.insight-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
}

.insight-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.insight-item span {
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
}

.insight-item p {
    font-size: 14px;
    color: grey;
    line-height: 1.2;
}
  


/* ================= Search results styles ================= */
#search-results ul {
    list-style-position: inside;
    padding-left: 20px;
    margin-left: 0; /* Elimină orice margine suplimentară */
    margin-bottom: 80px; /* Adds space below the list */
}

#search-results li {
    padding-left: 10px; /* Poți ajusta acest padding pentru a alinia mai bine textul */
}

#search-results a {
    color: white; /* Linkurile devin albe */
    text-decoration: none; /* Opțional: elimină sublinierea */
}

#search-results a:hover {
    text-decoration: underline; /* Opțional: subliniere la hover */
}

.search-form {
    display: flex;
    justify-content: flex-start;  /* aliniere pe orizontala */
    width: 100%;
    margin-bottom: 40px;
}

.search-form input {
    padding: 10px;
    border: 1px solid #ccc;
    background-color: black;
    border-radius: 0;
    font-size: 16px;
    flex-grow: 1; /* Câmpul de căutare va ocupa tot spațiul disponibil, dar nu mai mult de 80% */
    margin-right: 10px;
    box-sizing: border-box;
    max-width: 90%;
}

.search-form button {
    padding: 10px 20px;
    background-color: black;
    color: white;
    border: 1px solid white;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    box-sizing: border-box;
    max-width: 10%; /* Lățimea butonului este limitată */
    flex-shrink: 0; /* Asigură că butonul nu va fi redus în dimensiune */
}


.search-form button:hover {
    background-color: white;
    color: black;
    border-color: black;
}




/* ================= Responsive Design ================= */

@media (max-width: 1024px) {
    .insights-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= Contact Page ================= */

.contact-form {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    max-width: 600px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

form label {
    font-size: 18px;
    margin-bottom: 5px;
    color: white;
    text-align: left;
}

form input, form textarea {
    font-size: 16px;
    font-family: 'Lucida Sans Console', monospace;
    background-color: black;
    color: white;
    border: 1px solid white;
    width: 100%;
}

form textarea {
    resize: vertical; /* Permite redimensionarea */
}

button {
    background-color: black;
    color: white;
    border: 1px solid white;
    font-size: 18px;
    padding: 10px;
    cursor: pointer;
    width: 150px; /* Lățime fixă */
    align-self: center;
}

button:hover {
    background-color: white;
    color: black;
}

.error-message {
    color: red;
    font-size: 16px;
}

.success-message {
    color: green;
    font-size: 16px;
}

.telefon-link {
    color: #f39c12;
    text-decoration: none;
    font-weight: bold;
}


/* ================= Footer ================= */
footer {
    position: relative;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background-color: #000000;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
    max-width: 1200px;
}

/* ================= Responsive Design ================= */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin: 5px 0;
    }

    .container {
        width: 100%;
        padding: 10px;
    }

    .team-member {
        flex-direction: column;
        align-items: center;
    }

    .team-member div {
        width: 80%;
        margin-bottom: 20px;
    }

    .portfolio-item {
        width: 100%;
        text-align: center;
    }
    /* ================= Responsive Design ================= */

    @media (max-width: 1250px) {
        .insights-table {
            width: 100%;
            justify-content: center;
        }
    
        .insights-table td {
            width: 30%;
            margin: 5px;
        }
    }

    @media (max-width: 768px) {
    .insights-table {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .insights-table tr {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }

    .insights-table td {
        width: 45%; /* Pe mobil, două casete pe rând */
        margin: 5px;
    }
}

@media (max-width: 480px) {
    .insights-table td {
        width: 90%; /* Pe ecrane foarte mici, o singură casetă pe rând */
    }
}
}

