/* =======================================
   1. RESET & FONTURI & VARIABILE
   ======================================= */
:root {
    --color-bg-main: #121212;
    --color-bg-secondary: #1e1e1e;
    --color-text-main: #ededed;
    --color-text-light: #aaa;
    --color-accent-primary: #00FFFF;
    --color-accent-secondary: #39FF14;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.4);
    --border-radius: 10px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700;900&family=Inter:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Adăugăm o tranziție pe fundal, utilă pentru meniul mobil */
    transition: background-color 0.3s; 
}

/* Previne scroll-ul pe body când meniul mobil este deschis */
body.menu-open {
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =======================================
   2. HEADER ȘI NAVIGAȚIE (MOBILE FIRST - STILURI DE BAZĂ)
   ======================================= */

.main-header {
    padding: 15px 0;
    background-color: var(--color-bg-main);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-bg-secondary);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-accent-primary);
    text-decoration: none;
    text-transform: uppercase;
}

/* Meniul desktop este ascuns implicit pe mobil */
.desktop-nav {
    display: none; 
}

/* Stiluri pentru Meniul Mobil Off-Canvas */
body.menu-open .desktop-nav {
    display: flex; /* Afișează-l pe mobil când body are clasa 'menu-open' */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(18, 18, 18, 0.98); /* Fundal semi-transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000; /* Asigură-te că este deasupra tuturor */
    padding-top: 80px;
    text-align: center;
    overflow-y: auto;
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.desktop-nav li a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text-main);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 10px;
}

.desktop-nav li a:hover {
    color: var(--color-accent-primary);
}


.menu-toggle {
    background: none;
    border: none;
    color: var(--color-text-main);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 101; /* Rămâne deasupra meniului off-canvas */
}

/* Schimbăm iconița în X când meniul este deschis */
body.menu-open .menu-toggle::before {
    content: '✖'; 
    position: absolute; /* Pentru a înlocui '☰' */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* Ascundem iconița '☰' când meniul e deschis */
body.menu-open .menu-toggle {
    font-size: 0; 
    position: relative; /* Pentru a poziționa '✖' */
}

/* =======================================
   3. SECȚIUNEA HERO & FORMULAR
   ======================================= */
/* Restul codului rămâne neschimbat până la secțiunea 7 */

.hero-section {
    padding: 60px 0;
    text-align: center;
}

.connect-box {
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 500px;
    margin: 30px auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-light);
    position: relative;
}

/* Glassmorphism */
.glassmorphism-effect {
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
}

.expressive-typography {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 900;
    line-height: 1.1;
}

.slogan {
    margin-bottom: 30px;
    color: var(--color-text-light);
}

/* --- Stiluri Formular (Dark Mode) --- */

.chat-form-modern-local {
    background: rgba(30, 30, 30, 0.7);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    max-width: 400px; 
    width: 100%;
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.15); 
    margin: 0 auto;
    transition: box-shadow 0.3s ease;
}

.chat-form-modern-local:hover {
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.3);
}

.chat-form-modern-local .form-title {
    font-family: var(--font-heading);
    font-size: 1.6em;
    font-weight: 700;
    color: var(--color-accent-primary);
    margin-bottom: 20px;
    text-align: center;
}

.chat-form-modern-local label {
    display: block;
    font-size: 0.9em;
    color: var(--color-text-light); 
    margin-bottom: 5px;
    font-weight: 600;
    text-align: left;
}

.input-group {
    margin-bottom: 15px;
}

.chat-form-modern-local input[type="text"],
.chat-form-modern-local select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-bg-secondary);
    border-radius: 8px;
    background-color: var(--color-bg-main); 
    color: var(--color-text-main);
    font-size: 1em;
    transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.chat-form-modern-local select {
    /* Stiluri pentru săgeata de select */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22%23EDEDED%22%3E%3Cpath%20d%3D%22M9.293%2012.95l.707.707L15.657%208l-1.414-1.414L10%2011.828%205.757%207.586%204.343%209l5.292%203.95z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 0.7em auto;
}

.chat-form-modern-local input[type="text"]:focus,
.chat-form-modern-local select:focus {
    background-color: var(--color-bg-secondary);
    border-color: var(--color-accent-secondary); 
    box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.5);
    outline: none;
}

.chat-form-modern-local input[type="submit"] {
    display: none; 
}

/* Butonul CTA */
.cta-button {
    width: 100%;
    padding: 15px;
    background: var(--color-accent-primary);
    color: var(--color-bg-main);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

/* Micro-Interaction pe Buton */
.cta-button:hover {
    background: var(--color-accent-secondary); 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(57, 255, 20, 0.4);
}

.info-text {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* =======================================
   4. SECȚIUNEA BENTO GRID & SEO
   ======================================= */

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.bento-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr; 
    margin-bottom: 40px;
}

.bento-item {
    background-color: var(--color-bg-secondary);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s, opacity 0.6s, transform 0.6s;
    border: 1px solid transparent;
    opacity: 0; 
    transform: translateY(20px);
}

.bento-item.animate-in { 
    opacity: 1; 
    transform: translateY(0); 
} 

.bento-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-primary);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
}

.bento-item h3 {
    font-family: var(--font-heading);
    color: var(--color-accent-primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.bento-cta {
    display: inline-block;
    margin-top: 15px;
    color: var(--color-accent-secondary);
    text-decoration: none;
    font-weight: 600;
}

.wide-text-block {
    padding: 30px 0 60px;
}

.wide-text-block h2, .wide-text-block h3 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--color-text-main);
}

.checkmark-list {
    list-style: none;
    margin-top: 20px;
}

.checkmark-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.checkmark-list li::before {
    content: '✅'; 
    position: absolute;
    left: 0;
    font-size: 1.1rem;
    color: var(--color-accent-secondary);
}

/* =======================================
   5. FOOTER (COMPENSARE NAVIGARE MOBIL)
   ======================================= */

.main-footer {
    /* Padding EXTRA pentru a compensa meniul sticky de jos pe mobil */
    padding: 30px 0 100px; 
    background-color: var(--color-bg-secondary);
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links a {
    color: var(--color-text-light);
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.copyright {
    margin-top: 15px;
    color: var(--color-text-light);
}

/* =======================================
   6. NAVIGAȚIE STICKY DE JOS (DOAR PE MOBIL)
   ======================================= */

.mobile-sticky-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    background: var(--color-bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 200;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    /* Ascundem meniul sticky de jos când meniul Off-Canvas e deschis */
    transition: transform 0.3s ease-in-out;
}

body.menu-open .mobile-sticky-footer-nav {
    transform: translateY(100%);
}


.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 0.7rem;
    transition: color 0.3s;
}

.nav-item .icon {
    font-size: 1.5rem;
    margin-bottom: 3px;
    transition: transform 0.3s;
}

.nav-item:hover, .nav-item.active {
    color: var(--color-accent-primary);
}


/* =======================================
   7. MEDIA QUERIES (ADAPTARE LA DESKTOP - >= 768px)
   ======================================= */

@media (min-width: 768px) {
    
    /* ACȚIUNE: Ascundem elementele mobile */
    .menu-toggle, .mobile-sticky-footer-nav {
        display: none;
    }
    
    /* ACȚIUNE: Afișăm meniul desktop */
    .desktop-nav {
        /* Pe desktop, meniul este afișat ca un flex orizontal */
        display: block; 
    }
    
    .desktop-nav ul {
        display: flex;
        flex-direction: row;
        gap: 25px;
    }

    .desktop-nav li a {
        font-size: 1rem;
        padding: 5px 0;
        font-weight: 600;
        font-family: var(--font-body);
    }
    
    /* ACȚIUNE: Eliminăm padding-ul extra din footer-ul de pe mobil */
    .main-footer {
        padding-bottom: 30px; 
    }
    
    /* Ajustări de dimensiuni pe desktop */
    .expressive-typography {
        font-size: 3rem;
    }
    
    .hero-section {
        padding: 80px 0 100px;
    }
    
    /* Layout Bento Grid - Trecere la 2 coloane */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    /* Trecere la 4 coloane pentru desktop mare */
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}