/* Alap stílusok */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-color: #fff;
}

.hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1; /* Alacsony z-index, hogy a tartalom a navigáció alatt maradjon */
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 2; /* Magasabb, mint a hero, hogy ráfedje a sötét réteget */
}

/* NAV stílusok */
.main-nav {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px 40px;
    position: relative;
    z-index: 100; /* Nagyon magas z-index, hogy a navigáció mindig legfelül legyen */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0 20px;
}

.logo-with-text {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-with-text img {
    height: 40px;
    width: auto;
    max-width: 100px;
}

.company-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links li a:hover {
    background-color: #333;
    color: white;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.hero-content {
    text-align: center;
    padding-bottom: 100px;
    position: relative;
    z-index: 3; /* Magasabb, mint a hero::after, de alacsonyabb, mint a navigáció */
}

.hero-content h1 {
    font-size: 3rem;
}

.btn-primary {
    display: inline-block;
    margin-top: 20px;
    background-color: #444;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #222;
}

.about-section {
    padding: 80px 20px;
    background-color: #f7f7f7;
}

.about-section .container {
    max-width: 900px;
    margin: 0 auto;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #eee;
}

.footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
}

.container.center {
    text-align: center;
}

/* Galéria szekció */
.gallery-section {
    padding: 80px 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item h3 {
    margin: 20px 0 0;
    font-size: 1.5rem;
}

/* Kép tárolója */
.image-wrapper {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    margin-top: 15px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Képek stílusa */
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lapozó gombok */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 10px;
    cursor: pointer;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
    visibility: hidden;
    opacity: 0;
}

.prev-btn {
    left: 10px;
    border-radius: 50%;
}

.next-btn {
    right: 10px;
    border-radius: 50%;
}

.gallery-item:hover .prev-btn,
.gallery-item:hover .next-btn {
    visibility: visible;
    opacity: 1;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Modális ablak stílusai */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    position: relative;
    max-width: 800px;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.modal-caption {
    margin-top: 10px;
    text-align: center;
    color: #ccc;
    font-size: 18px;
    font-style: italic;
    position: absolute;
    bottom: -30px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1000;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}

/* Modális ablakban lévő nyilak */
.modal-prev-btn, .modal-next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    transform: translateY(-50%);
    z-index: 1000;
}

.modal-next-btn {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.modal-prev-btn {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.modal-prev-btn:hover, .modal-next-btn:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Mobil nézet - Hamburger menü */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        position: relative;
        z-index: 100; /* Legmagasabb z-index */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 10px 0;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 99;
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        font-size: 18px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 25px;
        height: 20px;
        cursor: pointer;
        position: relative;
        z-index: 101; /* Legmagasabb, hogy a menü felett legyen */
    }

    .hamburger-menu .bar {
        width: 100%;
        height: 3px;
        background-color: white;
        transition: all 0.3s ease-in-out;
    }

    .hero-content {
        position: relative;
        z-index: 1; /* Alacsonyabb, mint a navigáció */
    }
}

/* Kapcsolat szekció stílusai */
.contact-section {
    padding: 80px 20px;
    text-align: center; /* A fő szekció tartalmát középre igazítja */
}

.contact-info {
    max-width: 600px; /* Korlátozza a tartalom szélességét a jobb olvashatóság érdekében */
    margin: 0 auto; /* Középre igazítja a div-et */
    line-height: 1.6; /* Növeli a sorok közötti távolságot */
}

.contact-info p {
    margin-bottom: 20px;
}

.contact-info strong {
    font-size: 1.2em;
    display: block;
    margin-bottom: 5px;
}