@import url('https://fonts.googleapis.com/css2?family=Anton&family=Oswald&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oswald', sans-serif;
    background: linear-gradient(135deg, #000000 50%, #0a1f3f 75%, #1c3b6f 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    padding: 1rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    width: 100%; /* Hozzáadva, hogy a belső elemek jól rendeződjenek */
}

.title {
    font-family: 'Anton', sans-serif;
    font-size: 2.8rem;
    color: white;
    user-select: none;
    order: 1;
}

.logo {
    max-height: 60px;
    width: auto;
    user-select: none;
    order: 2;
    filter: brightness(0) invert(1) grayscale(100%) opacity(80%);
}

nav {
    display: flex;
    gap: 1.5rem;
    font-family: 'Anton', sans-serif;
    font-size: 0.95rem;
    color: white;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.3rem 0.5rem;
    transition: transform 0.15s ease;
    cursor: pointer;
    user-select: none;
}

nav a:hover {
    transform: translateY(-3px);
    color: #3399ff;
}

/* Hamburger menü gomb alap stílusai */
.menu-toggle {
    display: none; /* Alapértelmezetten elrejtve asztali nézetben */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute; /* Abszolút pozíció a jobb felső sarokba */
    right: 3rem; /* Eltolás jobbról */
    top: 50%; /* Középre igazítás függőlegesen */
    transform: translateY(-50%); /* Pontos középre igazítás */
    z-index: 1100; /* Magasabb z-index, mint a fejléc többi eleme */
}

.menu-toggle .bar {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #3399ff; /* Kék színű vonalak */
    margin: 6px 0;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Animáció X alakra (opcionális) */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    padding: 3rem 5rem;
    padding-top: 150px;
}

.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
    flex-wrap: nowrap;
}

.content-left {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-text {
    font-family: 'Anton', sans-serif;
    font-size: 2rem;
    color: white;
    line-height: 1.2;
    user-select: none;
    text-align: left;
}

.content-subtext {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #3399ff;
    margin-top: 1rem;
    user-select: none;
    text-align: left;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.btn {
    display: inline-block;
    background-color: #0a1f3f;
    color: #3399ff;
    border: 2px solid #3399ff;
    border-radius: 10px;
    padding: 0.7rem 1.8rem;
    font-family: 'Anton', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.25s ease, color 0.25s ease;
    margin-top: 2rem;
    text-align: center;
    width: fit-content;
}

.btn:hover {
    background-color: #3399ff;
    color: black;
}

.content-right {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
}

.content-image {
    width: 100%;
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
    object-fit: cover;
    user-select: none;
}

section {
    padding: 4rem 3rem;
}

.services,
.testimonials,
.about-us-home,
.quality-assurance,
.partners {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 3rem;
    user-select: none;
}

.service-item {
    flex: 1 1 30%;
    text-align: center;
}

.service-item img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
    object-fit: cover;
    user-select: none;
}

.service-item h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: white;
    margin-top: 1rem;
    user-select: none;
    text-align: center;
}

.service-item p {
    font-family: 'Oswald', sans-serif;
    color: #3399ff;
    font-size: 1rem;
    margin-top: 0.5rem;
    user-select: none;
}

.service-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.about-us-home .about-content {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: white;
    text-align: center;
    line-height: 1.6;
    margin-top: 2rem;
}

.about-us-home .about-content p {
    margin-bottom: 1rem;
    color: #f0f0f0;
}

.about-us-home .btn {
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.testimonial-item {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    flex: 1 1 45%;
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.testimonial-item.slide-in-right {
    transform: translateX(100px);
}

.testimonial-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: white;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    color: #3399ff;
    font-weight: bold;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 150px;
}

.stat-number {
    font-family: 'Anton', sans-serif;
    font-size: 3.5rem;
    color: #3399ff;
    display: block;
    line-height: 1;
}

.stat-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: white;
    display: block;
    margin-top: 0.5rem;
}

.call-to-action-title {
    font-family: 'Anton', sans-serif;
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-top: 5rem;
    margin-bottom: 1rem;
    user-select: none;
}

.call-to-action-subtext {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: #3399ff;
    text-align: center;
    margin-bottom: 3rem;
    user-select: none;
}

.quality-assurance {
    text-align: center;
    margin-top: 4rem;
}

.qa-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #3399ff;
    margin-top: -2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.qa-image-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.qa-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.partners {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 3rem;
}

.partner-logo {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1) grayscale(100%) opacity(70%);
    transition: filter 0.3s ease;
    user-select: none;
}

.partner-logo:hover {
    filter: brightness(1) invert(0) grayscale(0%) opacity(100%);
}

footer {
    background-color: #0a1f3f;
    color: #f0f0f0;
    padding: 2rem 3rem;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto;
}

footer p {
    margin: 0.5rem 0;
}

.about-page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: center;
}

.about-page-text p {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #3399ff;
    color: #3399ff;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    text-align: center;
}

.about-page-text p strong {
    color: #3399ff;
}

.about-history-text {
    max-width: 800px;
    margin: 2.5rem auto;
    text-align: center;
}

.about-history-text p {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #3399ff;
    line-height: 1.6;
}

.image-with-animation {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    overflow: hidden;
}

.animated-image {
    max-width: 700px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
    object-fit: cover;
    user-select: none;

    opacity: 0;
    transform: translateX(-100%);
    animation: slideInFromLeft 1s ease-out forwards;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    user-select: none;
}

.about-mission-text {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.about-mission-text p {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #3399ff;
    line-height: 1.6;
}

.values-list-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.value-item {
    background-color: rgba(51, 153, 255, 0.1);
    border: 1px solid #3399ff;
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    flex: 1 1 calc(33% - 40px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.value-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.value-item p {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    color: #f0f0f0;
    line-height: 1.5;
}

.value-item p strong {
    color: #3399ff;
    font-size: 1.15rem;
}

.team-members-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    padding: 0 20px;
    margin-bottom: 4rem;
}

.team-member {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(51, 153, 255, 0.5);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    max-width: 350px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.team-member.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-member:hover {
    transform: translateY(-8px);
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7);
}

.team-member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #3399ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.team-member h3 {
    font-family: 'Oswald', sans-serif;
    margin-top: 10px;
    color: white;
    font-size: 1.8rem;
    line-height: 1.2;
}

.team-member .position {
    font-family: 'Oswald', sans-serif;
    color: #3399ff;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.team-member .description {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.contact-info-box {
    background-color: rgba(51, 153, 255, 0.1);
    border: 1px solid #3399ff;
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 15px;
    text-align: center;
    box-shadow: inset 0 0 5px rgba(51, 153, 255, 0.3);
}

.contact-info-box p {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    color: #f0f0f0;
    margin: 5px 0;
    line-height: 1.4;
}

.contact-info-box a {
    color: #3399ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info-box a:hover {
    color: white;
}

/* Media Queries */
@media (max-width: 900px) {
    header {
        padding: 1rem 1.5rem;
        /* flex-direction: column; már a fő headerben beállítva */
    }

    .header-top {
        flex-direction: row; /* Mobil nézeten sorban marad, de a gomb jobbra tolódik */
        justify-content: space-between; /* Elosztja a teret */
        gap: 0; /* Nincs rés a gomb és a logó között */
        margin-bottom: 0; /* Nincs margó a nav előtt, mert az külön lesz kezelve */
    }

    .title {
        font-size: 2rem;
        order: 2; /* Cím a középén */
        flex-grow: 1; /* Cím töltheti ki a rendelkezésre álló helyet */
        text-align: center; /* Középre igazítva */
    }

    .logo {
        order: 1; /* Logó balra */
        max-height: 50px;
    }

    /* Hamburger menü gomb megjelenítése mobil nézetben */
    .menu-toggle {
        display: block; /* Megjelenítjük a hamburger gombot */
        order: 3; /* Gomb jobbra */
        position: static; /* Visszaállítjuk a statikus pozícióra */
        transform: none; /* Kikapcsoljuk a transzformációt */
        padding: 0; /* Eltávolítjuk a paddinget, a bar marginja kezeli */
    }

    nav {
        display: none; /* Alapértelmezetten elrejtjük a menüt */
        flex-direction: column; /* Menüpontok egymás alatt */
        width: 100%;
        background-color: #000000; /* Háttérszín a menünek */
        position: absolute; /* Abszolút pozíció a fejléc alatt */
        top: 100%; /* A fejléc aljánál kezdődik */
        left: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
        padding: 1rem 0; /* Belső padding */
        text-align: center;
        transition: transform 0.3s ease-out, opacity 0.3s ease-out;
        transform: translateY(-100%); /* Kezdetben elrejtve felül */
        opacity: 0;
        pointer-events: none; /* Ne lehessen kattintani, ha rejtve van */
    }

    nav.show {
        display: flex; /* Megjelenítjük a menüt, ha a 'show' osztály aktív */
        transform: translateY(0); /* Lenyílik felülről */
        opacity: 1;
        pointer-events: auto; /* Lehessen kattintani, ha látható */
    }

    nav a {
        padding: 0.8rem 1rem; /* Nagyobb kattintható terület */
        font-size: 1.1rem;
    }

    main {
        padding: 2rem 1.5rem;
        padding-top: 180px; /* Ezt valószínűleg *csökkenteni* kell, mivel a nav most a header alatt van */
    }

    .content-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .content-left,
    .content-right {
        flex: 1 1 100%;
    }

    .content-text,
    .content-subtext {
        text-align: center;
    }

    .btn {
        margin-left: auto;
        margin-right: auto;
    }

    section {
        padding: 2rem 1.5rem;
    }

    .service-item {
        flex: 1 1 100%;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .service-item h3 {
        font-size: 1.5rem;
    }

    .testimonial-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .testimonial-item {
        max-width: 100%;
        flex: 1 1 100%;
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .stats-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-text {
        font-size: 1rem;
    }

    .call-to-action-title {
        font-size: 2rem;
        margin-top: 3rem;
        margin-bottom: 1rem;
    }

    .call-to-action-subtext {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .qa-text {
        font-size: 1rem;
        margin-top: -1.5rem;
    }

    .qa-image {
        max-width: 300px;
    }

    .partners-grid {
        gap: 2rem;
    }

    .partner-logo {
        max-width: 120px;
    }

    .about-history-text,
    .about-mission-text {
        padding: 0 1rem;
    }
    .about-history-text p,
    .about-mission-text p {
        font-size: 1rem;
    }
    .about-subtitle {
        font-size: 2rem;
    }
    .animated-image {
        max-width: 95%;
    }

    .team-member {
        max-width: 95%;
        padding: 20px;
    }
    .team-member h3 {
        font-size: 1.5rem;
    }
    .team-member .position {
        font-size: 1.1rem;
    }
    .team-member .description {
        font-size: 0.95rem;
    }
    .team-member-photo {
        width: 120px;
        height: 120px;
    }

    .values-list-container {
        flex-direction: column;
        gap: 15px;
    }
    .value-item {
        flex: 1 1 95%;
        max-width: 95%;
        padding: 1.2rem;
    }
    .value-item p {
        font-size: 0.95rem;
    }
    .value-item p strong {
        font-size: 1.05rem;
    }
}
.certificates-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.certificate-box {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 250px;
}

.certificate-box img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: transparent !important;
    border-radius: 5px;
}

.certificate-text {
    color: #0b5ed7;
    margin-top: 10px;
    font-weight: bold;
}
/* --- ÚJ STÍLUSOK A GÉPPARKOZ A "RÓLUNK" OLDALON --- */
.machine-item {
    flex: 1 1 30%;
    min-width: 280px;
    max-width: 350px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(51, 153, 255, 0.5);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    margin: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
}

.machine-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.machine-item.delay-1 {
    transition-delay: 0.1s;
}
.machine-item.delay-2 {
    transition-delay: 0.2s;
}


.machine-item:hover {
    transform: translateY(-8px);
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7);
}

.machine-item-photo {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
    object-fit: cover;
}

.machine-item h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    color: #3399ff;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.machine-item p {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    color: #3399ff;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .machine-item {
        flex: 1 1 100%;
        max-width: 90%;
    }
}
/* Szolgáltatások oldal specifikus stílusok */
.services-page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: center;
}

.services-intro-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #3399ff;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
    user-select: none;
}

.services-intro-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: white;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-page-main-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.services-page-main-block.reverse {
    flex-direction: row-reverse;
}

.services-page-text {
    flex: 1;
    font-family: 'Oswald', sans-serif;
    color: #3399ff; /* Visszaállítva az eredeti színre */
    line-height: 1.7;
    text-align: left;
    font-size: 1.1rem; /* Megtartva az eredeti font-size-t */
}

.services-page-image-container {
    flex: 0 0 auto;
    width: 40%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;

    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(51, 153, 255, 0.5);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.services-page-image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: none;
}

.services-page-image-container:hover {
    transform: translateY(-8px);
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7);
}

@media (max-width: 900px) {
    .services-page-main-block {
        flex-direction: column; /* Oszlopba rendezés mobil nézetben */
        text-align: center;
    }

    .services-page-main-block.reverse {
        flex-direction: column; /* A reverse osztály is oszlopba rendeződik */
    }

    .services-page-image-container {
        width: 90%; /* Kisebb szélesség mobil nézetben */
        max-width: 350px; /* Max szélesség beállítása */
        padding: 20px;
        margin-left: auto; /* Középre igazítás */
        margin-right: auto; /* Középre igazítás */
        order: 1; /* A kép kerül felülre */
    }

    .services-page-text {
        text-align: center; /* Középre igazítás */
        padding: 0 10px; /* Padding a szövegnek, hogy ne lógjon ki */
        word-wrap: break-word; /* Szó törése, ha túl hosszú */
        overflow-wrap: break-word; /* Szó törése, ha túl hosszú */
        order: 2; /* A szöveg kerül alulra */
        margin-top: 1.5rem; /* Hozzáadott margó a kép alatt */
    }

    .services-intro-title {
        font-size: 1.1rem;
    }

    .services-intro-text {
        font-size: 1rem;
        padding: 0 1rem;
    }
}
/* --- ÚJ STÍLUSOK A REFERENCIÁK OLDALHOZ --- */

.reference-project {
    margin-bottom: 4rem;
    text-align: center;
}

.reference-project p {
    margin-bottom: 0.5rem;
    font-family: 'Oswald', sans-serif;
    line-height: 1.6;
}

.reference-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.reference-description {
    font-size: 1.1rem;
    color: white;
    max-width: 800px;
    margin: 0 auto 1rem auto;
}

.reference-client-info {
    font-size: 1rem;
    color: #3399ff;
    margin-bottom: 0.2rem;
}

.reference-gallery-container {
    margin-top: 2rem;
}

.clients-logo-container {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.client-logo-item {
    flex: 1 1 20%;
    min-width: 180px;
    max-width: 250px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(51, 153, 255, 0.5);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    margin: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
}

.client-logo-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.client-logo-item.delay-1 { transition-delay: 0.1s; }
.client-logo-item.delay-2 { transition-delay: 0.2s; }
.client-logo-item.delay-3 { transition-delay: 0.3s; }

.client-logo-item:hover {
    transform: translateY(-8px);
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.client-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 1rem;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-logo-item:hover .client-logo {
    filter: grayscale(0%);
}

.client-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #3399ff;
    font-weight: bold;
}

.testimonials-container {
    max-width: 900px;
    margin: 2rem auto 4rem auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.testimonial-item {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(51, 153, 255, 0.5);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    margin: 0 auto 2rem auto;
    max-width: 600px;
}

.testimonial-item:hover {
    transform: translateY(-8px);
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7);
}

.testimonial-item p {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: white;
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: center;
}

.testimonial-item .author {
    font-size: 1rem;
    color: #3399ff;
    text-align: right;
    font-style: italic;
    margin-top: 0;
}

@media (max-width: 768px) {
    .client-logo-item {
        flex: 1 1 45%;
        min-width: unset;
        max-width: unset;
    }
}

@media (max-width: 480px) {
    .client-logo-item {
        flex: 1 1 90%;
    }
}
/* --- ÚJ STÍLUSOK A KAPCSOLAT OLDALHOZ (VÉGLEGESÍTETT ÉS KIEGYENSÚLYOZOTT VERZIÓ) --- */

.contact-main-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: flex-start;
}

.contact-form-container {
    flex: 1 1 45%;
    min-width: 320px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(51, 153, 255, 0.5);
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-form-container h2.about-subtitle {
    margin-top: 0.5rem;
    margin-bottom: 0.6rem;
    font-size: 2em;
}

.contact-form {
    width: 100%;
    max-width: 500px;
}

.form-label {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #3399ff;
    margin-bottom: 0.1rem;
    margin-top: 0.6rem;
    text-align: left;
    width: 100%;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #3399ff;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    box-shadow: inset 0 0 5px rgba(51, 153, 255, 0.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: white;
    box-shadow: inset 0 0 8px rgba(51, 153, 255, 0.5);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit-btn {
    display: block; /* Blokkszinten, hogy középre igazítható legyen */
    width: fit-content; /* Tartalomhoz igazodó szélesség */
    margin: 1.5rem auto 0 auto; /* Középre igazítás */
    background-color: #0a1f3f;
    color: #3399ff;
    border: 2px solid #3399ff;
    border-radius: 10px;
    padding: 0.8rem 2.5rem;
    font-family: 'Anton', sans-serif;
    font-size: 1.3rem;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.form-submit-btn:hover {
    background-color: #3399ff;
    color: black;
}

/* Információs rész és térkép konténer */
.contact-info-map-container {
    flex: 1 1 45%;
    min-width: 320px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(51, 153, 255, 0.5);
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column; /* Tartalom oszlopban */
    align-items: center; /* Középre igazítja a belső tartalom */
}

.contact-info-map-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-info-map-container h2.about-subtitle {
    margin-top: 0.5rem;
    margin-bottom: 0.6rem;
    font-size: 2em;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #f0f0f0;
    max-width: 400px; /* Szélesség korlátozása */
    width: 100%; /* Kitölti a rendelkezésre álló szélességet */
    text-align: left; /* Balra igazítás */
}

.contact-info-item i { /* Ikonokhoz (Font Awesome) */
    color: #3399ff;
    font-size: 1.5rem;
    min-width: 30px; /* Fix ikon szélesség a rendezett elrendezéshez */
    text-align: center;
}

.contact-info-item a {
    color: #3399ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info-item a:hover {
    color: white;
}

.map-container {
    width: 100%;
    max-width: 500px; /* Max szélesség a térképnek */
    height: 300px;
    border-radius: 10px;
    overflow: hidden; /* A térkép sarkainak lekerekítése */
    margin-top: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0; /* Eltávolítjuk az alapértelmezett iframe keretet */
}

/* Media Queries a Kapcsolat oldalhoz */
@media (max-width: 900px) {
    .contact-main-grid {
        flex-direction: column;
        gap: 2rem; /* Kisebb rés mobil nézeten */
    }

    .contact-form-container,
    .contact-info-map-container {
        flex: 1 1 100%; /* Teljes szélesség mobilon */
        min-width: unset; /* Ne korlátozza a min-width */
        padding: 1.5rem; /* Kisebb padding */
    }

    .contact-form-container h2.about-subtitle,
    .contact-info-map-container h2.about-subtitle {
        font-size: 1.8em; /* Kisebb címek */
    }

    .contact-info-item {
        font-size: 1rem;
        flex-direction: row; /* Alapértelmezett sorrend, de ha kell, változtatható */
        justify-content: center; /* Középre igazítás */
        text-align: center;
    }

    .contact-info-item i {
        font-size: 1.3rem;
        min-width: 25px; /* Kicsit kisebb ikonméret */
    }

    .map-container {
        height: 250px; /* Kisebb térkép mobil nézeten */
        max-width: 90%; /* Kitölti a konténer 90%-át */
    }

    .form-submit-btn {
        padding: 0.7rem 2rem;
        font-size: 1.2rem;
    }
}
@media (max-width: 500px) {
    .contact-form-container,
    .contact-info-map-container {
        padding: 1rem;
    }
    .form-input,
    .form-textarea {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    .form-submit-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1.1rem;
    }
    .contact-info-item {
        font-size: 0.9rem;
    }
    .contact-info-item i {
        font-size: 1.1rem;
    }
}