/* ================= VÁLTOZÓK & ALAPBEÁLLÍTÁSOK ================= */
:root {
    --primary-blue: #1A5F7A;
    --primary-green: #22C55E;
    --gradient: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    --bg-white: #FFFFFF;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --font-elegant: 'Playfair Display', serif;
    --font-modern: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-modern);
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    width: 100%;
    line-height: 1.6;
}
h1, h2, h3, h4 { text-transform: none !important; }

/* ================= FELSŐ LÉC ================= */
.top-bar {
    background-color: var(--primary-blue);
    color: white;
    font-size: 0.85rem;
    padding: 0.6rem 5%;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
    letter-spacing: 0.5px;
}
.top-bar span { display: flex; align-items: center; gap: 0.5rem; }

/* ================= NAVIGÁCIÓ ================= */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); position: sticky; top: 0;
    z-index: 1000; transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar.scrolled { padding: 0.8rem 5%; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.logo-img {
    width: 55px; height: 55px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--primary-green);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.15);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: white;
}
.logo-img:hover { transform: scale(1.08) rotate(3deg); }
.brand-text {
    font-family: var(--font-elegant); font-size: 1.3rem;
    font-weight: 700; color: var(--primary-blue); line-height: 1.2;
}
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a {
    text-decoration: none; color: var(--text-dark);
    font-weight: 600; font-size: 0.95rem; position: relative;
    transition: var(--transition);
}
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background: var(--gradient);
    transition: var(--transition);
}
.nav-links a:hover { color: var(--primary-blue); }
.nav-links a:hover::after { width: 100%; }
.menu-toggle { 
    display: none; 
    cursor: pointer; 
    font-size: 1.5rem; 
    color: var(--primary-blue);
    background: none;
    border: none;
}

/* ================= HERO SLIDER ================= */
.hero-slider {
    position: relative; width: 100%; height: 85vh;
    min-height: 500px; overflow: hidden; background-color: #000;
}
.slides { width: 100%; height: 100%; position: relative; }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    opacity: 0; transition: opacity 1s ease-in-out; z-index: 1;
    display: flex; flex-direction: column; justify-content: center;
    align-items: center; text-align: center; padding: 0 10%;
}
.slide.active { opacity: 1; z-index: 2; }
.slide::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%;
    height: 100%; background: rgba(0, 0, 0, 0.4); z-index: -1;
}
.hero-slider h1 {
    font-family: var(--font-elegant); font-size: 3.8rem; line-height: 1.1;
    margin-bottom: 1.5rem; color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    max-width: 900px; opacity: 0; transform: translateY(20px);
    transition: all 0.8s ease 0.5s;
}
.hero-slider p {
    font-size: 1.2rem; color: rgba(255,255,255,0.9); max-width: 650px;
    margin-bottom: 2.5rem; text-shadow: 0 1px 5px rgba(0,0,0,0.3);
    opacity: 0; transform: translateY(20px); transition: all 0.8s ease 0.7s;
}
.slide.active h1, .slide.active p, .slide.active .btn { opacity: 1; transform: translateY(0); }
.slider-dots {
    position: absolute; bottom: 30px; left: 50%;
    transform: translateX(-50%); z-index: 10; display: flex; gap: 12px;
}
.dot {
    width: 12px; height: 12px; border-radius: 50%;
    background-color: rgba(255,255,255,0.5); cursor: pointer;
    transition: var(--transition); border: 2px solid transparent;
}
.dot:hover { background-color: rgba(255,255,255,0.8); }
.dot.active { background-color: var(--primary-green); transform: scale(1.2); border-color: white; }

.btn {
    padding: 0.9rem 2.2rem; font-size: 1rem; font-weight: 600;
    color: white; background: var(--gradient); border: none;
    border-radius: 50px; cursor: pointer; text-decoration: none;
    display: inline-block; opacity: 0; transform: translateY(20px);
    transition: all 0.8s ease 0.9s, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3);
}

/* ================= ÁLTALÁNOS SZEKCIÓK ================= */
section { padding: 6rem 5%; width: 100%; }
.section-title {
    font-family: var(--font-elegant); font-size: 2.6rem;
    text-align: center; margin-bottom: 1rem; color: var(--primary-blue);
}
.section-subtitle {
    text-align: center; color: var(--text-light); font-size: 1.1rem;
    margin-bottom: 4rem; max-width: 700px; margin-left: auto; margin-right: auto;
}
.content-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem; max-width: 1200px; margin: 0 auto;
}

/* ================= KÁRTYÁK & VIZUÁLIS EXTRÁK ================= */
.card {
    background: #f9fafb; padding: 2.5rem; border-radius: 16px;
    border-top: 4px solid var(--primary-green);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(26, 95, 122, 0.1); 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    border-top-color: var(--primary-blue);
}

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

/* ================= SZÁMLÁLÓK ================= */
.stats-section {
    background: var(--primary-blue); color: white; padding: 4rem 5%;
    background-image: radial-gradient(circle at top right, rgba(34, 197, 94, 0.2), transparent);
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; max-width: 1000px; margin: 0 auto; }
.stat-item h3 { font-size: 3.5rem; font-family: var(--font-elegant); color: var(--primary-green); margin-bottom: 0.5rem; }
.stat-item p { font-size: 1.1rem; font-weight: 600; letter-spacing: 1px; }

/* ================= GALÉRIA & LIGHTBOX ================= */
#galeria { background-color: #f8fafc; }
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 240px; gap: 1.5rem; max-width: 1300px; margin: 0 auto;
}
.gallery-item {
    overflow: hidden; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: relative; cursor: pointer;
}
@media (min-width: 768px) {
    .gallery-item:nth-child(3n) { grid-column: span 2; }
    .gallery-item:nth-child(5n) { grid-row: span 2; }
}
.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.gallery-item:hover .gallery-img { transform: scale(1.1); }
.gallery-item::after {
    content: '⤢ Nagyítás'; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 95, 122, 0.6); opacity: 0; transition: var(--transition);
    display: flex; justify-content: center; align-items: center; color: white;
    font-weight: bold; font-size: 1.2rem; backdrop-filter: blur(2px);
}
.gallery-item:hover::after { opacity: 1; }

/* Lightbox Modal */
.lightbox {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}
.lightbox-content {
    margin: auto; display: block; max-width: 90%; max-height: 90vh;
    position: relative; top: 50%; transform: translateY(-50%);
    border-radius: 8px; box-shadow: 0 0 30px rgba(0,0,0,0.5); animation: zoom 0.3s;
}
.close-lightbox {
    position: absolute; top: 20px; right: 35px; color: #f1f1f1;
    font-size: 40px; font-weight: bold; cursor: pointer; z-index: 2001; transition: 0.3s;
}
.close-lightbox:hover { color: var(--primary-green); }
@keyframes zoom { from {transform: translateY(-50%) scale(0.9)} to {transform: translateY(-50%) scale(1)} }

/* ================= SZPONZOROK ================= */
.sponsors-section {
    background-color: var(--bg-white);
    padding: 4rem 5%;
    border-top: 1px solid #f1f5f9;
}
.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}
.sponsor-item {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
    border-bottom: 3px solid transparent; 
}
.sponsor-item img {
    height: 70px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%); 
    opacity: 0.6;
    transition: all 0.4s ease;
}
.sponsor-item:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid #D4AF37; 
    background-color: #f8fafc;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.1); 
}
.sponsor-item:hover img {
    filter: grayscale(0%); 
    opacity: 1;
}

/* ================= VISSZA A TETEJÉRE GOMB ================= */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

#backToTop {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    z-index: 99;
    border: none; 
    outline: none; 
    background-color: var(--primary-blue); 
    color: white;
    cursor: pointer; 
    padding: 15px; 
    border-radius: 50%; 
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#backToTop:hover { 
    background-color: var(--primary-green); 
    animation: pulse 1.5s infinite; 
}

/* ================= ANIMÁCIÓK ================= */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ================= LÁBLÉC ================= */
footer { background-color: var(--text-dark); color: white; padding: 5rem 5% 2rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; max-width: 1200px; margin: 0 auto 4rem; }
.footer-col h4 { font-family: var(--font-elegant); font-size: 1.4rem; margin-bottom: 1.8rem; color: var(--primary-green); }
.footer-col p, .footer-col a { color: #d1d5db; text-decoration: none; line-height: 1.9; transition: var(--transition); margin-bottom: 0.8rem; display: block; }
.footer-col a:hover { color: var(--primary-green); transform: translateX(3px); }
.footer-bottom { border-top: 1px solid #374151; padding-top: 2.5rem; text-align: center; color: #9ca3af; font-size: 0.9rem; }

/* ================= RESZPONZIVITÁS ================= */
@media (max-width: 768px) {
    .top-bar { justify-content: center; font-size: 0.8rem; padding: 0.5rem; }
    .hero-slider h1 { font-size: 2.4rem; }
    .nav-links {
        display: none; flex-direction: column; position: absolute; top: 100%;
        left: 0; width: 100%; background: white; padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); gap: 1.5rem; text-align: center;
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .stat-grid { grid-template-columns: 1fr; gap: 3rem; }
    .sponsors-grid { gap: 1.5rem; }
    .sponsor-item img { height: 50px; }
}