/* --- style.css --- */
:root {
    --bg-color: #f4f4f4;
    --text-color: #111;
    --header-height: 90px;
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    width: 100vw;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- CURSOR (STABIL - FĂRĂ INVERSARE CULORI) --- */
.cursor-dot {
    position: fixed; top: 0; left: 0;
    transform: translate(-50%, -50%); border-radius: 50%;
    z-index: 9999; pointer-events: none;
    
    /* Punctul este NEGRU cu o bordură ALBĂ fină */
    /* Asta îl face vizibil pe ORICE fundal fără să inverseze culorile */
    width: 8px; height: 8px;
    background: #000;
    border: 1px solid #fff;
    
    /* IMPORTANT: Am scos mix-blend-mode */
    mix-blend-mode: normal; 
}

.cursor-outline {
    position: fixed; top: 0; left: 0;
    transform: translate(-50%, -50%); border-radius: 50%;
    z-index: 9999; pointer-events: none;
    
    /* Cercul este NEGRU cu o umbră ALBĂ fină */
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.8); /* Linie neagră */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4); /* Linie albă fină exterioară */
    
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: normal; /* Fără inversare */
}

/* Când ești cu mouse-ul peste un LINK sau IMAGINE */
body.hovering .cursor-outline {
    width: 80px; height: 80px;
    /* Devine ușor albicios transparent, ca o lentilă curată */
    background: rgba(255, 255, 255, 0.1); 
    border-color: #fff;
    box-shadow: none; /* Scoatem umbra dublă la hover */
}

/* Punctul din mijloc dispare la hover ca să vezi clar */
body.hovering .cursor-dot {
    opacity: 0;
}

/* --- HEADER (Standard & Inverse) --- */
header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    padding: 0 50px; display: flex; justify-content: space-between; align-items: center;
    z-index: 2000; 
    background: transparent; /* Transparent inițial */
    color: #000;
    transition: all 0.4s ease;
}



/* --- HEADER STARE INVERSĂ (Când dai scroll) --- */
/* Acesta este blocul care lipsește și face header-ul negru */
header.header-inverse {
    background: #000; /* Fundal negru */
    color: #fff;      /* Scris alb */
    border-bottom: 1px solid #333; /* Linie subtilă gri */
    transition: all 0.4s ease;
}

/* Asigurăm că link-urile și logo-ul devin albe */
header.header-inverse a {
    color: #fff !important;
}

/* Linia separator din logo devine albă */
header.header-inverse .brand-separator {
    background-color: #fff !important;
}

/* Butonul de Meniu devine alb */
header.header-inverse .menu-trigger {
    color: #fff !important;
}

/* --- STYLE.CSS - Logo Update --- */

.logo { 
    border: none; /* Am scos dreptunghiul */
    padding: 0; 
}

.logo a {
    display: flex;
    align-items: center; /* Le aliniază perfect pe centru */
    gap: 15px; /* Spațiul dintre cuvinte și linie */
    text-decoration: none;
    color: inherit; /* Ia culoarea headerului (negru sau alb) */
    line-height: 1;
}

/* --- MENIU ICON (3 Linii Verticale - Stil MUCHIA) --- */
.menu-trigger {
    display: flex;
    gap: 6px; /* Distanța dintre linii */
    cursor: pointer;
    padding: 10px; /* Zonă de click mai mare */
    transition: 0.3s;
    /* Ne asigurăm că liniile sunt aliniate cu logo-ul */
    align-items: center; 
}

.menu-line {
    display: block;
    width: 2px; /* Grosimea liniei - fină */
    height: 35px; /* Lungi, cum ai cerut */
    background-color: currentColor; /* Ia culoarea textului (negru/alb) automat */
    transition: all 0.3s ease;
}

/* Efect la Hover: Liniile se depărtează puțin sau își schimbă înălțimea */
.menu-trigger:hover .menu-line:nth-child(1) { height: 25px; }
.menu-trigger:hover .menu-line:nth-child(3) { height: 25px; }
/* Linia din mijloc rămâne lungă */

/* Când header-ul e inversat (Negru), liniile devin albe automat datorită currentColor */

/* 1. MUCHIA (Mare & Bold) */
.brand-bold {
    /* Aici schimbăm fontul */
    font-family: 'Syne', sans-serif; 
    
    font-weight: 800; 
    font-size: 2.2rem;
    
    /* AICI modifici spațierea dintre litere */
    letter-spacing: 2px; /* Mărește numărul pentru spațiu mai mare (ex: 5px) */
    
    text-transform: uppercase;
}

/* 2. LINIA (|) - Rămâne la fel, doar asigură-te că e aici */
.brand-separator {
    display: block;
    width: 2px;
    height: 40px;
    background-color: currentColor;
    transform: none;
}

/* 3. Studio (Mare & Subțire) */
.brand-thin {
    /* Putem folosi același font sau altul */
    font-family: 'Syne', sans-serif;
    
    font-weight: 400; /* Mai subțire */
    font-size: 2.2rem;
    
    /* Spațiere diferită pentru partea de Studio */
    letter-spacing: -1px; /* Valoare negativă le apropie, pozitivă le depărtează */
}

/* Ajustare pentru mobil (ca să nu fie prea mare pe ecrane mici) */
@media (max-width: 768px) {
    .brand-bold, .brand-thin { font-size: 1.5rem; }
    .brand-separator { height: 25px; }
}

/* MENIU FULLSCREEN */
.fullscreen-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #000; color: #fff; z-index: 1500;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transform: translateY(-100%); transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}
.fullscreen-menu.active { transform: translateY(0); }
.fullscreen-menu ul { list-style: none; text-align: center; }
.fullscreen-menu li { margin: 20px 0; }
.fullscreen-menu a { font-size: 4rem; font-weight: 900; text-transform: uppercase; color: #fff; opacity: 0.7; }
.fullscreen-menu a:hover { opacity: 1; }

/* --- HERO & CONTENT --- */
.hero {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.hero-title {
    font-size: 12vw; font-weight: 900; line-height: 0.8;
    text-transform: uppercase; text-align: center; z-index: 2;
    opacity: 0; animation: fadeInUP 1s forwards 1s;
}
.chaos-lines { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.d-line { position: absolute; background: black; opacity: 0.6; }
/* ... (păstrează animațiile liniilor de la codul anterior) ... */
.l1 { width: 2px; height: 0; top: -10%; left: 20%; transform: rotate(35deg); animation: growLineDown 1.5s ease-out forwards; }
.l2 { width: 2px; height: 0; top: -10%; right: 30%; transform: rotate(-25deg); animation: growLineDown 1.2s ease-out forwards 0.2s; }
.l3 { height: 2px; width: 0; top: 60%; left: -10%; transform: rotate(-15deg); animation: growLineRight 1.5s ease-out forwards 0.4s; }
.l4 { height: 2px; width: 0; bottom: 20%; right: -10%; transform: rotate(15deg); animation: growLineLeft 1.4s ease-out forwards 0.3s; }

@keyframes growLineDown { to { height: 150vh; } }
@keyframes growLineRight { to { width: 150vw; } }
@keyframes growLineLeft { from { width: 0; right: -10%; } to { width: 150vw; right: 100%; } }
@keyframes fadeInUP { to { opacity: 1; transform: translateY(0); } }

/* Sections Common */
.simple-about { padding: 100px 50px; background: #fff; border-bottom: 2px solid #000; }
.about-container h2 { font-size: 3rem; margin-bottom: 20px; font-weight: 800; }
.about-container p { font-size: 1.5rem; line-height: 1.4; }

.bauhaus-services { background: #f4f4f4; }
.service-row {
    display: flex; justify-content: space-between; padding: 60px 50px;
    border-bottom: 1px solid #000; transition: 0.4s; cursor: pointer;
}
.service-row:hover { background: #000; color: #fff; }
.s-content h3 { font-size: 3rem; text-transform: uppercase; font-weight: 800; }

.marquee-section { padding: 60px 0; background: #000; color: #fff; overflow: hidden; white-space: nowrap; }
.marquee-content { display: inline-block; font-size: 3rem; font-weight: 800; animation: scrollText 20s linear infinite; }
@keyframes scrollText { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- FILTRE STICKY & GRID --- */
.portfolio-filter-section { padding-bottom: 100px; background: #fff; }
.filters-wrapper {
    position: sticky; top: var(--header-height); z-index: 900;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee; padding: 20px 0; margin-bottom: 60px;
}
.filters { display: flex; justify-content: center; gap: 30px; }
.filter-btn { border: none; background: none; font-size: 1rem; text-transform: uppercase; font-weight: 600; color: #999; transition: 0.3s; }
.filter-btn.active, .filter-btn:hover { color: #000; }

.grid-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; padding: 0 50px; }
.project-card { position: relative; height: 500px; overflow: hidden; border: 1px solid #eee; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; filter: grayscale(100%); }
.project-card:hover img { transform: scale(1.05); filter: grayscale(0%); }
.project-info { position: absolute; bottom: 20px; left: 20px; color: #fff; z-index: 2; opacity: 0; transform: translateY(20px); transition: 0.4s; }
.project-card:hover .project-info { opacity: 1; transform: translateY(0); }
.overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); opacity: 0; transition: 0.4s; }
.project-card:hover .overlay { opacity: 1; }

/* --- CONTACT SECTION (NEW DARK BOLD) --- */
.contact-section {
    padding: 120px 50px;
    background: #080808; /* Negru intens */
    color: #fff;
}
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 100px; max-width: 1400px; margin: 0 auto;
}
.contact-text h2 {
    font-size: 4rem; /* Mult mai mare */
    font-weight: 900; margin-bottom: 30px; line-height: 1; text-transform: uppercase;
}
.contact-text p { font-size: 1.2rem; color: #aaa; margin-bottom: 50px; max-width: 500px; }
.contact-details div { font-size: 1.1rem; margin-bottom: 20px; border-left: 2px solid #333; padding-left: 20px; }

/* Formular Dark Minimal */
.contact-form { display: flex; flex-direction: column; gap: 30px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 20px 0; border: none;
    border-bottom: 1px solid #444; background: transparent;
    color: #fff; font-size: 1.2rem; outline: none; transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-bottom-color: #fff; }
.submit-btn {
    align-self: flex-start; background: #fff; color: #000;
    padding: 20px 50px; font-size: 1rem; text-transform: uppercase;
    font-weight: 800; border: none; transition: 0.3s; margin-top: 20px;
}
.submit-btn:hover { background: #ccc; }

/* --- PAGINA PROIECT (Redimensionat) --- */
.project-hero {
    height: 60vh; /* Era prea mare, acum e mai elegant */
    width: 100%; overflow: hidden; position: relative;
}
.project-hero img { width: 100%; height: 100%; object-fit: cover; }

.project-details { padding: 80px 50px; max-width: 1000px; margin: 0 auto; }
.back-btn { margin-bottom: 40px; display: inline-block; font-weight: bold; border-bottom: 1px solid #000; padding-bottom: 5px; }

/* Galeria din Proiect - Side by Side */
.project-gallery {
    margin-top: 60px;
    display: grid; grid-template-columns: 1fr 1fr; /* Două coloane pentru a nu fi prea lung scroll-ul */
    gap: 20px;
}
.project-gallery img {
    width: 100%;
    height: 400px; /* Înălțime fixă pentru consistență */
    object-fit: cover;
    filter: grayscale(20%); transition: 0.3s;
}
.project-gallery img:hover { filter: grayscale(0%); }

/* --- FOOTER --- */
footer {
    background: #000; color: #666; padding: 50px;
    border-top: 1px solid #222; display: flex; justify-content: space-between;
}
.footer-social svg { fill: #666; width: 20px; transition: 0.3s; }
.footer-social svg:hover { fill: #fff; }

@media (max-width: 768px) {
    .contact-grid, .grid-wrapper, .project-gallery { grid-template-columns: 1fr; }
    .hero-title { font-size: 18vw; }
    .contact-text h2 { font-size: 3rem; }
    header.header-inverse { background: #000; } /* Asigură fundal negru pe mobil */
}

/* --- PROIECT TEMPLATE STYLES --- */

/* --- STIL NOU: EDITORIAL (ADNBA Style) --- */

.editorial-section {
    padding: 0 5vw;
    margin-bottom: 100px;
    
    /* AICI AM ADĂUGAT SPAȚIUL DE SUS */
    margin-top: 100px; /* Era lipit, acum are 100px spațiu */
    
    font-family: 'Helvetica', sans-serif;
    color: #000;
}

/* 1. ZONA DE SUS (Titlu + Detalii) */
.editorial-header {
    display: flex;
    justify-content: space-between; /* Titlu stânga, Detalii dreapta */
    align-items: flex-start;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(0,0,0,0.1); /* Linie foarte fină jos */
    padding-bottom: 40px;
    flex-wrap: wrap;
}

/* Titlul Proiectului */
.editorial-title h1 {
    font-family: 'Syne', sans-serif;
    font-size: 3.5rem; /* Mare */
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
    max-width: 500px;
}

/* 2. CREDITELE (Dreapta) */
.editorial-credits {
    display: flex;
    gap: 50px; /* Spațiu între coloanele mici */
    margin-top: 10px; /* Aliniere fină cu titlul */
}

.credit-col {
    display: flex;
    flex-direction: column;
}

.credit-col .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999; /* Gri discret */
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-family: 'Syne', sans-serif;
}

.credit-col .value {
    font-size: 1rem;
    color: #000;
    font-weight: 600;
}

/* 3. POVESTEA (Textul de jos) */
.editorial-story {
    max-width: 900px;
    margin-left: auto; /* Împinge textul spre dreapta (pt aspect modern) */
    margin-right: 0;
}

.editorial-story p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #222;
    margin-bottom: 30px;
}

/* RESPONSIVE (Mobil) */
@media (max-width: 900px) {
    .editorial-header {
        flex-direction: column;
        gap: 40px;
    }
    
    .editorial-title h1 {
        font-size: 2.5rem;
    }

    .editorial-credits {
        flex-wrap: wrap; /* Pe mobil detaliile trec unul sub altul dacă nu au loc */
        gap: 30px;
        width: 100%;
    }
    
    .editorial-story {
        margin-left: 0; /* Textul revine pe centru pe mobil */
    }
}

/* 2. SLIDER PLANURI (Technical Slider) */
.plans-section {
    padding: 100px 50px;
    background: #f4f4f4; /* Un gri foarte deschis pentru contrast tehnic */
    border-bottom: 1px solid #000;
    position: relative;
}

.plans-container {
    overflow: hidden; /* Ascunde ce e în afara ecranului */
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.plans-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Tranziție fină */
}

.plan-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
    text-align: center;
}

.plan-slide img {
    max-height: 600px; /* Înălțime maximă ca să nu fie uriașe */
    max-width: 100%;
    object-fit: contain; /* Păstrează proporțiile schiței */
    filter: grayscale(100%) contrast(1.2); /* Aspect de schiță tehnică */
}

.plan-caption {
    margin-top: 20px;
    font-family: 'Courier New', monospace; /* Font tehnic */
    font-size: 0.9rem;
    color: #666;
}

/* Butoane Slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.slider-btn:hover { transform: translateY(-50%) scale(1.1); }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }


/* Responsive */
@media (max-width: 900px) {
    .meta-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 600px) {
    .meta-grid { grid-template-columns: 1fr; }
    .plans-section { padding: 50px 20px; }
}

/* --- FORMATARE SPECIALĂ PROIECT (Ritm & Muchii) --- */

/* LINIA (Muchia) */
.muchie-separator {
    width: 100%;
    height: 0; /* Nu are înălțime */
    border-top: 1px solid #000; /* Linia propriu-zisă */
    margin: 40px 0; /* Spațiu generos sus și jos */
    opacity: 0.3; /* O facem puțin mai subtilă, nu negru complet */
}

/* GRILA DE 2 POZE (Jumătate - Jumătate) */
.gallery-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0; /* Fără margine jos, o face separatorul */
}
.gallery-half img {
    width: 100%;
    height: 600px; /* Înălțime fixă ca să fie aliniate perfect */
    object-fit: cover;
    filter: grayscale(20%);
    transition: 0.5s;
}
.gallery-half img:hover { filter: grayscale(0%); }

/* POZA MARE (Full Width Dramatic) */
.gallery-full img {
    width: 100%;
    height: 80vh; /* Foarte înaltă */
    object-fit: cover;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-half { grid-template-columns: 1fr; }
    .gallery-half img { height: 400px; }
    .gallery-full img { height: 50vh; }
}

/* --- SCROLL ANIMATIONS (Fade In Up) --- */

/* 1. Starea Inițială (Invizibil și mai jos) */
.reveal-element {
    opacity: 0;
    transform: translateY(50px); /* Elementul stă cu 50px mai jos */
    transition: all 1s cubic-bezier(0.2, 1, 0.3, 1); /* Animație lungă și elegantă */
    will-change: transform, opacity; /* Optimizare performanță */
}

/* 2. Starea Activă (Când apare pe ecran) */
.reveal-element.is-visible {
    opacity: 1;
    transform: translateY(0); /* Revine la poziția normală */
}

/* Opțional: Putem întârzia puțin elementele pare pentru un efect de "dans" */
.reveal-element:nth-child(even) {
    transition-delay: 0.1s;
}


/* --- FIX FINAL & COMPLET: HERO SECTION --- */

.hero-section {
    /* 1. LAYOUT (Dimensiunile pe care le-ai pierdut) */
    width: 100%;
    height: 100vh; /* Ocupă tot ecranul pe înălțime */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrează textul pe verticală */
    align-items: center;     /* Centrează textul pe orizontală (opțional) */
    padding: 0 5vw;          /* Puțin spațiu stânga-dreapta */

    /* 2. SETĂRI PENTRU EFECT (Ce am adăugat noi) */
    background-color: #ffffff !important; 
    position: relative;
    z-index: 1; 
    overflow: hidden; 
}

/* Restul codului pentru titlu și cursor rămâne la fel... */
.hero-section .hero-title, 
.hero-section .hero-title div {
    color: #000000 !important;
    position: relative;
    z-index: 2;
    text-align: center; /* Asigură-te că textul stă pe centru */
}

/* Cursorul Inversat */
.cursor-outline.hero-active {
    width: 300px !important;    
    height: 300px !important;
    background-color: #fff !important;
    border: none !important;
    mix-blend-mode: difference; 
    opacity: 1;
    z-index: 9999 !important; 
    transition: transform 0.1s, width 0.3s ease, height 0.3s ease;
    pointer-events: none; 
}

.cursor-dot.hero-active {
    opacity: 0 !important;
}

/* --- FIX FINAL PENTRU MOBIL (Logo, Filtre, Text) --- */

/* 1. Oprim scroll-ul orizontal (să nu mai joace pagina stânga-dreapta) */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* 2. Setări Specifice pentru Telefon (Ecran sub 768px) */
@media (max-width: 768px) {

    /* HEADER: Logo stânga, Meniu dreapta */
    header {
        padding: 20px 15px !important; /* Mai puțin spațiu la margini */
        justify-content: space-between !important;
        width: 100%;
    }

    /* Micșorăm puțin logo-ul să nu se bată cu meniul */
    .logo {
        font-size: 1.2rem !important; 
        margin-right: auto; /* Îl forțează în stânga maxim */
    }

    /* HERO: Textul "Form Follows..." */
    .hero-section .hero-title, 
    .hero-section .hero-title div {
        font-family: 'Syne', sans-serif !important;
        font-size: 11vw !important; /* Mărime dinamică sigură */
        line-height: 1.1 !important;
        width: 100%;
        text-align: center;
        word-wrap: break-word; /* Să nu iasă cuvintele din ecran */
        margin: 0 auto;
    }

    /* FILTRE: Le facem mici și să încapă toate */
    .filters-wrapper {
        width: 100%;
        overflow-x: auto; /* Dacă tot nu încap, poți da scroll stânga-dreapta DOAR la butoane */
        padding-bottom: 10px; /* Loc pentru scroll */
    }

    .filters {
        display: flex;
        justify-content: center; /* Le așezăm pe centru */
        flex-wrap: wrap; /* Le lăsăm să cadă pe rândul 2 dacă nu au loc */
        gap: 8px; /* Spațiu mic între ele */
    }

    .filter-btn {
        font-size: 0.75rem !important; /* Scris mic și finuț */
        padding: 6px 12px !important; /* Butoane compacte */
        margin: 0 !important;
        border: 1px solid #ddd; /* Chenar fin să se vadă delimitarea */
    }
    
    /* Asigurăm că efectul de cerc funcționează și pe mobil */
    .cursor-outline {
        display: block !important;
    }
}



/* --- FIX FINAL: 3 RÂNDURI DISTINCTE (Mobil) --- */

@media (max-width: 768px) {
    
    /* Containerul H1 */
    .hero-section .hero-title {
        display: flex;
        flex-direction: column; /* Le așază unul sub altul */
        justify-content: center;
        align-items: center;
        width: 100%;
        height: auto !important;
        padding: 60px 0 !important; /* Spațiu sus/jos */
    }

    /* Fiecare cuvânt (DIV) în parte */
    .hero-section .hero-title div {
        font-family: 'Helvetica', 'Arial', sans-serif !important;
        font-weight: 900 !important;
        
        /* Mărime mare, dar calculată să intre pe ecran */
        font-size: 17vw !important; 
        
        /* Efectul TALL (Înalt) */
        transform: scale(0.8, 1.4) !important; 
        
        /* SPAȚIEREA (Să nu se mai incalce) */
        line-height: 1 !important; 
        margin: 10px 0 !important; /* Spațiu fizic între cuvinte */
        
        color: #000 !important;
        text-transform: uppercase;
        text-align: center;
        width: 100%;
    }
}