@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --background: #0a0a0f; --foreground: #f5f5f7; --card: #141419;
    --muted-foreground: #9ca3af; --accent: #00d9ff; --border: rgba(255, 255, 255, 0.1);
    --success: #25D366; --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--background); color: var(--foreground); overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 5px; }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.mt-80 { margin-top: 80px; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted-foreground); }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 2rem; }
.section-subtitle { font-size: 12px; font-weight: bold; letter-spacing: 2px; color: var(--accent); text-transform: uppercase; display: block; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }

/* Navbar Glassmorphism */
.navbar { position: fixed; top: 0; width: 100%; z-index: 100; height: 80px; display: flex; align-items: center; transition: var(--transition); border-bottom: 1px solid transparent; }
.navbar.scrolled { background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: -1px; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--muted-foreground); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--foreground); }
.lang-switch button { background: none; border: none; font-weight: 700; font-size: 13px; cursor: pointer; transition: var(--transition); color: var(--muted-foreground); }
.lang-switch button.active-lang { color: var(--accent); }
.menu-toggle { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
.mobile-menu { display: none; background: var(--card); padding: 20px; text-align: center; flex-direction: column; gap: 15px; border-bottom: 1px solid var(--border); }
.mobile-menu.active { display: flex; }

/* Forms & Buttons */
.input-field { width: 100%; background: var(--input-background); border: 1px solid var(--border); color: var(--foreground); padding: 16px; border-radius: 12px; outline: none; transition: var(--transition); font-size: 16px; }
.input-field:focus { border-color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 32px; font-weight: 700; border-radius: 12px; cursor: pointer; transition: var(--transition); border: none; font-size: 16px; width: fit-content;}
.btn-primary { background-color: var(--accent); color: var(--background); }
.btn-primary:hover { box-shadow: 0 0 20px rgba(0, 217, 255, 0.4); transform: translateY(-2px); }
.btn-success { background-color: var(--success); color: white; width: 100%; }
.btn-success:hover { box-shadow: 0 0 20px rgba(37, 211, 102, 0.4); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--foreground); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Service Cards (Home & Catalog) */
.service-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: block; transform-style: preserve-3d; transition: var(--transition); }
.service-card img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.5s ease;}
.service-card-body { padding: 24px; transform: translateZ(20px); }
.service-card:hover { border-color: var(--accent); box-shadow: 0 10px 30px rgba(0, 217, 255, 0.1); }
.service-card:hover img { transform: scale(1.1); }
.img-container { position: relative; overflow: hidden; }
.img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--card), transparent); }

/* Car Selector Interactive Grid */
.car-selector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.car-btn { background: var(--card); border: 2px solid var(--border); border-radius: 16px; padding: 30px; cursor: pointer; transition: var(--transition); text-align: center; color: var(--foreground); }
.car-btn i { color: var(--muted-foreground); transition: var(--transition); }
.car-btn:hover { border-color: rgba(0, 217, 255, 0.5); }
.car-btn.active { border-color: var(--accent); background: rgba(0, 217, 255, 0.05); }
.car-btn.active i { color: var(--accent); transform: scale(1.1); }

/* Process Section Premium 3D */
.process-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; width: 100%; }
.process-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 30px; position: relative; overflow: hidden; transition: var(--transition); z-index: 1; }
.process-card:hover { border-color: var(--accent); box-shadow: 0 10px 30px rgba(0, 217, 255, 0.1); transform: translateY(-8px); }
.process-bg-number { position: absolute; top: -10px; right: 10px; font-size: 5rem; font-weight: 800; color: rgba(255, 255, 255, 0.03); line-height: 1; z-index: -1; transition: var(--transition); }
.process-card:hover .process-bg-number { color: rgba(0, 217, 255, 0.1); transform: scale(1.1); }
.process-icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 12px; background: rgba(0, 217, 255, 0.1); color: var(--accent); font-weight: 800; font-size: 1.2rem; margin-bottom: 1.5rem; border: 1px solid rgba(0, 217, 255, 0.2); }

/* FAQ Acordeon */
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 15px; margin-bottom: 15px; overflow: hidden; }
.faq-trigger { width: 100%; display: flex; justify-content: space-between; padding: 25px; background: none; border: none; color: white; font-weight: 600; font-size: 16px; cursor: pointer; text-align: left; }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding: 0 25px; }
.faq-trigger.active i { transform: rotate(45deg); color: var(--accent); }

/* Layout Box & Footer */
.content-box { max-width: 900px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 40px; }
.footer { background: #050508; border-top: 1px solid var(--border); padding: 80px 0 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer h4 { color: var(--foreground); font-size: 1.1rem; margin-bottom: 1.5rem; position: relative; display: inline-block; }
.footer h4::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 30px; height: 2px; background: var(--accent); }
.footer-links li { margin-bottom: 1rem; }
.footer-links a { color: var(--muted-foreground); font-size: 14px; display: inline-flex; align-items: center; gap: 10px; }
.footer-links a:hover { color: var(--accent); transform: translateX(5px); }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); color: var(--muted-foreground); font-size: 18px; }
.social-icons a:hover { color: var(--background); background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; font-size: 13px; color: var(--muted-foreground); }

/* =========================================
   NOI FUNCȚIONALITĂȚI PREMIUM VDX VISION
   ========================================= */

/* 1. Page Transition (Fade In/Out) */
body {
    animation: fadeInPage 0.4s ease-out forwards;
    opacity: 0;
}
body.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}
@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 2. Sticky Header cu Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    /* Ajustează culorile de background în funcție de variabilele tale */
    background: rgba(10, 10, 15, 0.7) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

/* 3. Tooltips pentru termeni tehnici */
.vdx-tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dashed var(--accent);
    color: var(--accent);
    font-weight: 500;
}
.vdx-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a24;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    border: 1px solid var(--accent);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 10;
}
.vdx-tooltip:hover::after {
    opacity: 1;
    bottom: 150%;
}

/* 4. Google Reviews Widget Style */
.google-review-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.review-stars {
    color: #fbbc05;
    font-size: 14px;
    margin-top: 5px;
}

@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .nav-links { display: none; } .menu-toggle { display: block; } .footer-grid { grid-template-columns: 1fr; text-align: center; } .footer h4::after { left: 50%; transform: translateX(-50%); } .footer-bottom { justify-content: center; flex-direction: column; text-align: center;} }

/* =========================================
   MENIU MOBIL PREMIUM (FULL-SCREEN)
   ========================================= */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Ascuns by default */
    width: 100%;
    height: 100vh; /* Ocupă tot ecranul */
    max-height: 100vh; /* Limitează la înălțimea ecranului */
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Schimbat de la center la flex-start pentru a susține scroll-ul */
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* REZOLVAREA PENTRU SWIPE/SCROLL: */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Face scroll-ul smooth pe iPhone */

    padding: 80px 20px 40px 20px; /* Padding sus pentru butonul de close, jos pentru siguranță */
}

/* Clasa pe care o adăugăm din JavaScript când dăm click */
/* Clasa pe care o adăugăm din JavaScript când dăm click */
.mobile-menu.active {
    right: 0; /* Asta trage meniul înapoi pe ecran! */
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-size: 22px;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    border-radius: 12px;
    letter-spacing: 1px;
    margin-bottom: 5px; /* Spațiu între butoane */
}

.mobile-menu a:hover, .mobile-menu a.active {
    color: var(--accent);
}

/* Butonul X de închidere a meniului pe mobil */
.close-mobile-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-mobile-menu:hover {
    color: var(--accent);
}

.mobile-menu .lang-switch {
    margin-top: 40px; /* Împinge butoanele mai jos de marginea de sus */
    margin-bottom: 30px; /* Lasă un spațiu curat până la primul link (Acasă) */
    font-size: 18px; /* Le facem un pic mai vizibile */
}

.mobile-menu .lang-switch button {
    font-size: 18px;
    padding: 5px 10px;
}

/* =========================================
   COMPACTARE MOBILE (CARUSELE NATIVE) & UI MENIU
   ========================================= */

/* =========================================
   COMPACTARE MOBILE (CARUSELE NATIVE) & UI MENIU
   ========================================= */

@media (max-width: 768px) {

    /* 1. Carusele Swipe pe Telefon cu Efect de Fade pe Margini */
    .process-container,
    .car-selector-grid,
    #services .grid-3,
    .py-20 > .grid-3,
    .py-20 > .grid-4 {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch;
        gap: 20px !important; /* Spațiu puțin mai mare pentru a respira */
        scrollbar-width: none;
        padding-bottom: 30px !important;

        /* Extindem containerul pe tot ecranul */
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px; /* Padding de siguranță */
        padding-right: 20px;

        /* MAGIC TRICK: Fade effect pe marginile ecranului să nu mai pară tăiat brusc */
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    }

    /* Ascundem bara urâtă de scroll a browserului */
    .process-container::-webkit-scrollbar,
    .car-selector-grid::-webkit-scrollbar,
    #services .grid-3::-webkit-scrollbar,
    .py-20 > .grid-3::-webkit-scrollbar,
    .py-20 > .grid-4::-webkit-scrollbar {
        display: none;
    }

    /* 2. Cardurile ocupă 80% și se centrează perfect pe ecran */
    .process-container > *,
    .car-selector-grid > *,
    #services .grid-3 > *,
    .py-20 > .grid-3 > *,
    .py-20 > .grid-4 > * {
        flex: 0 0 80% !important; /* Mai mult spațiu lateral */
        min-width: 80% !important;
        scroll-snap-align: center !important; /* Centrare perfectă */
        margin-bottom: 0 !important;
    }

    /* Ajustare design pentru selectorul auto în modul swipe */
    .car-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 30px 15px;
    }

    /* 3. Rafinare Premium Meniu Mobil (pe care l-am făcut înainte) */
    .mobile-menu {
        padding: 0 20px;
    }

    .mobile-menu a {
        font-size: 22px;
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-radius: 12px;
        letter-spacing: 1px;
    }

    .mobile-menu a.active {
        background: rgba(0, 217, 255, 0.1);
        color: var(--accent);
    }

    .section-title {
        font-size: 2rem !important;
    }
}

/* =========================================
   GALERIE PORTOFOLIU CU FILTRE
   ========================================= */

.portfolio-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.portfolio-filters .filter-btn {
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 14px;
}

.portfolio-filters .filter-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.portfolio-item {
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
    display: none; /* Ascunse by default pentru filtru */
    border: 1px solid var(--border);
    cursor: pointer;
}

.portfolio-item.show {
    display: block;
    animation: fadeInScale 0.4s ease forwards;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* =========================================
   DROPDOWN MENIU DESKTOP
   ========================================= */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(10, 10, 15, 0.95);
    min-width: 220px;
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    z-index: 100;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 15px;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: rgba(0, 217, 255, 0.1);
    color: var(--accent);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

