/* Reset és bazáris */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Barlow', sans-serif; /* Font principal modern */
    line-height: 1.7;
    color: #b0bec5; /* Szürke-kék */
    background-color: #263238; /* Fundal szürke */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Általános szövegigazítás a main és footer részekben */
main, .main-footer {
    text-align: center;
}

/* Lista szövegigazítás visszaállítása a main-ben */
main ul, main ol {
    text-align: left;
    display: inline-block;
    max-width: 900px;
    margin: 0 auto 1.2rem auto;
}

main li {
    text-align: left;
}

/* Kapcsolat űrlap szövegigazítás visszaállítása */
.contact-form-section form {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 3rem; /* Spacing generos */
    background-color: #37474f; /* Fundal sötét szürke */
    border-radius: 0px; /* UI: Éles sarkok */
    border: 1px solid #546e7a; /* UI: Caroță cu bordură */
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3); /* UI: Közepes árnyék */
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Spacing generos */
}

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

.contact-form-section form input,
.contact-form-section form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #546e7a; /* Bordură medie */
    border-radius: 0px; /* UI: Gomb square */
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #455a64; /* Fundal sötét szürke */
    color: #eceff1; /* Szöveg világos szürke */
}

.contact-form-section form input:focus,
.contact-form-section form textarea:focus {
    outline: none;
    border-color: #8e24aa; /* Lila */
    box-shadow: 0 0 0 3px rgba(142, 36, 170, 0.15); /* Glow */
    background-color: #37474f;
}

.contact-form-section form button {
    background-color: #5e35b1; /* Lila */
    color: white;
    padding: 1rem 1.8rem;
    border: none;
    border-radius: 0px; /* UI: Gomb square */
    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: #4527a0; /* Sötétebb lila */
    transform: translateY(-2px);
}

/* Címek */
h1, h2, h3 {
    font-family: 'Playfair Display', serif; /* Font pentru titluri */
    color: #cfd8dc; /* Szürke világos */
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.2rem;
    color: #90a4ae; /* Szürke */
}

a {
    color: #7e57c2; /* Lila világos */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #5c6bc0; /* Kék világos */
}

/* Header */
.main-header {
    background-color: #37474f; /* Sötét szürke */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Slabá umbră */
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

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

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #b39ddb; /* Lila */
    margin: 0;
}

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

.main-nav a {
    color: #b0bec5; /* Szürke-kék */
    font-weight: 500;
    position: relative;
}

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

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

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

/* 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: #cfd8dc;
}

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

/* Blog Preview */
.blog-preview {
    padding: 4rem 2rem;
    background-color: #37474f; /* Sötét szürke */
}

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

.blog-grid {
    display: grid; /* UI: 1 coloană */
    grid-template-columns: 1fr; /* 1 coloană */
    gap: 2.5rem; /* Spacing mediu */
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background-color: #455a64; /* Fundal sötét szürke */
    padding: 2.5rem 2rem; /* Spacing mediu */
    border-radius: 0px; /* UI: Éles sarkok */
    border: 1px solid #546e7a; /* UI: Caroță cu bordură */
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15); /* UI: Közepes árnyék */
}

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

.blog-card h3 {
    color: #8e24aa; /* Lila */
    margin-bottom: 1rem;
}

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

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

.feature-card {
    background-color: #455a64; /* Fundal sötét szürke */
    padding: 2.5rem 2rem; /* Spacing generos */
    border-radius: 0px; /* UI: Radius 0px */
    border: 1px solid #546e7a; /* UI: Caroță cu bordură */
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: none; /* UI: Fără umbre */
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card h3 {
    color: #7e57c2; /* Lila */
    margin-bottom: 1.2rem;
}

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

/* CTA Newsletter */
.cta-newsletter {
    padding: 5rem 2rem; /* Spacing generos */
    background: linear-gradient(135deg, #3f51b5, #5c6bc0); /* Gradient kék */
    text-align: center;
    max-width: 800px;
    margin: 4rem auto;
    border-radius: 0px; /* UI: Éles sarkok */
}

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

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

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

.newsletter-form input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 0px; /* UI: Gomb square */
    font-family: inherit;
    font-size: 1rem;
    background-color: #ffffff;
    color: #263238;
}

.btn-secondary {
    background-color: #5e35b1; /* Lila */
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0px; /* UI: Gomb square */
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #4527a0; /* Sötétebb lila */
}

/* Footer */
.main-footer {
    background-color: #1c313a; /* Nagyon sötét szürke */
    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: #78909c; /* Szürke */
}

.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;
    }

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

    .cta-newsletter {
        max-width: 100%;
        margin: 3rem 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;
    }
}