/* Általános beállítások */
:root {
    --primary-bg-color: #0d1117; /* Sötét háttérszín (fekete/antracit) */
    --secondary-bg-color: #161b22; /* Kicsit világosabb sötét (pl. footer, kártyák) */
    --text-color-light: #ffffff; /* Fő szövegszín */
    --text-color-dark: #cccccc; /* Másodlagos szövegszín */
    --accent-color: #007bff; /* Kék akcentus szín (gomb, link hover) */
    --hero-overlay-color: rgba(0, 0, 0, 0.7); /* Kép fölötti sötétítés */
    --font-heading: 'Roboto', sans-serif; /* Példa betűtípus címekhez */
    --font-body: 'Open Sans', sans-serif; /* Példa betűtípus szöveghez */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Simább görgetés a navigációnál */
}

body {
    font-family: var(--font-body);
    color: var(--text-color-light);
    background-color: var(--primary-bg-color);
    line-height: 1.6;
    overflow-x: hidden; /* Megakadályozza a vízszintes görgetést az animációk miatt */
}

/* Elrendezési konténerek */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Fejléc */
header {
    background-color: var(--primary-bg-color);
    color: var(--text-color-light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-left h1 {
    font-family: var(--font-heading);
    font-size: 1.8em;
    margin: 0;
    color: var(--text-color-light);
    letter-spacing: 1px;
    font-weight: 700;
}

.header-left p {
    font-size: 0.8em;
    color: var(--text-color-dark);
    margin-top: 2px;
}

.header-right {
    display: flex;
    align-items: center;
}

.phone-number {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: bold;
    margin-right: 30px;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.phone-number:hover {
    color: var(--accent-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color-light);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* Hamburger menü (mobilra) */
.hamburger {
    display: none;
    font-size: 2em;
    background: none;
    border: none;
    color: var(--text-color-light);
    cursor: pointer;
    z-index: 1001;
}

/* Hős Szekció (Hero Section) */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    background: var(--primary-bg-color);
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: brightness(0.7);
}

/* A digitális "mátrix" overlay a képen */
.hero-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10"><rect width="10" height="10" fill="transparent"/><path d="M0,0 L10,10 M10,0 L0,10" stroke="%23007bff" stroke-opacity="0.1" stroke-width="0.5"/></svg>');
    background-size: 10px 10px;
    opacity: 0.5;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 500px;
    color: var(--text-color-light);
    padding-left: 100px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 700;
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: var(--text-color-light);
    font-weight: 300;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color-light);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Szekciók általános stílusa */
section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

section h2 {
    font-family: var(--font-heading);
    font-size: 2.5em;
    color: var(--text-color-light);
    margin-bottom: 40px;
    font-weight: 600;
}

section p {
    color: var(--text-color-dark);
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* Miért válasszon engem? (Why Me?) Szekció */
#why-me {
    background-color: var(--secondary-bg-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#why-me p {
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* Fő Szolgáltatások Áttekintése (a látványterv alsó része) */
#main-services-overview {
    background-color: var(--primary-bg-color);
    padding: 80px 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    text-align: left;
}

.overview-item h3 {
    font-family: var(--font-heading);
    font-size: 1.8em;
    color: var(--text-color-light);
    margin-bottom: 25px;
}

.overview-item p, .overview-item ul li {
    font-size: 1em;
    color: var(--text-color-dark);
    margin-bottom: 15px;
    line-height: 1.8;
}

.overview-item ul {
    list-style: none;
    padding: 0;
}

.overview-item ul li {
    margin-bottom: 10px;
}

.overview-item ul li strong {
    color: var(--text-color-light);
}

.contact-number-large {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--text-color-light);
    margin-top: 0;
    margin-bottom: 20px;
}

.contact-ip {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--text-color-dark);
    margin-bottom: 5px;
}


/* Szolgáltatások Részletesen (services-detailed) */
#services-detailed {
    background-color: var(--primary-bg-color);
}

#services-detailed .service-category {
    background-color: var(--secondary-bg-color);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-wrap: wrap; /* Törés mobilra */
    align-items: center;
    justify-content: center; /* Mobilon középre igazítja a tartalmat */
}

#services-detailed .service-category h3 {
    font-family: var(--font-heading);
    font-size: 1.8em;
    color: var(--accent-color);
    margin-bottom: 20px;
    width: 100%; /* A cím mindig teljes szélességű */
    text-align: center;
}

#services-detailed .service-category ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
    flex: 1; /* Szöveges rész elfoglalja a maradék helyet */
    padding-right: 20px; /* Távolság a képtől */
}

#services-detailed .service-category ul li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    color: var(--text-color-dark);
    display: flex;
    align-items: center;
}

#services-detailed .service-category ul li:last-child {
    border-bottom: none;
}

#services-detailed .service-category ul li::before {
    content: '✓';
    color: var(--accent-color);
    margin-right: 10px;
    font-weight: bold;
}

#services-detailed .service-category p {
    font-style: italic;
    font-size: 1.1em;
    color: var(--text-color-light);
    text-align: center;
    margin-top: 20px;
    width: 100%; /* Teljes szélesség a leírásnak */
}

.service-image {
    max-width: 300px; /* Kép maximális szélessége */
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0; /* Ne zsugorodjon */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Árnyék a képeknek */
}

/* Kép elrendezés a szolgáltatás blokkban */
.service-image-left {
    order: 1; /* Bal oldalon */
    margin-right: 20px; /* Távolság a szövegtől */
    margin-left: 0;
}

.service-image-right {
    order: 2; /* Jobb oldalon */
    margin-left: 20px; /* Távolság a szövegtől */
    margin-right: 0;
}

/* Szöveges tartalom a kép mellett */
.service-category > div {
    flex: 1;
}

/* Extra képek a Szolgáltatások szekció alján */
.additional-service-images {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 50px;
}

.additional-service-images .extra-image {
    width: 100%;
    max-width: 300px;
    height: 200px; /* Fix magasság, hogy egységesek legyenek */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}


/* Rólam */
#about {
    background-color: var(--primary-bg-color);
    padding-bottom: 0;
}

#about .about-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent-color);
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#about p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    text-align: justify;
}

.about-secondary-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 50px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}


/* Referenciák / Ügyfélvélemények */
#references {
    background-color: var(--secondary-bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-item {
    background-color: var(--primary-bg-color);
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    font-style: italic;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-item p {
    font-size: 1.1em;
    color: var(--text-color-light);
    margin-bottom: 15px;
}

.testimonial-author {
    font-style: normal;
    font-weight: bold;
    color: var(--accent-color);
    font-size: 0.95em;
    text-align: right;
    margin-top: 20px;
    display: block;
}


/* Kapcsolat */
#contact {
    background-color: var(--primary-bg-color);
    padding-bottom: 0;
}

#contact .contact-info {
    font-size: 1.2em;
    margin-bottom: 40px;
}

#contact .contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

#contact .contact-info a:hover {
    color: var(--text-color-light);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    padding: 30px;
    background-color: var(--secondary-bg-color);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--text-color-light);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color-light);
    font-size: 1em;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.checkbox-container a {
    color: var(--accent-color);
    text-decoration: none;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

.contact-form button.btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
}

.map-container {
    width: 100%;
    height: 400px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 50px;
    background-color: var(--primary-bg-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Lábléc (Footer) */
footer {
    background-color: var(--secondary-bg-color);
    color: var(--text-color-dark);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin-bottom: 10px;
    color: var(--text-color-dark);
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--text-color-light);
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
}

.social-icons img {
    width: 30px;
    height: 30px;
    filter: invert(0.8);
    transition: filter 0.3s ease;
}

.social-icons img:hover {
    filter: invert(1);
}

/* Reszponzivitás - Mobil nézet */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .header-left {
        width: 100%;
        margin-bottom: 15px;
    }

    .header-right {
        width: 100%;
        justify-content: center;
    }

    .phone-number {
        margin-right: 15px;
        font-size: 1em;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-bg-color);
        position: absolute;
        top: 80px;
        left: 0;
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    nav ul li a {
        padding: 10px;
        display: block;
    }

    .hamburger {
        display: block;
        order: 1;
        margin-left: 20px;
    }

    .hero {
        height: auto;
        padding: 100px 20px 50px 20px;
        align-items: center;
        text-align: center;
        padding-left: 20px;
    }

    .hero-content {
        padding-left: 20px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .hero-image-container {
        width: 100%;
        position: relative;
        height: 250px;
        order: -1;
        margin-bottom: 30px;
    }

    section {
        padding: 60px 20px;
    }

    section h2 {
        font-size: 2em;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .testimonial-item {
        margin-bottom: 20px;
    }

    .contact-form {
        padding: 20px;
    }

    .map-container {
        height: 300px;
    }

    .about-secondary-image {
        margin-left: auto;
        margin-right: auto;
    }

    /* Szolgáltatások képeinek elrendezése mobilon */
    #services-detailed .service-category {
        flex-direction: column; /* Egymás alá */
    }

    .service-image-left,
    .service-image-right {
        order: 1 !important; /* Képek mindig felül */
        margin: 0 auto 20px auto !important; /* Középre igazítva, térköz alatta */
        max-width: 100%;
    }

    #services-detailed .service-category > div {
        padding-right: 0;
        width: 100%;
    }

    .additional-service-images .extra-image {
        max-width: 100%;
        height: auto; /* Mobilon ne legyen fix magasság, alkalmazkodjon */
    }
}