/* Alap stílusok */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 18px;
    font-family: 'Bebas Neue', cursive;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    /* HÁTTÉRKÉP BEÁLLÍTÁSAI - (Emlékszem, hogy javítottam a háttérképet, ezért itt az eredeti kép lesz.) */
    background-image: url('img/jaror2.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Mobil betűméret */
@media (max-width: 600px) {
    body {
        font-size: 16px;
    }
}

/* CSS változók definiálása a navbar és footer magasságához */
:root {
    --navbar-height: 130px; /* Állítsd be a navbar tényleges magasságát */
    --footer-height: 140px; /* Állítsd be a footer tényleges magasságát (padding-gel együtt) */
}

/* Finomítás: navbar és footer magasságának kiszámítása mobilra */
@media (max-width: 768px) {
    :root {
        --navbar-height: 70px; /* Mobil navbar magasság */
        --footer-height: 200px; /* Mobil footer magasság, ha több sorba törik */
    }
}

/* --- Navigációs sáv --- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.logo img {
    max-height: 100px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

/* Menü */
.menu {
    margin-left: auto;
}

.menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

/* ÚJ KÓD: Menüpontok animációja betöltéskor */
.menu ul li {
    opacity: 0;
    transform: translateX(-20px); /* Kicsit balról csússzon be */
    animation: slideInMenuItem 0.6s ease-out forwards; /* Animáció alkalmazása */
}

/* ÚJ KÓD: Animáció késleltetése minden egyes menüpontnak */
.menu ul li:nth-child(1) { animation-delay: 0.2s; }
.menu ul li:nth-child(2) { animation-delay: 0.3s; }
.menu ul li:nth-child(3) { animation-delay: 0.4s; }
.menu ul li:nth-child(4) { animation-delay: 0.5s; }
.menu ul li:nth-child(5) { animation-delay: 0.6s; }

.menu li a {
    font-family: 'Bebas Neue', cursive;
    font-size: 25px;
    color: #007acc;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.menu li a:hover {
    background-color: #e6f4ff;
    color: #005b99;
}

/* Aktív menüpont kiemelése */
.menu li a.active-link {
    background-color: #007acc;
    color: white;
    font-weight: bold;
}

/* Hover stílus felülírása, ha az aktív linken is van hover */
.menu li a.active-link:hover {
    background-color: #005b99;
    color: white;
}

/* Hamburger ikon */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-icon span {
    width: 25px;
    height: 3px;
    background-color: #007acc;
    border-radius: 2px;
}

/* ÚJ KÓD: A slideInMenuItem keyframes animáció */
@keyframes slideInMenuItem {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Mobilnézet (Navigáció) --- */
@media (max-width: 768px) {
    .menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    .menu ul {
        flex-direction: column;
        gap: 0;
    }
    .menu li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    .menu-icon {
        display: flex;
    }
    .menu-toggle:checked ~ .menu {
        display: block;
    }
    /* ÚJ KÓD: Mobil menüben kikapcsoljuk az animációt, ha be van kapcsolva a menü */
    .menu-toggle:checked ~ .menu ul li {
        animation: none;
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Hero szekció --- */
.hero-section {
    background-color: transparent; /* Átlátszó lesz, hogy átlátszódjon a body háttérképe */
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    text-align: left;
    padding: 0 5%;
    gap: 40px;
    flex-grow: 1;
}

/* Szövegdoboz a hero szekcióban (overlay) */
.hero-section .overlay {
    position: relative;
    z-index: 2;
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 40px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transform: translateY(-10%);
    overflow: hidden;
}

/* ÚJ KÓD: Animáció a címsornak és a bekezdéseknek */
.hero-section .overlay h1,
.hero-section .overlay p {
    opacity: 0;
    animation: fadeInSlideFromLeft 0.8s ease-out forwards;
}

/* Különleges bekezdések animációja: */
.hero-section .overlay h1 {
    animation-delay: 0.5s;
}
.hero-section .overlay p:nth-of-type(1) {
    animation-delay: 0.8s;
}
.hero-section .overlay p:nth-of-type(2) {
    animation: fadeInSlideFromRight 0.8s ease-out forwards;
    animation-delay: 1.1s;
}
.hero-section .overlay p:nth-of-type(3) {
    animation-delay: 1.4s;
}

/* ÚJ KÓD: Keyframes az animációkhoz */
@keyframes fadeInSlideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInSlideFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-section h1 {
    font-size: 50px;
    margin-bottom: 15px;
    line-height: 1.2;
    text-align: left;
}

.hero-section p {
    font-size: 18px;
    line-height: 1.5;
    text-align: left;
    margin: 0;
}

/* Képgaléria a hero szekcióban */
.image-gallery {
    position: relative;
    width: 500px;
    height: 350px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    z-index: 2;
    margin-left: auto;
    margin-right: 5%;
}

.image-gallery .gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.image-gallery .gallery-img.active {
    opacity: 1;
}

/* --- Hero szekció és Galéria mobilnézet --- */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        justify-content: flex-start;
        padding: 50px 15px;
        height: auto;
        min-height: 100vh;
        gap: 20px;
    }
    .hero-section .overlay {
        max-width: 90%;
        transform: none;
        margin-top: 50px;
        margin-bottom: 20px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        overflow: visible;
        height: auto !important;
        min-height: 250px;
        background-color: rgba(0, 0, 0, 0.6);
        border: none;
    }
    .hero-section h1,
    .hero-section p {
        text-align: center;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        color: white !important;
    }
    .image-gallery {
        width: 90%;
        height: 250px;
        margin-top: 20px;
        margin-bottom: 30px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- Lábléc --- */
footer {
    background-color: #007acc;
    color: white;
    padding: 20px 30px;
    font-family: 'Bebas Neue', cursive;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-motto {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Footer link és szöveg stílusa (telefon, cím, email) */
footer .footer-item a,
footer .footer-contact .footer-item {
    font-size: 18px;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer .footer-item a:hover {
    opacity: 0.8;
}

/* Font Awesome ikonok a láblécben */
footer .footer-item .fas {
    font-size: 24px; /* Egységes méret */
    color: white; /* Fehér szín */
}


/* ÚJ SZABÁLYOK AZ ADATVÉDELMI LINKHEZ ÉS A HOZZÁ TARTOZÓ BLOKKHOZ */
.footer-links {
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
}

.footer-links a {
    font-family: 'Bebas Neue', cursive;
    font-size: 22px;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid #ffffff;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
}

.footer-links a:hover {
    background-color: #ffffff;
    color: #007acc;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Footer copyright szöveg */
.copyright {
    font-size: 14px;
    margin-top: 20px;
    opacity: 0.8;
}

/* Mobilnézet a lábléchez */
@media (max-width: 768px) {
    .footer-contact {
        flex-direction: column;
        gap: 10px;
    }
    .footer-links {
        margin-top: 15px;
        margin-bottom: 8px;
    }
    .footer-links a {
        font-size: 20px;
        padding: 6px 12px;
    }
}

/* --- Árajánlat Űrlap Szekció --- */
.form-section {
    padding: 80px 5%;
    background-color: rgba(240, 248, 255, 0.85);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - var(--navbar-height) - var(--footer-height));
    flex-grow: 1;
}

.form-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    width: 100%;
    text-align: center;
}

.form-container h2 {
    font-size: 40px;
    color: #007acc;
    margin-bottom: 20px;
    font-family: 'Bebas Neue', cursive;
    text-transform: uppercase;
}

.form-container p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.5;
    font-family: Arial, sans-serif;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
    font-family: 'Bebas Neue', cursive;
    text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 17px;
    font-family: Arial, sans-serif;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007acc;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 122, 204, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Átnevezve id-re: #submitBtn */
#submitBtn {
    background-color: #007acc;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 22px;
    font-family: 'Bebas Neue', cursive;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    width: auto;
    display: inline-block;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative; /* Az animációhoz */
    overflow: hidden; /* Az animációhoz */
}

#submitBtn:hover {
    background-color: #005b99;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 91, 153, 0.4);
}

/* Loading spinner animáció */
#submitBtn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    margin: -10px 0 0 -10px; /* Középre igazítás */
    border: 3px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#submitBtn.loading {
    color: transparent; /* Elrejti a szöveget, amíg a spinner forog */
    pointer-events: none; /* Kikapcsolja a kattintást, amíg töltődik */
}

#submitBtn.loading::after {
    animation: spin 1s linear infinite;
    opacity: 1;
    width: 20px;
    height: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hibaüzenet stílus */
.error-message {
    color: #e74c3c; /* Élénk piros */
    font-size: 14px;
    margin-top: 5px;
    text-align: left;
    height: 18px; /* Fenntartja a helyet, hogy ne ugráljon a tartalom */
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: Arial, sans-serif;
}

.error-message.active {
    opacity: 1;
}

/* Validációs hiba vizuális visszajelzése */
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
}


/* ÚJ KÓD: Adatvédelmi jelölőnégyzet stílusa */
.form-group.privacy-consent {
    display: flex;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.form-group.privacy-consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 25px;
    height: 25px;
    border: 2px solid #007acc;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
}

.form-group.privacy-consent input[type="checkbox"]:checked {
    background-color: #007acc;
    border-color: #007acc;
}

/* Pipajel CSS-sel */
.form-group.privacy-consent input[type="checkbox"]:checked::after {
    content: '\2713';
    color: white;
    font-size: 18px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-group.privacy-consent label {
    font-family: Arial, sans-serif;
    font-size: 17px;
    color: #333;
    line-height: 1.4;
    cursor: pointer;
    text-transform: none;
    margin-bottom: 0;
    flex-grow: 1;
}

.form-group.privacy-consent .privacy-link {
    color: #007acc;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.form-group.privacy-consent .privacy-link:hover {
    color: #005b99;
}

/* Mobilnézet az űrlaphoz */
@media (max-width: 768px) {
    .form-section {
        padding: 40px 15px;
    }
    .form-container {
        padding: 25px;
    }
    .form-container h2 {
        font-size: 32px;
    }
    .form-container p {
        font-size: 16px;
    }
    .form-group label {
        font-size: 18px;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
    #submitBtn { /* ID-re váltva */
        font-size: 20px;
        width: 100%;
    }
    /* Mobilnézet az Adatvédelmi jelölőnégyzetnek */
    .form-group.privacy-consent {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .form-group.privacy-consent input[type="checkbox"] {
        width: 22px;
        height: 22px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .form-group.privacy-consent label {
        font-size: 15px;
        text-align: left;
    }
}

/* --- Kapcsolat Szekció --- */
.contact-section {
    padding: 80px 5%;
    background-color: rgba(240, 248, 255, 0.85);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - var(--navbar-height) - var(--footer-height));
    flex-grow: 1;
}

.contact-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.contact-container h2 {
    font-size: 50px;
    color: #007acc;
    margin-bottom: 25px;
    font-family: 'Bebas Neue', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-intro {
    font-size: 20px;
    color: #555;
    margin-bottom: 50px;
    line-height: 1.6;
    font-family: Arial, sans-serif;
    text-align: center;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-item {
    text-align: center;
    flex: 1 1 280px;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    background-color: #f0f8ff;
    box-shadow: 0 4px 15px rgba(0, 122, 204, 0.1);
}

.contact-item h3 {
    font-size: 35px;
    color: #005b99;
    margin-bottom: 15px;
    font-family: 'Bebas Neue', cursive;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item a {
    font-size: 22px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    font-family: Arial, sans-serif;
    line-height: 1.4;
}

.contact-item a:hover {
    color: #007acc;
    text-decoration: underline;
}

/* Font Awesome ikonok a contact-item-en belül */
.contact-item .fas { /* Célzottan a Font Awesome ikonok */
    width: 32px;
    height: 32px;
    color: #007acc; /* Kék szín az ikonoknak */
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Google Maps és Útvonaltervezés gomb stílusok */
.map-section {
    margin-top: 50px;
    margin-bottom: 40px;
    text-align: center;
}

.map-section h2 {
    font-size: 35px;
    color: #007acc;
    margin-bottom: 25px;
    font-family: 'Bebas Neue', cursive;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#map { /* Az ID-vel hivatkozunk rá */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px; /* Hely a gombnak */
}

.directions-button {
    background-color: #28a745; /* Zöld szín */
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-family: 'Bebas Neue', cursive;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: inline-flex; /* Az ikon és a szöveg egy sorban legyen */
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.directions-button:hover {
    background-color: #218838; /* Sötétebb zöld hoverre */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 167, 69, 0.4);
}

.directions-button .fas { /* Ikon stílusa a gombban */
    font-size: 22px;
    color: white;
}


/* Mobilnézet a Kapcsolat oldalhoz */
@media (max-width: 768px) {
    .contact-section {
        padding: 40px 15px;
    }
    .contact-container {
        padding: 25px;
    }
    .contact-container h2 {
        font-size: 40px;
        margin-bottom: 20px;
    }
    .contact-intro {
        font-size: 18px;
        margin-bottom: 40px;
    }
    .contact-details {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 40px;
    }
    .contact-item {
        padding: 10px;
    }
    .contact-item h3 {
        font-size: 30px;
        margin-bottom: 10px;
    }
    .contact-item a {
        font-size: 20px;
    }
    .contact-item .fas { /* Ikon méret mobilra */
        width: 28px;
        height: 28px;
        margin-bottom: 8px;
    }
    .map-section { /* Térkép szekció mobilra */
        margin-top: 35px;
        margin-bottom: 35px;
    }
    #map { /* Térkép div mobilra */
        height: 320px;
        margin-bottom: 20px;
    }
    .directions-button { /* Gomb mobilra */
        font-size: 18px;
        padding: 12px 25px;
    }
    .directions-button .fas { /* Ikon méret mobilra */
        font-size: 20px;
    }
}

/* --- Rólunk Szekció (about.html-hez) --- */
.about-section {
    padding: 60px 5%;
    background-color: rgba(240, 248, 255, 0.85);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - var(--navbar-height) - var(--footer-height));
    flex-grow: 1;
}

.about-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

.about-logo-container {
    margin-bottom: 40px;
}

.about-main-logo {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.about-intro {
    font-size: 22px;
    color: #555;
    margin-bottom: 50px;
    line-height: 1.6;
    text-align: center;
    font-weight: bold;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-content .text-block {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.about-content .text-block h3 {
    font-size: 37px;
    color: #007acc;
    margin-bottom: 20px;
    font-family: 'Bebas Neue', cursive;
    line-height: 1.2;
    text-align: center;
}

.about-content .text-block p {
    font-size: 19px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

.about-content .text-block ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-top: 15px;
    line-height: 1.6;
    font-size: 19px;
    color: #444;
}

.about-content .text-block ul li {
    margin-bottom: 8px;
}

.about-content .text-block ul li strong {
    color: #005b99;
}

/* Mobilnézet a Rólunk oldalhoz */
@media (max-width: 768px) {
    .about-section {
        padding: 40px 15px;
    }
    .about-container {
        padding: 25px;
    }
    .about-main-logo {
        max-width: 180px;
        margin-bottom: 30px;
    }
    .about-intro {
        font-size: 20px;
        margin-bottom: 40px;
    }
    .about-content {
        gap: 30px;
    }
    .about-content .text-block {
        padding: 20px;
    }
    .about-content .text-block h3 {
        font-size: 30px;
        margin-bottom: 15px;
    }
    .about-content .text-block p,
    .about-content .text-block ul {
        font-size: 18px;
    }
    .about-content .text-block ul {
        margin-left: 20px;
    }
}

/* --- Referencia Szekció (referenciak.html-hez) --- */

/* Animációkhoz szükséges keyframes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reference-section {
    padding: 60px 5%;
    background-color: rgba(240, 248, 255, 0.85);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - var(--navbar-height) - var(--footer-height));
    flex-grow: 1;
}

.reference-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

.reference-container h2 {
    font-size: 45px;
    color: #007acc;
    margin-bottom: 30px;
    font-family: 'Bebas Neue', cursive;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.7s ease-out forwards;
    animation-delay: 0.1s;
}

.reference-section .intro-text,
.reference-section .outro-text {
    font-size: 20px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.7s ease-out forwards;
    animation-delay: 0.3s;
}
.reference-section .outro-text {
    animation-delay: 1.5s;
}

.reference-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.reference-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.7s ease-out forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* Fontos: jelzi, hogy kattintható */
}

/* Késleltetések az egyes referencia elemeknek */
.reference-list .reference-item:nth-child(1) { animation-delay: 0.5s; }
.reference-list .reference-item:nth-child(2) { animation-delay: 0.7s; }
.reference-list .reference-item:nth-child(3) { animation-delay: 0.9s; }
.reference-list .reference-item:nth-child(4) { animation-delay: 1.1s; }
.reference-list .reference-item:nth-child(5) { animation-delay: 1.3s; }
.reference-list .reference-item:nth-child(6) { animation-delay: 1.5s; }

/* Képek egységesítése a referenciákban */
.project-thumbnail {
    width: 100%;
    height: 200px; /* Ezt az értéket emeltem meg */
    object-fit: cover; /* Ez a legfontosabb a képek egységesítéséhez */
    border-radius: 5px;
    margin-bottom: 20px;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reference-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.reference-item h3 {
    font-size: 30px;
    color: #005b99;
    margin-bottom: 10px;
    font-family: 'Bebas Neue', cursive;
    text-transform: uppercase;
}

.reference-item p {
    font-size: 17px;
    line-height: 1.5;
    color: #444;
    margin-bottom: 15px;
    font-family: Arial, sans-serif;
}

.reference-item ul {
    list-style-type: none;
    margin-top: 15px;
    line-height: 1.6;
    font-size: 17px;
    color: #555;
    text-align: left;
}

.reference-item ul li {
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.reference-item ul li::before {
    content: '\2713';
    color: #007acc;
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: 0;
}

/* Kategória cím a referenciákban */
.reference-category-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 35px;
    color: #007acc;
    margin-top: 40px;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.7s ease-out forwards;
    animation-delay: 0.3s;
}

/* Mobilnézet a Referencia oldalhoz */
@media (max-width: 768px) {
    .reference-section {
        padding: 40px 15px;
    }
    .reference-container {
        padding: 25px;
    }
    .reference-container h2 {
        font-size: 38px;
        margin-bottom: 25px;
    }
    .reference-section .intro-text,
    .reference-section .outro-text {
        font-size: 18px;
        margin-bottom: 30px;
    }
    .reference-list {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 40px;
    }
    .reference-item {
        padding: 20px;
        animation: none !important;
        opacity: 1;
        transform: none;
    }
    .project-thumbnail {
        height: 150px; /* Kisebb magasság mobilra */
        margin-bottom: 15px;
    }
    .reference-item h3 {
        font-size: 26px;
        margin-bottom: 8px;
    }
    .reference-item p,
    .reference-item ul li {
        font-size: 16px;
    }
    .reference-item ul {
        margin-left: 15px;
    }
    .reference-category-title {
        font-size: 30px;
        margin-top: 30px;
        margin-bottom: 20px;
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}

/* --- Adatvédelmi Tájékoztató Szekció (privacy.html-hez) --- */
.privacy-section {
    padding: 60px 5%;
    background-color: rgba(240, 248, 255, 0.85); /* Halványkék, áttetsző háttér */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - var(--navbar-height) - var(--footer-height));
    flex-grow: 1;
}

.privacy-container {
    background-color: #ffffff; /* Fehér konténer háttér */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); /* Enyhe árnyék */
    max-width: 900px; /* Maximális szélesség a jobb olvashatóságért */
    width: 100%;
    text-align: left; /* Szöveg balra rendezése */
}

.privacy-container h2 {
    font-size: 45px;
    color: #007acc; /* Kék színű címek */
    margin-bottom: 30px;
    font-family: 'Bebas Neue', cursive;
    line-height: 1.2;
    text-align: center; /* Főcím középre igazítva */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.privacy-container h3 {
    font-size: 30px;
    color: #005b99; /* Sötétebb kék alcímek */
    margin-top: 40px;
    margin-bottom: 20px;
    font-family: 'Bebas Neue', cursive;
    line-height: 1.3;
    border-bottom: 2px solid #e6f4ff; /* Vékony aláhúzás */
    padding-bottom: 10px;
}

.privacy-container p,
.privacy-container ul {
    font-family: Arial, sans-serif; /* Jól olvasható betűtípus */
    font-size: 18px;
    line-height: 1.7; /* Nagyobb sorköz a jobb olvashatóságért */
    color: #444; /* Sötétszürke szöveg */
    margin-bottom: 15px;
}

.privacy-container ul {
    list-style-type: disc; /* Normál pontozott lista */
    margin-left: 30px; /* Behúzás a listaelemeknek */
    margin-bottom: 20px;
}

.privacy-container ul li {
    margin-bottom: 10px;
}

.privacy-container ul li strong {
    color: #007acc; /* Kiemelt szövegek kék színnel */
}

.privacy-container a {
    color: #007acc;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.privacy-container a:hover {
    color: #005b99;
}

.privacy-container .last-updated {
    font-size: 16px;
    color: #777;
    text-align: right;
    margin-top: 40px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

/* Mobilnézet az Adatvédelmi oldalhoz */
@media (max-width: 768px) {
    .privacy-section {
        padding: 40px 15px;
    }
    .privacy-container {
        padding: 25px;
    }
    .privacy-container h2 {
        font-size: 35px;
        margin-bottom: 25px;
    }
    .privacy-container h3 {
        font-size: 26px;
        margin-top: 30px;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    .privacy-container p,
    .privacy-container ul {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 10px;
    }
    .privacy-container ul {
        margin-left: 20px;
        margin-bottom: 15px;
    }
    .privacy-container ul li {
        margin-bottom: 8px;
    }
    .privacy-container .last-updated {
        font-size: 14px;
        margin-top: 30px;
    }
}

/* --- Modális ablak stílusai (ÚJ KÓD!) --- */

.modal-overlay {
    display: none; /* Alapértelmezetten rejtett */
    position: fixed;
    z-index: 100; /* Legfelül legyen */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Görgethető, ha a tartalom nagy */
    background-color: rgba(0, 0, 0, 0.7); /* Sötét, áttetsző háttér */
    display: flex; /* Középre igazításhoz */
    align-items: center; /* Függőlegesen középre */
    justify-content: center; /* Vízszintesen középre */
    padding: 20px; /* Kis belső tér mobilnézeten */
    backdrop-filter: blur(5px); /* Enyhe elmosódás a háttéren */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #007acc;
    text-decoration: none;
}

.modal-content h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 40px;
    color: #007acc;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.2;
    border-bottom: 2px solid #e6f4ff;
    padding-bottom: 15px;
}

.modal-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.modal-image-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-content p {
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
    text-align: left;
}

.modal-content ul {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
    margin-top: 10px;
    margin-bottom: 20px;
}

.modal-content ul li {
    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.modal-content ul li::before {
    content: '\2713';
    color: #007acc;
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: 0;
}

.modal-content .modal-extra-info {
    font-size: 16px;
    color: #777;
    text-align: right;
    margin-top: 30px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

/* Mobilnézet a modális ablakhoz */
@media (max-width: 768px) {
    .modal-content {
        padding: 25px;
        width: 95%; /* Kicsit nagyobb szélesség mobilon */
    }
    .close-button {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }
    .modal-content h3 {
        font-size: 30px;
        margin-bottom: 20px;
    }
    .modal-image-gallery {
        grid-template-columns: 1fr; /* Képek egymás alatt mobilon */
        gap: 10px;
        margin-bottom: 20px;
    }
    .modal-image-gallery img {
        height: 180px; /* Kicsit magasabb képek mobilon */
    }
    .modal-content p,
    .modal-content ul li {
        font-size: 16px;
        margin-bottom: 15px;
    }
    .modal-content ul li {
        padding-left: 20px;
    }
    .modal-content ul li::before {
        font-size: 16px;
    }
    .modal-content .modal-extra-info {
        font-size: 14px;
        margin-top: 20px;
    }
}

/* --- Karrier Szekció (karrier.html-hez) --- */
.career-section {
    padding: 60px 5%; /* Eltérő padding a tartalomhoz képest, ha szükséges */
    background-color: rgba(240, 248, 255, 0.85); /* Halványkék, áttetsző háttér, mint a többi tartalom oldalon */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* A min-height beállítása, hogy a tartalom kitöltse a rendelkezésre álló helyet a navbar és footer között */
    min-height: calc(100vh - var(--navbar-height) - var(--footer-height));
    flex-grow: 1; /* Fontos, hogy kitöltse a maradék helyet */
}

.career-container {
    background-color: #ffffff; /* Fehér konténer háttér */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); /* Enyhe árnyék */
    max-width: 900px; /* Maximális szélesség a jobb olvashatóságért */
    width: 100%;
    text-align: left; /* Szöveg balra rendezése */
}

.career-container h1 {
    font-size: 45px;
    color: #007acc; /* Kék színű címek */
    margin-bottom: 25px;
    font-family: 'Bebas Neue', cursive;
    line-height: 1.2;
    text-align: center; /* Főcím középre igazítva */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.career-container h2 {
    font-size: 35px;
    color: #007acc;
    margin-top: 40px;
    margin-bottom: 25px;
    font-family: 'Bebas Neue', cursive;
    line-height: 1.3;
    text-align: center; /* Alcím középre igazítva */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.career-container p {
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

.career-container ul {
    list-style: none; /* Kikapcsolja az alap listajeleket */
    padding: 0;
    margin-bottom: 20px;
}

.career-container ul li {
    position: relative;
    padding-left: 30px; /* Hely az ikonnak */
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #444;
}

.career-container ul li::before {
    content: '✔️'; /* Pipa ikon */
    position: absolute;
    left: 0;
    color: #28a745; /* Zöld pipa */
    font-size: 20px;
    top: 0; /* Igazítás a szöveg tetejéhez */
}

/* Különleges stílus a "Nyitott Pozíciók" résznek */
.position-details {
    background-color: #e9f5ff; /* Világoskék háttér */
    border-left: 5px solid #0056b3;
    padding: 25px 30px;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.position-details h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 30px;
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left; /* Cím balra igazítva a blokkon belül */
    text-transform: uppercase;
}

.position-details h4 {
    font-family: 'Bebas Neue', cursive;
    font-size: 24px;
    color: #005b99;
    margin-top: 25px;
    margin-bottom: 10px;
    text-align: left;
    text-transform: uppercase;
}

.position-details ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.position-details ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    color: #555;
}

.position-details ul li::before {
    content: '•'; /* Egyszerű pont a feladatoknak */
    position: absolute;
    left: 0;
    color: #007acc; /* Kék pont */
    font-size: 20px;
    line-height: 1; /* Fontos, hogy ne legyen túl nagy */
    top: 50%;
    transform: translateY(-50%);
}

/* Átírjuk a pipa ikont előnyökhöz, ha szükséges */
.position-details ul li.advantage::before {
    content: '★'; /* Csillag ikon az előnyökhöz */
    color: #f39c12; /* Narancssárga csillag */
}


/* Űrlap stílusa a meglévő form-group alapján */
.career-container form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 30px;
}

.career-container form label {
    font-family: 'Bebas Neue', cursive;
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Önéletrajz feltöltés stílusa (a meglévő input mezők alapján) */
.career-container input[type="file"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 17px;
    font-family: Arial, sans-serif;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff; /* Fehér háttér a fájl inputnak */
    cursor: pointer;
}

.career-container input[type="file"]::file-selector-button {
    font-family: 'Bebas Neue', cursive;
    background-color: #007acc;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 15px;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.career-container input[type="file"]::file-selector-button:hover {
    background-color: #005b99;
}

/* Gomb stílusa (az #submitBtn alapján) */
.career-container button[type="submit"] {
    background-color: #007acc;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 22px;
    font-family: 'Bebas Neue', cursive;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    width: auto;
    display: inline-block;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.career-container button[type="submit"]:hover {
    background-color: #005b99;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 91, 153, 0.4);
}

/* Sikeres üzenet stílusa */
.career-container .success-message {
    margin-top: 25px;
    padding: 18px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 17px;
    display: none; /* Alapból rejtett */
}

/* Mobilnézet a Karrier oldalhoz */
@media (max-width: 768px) {
    .career-section {
        padding: 40px 15px;
    }
    .career-container {
        padding: 25px;
    }
    .career-container h1 {
        font-size: 35px;
        margin-bottom: 20px;
    }
    .career-container h2 {
        font-size: 30px;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .career-container p,
    .career-container ul li {
        font-size: 16px;
    }
    .career-container ul li {
        padding-left: 25px;
    }
    .career-container ul li::before {
        font-size: 18px;
    }
    .position-details {
        padding: 20px 25px;
        margin-top: 25px;
        margin-bottom: 25px;
    }
    .position-details h3 {
        font-size: 26px;
        margin-bottom: 10px;
    }
    .position-details h4 {
        font-size: 22px;
        margin-top: 20px;
        margin-bottom: 8px;
    }
    .position-details ul li {
        font-size: 15px;
        padding-left: 20px;
    }
    .career-container form {
        padding: 25px;
        margin-top: 25px;
    }
    .career-container form label {
        font-size: 18px;
    }
    .career-container input[type="file"] {
        padding: 10px;
        font-size: 16px;
    }
    .career-container input[type="file"]::file-selector-button {
        padding: 8px 12px;
        margin-right: 10px;
    }
    .career-container button[type="submit"] {
        font-size: 20px;
        width: 100%;
        padding: 12px 25px;
        margin-top: 15px;
    }
    .career-container .success-message {
        font-size: 16px;
        padding: 15px;
    }
}