/* --- SZEVILLSZER PREMIER UNIFIED STYLES --- */

:root {
    --bg-dark: #050505;
    --bg-card: #0f0f0f;
    --accent-blue: #007bff;
    --accent-yellow: #ffc107;
    --text-light: #f0f0f0;
    --border-color: #1a1a1a;
    --status-new: #ffc107;
    --status-process: #17a2b8;
    --status-done: #28a745;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* --- ANIMÁCIÓK --- */
.hero-fade { animation: slowHeroFade 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes slowHeroFade { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: blur(0); } }

.slide-up { opacity: 0; transform: translateY(70px); animation: slowSlideUp 2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes slowSlideUp { to { opacity: 1; transform: translateY(0); } }

.reveal-left, .reveal-right, .reveal { opacity: 0; transition: all 1.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left { transform: translateX(-100px); }
.reveal-right { transform: translateX(100px); }
.reveal { transform: translateY(60px); }

.reveal-left.active, .reveal-right.active, .reveal.active { opacity: 1; transform: translate(0, 0); }
.delay-1 { transition-delay: 0.3s; }
.delay-2 { transition-delay: 0.6s; }

/* --- NAVIGÁCIÓ & TOP BAR --- */
.top-bar { background: var(--accent-blue); color: white; padding: 10px 5%; font-size: 0.8rem; z-index: 1001; position: relative; }
.top-bar-content { display: flex; justify-content: flex-end; gap: 30px; }

nav { background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(10px); padding: 0 5%; position: fixed; width: 100%; top: 40px; z-index: 1000; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); height: 100px; }
.nav-logo-img { height: 75px; width: auto; clip-path: ellipse(48% 45% at 50% 50%); }

.logo-spin { animation: rotateWithPause 12s infinite ease-in-out; }
@keyframes rotateWithPause { 0% { transform: rotateY(0deg); } 15% { transform: rotateY(360deg); } 100% { transform: rotateY(360deg); } }

.nav-links { display: flex; align-items: center; }
.nav-links a { color: var(--text-light); text-decoration: none; margin-left: 30px; transition: 0.4s; font-weight: 500; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; opacity: 0.7; }
.nav-links a:hover { color: var(--accent-blue); opacity: 1; }

.fb-link { font-size: 1.3rem; color: var(--text-light); margin-left: 35px !important; transition: 0.4s; }
.fb-link:hover { color: #1877f2 !important; transform: scale(1.2); }

/* --- HERO SZEKCIÓ (Dinamikus háttérváltáshoz előkészítve) --- */
.hero { 
    height: 100vh; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    /* A JavaScript fogja cserélni a képet, itt csak az átmenet van */
    transition: background-image 1.5s ease-in-out;
    background-color: #050505;
    background-size: cover; 
    background-position: center; 
    padding-top: 100px; 
}
.hero-content { max-width: 900px; width: 100%; padding: 0 20px; }
.hero h1 { font-size: clamp(3rem, 7vw, 5rem); margin-bottom: 1.5rem; font-weight: 900; color: #fff; }
.hero p { font-size: clamp(1.1rem, 3vw, 1.4rem); max-width: 800px; margin: 0 auto 3rem; opacity: 0.9; }
.hero-btns { display: flex; justify-content: center; gap: 20px; }

/* --- RÓLUNK & "ASZTAL" GALÉRIA --- */
#about { position: relative; overflow: hidden; min-height: 95vh; display: flex; align-items: center; justify-content: center; background-color: #050505; }
#about-gallery-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.about-container { position: relative; z-index: 100; max-width: 850px; margin: 0 auto; padding: 20px; }
.about-text { background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(15px); padding: 60px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 0 100px rgba(0,0,0,1); text-align: center; }
.about-text h2 { color: var(--accent-yellow); font-size: 2.5rem; text-transform: uppercase; letter-spacing: 3px; }
.about-text p { font-size: 1.15rem; margin-bottom: 20px; color: #fff; line-height: 1.8; }
.polaroid-img { position: absolute; width: clamp(180px, 15vw, 250px) !important; height: auto !important; border: 8px solid #fff; border-bottom: 35px solid #fff; box-shadow: 10px 20px 40px rgba(0,0,0,0.7); opacity: 0; z-index: 2; object-fit: cover; pointer-events: none; transition: transform 1.5s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.8s ease; }

/* --- SZOLGÁLTATÁSOK KÁRTYÁK --- */
.section { padding: 120px 5% 100px; }
.section-title { text-align: center; margin-bottom: 60px; font-size: clamp(2rem, 5vw, 3rem); color: #fff; text-transform: uppercase; letter-spacing: 4px; font-weight: 900; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { height: 400px; perspective: 2500px; cursor: pointer; z-index: 1; }
.card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); transform-style: preserve-3d; }
.card-front, .card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 8px; border: 1px solid var(--border-color); padding: 30px; }
.card-front { background: var(--bg-card); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.card-icon { font-size: 3.5rem; color: var(--accent-blue); margin-bottom: 25px; }
.card-front h3 { font-size: 1.4rem; text-transform: uppercase; letter-spacing: 2px; text-align: center; }
.card-back { background: #111; transform: rotateY(180deg); text-align: left; display: flex; flex-direction: column; }
.card.expanded { z-index: 2001; }
.card.expanded .card-inner { transform: rotateY(180deg) scale(1.1); }
.card-back h3 { color: var(--accent-yellow); margin-bottom: 20px; font-size: 1.1rem; border-bottom: 1px solid #222; padding-bottom: 15px; text-transform: uppercase; }
.card-back ul { list-style: none; }
.card-back li { font-size: 0.85rem; margin-bottom: 10px; padding-left: 25px; position: relative; color: #bbb; }
.card-back li::before { content: "■"; position: absolute; left: 0; color: var(--accent-blue); font-size: 0.6rem; top: 5px; }

/* --- ÚJ: CAROUSEL GALÉRIA (Lazy Loading) --- */
.carousel-container { position: relative; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; }
.carousel-track-wrapper { overflow: hidden; width: 100%; border-radius: 8px; }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; gap: 20px; }
.carousel-slide { 
    min-width: calc(33.333% - 13.33px); 
    aspect-ratio: 4/3; 
    position: relative; 
    cursor: pointer; 
    overflow: hidden; 
    border-radius: 8px; 
    background-color: #111; /* Helykitöltő, amíg betölt a kép */
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.carousel-slide:hover img { transform: scale(1.1); }
.carousel-btn { background: rgba(0, 123, 255, 0.7); color: white; border: none; padding: 15px 20px; cursor: pointer; font-size: 1.5rem; border-radius: 4px; z-index: 10; transition: 0.3s; }
.carousel-btn:hover { background: var(--accent-blue); }
.carousel-btn.prev { margin-right: 15px; }
.carousel-btn.next { margin-left: 15px; }

.gallery-overlay { position: absolute; inset: 0; background: rgba(0, 123, 255, 0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.gallery-overlay i { color: white; font-size: 3rem; transform: scale(0.5); transition: transform 0.3s; }
.carousel-slide:hover .gallery-overlay { opacity: 1; }
.carousel-slide:hover .gallery-overlay i { transform: scale(1); }

/* --- KAPCSOLAT ÉS ŰRLAP --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; max-width: 1100px; margin: 0 auto; }
.contact-info-box, .contact-form-box { background: var(--bg-card); padding: 50px; border: 1px solid var(--border-color); border-radius: 8px; }
.contact-info-box h3 { color: var(--accent-yellow); margin-bottom: 30px; text-transform: uppercase; }
.contact-info-box p { margin-bottom: 15px; }
#leadForm { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
input, select, textarea { width: 100%; padding: 15px; background: #050505; border: 1px solid #333; border-radius: 4px; color: white; font-size: 1rem; transition: 0.3s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-blue); outline: none; }

/* GOMBOK */
.btn { padding: 15px 30px; border: none; cursor: pointer; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; transition: 0.4s; text-decoration: none; display: inline-block; text-align: center; border-radius: 4px; }
.btn-full { background: var(--accent-blue); color: white; width: 100%; }
.btn-outline { background: transparent; border: 2px solid white; color: white; }
.btn-outline:hover { background: white; color: black; transform: translateY(-3px); }
.btn-full:hover { background: #005cc7; transform: translateY(-3px); }

/* --- ÚJ: MODÁLOK (Halvány háttérképpel) --- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 3000; opacity: 0; visibility: hidden; transition: all 0.4s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content { 
    background: linear-gradient(rgba(15, 15, 15, 0.94), rgba(15, 15, 15, 0.96)), url('markus-spiske-kK7uPfb2YWU-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Látványos hatás görgetéskor */
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 12px; 
    width: 90%; 
    max-width: 600px; 
    padding: 40px; 
    position: relative; 
    transform: translateY(50px) scale(0.9); 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    max-height: 90vh; 
    overflow-y: auto; 
}

.modal-content.modal-large { max-width: 1100px; }
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: #111; border-radius: 4px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--accent-blue); border-radius: 4px; }
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 20px; right: 25px; background: none; border: none; color: #fff; font-size: 1.8rem; cursor: pointer; transition: color 0.3s; }
.modal-close:hover { color: var(--accent-yellow); }
.modal-title { color: var(--accent-yellow); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; border-bottom: 1px solid #333; padding-bottom: 15px; }
.modal-list { list-style: none; }
.modal-list li { margin-bottom: 15px; font-size: 1.05rem; display: flex; align-items: flex-start; gap: 12px; }
.modal-list i { color: var(--status-done); margin-top: 5px; }

/* Referencia Kategóriák és Kártyák a Modálban */
.ref-category-title { color: var(--text-light); margin-top: 10px; margin-bottom: 20px; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; border-left: 4px solid var(--accent-blue); padding-left: 15px;}
.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }
.ref-card { background: rgba(5, 5, 5, 0.8); border: 1px solid #333; padding: 25px; border-radius: 8px; transition: 0.3s; display: flex; flex-direction: column; justify-content: space-between; backdrop-filter: blur(5px);}
.ref-card:hover { border-color: var(--accent-blue); transform: translateY(-5px); }
.ref-card h4 { color: var(--text-light); margin-bottom: 10px; font-size: 1.15rem; }
.ref-card p { font-size: 0.9rem; color: #aaa; margin-bottom: 15px; flex-grow: 1; line-height: 1.6;}
.ref-link-group { display: flex; gap: 15px; flex-wrap: wrap; margin-top: auto; padding-top: 15px; border-top: 1px solid #222; }
.ref-link { color: var(--accent-blue); text-decoration: none; font-size: 0.9rem; font-weight: bold; display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; }
.ref-link:hover { color: var(--accent-yellow); }

/* --- LIGHTBOX GALÉRIA --- */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.98); z-index: 4000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s; }
.lightbox-overlay.active { opacity: 1; visibility: visible; }
#lightbox-img { max-width: 90vw; max-height: 85vh; border: 2px solid #333; box-shadow: 0 0 50px rgba(0,0,0,0.8); }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: none; border: none; color: white; font-size: 2.5rem; cursor: pointer; transition: 0.3s; }
.lightbox-close { top: 30px; right: 40px; }
.lightbox-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 30px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--accent-blue); }

/* --- FOOTER --- */
footer { text-align: center; padding: 60px; border-top: 1px solid var(--border-color); background: #020202; font-size: 0.75rem; opacity: 0.5; text-transform: uppercase; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .carousel-slide { min-width: calc(50% - 10px); } /* 2 kép tableten */
}
@media (max-width: 768px) {
    .contact-grid, .form-row { grid-template-columns: 1fr; }
    nav { top: 0; height: 80px; }
    .top-bar { display: none; }
    .hero-btns { flex-direction: column; align-items: center; }
    .btn-outline, .btn-full { margin-left: 0; width: 100%; margin-bottom: 10px; }
    .about-text { padding: 30px; }
    .polaroid-img { width: 140px !important; }
    .ref-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .carousel-slide { min-width: 100%; } /* 1 kép mobilon */
}