/* ==========================================================================
   1. RESETARE GENERALĂ ȘI PROPRIETĂȚI DE BAZĂ
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #0b0f19; /* Schimbat în fundal închis premium pentru tot site-ul */
    color: #f8fafc;
    padding-top: 85px; /* Spațiu stabil pentru a nu fi acoperit textul de header-ul fix */
    overflow-x: hidden;
}

/* ==========================================================================
   2. HEADER & NAVIGATION (DESKTOP / PC)
   ========================================================================== */
header {
    background: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: transform 0.3s ease-in-out; 
}

/* Clasa apelată din JS la scroll în jos */
.header-hidden {
    transform: translateY(-100%);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hamburger-toggle {
    display: none !important; /* Ascuns pe calculator */
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

nav ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

nav ul li a:hover {
    color: #38bdf8;
}

.btn-nav {
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700 !important;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-nav:hover {
    background: #f1f5f9 !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   3. CONTAINER FORMULARE PREMIUM (CONTACT / APLICĂ)
   ========================================================================== */
.container {
    width: 90%;
    max-width: 600px;
    margin: 40px auto;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

label i {
    color: #38bdf8;
}

input, textarea, select {
    width: 100%;
    padding: 14px 16px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    font-size: 15px;
    color: #ffffff;
    transition: all 0.25s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
    background: #0b0f19;
}

input::placeholder, textarea::placeholder {
    color: #64748b;
}

button[type="submit"] {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    transition: all 0.25s ease;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.succes {
    background: rgba(22, 163, 74, 0.1);
    color: #4ade80;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(22, 163, 74, 0.2);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   4. FOOTER (SUB-SOL) PREMIUM
   ========================================================================== */
footer {
    background-color: #060911;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 30px 0;
    margin-top: 80px;
    width: 100%;
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-credits {
    font-size: 14px;
    color: #94a3b8;
}

.footer-credits strong {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    color: #cbd5e1;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.social-links a:hover {
    background: rgba(2, 132, 199, 0.1);
    border-color: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    transform: translateY(-2px);
}

/* ==========================================================================
   5. INTERFAȚĂ CORECTATĂ PENTRU MOBIL (SUB 768PX)
   ========================================================================== */
@media (max-width: 768px) {
    .hamburger-toggle {
        display: block !important;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        font-size: 18px;
        cursor: pointer;
        padding: 10px 14px;
        border-radius: 8px;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 280px;
        height: 100vh;
        background: #0f172a;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        padding: 100px 24px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    nav.mobile-active {
        right: 0 !important;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        margin: 0;
    }

    nav ul li a {
        font-size: 16px;
        display: flex;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    }

    .btn-nav {
        background: #0284c7 !important;
        color: white !important;
        justify-content: center;
        margin-top: 15px;
    }

    /* Rescalare containere mobile */
    .container {
        width: 92%;
        padding: 30px 20px;
        margin: 30px auto;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .social-links {
        width: 100%;
        justify-content: center;
    }
    
    .social-links a {
        width: 100%;
        justify-content: center;
    }
}