/* --- CONFIGURARE CLEAN LIGHT --- */
:root {
    /* Culoarea exacta din logo-ul Mecasoft (Cyan) */
    --blue-primary: #00AEEF; 
    
    /* Varianta mai inchisa pentru hover (calculata) */
    --blue-dark: #008CC1;
    
    /* Varianta foarte deschisa pentru fundaluri */
    --blue-light: #e6f7ff; 
    
    --text-main: #111827;
    --text-sec: #4b5563;
    --bg-main: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    
    --font-stack: 'Manrope', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-stack);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- GRID BACKGROUND --- */
.bg-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4; z-index: -1; pointer-events: none;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 30px; }

/* --- NAVBAR COMPLEX --- */
.navbar {
    position: fixed; top: 0; width: 100%; height: 80px; z-index: 1000;
    background: rgba(255, 255, 255, 0.98); /* Aproape opac ca sa se vada logo-ul bine */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}
.navbar-content { display: flex; justify-content: space-between; align-items: center; height: 100%; }

/* LOGO IMAGE STYLING */
.logo-wrapper { display: flex; align-items: center; }
.logo-img {
    height: 40px; /* Inaltime optima pentru navbar */
    width: auto;
    display: block;
}

/* Main Menu */
.nav-menu { display: flex; gap: 30px; list-style: none; align-items: center; height: 100%; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }

.nav-link { 
    font-weight: 600; font-size: 0.95rem; color: var(--text-sec); 
    display: flex; align-items: center; gap: 5px; cursor: pointer;
    padding: 10px 0;
}
.nav-link:hover { color: var(--blue-primary); }
.arrow-icon { font-size: 0.7rem; transition: 0.3s; }
.nav-item:hover .arrow-icon { transform: rotate(180deg); }

.btn-solid {
    background: var(--text-main); color: white !important;
    padding: 10px 25px; font-weight: 700; font-size: 0.9rem;
    border-radius: 4px;
}
.btn-solid:hover { background: var(--blue-primary); }

/* --- MEGA MENU STYLES --- */
.mega-menu {
    position: absolute;
    top: 80px;
    left: -200px;
    width: 800px;
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-top: 3px solid var(--blue-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    padding: 30px;
    border-radius: 0 0 8px 8px;
}

.small-drop { width: 250px; left: 0; } 

.smaller-drop { width: 100px; left: 0; } 

.dropdown:hover .mega-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}

.mega-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}

.mega-col h4 {
    font-size: 0.85rem; text-transform: uppercase; color: var(--blue-primary);
    margin-bottom: 15px; font-weight: 800; letter-spacing: 1px;
}

.mega-col a {
    display: block; margin-bottom: 10px; font-size: 0.95rem; color: var(--text-sec);
    transition: 0.2s;
}
.mega-col a:hover { color: var(--blue-primary); padding-left: 5px; }

.highlight-col {
    background: var(--blue-light); padding: 20px; border-radius: 8px;
}
.highlight-col p { font-size: 0.9rem; margin-bottom: 15px; }

/* --- HERO SECTION --- */
.hero {
    height: 100vh; position: relative; display: flex; align-items: center;
    border-bottom: 1px solid var(--border-color);
}
.video-container {
    position: absolute; top: 0; right: 0; width: 60%; height: 100%; z-index: -1;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}
.video-container video { width: 100%; height: 100%; object-fit: cover; }
.overlay-light { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.1); }
.hero-wrapper { width: 100%; height: 100%; display: flex; align-items: center; }

/* Panou Glass */
.hero-panel {
    background: rgba(255, 255, 255, 0.85); /* Sticla mai alba pentru a contrasta cu logo albastru daca e cazul */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    
    padding: 60px; max-width: 650px;
    position: relative; border-radius: 12px; overflow: hidden;
}

.hero-panel h1 { font-size: 3.5rem; line-height: 1.1; font-weight: 800; margin-bottom: 20px; letter-spacing: -1px; }
.text-blue { color: var(--blue-primary); }
.hero-panel p { font-size: 1.1rem; color: var(--text-sec); margin-bottom: 40px; }
.hero-actions { display: flex; align-items: center; gap: 30px; }
.btn-primary { background: var(--blue-primary); color: white; padding: 15px 35px; font-weight: 700; border-radius: 4px; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.link-tech { font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 10px; }

/* --- SECTIONS --- */
.section { padding: 120px 0; }
.label { display: block; font-size: 0.85rem; font-weight: 800; color: var(--blue-primary); margin-bottom: 10px; letter-spacing: 1px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 60px; }

.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border-color); }
.flow-step { padding: 40px 20px 20px 0; position: relative; border-right: 1px solid var(--border-color); }
.flow-step:last-child { border-right: none; }
.flow-step::before {
    content: ''; position: absolute; top: -6px; left: 0; width: 11px; height: 11px;
    background: white; border: 2px solid var(--blue-primary); border-radius: 50%;
}
.step-num { font-size: 3rem; font-weight: 800; color: #e5e7eb; margin-bottom: 15px; }
.step-content h3 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; }

.bg-white { background: white; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.bento-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 250px 250px; gap: 20px; }
.bento-card {
    background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 12px;
    padding: 40px; transition: 0.3s; display: flex; flex-direction: column; justify-content: flex-end;
}
.bento-card:hover { border-color: var(--blue-primary); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.large { grid-row: 1 / 3; background-size: cover; position: relative; color: white; }
.overlay-gradient { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
.overlay-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%;}
.card-details { position: relative; z-index: 2; }
.icon-large { font-size: 3rem; margin-bottom: 20px; color: var(--blue-light); }
.card-header { font-size: 2rem; color: var(--blue-primary); margin-bottom: auto; }

/* --- FOOTER --- */
footer { background: white; padding: 80px 0 0; border-top: 1px solid var(--border-color); }
.footer-top { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; /* Centrează vertical conținutul (Logo vs Coloane) */
    
    padding-bottom: 60px; 
}
.footer-nav { 
    display: flex; 
    gap: 50px; /* Redus putin de la 80px ca sa incapa 4 coloane bine */
    flex-wrap: wrap; /* Asigura ca nu se strica pe ecrane medii */
}
.col h4 { color: var(--blue-primary); font-size: 0.9rem; text-transform: uppercase; margin-bottom: 20px; font-weight: 800; }
.col a { display: block; margin-bottom: 12px; color: var(--text-sec); }
/*.col a:hover { color: var(--blue-primary); padding-left: 5px; }*/
.footer-bottom { background: #ffffff; color: #9ca3af; padding: 20px 30px; text-align: center; }

/* --- RESPONSIVE MOBILE --- */
.menu-toggle { display: none; cursor: pointer; flex-direction: column; }
.bar { width: 25px; height: 3px; background: var(--text-main); margin: 4px 0; transition: 0.3s; }

@media (max-width: 900px) {
    .video-container { width: 100%; clip-path: none; height: 50%; top: 0; }
    .hero { flex-direction: column; justify-content: flex-end; }
    .hero-panel { width: 100%; margin-top: 40vh; }
    .workflow-grid { grid-template-columns: 1fr; }
    .flow-step { border-right: none; border-left: 1px solid var(--border-color); padding-left: 30px; margin-left: 20px;}
    .flow-step::before { left: -6px; top: 40px; }
    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .large { height: 400px; }
    .footer-top, .footer-nav { flex-direction: column; gap: 30px; }

    /* MOBILE NAV ADJUSTMENTS */
    .menu-toggle { display: flex; z-index: 1001; }
    .nav-menu {
        position: fixed; top: 80px; left: -100%; width: 100%; height: calc(100vh - 80px);
        background: white; flex-direction: column; align-items: flex-start;
        padding: 20px; overflow-y: auto; transition: 0.4s; z-index: 999;
    }
    .nav-menu.active { left: 0; }
    
    .nav-item { width: 100%; flex-direction: column; align-items: flex-start; height: auto; border-bottom: 1px solid #eee; }
    .nav-item:last-child {
        border-bottom: none !important;
        margin-top: 15px; /* Optional: ii da putin spatiu ca sa arate mai bine izolat */
    }
    .nav-link { width: 100%; padding: 15px 0; justify-content: space-between; font-size: 1.1rem; }
    
    /* Mega Menu on Mobile (Accordion Style) */
    .mega-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        width: 100%; box-shadow: none; border: none; padding: 0 0 0 20px;
        display: none; 
    }
    .mega-menu.open { display: block; }
    .mega-grid { grid-template-columns: 1fr; gap: 20px; }
    .mega-col h4 { margin-top: 20px; }
    
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
}

/* --- STILURI NOI PENTRU SUB-PAGINI --- */

/* Page Header (Mai mic decat Hero-ul principal) */
.page-header {
    height: 50vh; /* Doar jumatate de ecran */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
    margin-top: 80px; /* Compensare navbar fix */
}

.page-header::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.85); /* Overlay alb laptos */
    backdrop-filter: blur(5px);
}

.page-title {
    position: relative; z-index: 2; text-align: center;
}
.page-title h1 {
    font-size: 3.5rem; color: var(--text-main); font-weight: 800; margin-bottom: 10px;
}
.page-title p {
    font-size: 1.2rem; color: var(--blue-primary); font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
}

/* Stiluri Text General (pentru paginile de text) */
.content-block { max-width: 800px; margin: 0 auto; line-height: 1.8; color: var(--text-sec); }
.content-block h2 { color: var(--text-main); margin-top: 40px; margin-bottom: 20px; font-size: 2rem; }
.content-block ul { margin-left: 20px; margin-bottom: 20px; }
.content-block li { margin-bottom: 10px; }

/* Contact Form Styles */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-main); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 15px; border: 1px solid var(--border-color);
    border-radius: 8px; font-family: var(--font-stack); font-size: 1rem;
    background: white; transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--blue-primary); outline: none; box-shadow: 0 0 0 3px var(--blue-light);
}
.contact-info-box {
    background: var(--bg-main); padding: 40px; border-radius: 12px; border: 1px solid var(--border-color);
}
.contact-item { margin-bottom: 30px; }
.contact-item h4 { color: var(--blue-primary); margin-bottom: 5px; font-size: 1.1rem; }
.contact-item p { font-size: 1.1rem; color: var(--text-main); }

@media (max-width: 900px) {
    .page-header h1 { font-size: 2.5rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

/* --- STILURI SOCIAL MEDIA (SIMPLU & CLEAN) --- */

/* --- FOOTER ADJUSTMENTS --- */
.footer-nav { 
    display: flex; 
    gap: 50px; /* Redus putin de la 80px ca sa incapa 4 coloane bine */
    flex-wrap: wrap; /* Asigura ca nu se strica pe ecrane medii */
}

/* --- SOCIAL MEDIA COLUMN STYLE --- */
.socials-large {
    display: flex;
    gap: 15px; /* Spatiu putin mai mic intre ele sa incapa pe coloana */
    align-items: center;
   /* margin-top: 0; /* Eliminat margin-top pentru aliniere cu textul */
}

.socials-large a {
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Dimensiuni (Putem pastra 55px sau reduce putin la 50px daca pare prea lat) */
    width: 50px; 
    height: 50px;
    
    background-color: #f3f4f6;
    color: var(--text-main);
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    
    /* Tranzitie simpla (culoare) */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.socials-large a:hover {
    background-color: var(--blue-primary);
    color: white;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-top { flex-direction: column; gap: 40px; }
    .footer-nav { 
        flex-direction: column; 
        gap: 30px; 
        width: 100%;
    }
    
    /* Pe mobil aliniem iconitele la stanga, ca restul textului */
    .socials-large {
        justify-content: flex-start; 
    }
}

/* --- CSS NOU PENTRU CENTRARE ICONITE --- */

/* Aceasta clasa centreaza vertical coloana a 4-a relativ la listele de text */
.col-center {
    align-self: center; 
}

/* Pe mobil, resetam centrarea pentru a se alinia frumos la stanga */
@media (max-width: 900px) {
    .col-center {
        align-self: flex-start;
        margin-top: 10px; /* Putin spatiu extra */
    }
}

/* --- STILURI PENTRU MEDIA IN BENTO CARDS --- */

/* Asigurăm poziționarea relativă pentru container */
.bento-card {
    position: relative;
    overflow: hidden; /* Taie orice depășește colțurile rotunjite */
    isolation: isolate; /* Creează un nou context de stivuire */
    border: none; /* Scoatem bordura dacă avem video, arată mai clean */
}

/* Stilul pentru Video sau Imagine de fundal */
.card-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* MAGIA: Umple tot spațiul fără deformare */
    z-index: -2; /* Stă în spatele a tot */
    transition: transform 0.5s ease;
}

/* Efect de zoom ușor pe hover (opțional) */
.bento-card:hover .card-bg-media {
    transform: scale(1.05);
}

/* Overlay întunecat pentru a face textul lizibil */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    z-index: -1; /* Peste video, sub text */
}

/* Asigurăm că tot conținutul text/iconite stă deasupra */
.card-details {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Dacă un card are clasa 'has-media', forțăm textul să fie alb */
.bento-card.has-media h3,
.bento-card.has-media p,
.bento-card.has-media .card-header {
    color: white;
}

/* Ajustare iconițe pentru cardurile mici cu media */
.bento-card.has-media .card-header {
    color: var(--blue-primary); /* Păstrăm albastrul sau îl facem alb, după preferință */
    margin-bottom: 15px;
}

/* --- INDUSTRIES GRID LAYOUT --- */

.industries-grid {
    display: grid;
    /* 3 coloane egale pe desktop */
    grid-template-columns: repeat(3, 1fr); 
    /* Înălțimea rândurilor este fixă pentru aspect uniform */
    grid-auto-rows: 300px; 
    gap: 20px;
}

/* Modificatori pentru dimensiuni */

/* Card care ocupă 2 coloane */
.span-2 {
    grid-column: span 2;
}

/* Card care ocupă toată lățimea (3 coloane) */
.span-3 {
    grid-column: span 3;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .industries-grid {
        /* Pe tabletă/mobil trecem la o singură coloană */
        grid-template-columns: 1fr; 
        grid-auto-rows: 250px; /* Puțin mai mici pe înălțime */
    }

    /* Resetăm span-urile pe mobil ca să nu strice layout-ul */
    .span-2, .span-3 {
        grid-column: span 1;
    }
}

/* --- INDUSTRY LIST LAYOUT (ZIG-ZAG) --- */

.industry-list {
    display: flex;
    flex-direction: column;
    gap: 80px; /* Spațiu generos între categorii */
    padding: 40px 0;
}

.industry-row {
    display: flex;
    align-items: center; /* Centrează vertical textul față de imagine */
    gap: 60px; /* Spațiu între imagine și text */
}

/* Alternăm direcția pentru fiecare al doilea rând (Imagine dreapta, Text stânga) */
.industry-row:nth-child(even) {
    flex-direction: row-reverse;
}

/* --- VISUAL SIDE (Bento Style) --- */
.industry-visual {
    flex: 1; /* Ocupă jumătate din spațiu */
    height: 350px; /* Înălțime fixă pentru aspect uniform */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); /* Umbră fină */
    position: relative;
}

.industry-visual img, 
.industry-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Umple cadrul perfect */
    display: block;
    transition: transform 0.5s ease;
}

.industry-visual:hover img,
.industry-visual:hover video {
    transform: scale(1.05); /* Zoom discret la hover */
}

/* --- CONTENT SIDE --- */
.industry-content {
    flex: 1; /* Ocupă cealaltă jumătate */
    padding: 20px;
}

.industry-content .icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--blue-light);
    color: var(--blue-primary);
    border-radius: 8px;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.industry-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
    line-height: 1.1;
}

.industry-content p {
    font-size: 1.1rem;
    color: var(--text-sec);
    margin-bottom: 25px;
    line-height: 1.7;
}

/* Lista cu puncte (Feature list) */
.feature-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.feature-list li {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blue-dark);
    background: white;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px; /* Aspect de "chip" / etichetă */
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .industry-row, 
    .industry-row:nth-child(even) {
        flex-direction: column; /* Pe mobil, imaginea e mereu sus */
        gap: 30px;
    }

    .industry-visual {
        width: 100%;
        height: 250px; /* Mai mic pe mobil */
    }

    .industry-content h3 {
        font-size: 1.8rem;
    }
}
/* --- INNOVATION / CASE STUDIES SECTION --- */

.innovation-section {
    background-color: var(--text-main); /* Folosim culoarea închisă (dark grey) */
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Background subtil pattern (opțional) */
.innovation-section::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.03) 0%, transparent 20%);
    pointer-events: none;
}

.innovation-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.label-light {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--blue-primary);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.innovation-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.innovation-header p {
    font-size: 1.2rem;
    color: #9ca3af; /* gri deschis */
}

/* Gridul de proiecte */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.project-card {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1f2937;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    transition: 0.3s;
}

.project-card:hover .project-img {
    opacity: 1;
}

.project-info {
    padding: 25px;
    border-top: 2px solid var(--blue-primary);
}

.project-info h4 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 5px;
    font-weight: 700;
}

.project-info span {
    font-size: 0.9rem;
    color: #9ca3af;
    text-transform: uppercase;
    font-weight: 600;
}

.innovation-footer {
    text-align: center;
}

/* RESPONSIVE PENTRU SECTIUNEA NOUA */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .innovation-header h2 {
        font-size: 2.2rem;
    }
}

/* --- PRODUCTS CATALOG STYLE --- */

.products-catalog {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding-bottom: 40px;
}

/* Stilul Cardului de Produs */
.product-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Imaginea e un pic mai mare */
    gap: 50px;
    align-items: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    padding: 20px; /* Un pic de padding interior pentru aspect "boxed" */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: var(--blue-primary);
    transform: translateY(-5px);
}

/* Varianta inversată (Imagine dreapta) */
.product-card.reverse {
    grid-template-columns: 1fr 1.2fr;
}
.product-card.reverse .product-image {
    order: 2; /* Mută imaginea la dreapta */
}

/* Imaginea Produsului */
.product-image {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

/* Badge (ex: Flagship) */
.product-badge {
    position: absolute;
    top: 20px; left: 20px;
    background: var(--blue-primary);
    color: white;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Informații Produs */
.product-info {
    padding: 20px;
}

.info-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.product-info h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 5px;
}

.model-code {
    font-family: monospace; /* Font tehnic */
    color: var(--blue-primary);
    font-weight: 600;
    font-size: 1rem;
}

.product-info p {
    color: var(--text-sec);
    margin-bottom: 30px;
}

/* Grila de Specificații (Specs Grid) */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 35px;
    background: var(--bg-main);
    padding: 15px;
    border-radius: 8px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.spec-item i { color: var(--blue-dark); font-size: 1.1rem; margin-bottom: 5px; }
.spec-item span { font-size: 0.75rem; text-transform: uppercase; color: #9ca3af; font-weight: 700; }
.spec-item strong { font-size: 0.95rem; color: var(--text-main); font-weight: 700; }

/* Acțiuni (Butoane) */
.product-actions {
    display: flex;
    gap: 15px;
}

.btn-outline {
    border: 2px solid var(--text-main);
    color: var(--text-main);
    padding: 13px 25px;
    font-weight: 700;
    border-radius: 4px;
}
.btn-outline:hover {
    background: var(--text-main);
    color: white;
}

/* --- SPARE PARTS BANNER STYLE --- */
.spare-parts-banner {
    display: flex;
    background: var(--blue-primary); /* Fundal albastru pentru evidențiere */
    color: white;
    border-radius: 12px;
    overflow: hidden;
    min-height: 350px;
}

.parts-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.parts-content h3 { font-size: 2rem; margin-bottom: 15px; display: flex; align-items: center; gap: 15px; }
.parts-content p { margin-bottom: 25px; opacity: 0.9; }

.parts-list {
    list-style: none;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.parts-list li i { margin-right: 10px; opacity: 0.7; }

.white-btn {
    background: white !important;
    color: var(--blue-primary) !important;
    align-self: flex-start;
}
.white-btn:hover {
    background: #f0f0f0 !important;
}

.parts-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%); /* Taietura oblică stilistică */
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .product-card, .product-card.reverse {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
        border: none; 
        background: transparent;
        box-shadow: none;
    }
    .product-card.reverse .product-image { order: 0; }
    
    .product-image { height: 250px; }
    
    .product-info {
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 25px;
    }

    .specs-grid { grid-template-columns: 1fr 1fr; }
    
    .spare-parts-banner { flex-direction: column; }
    .parts-image { height: 200px; clip-path: none; width: 100%; order: -1; }
}

/* --- COMPANY PAGE STYLES --- */

/* 1. About Grid (Story Section) */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 20px;
    border-left: 4px solid var(--blue-primary);
    padding-left: 20px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-sec);
}

.image-wrapper {
    position: relative;
}

/* Element decorativ sub poză (chenar albastru) */
.image-wrapper::before {
    content: '';
    position: absolute;
    top: 20px; right: -20px;
    width: 100%; height: 100%;
    border: 2px solid var(--blue-primary);
    border-radius: 12px;
    z-index: -1;
}

.image-wrapper img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* 2. Stats Section (Dark Bar) */
.stats-section {
    background-color: var(--text-main); /* Dark Grey */
    padding: 60px 0;
    color: white;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--blue-primary); /* Cifrele sunt albastre */
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #d1d5db;
}

/* 3. Values Grid */
.centered { text-align: center; max-width: 600px; margin: 0 auto 50px auto; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background: white;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: var(--blue-primary);
}

.value-icon {
    width: 70px; height: 70px;
    background: var(--blue-light);
    color: var(--blue-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 25px auto;
}

.value-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .image-wrapper::before { display: none; } /* Scoatem decorul pe mobil */
    
    .stats-grid { 
        flex-direction: column; 
        gap: 40px; 
    }
    
    .values-grid { grid-template-columns: 1fr; }
}
/* --- VISION BANNER (Replacement for Stats) --- */

.vision-section {
    position: relative;
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efect Parallax: Imaginea stă pe loc la scroll */
    color: white;
    text-align: center;
    overflow: hidden;
}

.vision-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradient albastru închis spre negru pentru lizibilitate */
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
    z-index: 1;
}

.vision-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.quote-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
}

.vision-content h3 {
    font-size: 2.2rem;
    font-weight: 300; /* Font mai subțire pentru eleganță */
    line-height: 1.4;
    margin-bottom: 30px;
    font-style: italic;
    font-family: 'Manrope', serif; /* Sau un font serif dacă vrei contrast */
}

.vision-divider {
    width: 60px;
    height: 3px;
    background: white;
    margin: 0 auto 20px auto;
    opacity: 0.7;
}

.vision-content p {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Responsive adjustment */
@media (max-width: 900px) {
    /* --- HERO & VIDEO FIXES --- */
    .video-container { width: 100%; clip-path: none; height: 60vh; top: 0; }
    .hero {
        flex-direction: column;
        justify-content: flex-end;
        
        /* FIXUL ESTE AICI: */
        height: auto;       /* Lasă secțiunea să crească cât e nevoie */
        min-height: 100vh;  /* Păstrează-o cât ecranul doar dacă e goală */
        padding-bottom: 60px; /* Adaugă spațiu jos ca să nu se lipească de Workflow */
    }

    .hero-panel {
        width: 100%;
        /* Ajustăm marginea ca să nu fie exagerată */
        margin-top: 35vh; 
        margin-bottom: 20px; /* Spațiu de siguranță sub panou */
    }
    
    /* --- GENERAL GRID FIXES --- */
    .workflow-grid, .bento-grid, .values-grid, .about-grid, .contact-wrapper, .footer-top, .footer-nav {
        display: flex; flex-direction: column; gap: 40px;
    }
    
    .bento-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; }
    .large { height: 350px; }

    /* --- MOBILE MENU (PERFECTED) --- */
    .menu-toggle { display: flex; z-index: 1001; }
    
    .nav-menu {
        position: fixed; 
        top: 80px; 
        left: -100%; 
        width: 100%; 
        height: calc(100vh - 80px); /* Fill remaining screen */
        background: white; 
        flex-direction: column; 
        align-items: flex-start;
        padding: 20px 20px 100px 20px; /* Extra bottom padding for scrolling */
        overflow-y: auto; /* Allows scrolling inside menu */
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active { left: 0; }
    
    .nav-item { 
        width: 100%; 
        height: auto; 
        border-bottom: 1px solid #f3f4f6; 
        display: block; /* Fixes alignment */
    }

    .nav-link { 
        width: 100%; 
        padding: 20px 0; 
        justify-content: space-between; 
        font-size: 1.2rem; 
        font-weight: 700;
        color: var(--text-main);
    }
    
    /* --- MEGA MENU MOBILE (Accordion) --- */
    .mega-menu {
        position: static; 
        opacity: 1; 
        visibility: visible; 
        transform: none;
        width: 100%; 
        box-shadow: none; 
        border: none; 
        border-left: 2px solid var(--border-color);
        padding: 0 0 0 20px;
        margin-bottom: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        display: block; /* Override default hover behavior */
    }
    
    .mega-menu.open { 
        max-height: 2000px; /* Arbitrary large number to allow opening */
        margin-top: 10px;
    }
    
    .mega-grid { grid-template-columns: 1fr; gap: 20px; }
    .mega-col h4 { margin-top: 20px; font-size: 1rem; }
    .mega-col a { font-size: 1.1rem; padding: 5px 0; }

    /* --- INDUSTRY LIST ZIG-ZAG FIX --- */
    /* Forces image on top, text on bottom for ALL rows on mobile */
    .industry-row, 
    .industry-row:nth-child(even) {
        flex-direction: column; 
        gap: 30px;
    }
    
    .industry-visual {
        width: 100%;
        height: 250px;
    }
    .industry-content { padding: 0; }
}

/* Necesare pentru script.js */

/* 1. Pentru blocarea scroll-ului */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Crucial: Prevents navbar from covering titles */
}

body.no-scroll {
    overflow: hidden; /* Used by JS */
}

/* 2. Pentru animația Hero (înlocuiește stilurile vechi JS) */
.hero-panel {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out; /* Durata și tipul animației */
}

.hero-panel.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.rotate-180 {
    transform: rotate(180deg);
}

/* --- LIGHT & SMOOTH UPGRADE --- */

/* 1. Page Load Fade-In (Elimină flash-ul alb) */
body {
    opacity: 0; /* Invizibil la început */
    transition: opacity 0.6s ease-out; /* Apare lin */
    -webkit-font-smoothing: antialiased; /* Text mai clar pe MacOS/iOS */
    -moz-osx-font-smoothing: grayscale;
}

body.loaded {
    opacity: 1; /* Devine vizibil când JS confirmă încărcarea */
}

/* 2. Scroll Reveal (Elementele plutesc în sus) */
/* Această clasă este adăugată automat de JS pe elementele importante */
.reveal {
    opacity: 0;
    transform: translateY(40px); /* Coborât cu 40px */
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); /* Animație foarte "smooth" */
    will-change: opacity, transform; /* Optimizare performanță browser */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0); /* Revine la poziția normală */
}

/* Delay pentru elemente în grilă (efect de cascadă) */
.reveal.delay-100 { transition-delay: 0.1s; }
.reveal.delay-200 { transition-delay: 0.2s; }

/* 3. Tactile Feedback (Butoanele se "apasă") */
a.btn-primary, 
a.btn-solid, 
a.btn-outline,
.project-card,
.nav-link,
.bento-card {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                background-color 0.3s ease, 
                color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Când dai click (Active State) */
a.btn-primary:active, 
a.btn-solid:active, 
a.btn-outline:active,
.project-card:active {
    transform: scale(0.96) !important; /* Se micșorează ușor */
}

/* Resetare pentru Hero Panel existent în CSS-ul vechi */
.hero-panel {
    /* Lăsăm JS-ul nou să se ocupe de animație */
    opacity: 0; 
    transform: translateY(40px);
}
/* --- PARTNERS GRID --- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 coloane pe desktop (5 x 4 = 20) */
    max-width: 1000px;
    margin: 0 auto;
}

.partner-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 140px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

/* Eliminăm bordura din dreapta pentru fiecare al 5-lea element (capăt de rând) */
.partner-cell:nth-child(5n) {
    border-right: none;
}

/* Eliminăm bordura de jos pentru ultimele 5 elemente (ultimul rând) */
.partner-cell:nth-last-child(-n+5) {
    border-bottom: none;
}

/* Hover subtil pe celulă */
.partner-cell:hover {
    background-color: var(--blue-light);
}

/* Stilizare imagini/logouri parteneri */
.partner-cell img {
    max-width: 100%;
    max-height: 60px; /* Previne logourile supradimensionate */
    object-fit: contain;
    /* Efect modern: logourile sunt gri și semi-transparente, devin color la hover */
    filter: grayscale(100%) opacity(60%);
    transition: all 0.3s ease;
}

.partner-cell:hover img {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.05); /* Zoom discret */
}

/* --- RESPONSIVE PARTNERS GRID --- */
@media (max-width: 900px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr); /* Trecem la 2 coloane pe mobil (2 x 10) */
    }

    /* Resetăm bordurile inițiale pentru a nu apărea linii ciudate */
    .partner-cell {
        border-right: 1px solid var(--border-color) !important;
        border-bottom: 1px solid var(--border-color) !important;
        padding: 30px 15px;
        min-height: 110px;
        
    }

    /* Regula nouă pentru 2 coloane: eliminăm bordura din dreapta la fiecare al 2-lea element */
    .partner-cell:nth-child(2n) {
        border-right: none !important;
    }

    /* Regula nouă: eliminăm bordura de jos doar pentru ultimele 2 elemente */
    .partner-cell:nth-last-child(-n+2) {
        border-bottom: none !important;
    }
}

/* --- LANGUAGE DROPDOWN MODIFIER --- */
.lang-drop {
    width: 120px; /* Lățime mult redusă față de meniurile mari */
    left: auto;   /* Suprascriem left: -200px din clasa de bază */
    right: 0;     /* Aliniem meniul la dreapta pentru a nu ieși din ecran */
    padding: 15px;
    min-width: unset;
}

.lang-drop .mega-col a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
}

.lang-drop .mega-col a:last-child {
    margin-bottom: 0;
}

.lang-drop .flag {
    font-size: 1.3rem; /* Steaguri puțin mai mari pentru vizibilitate */
    line-height: 1;
}

/* Ajustare pe mobil pentru meniul de limbi */
@media (max-width: 900px) {
    .lang-drop {
        width: 100%;
        padding: 0 0 0 20px;
    }
}

/* --- ACTIVE LANGUAGE HIGHLIGHT --- */
.lang-drop .mega-col a.active-lang {
    color: var(--blue-primary);
    background-color: var(--blue-light);
    border-radius: 6px;
    padding: 8px 12px;
    margin-left: -12px; /* Compensează padding-ul ca să rămână perfect aliniat cu restul textului */
    pointer-events: none; /* Opțional: face ca limba deja selectată să nu mai poată fi apăsată (fără hover) */
}

/* Efect de hover doar pentru limbile care NU sunt selectate */
.lang-drop .mega-col a:not(.active-lang):hover {
    color: var(--blue-primary);
    transform: translateX(5px); /* Un efect fin de mișcare spre dreapta */
}

/* --- MOBILE HERO FIX (Final Optimization) --- */
@media (max-width: 900px) {
    
    /* 1. Ajustare Video: Îl facem mai scurt să nu ocupe tot ecranul */
    .video-container {
        height: 50vh !important; /* Ocupă fix jumătate din ecran */
        clip-path: none;
        z-index: 0;
    }

    /* 2. Ajustare Container Hero */
    .hero {
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Împinge conținutul jos */
        min-height: 100vh; /* Asigură înălțimea completă */
        padding-bottom: 40px;
        padding-top: 45vh; /* Creează spațiu gol sus pentru video */
    }

    /* 3. FIX CRITIC: Panoul Alb */
    .hero-panel {
        width: 100%;
        margin-top: 0; /* Resetăm marja veche */
        
        /* Reducem drastic padding-ul interior pentru a face loc textului */
        padding: 30px 20px !important; 
        
        /* Asigurăm că fundalul e lizibil */
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 -10px 30px rgba(0,0,0,0.1); /* Umbră în sus pentru separare de video */
    }

    /* 4. FIX CRITIC: Mărime Font */
    .hero-panel h1 {
        /* Reducem fontul de la 3.5rem la ceva ce încape pe telefon */
        font-size: 2.4rem !important; 
        line-height: 1.1;
        margin-bottom: 15px;
        
        /* Previne tăierea literelor lungi */
        word-wrap: break-word; 
        hyphens: auto;
    }

    .hero-panel p {
        font-size: 1rem;
        margin-bottom: 25px;
        color: var(--text-sec);
    }

    /* 5. Butoanele pe mobil: Unul sub altul pentru a fi mai ușor de apăsat */
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }

    .btn-primary, .link-tech {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* --- EXTRA FIX PENTRU ECRANE FOARTE MICI (iPhone SE, Mini) --- */
@media (max-width: 380px) {
    .hero-panel h1 {
        font-size: 2rem !important; /* Și mai mic pentru ecrane înguste */
    }
    .hero-panel {
        padding: 25px 15px !important;
    }
}