/* ========================================= */
/* VARIABILE ȘI RESETĂRI GENERALE            */
/* ========================================= */
:root {
    --primary-color: #FF5E00;
    --secondary-color: #333;
    --background-color: #f4f4f4;
    --text-color-light: #f4f4f4;
    --text-color-dark: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: linear-gradient(135deg, #67728b, #140d09); color: #fff; min-height: 100vh;}

/* ========================================= */
/* HEADER & MENIU DE NAVIGAȚIE               */
/* ========================================= */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between;
    align-items: center; padding: 1px 1px; background-color: transparent; transition: background-color 0.2s;
    z-index: 1000; will-change: background-color;
}
.navbar.scrolled { background: #102633; }
.logo { display: flex; align-items: center; text-decoration: none; color: white; font-size: 28px; font-weight: bold; margin-left: 1%; }
.logo img { margin-right: 0px; height: 90px; width: auto; }

.nav-links { display: flex; list-style: none; margin-right: 50px; }
.nav-links li { margin: 0 25px; }
.nav-links a { text-decoration: none; color: white; font-size: 22px; position: relative; transition: color 0.3s; }
.nav-links a:hover, .nav-links a:focus { color: var(--primary-color); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: orange; transition: width 0.3s; will-change: width; }
.nav-links a:hover::after { width: 100%; }

/* Meniu mobil (Hamburger) */
.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; width: 85px; height: 40px; cursor: pointer; position: relative; z-index: 1100; }
.hamburger span { width: 30px; height: 3px; background-color: white; position: absolute; transition: all 0.3s ease-in-out; }
.hamburger span:nth-child(1) { transform: translateY(-8px); }
.hamburger span:nth-child(2) { transform: translateY(8px); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { transform: rotate(-45deg); }
.hamburger.active span:nth-child(3) { display: none; }
.mobile-menu { position: absolute; top: 100%; left: 0; width: 100%; background: #101923; text-align: center; display: none; flex-direction: column; transition: all 0.3s ease-in-out; }
.mobile-menu.active { display: flex; }
.mobile-menu li { padding: 15px 0; }
.mobile-menu a { text-decoration: none; color: white; font-size: 24px; }

/* ========================================= */
/* PAGINA: ACASĂ (index.php)                 */
/* ========================================= */
.section1 { 
    display: flex;
    align-items: center; 
    justify-content: center; 
    min-height: 70vh; 
    padding: 160px 20px 80px 20px; 
    position: relative; 
}

.content { width: 100%; max-width: 1000px; text-align: center; color: white; }
.content h1 { font-size: 38px; margin-bottom: 25px; line-height: 1.3; }
.content p { font-size: 22px; margin-bottom: 40px; color: var(--text-color-light); line-height: 1.6; }

.buttons { 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    width: 100%; 
}

.buttons a { 
    background-color: var(--primary-color); 
    color: white; 
    text-decoration: none; 
    padding: 15px 0; 
    border-radius: 8px; 
    font-size: 20px; 
    transition: background-color 0.3s ease, transform 0.3s ease; 
    border: 2px solid var(--primary-color); 
    width: 250px; 
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.buttons a i { margin-right: 10px; }
.buttons a:hover { 
    background-color: darkorange; 
    border-color: darkorange;
    transform: translateY(-3px); 
}

/* Carduri Servicii */
.TITLU-SERVICII { width: 100%; text-align: center; font-size: 28px; margin: 35px 0px; color: rgb(226, 226, 226); }
.card-section { display: flex; justify-content: space-between; flex-wrap: wrap; row-gap: 40px; padding: 50px; max-width: 1200px; margin: 0 auto; background-color: #ffffff1a; margin-bottom: 50px; border-radius: 10px; }
.card { width: 30%; text-align: left; padding: 30px; background-color: #f9f9f923; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; min-height: 350px; display: flex; flex-direction: column; justify-content: space-between; }
.card:hover { transform: translateY(-10px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); }
.card-icon { width: 60px; height: 60px; margin: 0; margin-bottom: 20px; border-radius: 10px; align-self: flex-start; padding: 0; }
.card-icon img { width: 100%; }
.card-title { font-size: 24px; color: var(--text-color-light); margin-bottom: 15px; }
.card-text { font-size: 16px; color: var(--text-color-light); margin-bottom: 20px; line-height: 1.6; }
.card-link { display: inline-block; padding: 10px 20px; background-color: #ff5e00; color: #fff; text-decoration: none; border-radius: 5px; font-size: 16px; transition: background-color 0.3s ease; align-self: flex-start; }
.card-link:hover { background-color: #ffa500; }

/* Despre Companie */
.about-company { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 50px; 
    max-width: 1200px; 
    width: 100%; 
    margin: 0 auto; 
    background-color: #ffffff1a; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    min-height: 500px; 
    border-radius: 10px; 
    margin-bottom: 80px; 
}
.left-content { width: 50%; padding-right: 40px; }
.left-content h2 { font-size: 36px; color: var(--text-color-light); margin-bottom: 25px; }
.left-content p { font-size: 18px; color: var(--text-color-light); margin-bottom: 40px; line-height: 1.8; }

.right-content { 
    position: relative; 
    width: 45%; 
    height: 520px; 
    background-color: transparent; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    border-radius: 10px; 
}
.slide { 
    display: none; 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    border-radius: 5px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    animation: fadeEffect 0.6s ease-in-out; 
}
.slide.active { display: block; }
@keyframes fadeEffect { from {opacity: 0.3;} to {opacity: 1;} }

.slider-btn { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(0,0,0,0.6); 
    color: white; 
    border: none; 
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer; 
    font-size: 18px; 
    z-index: 10; 
    border-radius: 50%; 
    transition: background 0.3s ease, transform 0.3s; 
}
.slider-btn:hover { background: var(--primary-color); transform: translateY(-50%) scale(1.1); }
.slider-btn.prev { left: -20px; } 
.slider-btn.next { right: -20px; }

/* ========================================= */
/* PAGINA: CONTACT (contact.php)             */
/* ========================================= */
.contact-section { background: transparent; color: #fff; padding: 150px 20px 60px 20px; }
.contact-container { display: flex; background-color: rgba(255, 255, 255, 0.1); border-radius: 20px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); backdrop-filter: blur(10px); overflow: hidden; max-width: 1200px; width: 100%; margin: 0 auto; animation: fadeIn 1s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.contact-form { width: 50%; padding: 40px; background: rgba(255, 255, 255, 0.1); border-right: 1px solid rgba(255, 255, 255, 0.2); }
.contact-form h2, .contact-info h2 { font-size: 32px; margin-bottom: 20px; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 20px; border: none; border-radius: 8px; font-size: 16px; background-color: rgba(255, 255, 255, 0.2); color: #fff; transition: background-color 0.3s ease; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.7); }
.contact-form input:focus, .contact-form textarea:focus { background-color: rgba(255, 255, 255, 0.3); outline: none; }
.contact-form button { width: 100%; padding: 15px; background-color: #ff5e00; color: #fff; border: none; border-radius: 8px; font-size: 18px; cursor: pointer; transition: background-color 0.3s ease, transform 0.3s ease; font-weight: bold; }
.contact-form button:hover { background-color: #ff3b2f; transform: translateY(-3px); }
.contact-info { width: 50%; padding: 40px; background: rgba(255, 255, 255, 0.1); }
.contact-info p { font-size: 18px; margin-bottom: 20px; color: rgba(255, 255, 255, 0.9); line-height: 1.6; }
.contact-info a { display: flex; align-items: center; font-size: 18px; color: #fff; text-decoration: none; margin-bottom: 15px; transition: color 0.3s ease, transform 0.3s ease; word-break: break-word; }
.contact-info a i { margin-right: 15px; font-size: 22px; width: 25px; text-align: center; }
.contact-info a:hover { color: #ff5e00; transform: translateX(10px); }
.success { color: #12c912; margin-bottom: 15px; font-weight: bold; }

/* ========================================= */
/* PAGINA: INSTRUIRE COLECTIVA (Fisa)        */
/* ========================================= */
.instruire-section { padding: 140px 20px 60px 20px; display: flex; flex-direction: column; align-items: center; }
.fisa-container { max-width: 850px; width: 100%; margin: 0 auto; background: white !important; color: #111 !important; padding: 40px; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.fisa-container h2, .fisa-container h3, .fisa-container p, .fisa-container li, .fisa-container td, .fisa-container th, .fisa-container strong { color: #111 !important; }
.fisa-container table { width: 100%; border-collapse: collapse; margin-top: 15px; border: 1px solid #777; background: white; }
.fisa-container th, .fisa-container td { border: 1px solid #777; padding: 8px; text-align: center; vertical-align: middle; }
.fisa-container th { background-color: #f4f4f4; font-weight: bold; }

/* ========================================= */
/* ECRAN LOGIN (Restricționat)               */
/* ========================================= */
#login-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(16, 25, 35, 0.95); z-index: 9999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); }
.login-box { background: #1c2a38; padding: 40px; border-radius: 12px; text-align: center; border: 1px solid var(--primary-color); width: 90%; max-width: 400px; }
.login-box h3 { color: var(--primary-color); margin-bottom: 10px; }
.login-box input { width: 100%; padding: 12px; margin: 20px 0; background: #0d161f; border: 1px solid #333; color: white; text-align: center; border-radius: 6px; font-size: 16px; }
.btn-primary { background-color: var(--primary-color); color: white; padding: 12px 25px; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; width: 100%; transition: 0.3s; }
.btn-primary:hover { background-color: #e65500; }

/* ========================================= */
/* PAGINA: 404 EROARE (404.php)              */
/* ========================================= */
.error-section { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 150px 20px 60px 20px; }
.error-section img { max-width: 350px; width: 100%; margin-bottom: 30px; animation: fadeIn 1s ease-in-out; }
.error-section h1 { font-size: 40px; color: var(--primary-color); margin-bottom: 20px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
.error-section p { font-size: 20px; color: var(--text-color-light); margin-bottom: 40px; }
.error-section .back-home { display: inline-block; padding: 15px 35px; background-color: var(--primary-color); color: #fff; text-decoration: none; border-radius: 8px; font-size: 18px; transition: background-color 0.3s ease, transform 0.3s ease; }
.error-section .back-home:hover { background-color: darkorange; transform: translateY(-3px); }

/* ========================================= */
/* FOOTER & ANIMAȚII                         */
/* ========================================= */
.footer { background-color: #102633; color: #ecf0f1; padding: 40px 0; font-family: 'Arial', sans-serif; margin-top: auto;}
.footer-content { display: flex; justify-content: space-around; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-section { flex: 1; margin: 10px; min-width: 200px; }
.footer-section h3 { font-size: 1.5em; margin-bottom: 15px; color: #ff5e00; }
.footer-section p, .footer-section ul { font-size: 1em; line-height: 1.6; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul li a { color: #ecf0f1; text-decoration: none; transition: color 0.3s; }
.footer-section ul li a:hover { color: #ff5e00; }
.footer-bottom { text-align: center; margin-top: 20px; padding-top: 10px; border-top: 1px solid #34495e; font-size: 0.9em; }
.social-icons { display: flex; justify-content: flex-start; gap: 15px; margin-top: 15px; }
.social-icons a { display: inline-block; width: 32px; height: 32px; transition: transform 0.3s ease; }
.social-icons a:hover { transform: scale(1.1); }
.social-icons img { width: 100%; height: auto; }

.hidden { opacity: 0; transform: translateY(50px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.visible { opacity: 1; transform: translateY(0); }
.pdf-mode .hide-on-pdf { display: none !important; }

/* ========================================= */
/* RESPONSIVE DESIGN (Telefoane și Tablete)  */
/* ========================================= */
@media (max-width: 768px) {
    /* Navbar */
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .navbar { background-color: #101923; }

    /* Acasă */
    .section1 { min-height: 60vh; padding: 130px 15px 50px 15px; }
    .content { width: 95%; text-align: center; }
    .content h1 { font-size: 28px; margin-bottom: 15px; }
    .content p { font-size: 18px; margin-bottom: 25px; line-height: 1.5; }
    .buttons { flex-direction: column; width: 100%; align-items: center; gap: 15px; }
    .buttons a { width: 100%; margin-bottom: 0; font-size: 18px; padding: 15px 0; }
    
    .TITLU-SERVICII { font-size: 24px; margin: 40px 0 10px 0; }
    
    /* Aliniere margini mobile (Servicii si Despre) */
    .card-section { flex-direction: column; padding: 25px 15px; margin-bottom: 30px; }
    .card { width: 100%; margin-bottom: 20px; padding: 25px 20px; min-height: auto; align-items: center; text-align: center; }
    
    /* ICONIȚE CARDURI - MOBILE - REVENITE LA NORMAL */
    .card-icon { width: 80px; height: 80px; align-self: center; margin-bottom: 15px; }
    
    .card-link { align-self: center; }
    
    .about-company { width: 100%; flex-direction: column-reverse; padding: 25px 15px; min-height: auto; margin-bottom: 40px; border-radius: 10px; }
    .left-content, .right-content { width: 100%; padding: 0; }
    .left-content h2 { font-size: 26px; text-align: center; margin-top: 30px; }
    .left-content p { font-size: 16px; text-align: center; margin-bottom: 25px; }
    
    /* Optimizare Galerie Mobil */
    .right-content { height: 420px; margin-bottom: 10px; background-color: transparent; }
    .slide { max-height: 400px; }
    .slider-btn { width: 35px; height: 35px; font-size: 14px; }
    .slider-btn.prev { left: 0px; } 
    .slider-btn.next { right: 0px; }

    /* Contact */
    .contact-section { padding: 110px 15px 40px 15px; }
    .contact-container { flex-direction: column; border-radius: 15px; }
    .contact-form, .contact-info { width: 100%; padding: 25px 20px; }
    .contact-form { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
    .contact-form h2, .contact-info h2 { font-size: 26px; }
    .contact-info p, .contact-info a { font-size: 16px; word-break: break-word; }
    .contact-form input, .contact-form textarea, .contact-form button { padding: 12px; }

    /* Eroare 404 & Instruire */
    .error-section { padding: 120px 15px 40px 15px; }
    .error-section h1 { font-size: 30px; }
    .error-section p { font-size: 16px; margin-bottom: 30px; }
    .error-section img { max-width: 250px; }
    .instruire-section { padding: 100px 10px 40px 10px; }
    .fisa-container { padding: 20px 15px; }
}