/* Alapbeállítások */
:root {
    --primary-color: #e40000; /* Motorsport piros */
    --dark-bg: #1a1a1a;
    --light-bg: #2c2c2c;
    --text-color: #f0f0f0;
    --dark-text: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigáció */
header {
    background-color: rgba(26, 26, 26, 0.9);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

nav .logo img {
    height: 40px;
    margin-right: 10px;
}

nav .logo span {
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Szekciók általános stílusa */
section {
    padding: 6rem 5% 4rem;
}

section:nth-child(odd) {
    background-color: var(--light-bg);
}

h2 {
    font-family: 'Titillium Web', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

/* Hero szekció */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/vojna/img/vojnamuhely.jpg') no-repeat center center/cover;
    color: white;
}

.hero-content h1 {
    font-family: 'Titillium Web', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #c00;
}

/* Rólunk szekció */
#about .about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

#about img {
    max-width: 40%;
    border-radius: 8px;
}

/* Szolgáltatások */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--dark-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #444;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Galéria */
.gallery-grid {
    display: grid;
    /* A '1fr' helyett '300px'-et használunk, hogy a képek ne nyúljanak szét */
    grid-template-columns: repeat(auto-fit, minmax(300px, 300px));
    gap: 1rem;
    justify-content: center; /* Középre igazítja a rácsot, ha van hely */
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    height: 220px; /* Fix magasság a bélyegképeknek */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Kapcsolat */
.contact-container {
    display: flex;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    background-color: var(--dark-bg);
    padding: 2rem;
    border-radius: 8px;
}

.contact-info, .contact-map {
    flex: 1;
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.8rem;
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.contact-map iframe {
    border-radius: 8px;
}

/* Lábléc */
footer {
    text-align: center;
    padding: 2rem 5%;
    background-color: #111;
    border-top: 1px solid #333;
}

/* Reszponzív beállítások kisebb képernyőkre */
@media (max-width: 768px) {
    nav ul {
        display: none; /* Egyszerűsítésként elrejtjük, de ide egy hamburger menü kellene */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    #about .about-content {
        flex-direction: column;
    }
    #about img {
        max-width: 80%;
    }
    .contact-container {
        flex-direction: column;
    }
}
