/* style.css for Catilu Solutions - Professional Revision */

/*
    MODIFICĂRI CHEIE:
    - Paletă de Culori: Înlocuit accentele neon (cyan, magenta) cu un albastru corporativ și tonuri neutre pentru un aspect serios.
    - Tipografie: Înlocuit fontul 'Orbitron' cu 'Poppins' pentru un look modern, dar mai profesional.
    - Elemente Vizuale: Redus opacitatea și complexitatea animațiilor pentru formele geometrice, făcându-le mai subtile.
*/

/* 0. Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Roboto:wght@400;500&display=swap');


/* 1. Reset & Global Styles */
:root {
    /* Paletă de culori nouă, mai sobră */
    --dark-bg1: #12181F;         /* Un gri-albăstrui foarte închis */
    --dark-bg2: #1A2027;         /* Un gri-albăstrui închis */
    --accent-primary: #3366FF;   /* Albastru profesional, vibrant dar serios */
    --accent-secondary: #5a7fff; /* O variantă mai deschisă a accentului primar pentru hover */
    --text-light: #F7F9FA;       /* Alb foarte puțin cald, ușor de citit */
    --text-muted: #a0aec0;       /* Gri neutru pentru text secundar */
    --border-color: rgba(160, 174, 192, 0.2); /* Border subtil bazat pe textul muted */

    /* Tipografie nouă */
    --font-primary: 'Roboto', sans-serif;
    --font-headings: 'Poppins', sans-serif; /* Font modern și curat */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; 
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark-bg1);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden; 
    padding-top: 80px; /* Spațiu sub header pentru paginile de blog/articol */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--text-light); /* Titlurile principale sunt albe pentru impact */
    margin-bottom: 1.2rem;
    line-height: 1.3;
    font-weight: 600; /* Greutate potrivită pentru Poppins */
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); } 
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); text-align: center; }
h3 { 
    font-size: clamp(1.4rem, 3.5vw, 1.6rem); 
    color: var(--accent-primary); /* Doar H3 folosește culoarea de accent */
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: var(--accent-secondary);
    text-decoration: none; /* Eliminăm underline-ul pentru un look mai curat */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

strong { /* Stil global pentru elementele strong */
    color: var(--accent-primary);
    font-weight: 500;
}


/* 2. Sections */
.section-dark, .section-darker {
    padding: 80px 0;
    position: relative; 
    overflow: hidden; 
}

.section-dark { background-color: var(--dark-bg1); }
.section-darker { background-color: var(--dark-bg2); }

/* 3. Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(18, 24, 31, 0.85); /* Culoare de fundal potrivită */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 15px 0;
    transition: top 0.4s ease-in-out;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    width: 90%;
    padding: 0 15px;
}

.logo {
    font-family: var(--font-headings);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}
.logo:hover { color: var(--accent-primary); }

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-menu a:hover, .nav-menu a:focus {
    color: var(--text-light);
}

.nav-menu li {
    margin-left: 30px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        background: var(--dark-bg2);
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 100;
        padding: 20px 0;
        border-top: 1px solid var(--border-color);
        text-align: center;
    }
    .nav-menu.nav-open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .nav-menu li {
        margin: 10px 0;
        margin-left: 0;
    }
}

/* 4. Hero Section */
#hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px; 
}

.hero-content h1 {
    color: var(--text-light);
}

.subheading {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 650px; 
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-primary);
    color: var(--text-light);
    font-family: var(--font-headings);
    padding: 14px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--accent-primary);
    transition: all 0.3s ease;
    cursor: pointer; 
}

.cta-button:hover, .cta-button:focus {
    background-color: transparent;
    color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(51, 102, 255, 0.2);
}

/* 5. Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--dark-bg2);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(51, 102, 255, 0.1); /* Umbră cu noua culoare de accent */
}

/* 6. GIF Showcase */
.gif-container {
    background-color: #000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
}
.gif-container figcaption {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 10px;
    text-align: center;
}

/* 7. Contact Section */
#contact p { text-align: center; max-width: 600px; margin: 0 auto 2.5rem auto; }

#contact-form {
    background-color: var(--dark-bg2);
    padding: 35px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted); /* Culoare mai subtilă pentru etichete */
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="phone"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--dark-bg1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(51, 102, 255, 0.25);
}

.contact-details {
    padding-left: 20px;
}
.contact-details a {
    color: var(--text-muted);
    word-break: break-all;
}
.contact-details a:hover {
    color: var(--accent-primary);
}

/* Notă: Acestea sunt placeholder-e. Recomandăm folosirea de iconițe SVG. */
.contact-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
    flex-shrink: 0; 
}
.icon-email { background-color: var(--accent-primary); color: var(--text-light); }
.icon-phone { background-color: var(--text-muted); color: var(--dark-bg1); }

/* 8. Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: var(--dark-bg2);
}

/* 9. Floating Geometric Shapes (Subtle Version) */
.geo {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04; /* Opacitate redusă pentru un efect foarte subtil */
    animation: float-subtle 30s infinite linear alternate;
}

@keyframes float-subtle { /* Animație mai lentă și mai simplă */
    from { transform: translateY(0px) rotate(0deg); }
    to   { transform: translateY(-25px) rotate(5deg); }
}

.geo-square {
    width: 50px; height: 50px;
    background-color: var(--accent-primary);
    top: 15%; left: 10%;
    animation-duration: 35s;
}
.geo-triangle {
    width: 0; height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid var(--accent-primary);
    top: 70%; right: 15%;
    animation-duration: 40s;
}
.geo-circle {
    width: 60px; height: 60px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    top: 30%; right: 5%;
    animation-duration: 32s;
}
.geo-line {
    width: 100px; height: 2px;
    background-color: var(--text-muted);
    bottom: 10%; left: 5%;
    transform: rotate(45deg);
    animation-duration: 45s;
}
.geo-dot-grid {
     position: absolute;
     width: 150px; height: 150px;
     top: 50%; left: 50%;
     transform: translate(-50%, -50%);
     background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
     background-size: 15px 15px;
     opacity: 0.2;
     z-index: -1;
}

/* 10. Responsive & Other Sections */
/* (Păstrăm restul regulilor de responsive și de structură, deoarece sunt deja bine scrise) */

#main-header.header-hidden { top: -100px; }
.header-container { align-items: center; }
.nav-menu { list-style: none; display: flex; }
.nav-menu li { margin-left: 30px; }
.menu-toggle { display: none; background: none; border: none; color: var(--text-light); font-size: 2rem; cursor: pointer; }
.gif-showcase h2 { margin-bottom: 3rem; }
.gif-layout { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; align-items: flex-start; }
.gif-group-vertical { display: flex; flex-direction: column; gap: 30px; flex-basis: calc(35% - 15px); min-width: 250px; }
.gif-container.vertical { width: 100%; }
.gif-container.vertical img { max-height: 450px; width: auto; margin: 0 auto; }
.gif-container.horizontal { flex-basis: calc(65% - 15px); min-width: 300px; width: 100%; }
.gif-container.horizontal img { width: 100%; }
.contact-content { display: flex; flex-wrap: wrap; gap: 40px; }
#contact-form { flex: 1; min-width: 300px; }
.form-group { margin-bottom: 1.5rem; }
.contact-details { flex: 0 0 300px; }
.contact-details ul { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.contact-details li { margin-bottom: 1rem; display: flex; align-items: center; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.footer-icons .contact-icon-footer { width: 24px; height: 24px; line-height: 24px; font-size: 0.8rem; margin: 0 8px; opacity: 0.6; transition: opacity 0.3s ease; }
.footer-icons .contact-icon-footer:hover { opacity: 1; }

@media (max-width: 768px) {
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background-color: var(--dark-bg2); padding: 20px 0; border-top: 1px solid var(--border-color); text-align: center; }
    .nav-menu.active { display: flex; }
    .nav-menu li { margin: 10px 0; margin-left: 0;}
    .menu-toggle { display: block; }
    .gif-layout { flex-direction: column; align-items: center;}
    .gif-group-vertical { flex-basis: auto; width: 80%; max-width: 350px;}
    .gif-container.horizontal { flex-basis: auto; width: 90%; max-width: 500px;}
    .contact-content { flex-direction: column; }
    .contact-details { padding-left: 0; text-align: center; }
    .contact-details ul { display: inline-block; text-align: left; }
}

@media (max-width: 480px) {
     html { font-size: 15px; } 
     .logo { font-size: 1.5rem; }
}

@media (max-width: 900px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        background: var(--dark-bg2);
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 100;
    }
    .nav-menu.nav-open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    body {
        padding-top: 90px;
    }
}

/* 11. Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-post-snippet {
    background-color: var(--dark-bg2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.blog-post-snippet h3 {
    color: var(--text-light); /* Titluri albe pentru contrast */
}

.blog-post-snippet .snippet { 
    flex-grow: 1; /* Asigură că textul umple spațiul disponibil */
    margin-bottom: 1.5rem;
}

.cta-button-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-primary);
    font-family: var(--font-headings);
    padding: 12px 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--accent-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    margin-top: auto; /* Aliniază butonul la bază */
}

.cta-button-outline:hover {
    background-color: var(--accent-primary);
    color: var(--text-light);
}

/* Stiluri pentru pagina de articol */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    text-align: center;
    margin-bottom: 2rem;
}

.article-content p, .article-content ul {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}