@font-face {
    font-family: 'font';
    src: url('/assets/fonts/ubuntu.ttf');
    font-weight: 100;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: font, Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #121212, black);
    color: white;
    overflow-x: hidden;
}

/* Structura secțiunii principale - CORECTATĂ SPAȚIEREA */
.projects-hero {
    position: relative;
    min-height: 100vh;
    padding: 11rem 2rem 6rem 2rem; /* Mărit de la 8rem la 11rem pentru a coborî conținutul sub navbar */
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

#particles-resources {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.projects-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- REPARARE TITLU: SCOATE BOLD ȘI GLOW (STIL RESURSE/CONTACT) --- */
.decrypted, #decrypt2 {
    color: white;
    font-size: 4rem;
    font-weight: 100 !important; /* Forțează fontul fin */
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(45deg, white, whitesmoke);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none !important; /* Elimină orice glow electric */
}

/* Stil pentru caracterele individuale generate de script */
.char {
    display: inline-block;
    font-weight: 100 !important; /* Împiedică browserul să le îngroașe */
    text-shadow: none !important; /* Elimină glow-ul din animație */
    transition: color 0.2s ease;
    background: linear-gradient(45deg, white, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.projects-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5rem;
    max-width: 700px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* --- REPARARE NAVBAR TRANSPARENT LA SCROLL --- */
#navbar.scrolled {
    background-color: transparent !important;
    backdrop-filter: blur(10px) !important; /* Îl lasă curat cu blur fin, fără nicio culoare */
    box-shadow: none !important;
    border: none !important;
    border-bottom: 0px solid transparent !important;

    /* Dezactivăm tranziția și aici */
    transition: none !important;
}

/* Container de Proiecte */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    width: 100%;
}

/* Cardul de proiect */
.project-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.project-card.reverse {
    flex-direction: row-reverse;
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 30, 30, 0.85);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.08);
}

/* Zona logoului */
.project-image-container {
    flex: 0 0 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-logo {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.project-card:hover .project-logo {
    transform: scale(1.03);
}

/* Detaliile textului */
.project-info {
    flex: 1;
    text-align: left;
}

.project-badge {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.project-info h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: bold;
}

.project-info p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    text-align: justify;
}

.social-link.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    box-shadow: 0 10px 30px rgba(214, 36, 159, 0.5);
}

.project-info strong {
    color: #ffffff;
}

/* Responsivitate pentru ecrane mici */
@media (max-width: 850px) {
    .project-card, .project-card.reverse {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
        gap: 2rem;
    }
    .project-info {
        text-align: center;
    }
    .project-info p {
        text-align: center;
    }
    .decrypted, #decrypt2 {
        font-size: 3rem;
    }
    .project-image-container {
        flex: none;
        width: 160px;
    }
    .projects-hero {
        padding-top: 8rem;
    }
}