/* Reset și bază */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif; /* Font principal modern */
    line-height: 1.7;
    color: #2c3e50; /* Albastru închis */
    background-color: #f8f9fa; /* Fundal foarte deschis */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Stil general pentru text în main și footer */
main, .main-footer {
    text-align: center;
}

/* Resetare aliniere pentru liste în main */
main ul, main ol {
    text-align: left;
    display: inline-block;
    max-width: 900px;
    margin: 0 auto 1.2rem auto;
}

main li {
    text-align: left;
}

/* Resetare aliniere pentru formularul de contact */
.contact-form-section form {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 2rem; /* Spacing mediu */
    background-color: #ffffff;
    border-radius: 12px; /* UI: Radius 12px */
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.1); /* UI: Umbră medie */
    border: 1px solid #e9ecef; /* UI: Caroță cu bordură */
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Spacing mediu */
}

.contact-form-section form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #3498db; /* Albastru deschis */
    font-size: 0.95rem;
}

.contact-form-section form input,
.contact-form-section form textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 2px solid #dee2e6; /* Bordură medie */
    border-radius: 6px; /* UI: Radius mediu */
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #f8f9fa; /* Fundal ușor colorat */
}

.contact-form-section form input:focus,
.contact-form-section form textarea:focus {
    outline: none;
    border-color: #3498db; /* Albastru la focus */
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15); /* Glow */
    background-color: #ffffff;
}

.contact-form-section form button {
    background-color: #2c3e50; /* Albastru închis */
    color: white;
    padding: 1rem 1.8rem;
    border: none;
    border-radius: 50px; /* UI: Buton tip pilulă */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.contact-form-section form button:hover {
    background-color: #3498db; /* Albastru deschis */
    transform: translateY(-2px);
}

/* Titluri */
h1, h2, h3 {
    font-family: 'Source Sans 3', sans-serif; /* Font pentru titluri */
    color: #2c3e50; /* Albastru închis */
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.2rem;
    color: #555;
}

a {
    color: #3498db; /* Albastru deschis */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9; /* Albastru mai închis */
}

/* Header */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(44, 62, 80, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.9rem;
    font-weight: 700;
    color: #2c3e50; /* Albastru închis */
    margin: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #3498db; /* Albastru deschis */
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #3498db, #2c3e50); /* Gradient Nordic */
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content h2 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: #e3f2fd; /* Text deschis pe fundal */
}

.cta-btn {
    display: inline-block;
    background-color: #ffffff;
    color: #3498db;
    padding: 1rem 2.2rem;
    border-radius: 50px; /* UI: Buton tip pilulă */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.cta-btn:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* Intro Section */
.intro-section {
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.intro-section h1 { /* Pentru h1 pe alte pagini */
    margin-bottom: 2rem;
    color: #2c3e50;
}

.intro-section p {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid; /* UI: 3 coloane */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem; /* Spacing mediu */
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.feature-card {
    background-color: #ffffff; /* Fundal alb */
    padding: 2.5rem 2rem; /* Spacing mediu */
    border-radius: 12px; /* UI: Radius 12px */
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.1); /* UI: Umbră medie */
    border: 1px solid #e9ecef; /* UI: Caroță cu bordură */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(44, 62, 80, 0.15); /* Umbră mai accentuată */
}

.feature-card h3 {
    color: #3498db; /* Albastru deschis */
    margin-bottom: 1.2rem;
}

.feature-card p {
    color: #666;
}

/* Blog Preview */
.blog-preview {
    padding: 4rem 2rem;
    background-color: #ffffff;
}

.blog-preview h2 {
    margin-bottom: 2.5rem;
    color: #2c3e50;
}

.blog-grid {
    display: grid; /* UI: 3 coloane */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem; /* Spacing mediu */
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background-color: #f8f9fa; /* Fundal deschis */
    padding: 2rem; /* Spacing mediu */
    border-radius: 12px; /* UI: Radius 12px */
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.08); /* UI: Umbră mai subtilă */
    text-align: center;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.blog-card p {
    color: #555;
}

/* CTA Newsletter */
.cta-newsletter {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #e3f2fd, #d1e7ff); /* Gradient Nordic */
    text-align: center;
    max-width: 800px;
    margin: 3rem auto;
    border-radius: 12px; /* UI: Radius 12px */
}

.cta-newsletter h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.cta-newsletter p {
    color: #555;
    margin-bottom: 1.8rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* Spacing mic */
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 5px; /* UI: Buton secundar */
    font-family: inherit;
    font-size: 1rem;
}

.btn-secondary {
    background-color: #3498db; /* Albastru deschis */
    color: white;
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 5px; /* UI: Buton secundar */
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #2980b9; /* Albastru mai închis */
}

/* Footer */
.main-footer {
    background-color: #2c3e50; /* Albastru închis */
    color: white;
    padding: 2.5rem 0 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* Spacing mediu */
}

.footer-container ul {
    display: flex;
    list-style: none;
    gap: 2rem; /* Spacing mediu */
    flex-wrap: wrap;
    justify-content: center;
}

.footer-container a {
    color: #bdc3c7; /* Gri deschis */
}

.footer-container a:hover {
    color: white;
}

/* Responsivitate */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .main-nav ul {
        gap: 1.3rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .features-grid,
    .blog-grid {
        grid-template-columns: 1fr; /* O coloană pe mobil */
        margin: 3rem auto;
    }

    .cta-newsletter {
        max-width: 100%;
        margin: 2rem 0;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .contact-form-section form button {
        width: 100%;
        align-self: center;
    }

    .footer-container ul {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
}