/* style.css */
:root { --primary-color: #6a3ffb; --secondary-color: #4cc9f0; --dark-blue: #3a0ca3; --text-color-light: #333; --background-color-light: #ffffff; --text-color-dark: #f0f0f0; --background-color-dark: #121212; --surface-color-dark: #1e1e1e; --font-family: 'Poppins', sans-serif; }
body { font-family: var(--font-family); margin: 0; background-color: var(--background-color-light); color: var(--text-color-light); transition: background-color 0.3s, color 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h2 { font-size: 36px; text-align: center; }
header { background-color: var(--background-color-light); box-shadow: 0 2px 4px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; transition: background-color 0.3s; }
header .container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo img { height: 40px; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--text-color-light); font-weight: 600; transition: color 0.3s; }
.main-nav a:hover, .main-nav a.active { color: var(--primary-color); }
.header-utils { display: flex; align-items: center; gap: 20px; }
.mobile-utils { display: none; }
.nav-toggle { display: none; }
.toggle-btn { cursor: pointer; background-color: #eee; padding: 5px; border-radius: 20px; display: flex; align-items: center; position: relative; width: 50px; height: 26px; }
.sun, .moon { font-size: 16px; transition: opacity 0.3s; }
.moon { opacity: 0; position: absolute; right: 5px; }
.lang-switcher { display: flex; gap: 10px; align-items: center; }
.lang-switcher .fi { font-size: 20px; border-radius: 3px; box-shadow: 0 0 1px rgba(0,0,0,0.5); }
.lang-switcher .lang { transition: transform 0.2s; display: inline-block; }
.lang-switcher .lang:hover { transform: scale(1.1); }
.lang-switcher .lang.active .fi { box-shadow: 0 0 0 2px var(--primary-color); }
.hero { text-align: center; padding: 100px 0; }
.hero h1 { font-size: 48px; color: var(--dark-blue); margin-bottom: 10px; }
.hero h3 { font-size: 24px; font-weight: 300; margin-bottom: 30px; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; }
.btn { text-decoration: none; padding: 15px 30px; border-radius: 5px; font-weight: 600; transition: all 0.3s; }
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--dark-blue); }
.btn-secondary { background-color: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-secondary:hover { background-color: var(--primary-color); color: white; }
.services { padding: 80px 0; }
.services .section-subtitle { text-align: center; max-width: 600px; margin: 10px auto 0; }
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 40px; }
.service-card { background-color: #f9f9f9; padding: 30px; border-radius: 10px; text-align: left; transition: all 0.3s; flex-basis: 280px; flex-grow: 1; max-width: 350px; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.why-us { background-color: #f9f9f9; padding: 80px 0; text-align: center; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 40px; text-align: left; }
.feature-item h4 { color: var(--primary-color); }
.testimonials { padding: 80px 0; text-align: center; }
.testimonial-carousel { max-width: 800px; margin: 40px auto 0; position: relative; min-height: 200px; }
.testimonial-card { background-color: #f9f9f9; padding: 40px; border-left: 5px solid var(--primary-color); border-radius: 0 8px 8px 0; text-align: left; position: absolute; top: 0; left: 0; width: 100%; box-sizing: border-box; opacity: 0; visibility: hidden; transition: opacity 0.8s ease-in-out, visibility 0.8s; }
.testimonial-card.active { opacity: 1; visibility: visible; }
.testimonial-card .quote { font-size: 18px; font-style: italic; line-height: 1.6; margin: 0 0 20px 0; }
.testimonial-card .author { font-weight: 600; color: var(--primary-color); }
.testimonial-nav { display: flex; justify-content: center; gap: 20px; margin-top: 20px; }
.testimonial-nav button { background: none; border: none; font-size: 22px; color: var(--text-color-light); cursor: pointer; opacity: 0.7; transition: opacity 0.3s, color 0.3s; }
.testimonial-nav button:hover { opacity: 1; color: var(--primary-color); }
footer { padding: 40px 0; border-top: 1px solid #e0e0e0; margin-top: 60px; }
footer .container { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.social-links { display: flex; gap: 25px; }
.social-links i { font-size: 28px; color: var(--text-color-light); opacity: 0.7; transition: opacity 0.3s, transform 0.3s, color 0.3s; }
.social-links a:hover i { opacity: 1; transform: scale(1.1); color: var(--primary-color); }
body.dark-mode { background-color: var(--background-color-dark); color: var(--text-color-dark); }
body.dark-mode header, body.dark-mode .hero { background-color: var(--surface-color-dark); box-shadow: 0 2px 4px rgba(0,0,0,0.4); }
body.dark-mode .main-nav a { color: var(--text-color-dark); }
body.dark-mode .main-nav a:hover, body.dark-mode .main-nav a.active { color: var(--secondary-color); }
body.dark-mode .toggle-btn { background-color: #444; }
body.dark-mode .sun { opacity: 0; }
body.dark-mode .moon { opacity: 1; }
body.dark-mode .hero h1 { color: var(--secondary-color); }
body.dark-mode .service-card, body.dark-mode .testimonial-card { background-color: var(--surface-color-dark); }
body.dark-mode .why-us { background-color: #1a1a1a; }
body.dark-mode .testimonial-nav button { color: var(--text-color-dark); }
body.dark-mode .testimonial-nav button:hover { color: var(--secondary-color); }
body.dark-mode .btn-secondary { color: var(--secondary-color); border-color: var(--secondary-color); }
body.dark-mode .btn-secondary:hover { background-color: var(--secondary-color); color: #111; }
body.dark-mode footer { border-top-color: #333; }
body.dark-mode .social-links i { color: var(--text-color-dark); }
body.dark-mode .social-links a:hover i { color: var(--secondary-color); }
body.dark-mode .nav-toggle { color: white; }
@media (max-width: 992px) {
    header .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
    .logo { grid-column: 2 / 3; }
    .nav-toggle { grid-column: 3 / 4; justify-self: end; }
    .header-utils { display: none; }
    .nav-toggle { display: block; background: transparent; border: 0; color: var(--text-color-light); font-size: 24px; cursor: pointer; z-index: 1000; }
    .main-nav { display: block; position: absolute; top: 80px; left: 0; right: 0; background-color: var(--background-color-light); box-shadow: 0 4px 6px rgba(0,0,0,0.1); transform: scaleY(0); transform-origin: top; transition: transform 0.3s ease-in-out; }
    .main-nav.nav-visible { transform: scaleY(1); }
    body.dark-mode .main-nav { background-color: var(--surface-color-dark); }
    .main-nav ul { display: block; text-align: center; padding: 0; }
    .main-nav li { padding: 15px 0; border-bottom: 1px solid #f0f0f0; }
    body.dark-mode .main-nav li { border-bottom-color: #333; }
    .mobile-utils { display: flex; justify-content: center; align-items: center; gap: 30px; padding: 20px 0; border-top: 1px solid #f0f0f0; }
    body.dark-mode .mobile-utils { border-top-color: #333; }
}
@media (max-width: 768px) {
    h2 { font-size: 28px; }
    .hero h1 { font-size: 36px; }
    .hero h3 { font-size: 18px; }
    .hero, .services, .why-us, .testimonials { padding: 60px 0; }
}
@media (max-width: 576px) {
    .cta-buttons { flex-direction: column; align-items: center; }
    .service-card { flex-basis: 100%; max-width: 100%; }
    .testimonial-carousel { min-height: 250px; }
    .testimonial-card { padding: 25px; }
    .testimonial-card .quote { font-size: 16px; }
}

/* ================== STILURI PAGINA SERVICII ================== */

.page-intro {
    padding: 60px 0;
    text-align: center;
    background-color: #f9f9f9;
}

.page-intro h1 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

body.dark-mode .page-intro {
    background-color: var(--surface-color-dark);
}
body.dark-mode .page-intro h1 {
    color: var(--secondary-color);
}

.service-list {
    padding: 80px 0;
}

.service-section {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

/* Alterneaza layout-ul: imagine-text, apoi text-imagine */
.service-section:nth-child(even) {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1;
}

.service-content h2 {
    text-align: left;
    margin-top: 0;
    font-size: 32px;
}

.service-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.service-content li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

/* Stil pentru bifa dinaintea fiecarui element din lista */
.service-content li::before {
    content: '\f00c'; /* Iconita de bifă de la Font Awesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

.service-image {
    flex: 1;
    max-width: 500px;
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--dark-blue);
    color: white;
}
.cta-section h2 {
    color: white;
}
.cta-section p {
    margin-bottom: 30px;
}

/* Stiluri Responsive pentru pagina de servicii */
@media (max-width: 992px) {
    .service-section {
        flex-direction: column !important; /* Suprascrie alternarea */
        gap: 30px;
        text-align: center;
    }
    .service-content h2 {
        text-align: center;
    }
    .service-image {
        max-width: 100%;
        order: -1; /* Muta imaginea deasupra textului */
    }
}

/* ================== STILURI PAGINA PORTOFOLIU ================== */

.portfolio-gallery {
    padding: 80px 0;
}

.portfolio-grid {
    display: grid;
    /* Creeaza 2 coloane pe desktop, si 1 pe mobil */
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.project-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    overflow: hidden; /* Ascunde colturile video-ului care ies din card */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.project-video video {
    width: 100%;
    height: auto;
    display: block;
    background-color: #e0e0e0; /* Un fundal pentru video cat timp se incarca */
}

.project-content {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Asigura ca toate cardurile au aceeasi inaltime */
}

.project-content h3 {
    margin-top: 0;
}

.project-tags {
    margin-top: auto; /* Impinge tag-urile spre finalul cardului */
    padding-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tags span {
    background-color: #f0eaff; /* Un mov foarte deschis */
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Dark Mode pentru portofoliu */
body.dark-mode .project-card {
    background-color: var(--surface-color-dark);
}

body.dark-mode .project-tags span {
    background-color: #3a0ca3;
    color: #f0f0f0;
}

/* Responsive pentru portofoliu */
@media (max-width: 500px) {
    .portfolio-grid {
        /* Pe telefoane foarte mici, trece la o singura coloana */
        grid-template-columns: 1fr;
    }
}

/* ================== STILURI PAGINA BLOG ================== */

/* Articol Vedetă */
.featured-article { padding: 40px 0; }
.featured-article-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; text-decoration: none; color: inherit; border-radius: 10px; transition: box-shadow 0.3s; }
.featured-article-card:hover { box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
.featured-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.featured-content h2 { font-size: 32px; margin: 10px 0; }
.article-category { background-color: #f0eaff; color: var(--primary-color); padding: 5px 12px; border-radius: 20px; font-size: 14px; font-weight: 500; }
.read-more { color: var(--primary-color); font-weight: 600; text-decoration: none; display: inline-block; margin-top: 15px; }
.read-more i { transition: transform 0.3s; }
.featured-article-card:hover .read-more i { transform: translateX(5px); }

/* Grila de Articole */
.blog-list { padding: 40px 0 80px; }
.blog-grid {
    display: grid;
    /* Fortam 3 coloane pe desktop */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.article-card { display: flex; flex-direction: column; background-color: #fff; border-radius: 10px; box-shadow: 0 5px 25px rgba(0,0,0,0.07); overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.3s, box-shadow 0.3s; }
.article-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.article-image { width: 100%; height: 200px; object-fit: cover; }
.article-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.article-content h3 { flex-grow: 1; margin: 10px 0; }

/* Clasa pentru a ascunde articolele care nu sunt pe pagina curenta */
.article-card.hidden {
    display: none;
}

/* Paginare */
.pagination { text-align: center; margin-top: 60px; }
.pagination button {
    background-color: transparent;
    color: var(--primary-color);
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s, color .3s;
    border: 1px solid #ddd;
    margin: 0 4px;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 16px;
    border-radius: 4px;
}
.pagination button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    cursor: default;
}
.pagination button:hover:not(.active) {
    background-color: #f0eaff;
}

/* Pagina de Articol Individual - CU TOATE MODIFICĂRILE */
.single-article-container { padding-bottom: 80px; }

/* Butonul de Inapoi */
.back-to-blog {
    display: inline-block;
    margin: 40px 0 0;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
}
.back-to-blog i {
    margin-right: 8px;
    transition: transform 0.2s;
}
.back-to-blog:hover i {
    transform: translateX(-4px);
}

.article-header { padding: 40px 0; text-align: center; }
.article-meta { margin-bottom: 15px; color: #666; }
.article-header h1 { font-size: 42px; max-width: 800px; margin: 0 auto; line-height: 1.3; }

/* Container pentru imaginea principala (MODIFICAT) */
.article-image-container {
    max-width: 800px;
    margin: 30px auto 0;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    background-color: #f0f0f0;
}
/* Imaginea principala */
.article-featured-image {
    width: 100%;
    max-height: 500px; 
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

.article-content { max-width: 800px; margin: 60px auto 0; font-size: 18px; line-height: 1.8; }
/* Subtitluri in articol */
.article-content h2 {
    margin: 60px 0 20px;
    font-size: 28px;
}
.article-content ul { list-style-position: inside; }
.article-content blockquote { border-left: 4px solid var(--primary-color); margin: 30px 0; padding-left: 25px; font-style: italic; color: #555; }

.social-share { margin-top: 60px; padding-top: 30px; border-top: 1px solid #eee; }
.social-share .container { display: flex; align-items: center; gap: 15px; }
.social-share strong { margin-right: 10px; }
.social-share a { font-size: 24px; color: #555; transition: color 0.3s; }
.social-share a:hover { color: var(--primary-color); }

/* Dark Mode pt Blog */
body.dark-mode .featured-article-card, body.dark-mode .article-card { background-color: var(--surface-color-dark); }
body.dark-mode .featured-article-card:hover { box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
body.dark-mode .article-category { background-color: #3a0ca3; color: #f0f0f0; }
body.dark-mode .pagination button { color: var(--secondary-color); border-color: #444; }
body.dark-mode .pagination button.active { background-color: var(--secondary-color); color: #111; border-color: var(--secondary-color); }
body.dark-mode .pagination button:hover:not(.active) { background-color: #2a2a2a; }
body.dark-mode .article-content blockquote { color: #ccc; border-color: var(--secondary-color); }
body.dark-mode .social-share { border-top-color: #333; }
body.dark-mode .social-share a { color: #aaa; }
body.dark-mode .social-share a:hover { color: var(--secondary-color); }
body.dark-mode .back-to-blog { color: var(--secondary-color); }


/* Responsive pt Blog */
@media (max-width: 992px) {
    .featured-article-card { grid-template-columns: 1fr; }
    .featured-content { padding: 30px; }
    .article-header h1 { font-size: 32px; }
    .article-featured-image { max-height: 350px; }
    /* Trecem la 2 coloane pe tableta */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    /* Trecem la 1 coloana pe mobil */
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ================== STILURI PAGINA DESPRE NOI (REVIZUIT) ================== */
.about-content { padding: 80px 0; }
.about-section { display: flex; align-items: center; gap: 60px; margin-bottom: 80px; }
.about-section:last-child { margin-bottom: 0; }
.about-section:nth-child(even) { flex-direction: row-reverse; }
.about-text { flex: 1; }
.about-text h2 { text-align: left; }
.about-text ul { list-style: none; padding-left: 0; margin-top: 20px; }
.about-text li { padding-left: 25px; position: relative; margin-bottom: 10px; }
.about-text li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--primary-color); position: absolute; left: 0; top: 2px; }
.about-image { flex: 1; max-width: 500px; }
.about-image img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.values { padding: 80px 0; background-color: #f9f9f9; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 40px; }
.value-card { text-align: center; }
.value-card i { font-size: 40px; color: var(--primary-color); margin-bottom: 15px; }
body.dark-mode .values { background-color: var(--surface-color-dark); }
body.dark-mode .about-text { color: #ccc; }


/* ================== STILURI PAGINA CONTACT (REVIZUIT) ================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Doua coloane, cea din dreapta mai mare */
    gap: 60px;
    align-items: flex-start;
}
.contact-info p {
    line-height: 1.7;
    margin-bottom: 40px;
}
.contact-form-wrapper h2, .contact-info h2 {
    text-align: left;
    margin-top: 0;
}
.contact-details { display: flex; flex-direction: column; gap: 30px; }
.contact-item { display: flex; align-items: flex-start; gap: 20px; }
.contact-item i { font-size: 24px; color: var(--primary-color); width: 30px; text-align: center; margin-top: 5px; }
.contact-item strong { display: block; margin-bottom: 2px; }
.contact-item a { text-decoration: none; color: inherit; }
.contact-social-links { display: flex; gap: 15px; margin-top: 5px; }
.contact-social-links a { font-size: 24px; color: #555; }
.contact-social-links a:hover { color: var(--primary-color); }
/* Stiluri Formular */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 16px;
    box-sizing: border-box; /* Important! */
    transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px #d4c9ff;
}
/* Dark Mode pentru Contact */
body.dark-mode .form-group input, body.dark-mode .form-group textarea { background-color: #333; border-color: #555; color: #fff; }
body.dark-mode .contact-social-links a { color: #aaa; }
body.dark-mode .contact-social-links a:hover { color: var(--secondary-color); }
/* Responsive pentru Contact */
@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr; /* O singura coloana pe tableta si mobil */
    }
     .contact-form-wrapper h2, .contact-info h2 {
        text-align: center;
    }
}

/* ================== STILURI PENTRU STATUSUL FORMULARULUI ================== */
#form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

#form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ================== STILURI NOI PENTRU FOOTER ================== */

.footer-logo {
    display: block;
    text-align: center;
    margin-bottom: 20px; /* Spațiu între logo și iconițele de social media */
}

.footer-logo img {
    height: 45px; /* Poți ajusta înălțimea dacă dorești */
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-logo:hover img {
    opacity: 1;
}