/* --- 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.6s; }
.delay-2 { transition-delay: 1.2s; }

/* --- 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: space-between;
}

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Ó --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(5, 5, 5, 0.6), rgba(5, 5, 5, 0.95)), 
                url('male-electrician-working-electrical-panel-male-electrician-overalls.jpg');
    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);
    -webkit-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);
    margin-bottom: 25px;
    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;
}

/* A GALÉRIA KÉPEINEK FIXÁLÁSA - ETTŐL LESZ JÓ A SZERVEREN IS */
.polaroid-img {
    position: absolute;
    /* Ez akadályozza meg a túlméretezést */
    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: 160px 5% 120px; }
.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(300px, 1fr));
    gap: 40px;
}

.card {
    height: 450px;
    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: 2px;
    border: 1px solid var(--border-color);
    padding: 40px;
}

.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.5rem; 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.3); }

.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; }

/* --- 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);
}

.contact-info-box h3 { color: var(--accent-yellow); margin-bottom: 30px; text-transform: uppercase; }

#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 #222;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent-blue);
    outline: none;
}

.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;
}

.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); }

/* --- ADMIN --- */
.status-badge { padding: 5px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: bold; text-transform: uppercase; }
.status-new { background: var(--status-new); color: black; }
.status-proccess { background: var(--status-process); color: white; }
.status-done { background: var(--status-done); color: white; }

/* --- FOOTER --- */
footer { text-align: center; padding: 80px; border-top: 1px solid var(--border-color); background: #020202; font-size: 0.75rem; opacity: 0.5; text-transform: uppercase; }

/* --- RESPONSIVE --- */
@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 { margin-left: 0; width: 100%; margin-bottom: 10px; }
    .about-text { padding: 30px; }
    /* Mobilon kisebb képek */
    .polaroid-img { width: 140px !important; }
}