/* =========================================
   1. ALAPBEÁLLÍTÁSOK (RESET & GLOBÁLIS)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    /* Sötétkék ipari háttér az egész oldalnak */
    background-color: #2c3e50;
    /* Világos szövegszín a kontraszt miatt */
    color: #ecf0f1;
}

/* Címsorok egységes stílusa */
h1, h2, h3, h4 {
    color: #ffffff;
    margin-bottom: 15px;
}

/* Linkek alapbeállítása */
a {
    text-decoration: none;
    color: inherit;
}

/* Általános konténer középre igazításhoz */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

/* =========================================
   2. NAVIGÁCIÓ (MENÜ)
   ========================================= */
.navbar {
    background-color: #2c3e50;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky; /* Hogy görgetéskor ott maradjon */
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    color: #ecf0f1;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #e67e22; /* Narancs hover effekt */
}

/* =========================================
   3. HERO SZEKCIÓ (VIDEÓ HÁTTÉR)
   ========================================= */
.hero {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

/* Háttérvideó beállításai */
.back-video {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
}

/* Sötétítő réteg a videó fölött */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* =========================================
   4. GOMBOK (BUTTONS)
   ========================================= */
.btn {
    display: inline-block;
    background-color: #e67e22;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-weight: bold;
    margin-top: 20px;
}

.btn:hover {
    background-color: #d35400;
    transform: scale(1.05);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* =========================================
   5. SZOLGÁLTATÁSOK & ALOLDALAK
   ========================================= */

/* Fő profil kártyák (Index oldal) */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Kártya stílus (Sötét doboz) */
.project-card, 
.feature-card {
    background: #34495e; /* Kicsit világosabb kék/szürke */
    border: 1px solid #46637f;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s, border-color 0.3s;
    display: block; /* Linkként is doboz maradjon */
}

.project-card:hover, 
.feature-card:hover {
    transform: translateY(-5px);
    border-color: #e67e22; /* Narancs keret hoverkor */
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3, 
.feature-card h3 {
    padding: 15px 15px 5px;
    color: #e67e22; /* Narancs cím */
}

.project-card p, 
.feature-card p {
    padding: 0 15px 15px;
    font-size: 0.95rem;
    color: #bdc3c7; /* Világosszürke szöveg */
}

/* Részletes szolgáltatás lista (Aloldalak) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    padding: 30px;
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    color: #e67e22;
    margin-bottom: 20px;
}

/* Aloldalak felső része (Szöveg + Kép) */
.service-hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 60px 20px;
    flex-wrap: wrap;
    text-align: left;
}

.service-text {
    flex: 1;
    min-width: 300px;
}
.service-text .lead {
    font-size: 1.2rem;
    color: #bdc3c7;
    margin-bottom: 25px;
}

.service-image {
    flex: 1;
    min-width: 300px;
}
.service-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* =========================================
   6. FOLYAMAT LÉPÉSEK (PROCESS)
   ========================================= */
.process-section {
    background-color: transparent;
    padding: 60px 0;
    text-align: center;
}

.process-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: #34495e; /* Kártya szín */
    border: 1px solid #46637f;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.step h4 {
    color: #e67e22;
    margin-top: 10px;
}

.step p {
    color: #bdc3c7;
}

.step-number {
    background: #e67e22;
    color: white;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* =========================================
   7. KAPCSOLAT & ŰRLAP
   ========================================= */
.contact-section {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid #46637f;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    text-align: left;
}

/* Külön konténer az üzenet mezőknek, hogy biztosan egymás alatt legyenek */
#message-fields {
    display: flex;
    flex-direction: column; /* FONTOS: Ez teszi egymás alá őket */
    gap: 15px; /* Távolság a mezők között */
    width: 100%;
}

/* Beviteli mezők stílusa */
.contact-form input, 
.contact-form textarea {
    display: block; /* Biztosítjuk, hogy blokk elem legyen */
    width: 100%; /* Teljes szélesség */
    max-width: 100%; /* Ne lógjon túl */
    box-sizing: border-box; /* A keret is beleszámít a szélességbe */
    padding: 12px 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    background-color: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border: 2px solid #e67e22;
    box-shadow: 0 0 8px rgba(230, 126, 34, 0.5);
}

/* Választó gombok */
.contact-type-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.radio-label span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 30px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + span {
    background: #e67e22;
    border-color: #e67e22;
    font-weight: bold;
}

/* Gomb */
.contact-form .btn {
    width: 100%;
    margin-top: 10px;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    background-color: #e67e22;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form .btn:hover {
    background-color: #d35400;
}
/* =========================================
   8. LÁBLÉC (FOOTER)
   ========================================= */
footer {
    background-color: #1a252f; /* Majdnem fekete */
    color: #7f8c8d;
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid #2c3e50;
    font-size: 0.9rem;
}

/* =========================================
   9. MOBIL OPTIMALIZÁLÁS (RESPONSIVE)
   ========================================= */
@media (max-width: 768px) {
    
    /* Videó elrejtése, kép megjelenítése */
    .back-video {
        display: none !important;
    }

    .hero {
        background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/mobil-hatter.jpg');
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        height: 100vh;
    }

    .hero h1 {
        font-size: 2rem;
        padding: 0 10px;
    }

    /* Navigáció egyszerűsítése */
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 1rem;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        padding: 0;
    }

    .nav-links li a {
        margin: 0 10px;
        font-size: 0.9rem;
    }

    /* Kétoszlopos részek egyoszlopossá tétele */
    .service-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .service-text, .service-image {
        width: 100%;
    }
}