/* --- ALAP STÍLUSOK --- */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #333;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* --- NAVIGÁCIÓS SÁV (NAVBAR) --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #444, #666);
    padding: 15px 5%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
    border-bottom: 2px solid #555;
    animation: fadeInNavbar 2s ease-in-out forwards;
}

@keyframes fadeInNavbar {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.navbar img {
    height: 50px;
    transform: scale(1.4);
    object-fit: contain;
}

.navbar .menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    flex-grow: 1;
}

.navbar .menu a {
    letter-spacing: 0.1em;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    position: relative;
}

.navbar .menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #D2B48C;
    transition: width 0.3s ease;
}

.navbar .menu a:hover::after {
    width: 100%;
}

.navbar .menu a:hover {
    color: #ffffff;
}

.navbar .login-button {
    background-color: #5C4033;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-left: auto;
    text-decoration: none;
    display: inline-block;
}

.navbar .login-button:hover {
    background-color: #8B4513;
    transform: translateY(-3px);
}

/* --- HAMBURGER MENÜ --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    left: 5%;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px;
}

@media (max-width: 768px) {
    .navbar {
        justify-content: center;
        padding: 10px 5%;
    }
    .navbar img {
        position: absolute;
        left: 50%;
        transform: translateX(-50%) scale(1.4);
    }
    .hamburger {
        display: flex;
    }
    .navbar .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(68, 68, 68, 0.9);
        backdrop-filter: blur(10px);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        border-radius: 10px;
        padding: 10px;
    }
    .navbar .menu.active {
        display: flex;
    }
    .navbar .menu a {
        padding: 10px;
        text-align: center;
    }
}

/* --- HERO SZEKCIÓ --- */
.hero-section {
    padding-top: 50px;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('qr_stone_background.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    text-align: center;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

.hero-section .text-container,
.hero-section .sub-text-container {
    background: #5C4033;
    padding: 10px 20px;
    margin-top: -250px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
    text-align: center;
    width: fit-content;
    position: relative;
}

.hero-section .text-container {
    top: -270px;
}

.hero-section .sub-text-container {
    top: 10px;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #333);
}

.hero-section h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
}

.hero-section p {
    margin: 0;
    font-size: clamp(1rem, 3vw, 1.5rem);
}

/* --- SZOLGÁLTATÁS ÉS TUDTAD SZEKCIÓ --- */
.gradient-wrapper {
    background: linear-gradient(180deg, #222, #444);
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.service-section,
.tudtad-section {
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
    min-height: 80vh;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: relative;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.service-section.visible,
.tudtad-section.visible {
    opacity: 1;
}

/* --- SZOLGÁLTATÁS DOBOZOK --- */
.service-box,
.tudtad-box {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 20px auto;
    z-index: 10;
    text-align: center;
    box-sizing: border-box;
}

.service-box:hover,
.tudtad-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.service-box h2,
.tudtad-box h2 {
    font-size: 1.75rem;
    color: #D2B48C;
    margin: 20px 0;
}

.service-box p,
.tudtad-box p {
    font-size: 1.25rem;
    color: #555;
}

.service-box button,
.tudtad-box .take-there-button {
    background-color: #D2B48C;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.service-box button:hover,
.tudtad-box .take-there-button:hover {
    background-color: #8B4513;
}

/* --- QR KÓDOK STÍLUSAI --- */
.qr-code {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.3;
    z-index: 1;
    object-fit: cover;
    filter: invert(1);
}

/* --- MODÁL STÍLUSOK --- */
.modal {
    display: none; /* Alapértelmezett állapotban rejtve */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #444;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
    color: white;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* --- LÁBLÉC STÍLUS --- */
footer {
    background: linear-gradient(to right, #444, #555, #444);
    color: #fff;
    text-align: center;
    padding: 20px;
    width: 100%;
    border-top: 2px solid #555;
    margin-top: auto;
    box-sizing: border-box;
}
