.portfolio-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
    margin-top: 30px;
    scrollbar-color: #050200 #f1f1f1;
}

.portfolio-slider::-webkit-scrollbar {
    height: 8px;
}

.portfolio-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.portfolio-slider::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 4px;
}

.portfolio-slider .portfolio-item {
    flex: 0 0 320px;
    height: 240px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    scroll-snap-align: start;
}

.portfolio-slider .portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Modál ablak */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    text-align: center;
    overflow: auto; /* Engedi a görgetést, ha fel van nagyítva a kép */
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
    object-fit: contain;
    cursor: zoom-in; /* Jelzi, hogy rákattintva nagyítható */
    transition: transform 0.3s ease;
}

/* Amikor rákattintunk a képre a modálban (még nagyobb lesz) */
.modal-content.zoomed {
    transform: translate(-50%, -50%) scale(1.6); /* 1.6-szorosáranagyít */
    cursor: zoom-out;
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.close-btn:hover {
    color: #000000;
}





/* ALAPBEÁLLÍTÁSOK */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #0056b3;
    --secondary-color: #ff9800;
    --dark-color: #222222;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--dark-color);
    line-height: 1.6;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* FELSŐ SÁV (TOP BAR) */
.top-bar {
    background-color: var(--dark-color);
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
}

.top-bar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-contact a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar-contact a:hover {
    color: var(--secondary-color);
}

.top-bar-contact i, .top-bar-info i {
    color: var(--secondary-color);
    margin-right: 6px;
}

/* NAVIGÁCIÓ */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 37px;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1300px; /* Biztosítja, hogy ne csússzon szét széles képernyőn */
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 16px; /* Kisebbre vettük, hogy elférjen a hosszú név egy sorban */
    font-weight: bold;
    color: var(--dark-color);
    text-decoration: none;
    white-space: nowrap; /* Megakadályozza, hogy a név saját magán belül törjön */
}

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

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 15px; /* Kicsit optimalizáltuk a távolságot a menüpontok között */
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 14px; /* Opcionálisan a menüpontokat is picit igazíthatod */
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--primary-color);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 5px;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* HERO SZEKCIÓ */
.hero {
    position: relative;
    background: url('1/IMG_20210611_102709.jpg') no-repeat center center/cover;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: #fff;
    margin-top: 107px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* GOMBOK */
.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #e68a00;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #fff;
    color: var(--dark-color);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* SZEKCIÓK */
.services, .pricing, .portfolio, .why-us, .contact {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 40px;
}

/* SZOLGÁLTATÁSOK */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card .icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* ÁRAINK SZEKCIÓ */
.pricing {
    background-color: var(--light-color);
}

/* 4 oszlopos elrendezés egymás mellett */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.pricing-card {
    background: #fff;
    padding: 30px 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card.featured {
    border: 2px solid var(--secondary-color);
}

.pricing-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.price-box {
    margin-bottom: 20px;
}

.price-box .price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.price-box .unit {
    color: var(--gray-color);
    font-size: 13px;
    display: block;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 25px;
    text-align: left;
    font-size: 14px;
}

.pricing-card ul li {
    margin-bottom: 10px;
    color: #555;
}

.pricing-card ul li i {
    color: #28a745;
    margin-right: 8px;
}

/* MUNKÁINK (GALÉRIA) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 86, 179, 0.85);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

/* MIÉRT MINKET */
.why-us {
    background: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature i {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* AI KALKULÁTOR / ŰRLAP STÍLUS */
.contact-form {
    max-width: 750px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
}

.full-width {
    grid-column: span 2;
}

/* AI KALKULÁCIÓ BOX */
.ai-price-box {
    background: #f0f7ff;
    border: 2px dashed var(--primary-color);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    margin: 10px 0;
}

.ai-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-weight: bold;
}

.ai-price-box h4 {
    color: var(--dark-color);
    font-size: 16px;
    margin-bottom: 5px;
}

#aiCalculatedPrice {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 5px 0;
}

.ai-price-box small {
    color: var(--gray-color);
    font-size: 12px;
}

.form-feedback {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}

/* LÁBLÉC */
footer {
    background: var(--dark-color);
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

/* RESPONSIVE DESIGN (TABLET & MOBIL) */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .top-bar-info {
        display: none;
    }

    .top-bar-container {
        justify-content: center;
        gap: 10px;
    }

    .top-bar-contact {
        gap: 10px;
    }

    .top-bar-contact a {
        font-size: 12px;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 70px;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .full-width {
        grid-column: span 1;
    }
}

/* ==========================================================================
   AI GENERÁLT AJÁNLAT KÁRTYA
   ========================================================================== */
.ai-quote-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    animation: fadeInQuote 0.4s ease-in-out;
}

@keyframes fadeInQuote {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-quote-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.ai-quote-header .badge {
    background: #28a745;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 8px;
}

.ai-quote-header h3 {
    font-size: 22px;
    color: var(--dark-color);
    margin: 0 0 5px 0;
}

.ai-quote-header small {
    color: var(--gray-color);
}

.btn-print {
    background: #edf2f7;
    border: 1px solid #cbd5e0;
    color: var(--dark-color);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-print:hover {
    background: #e2e8f0;
}

.ai-quote-card .greeting {
    font-size: 16px;
    margin-bottom: 20px;
    color: #4a5568;
}

/* 4 oszlopos műszaki specifikáció kártyák */
.quote-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.spec-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.spec-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.spec-item span {
    display: block;
    font-size: 12px;
    color: var(--gray-color);
}

.spec-item strong {
    font-size: 15px;
    color: var(--dark-color);
}

/* Összegző doboz és végösszeg */
.quote-summary-box {
    background: #f0f7ff;
    border: 1px solid #cbe2fe;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.notes-line {
    color: #4a5568;
}

.quote-divider {
    border: 0;
    height: 1px;
    background: #cbd5e1;
    margin: 15px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-total span:first-child {
    font-size: 18px;
    font-weight: bold;
    color: var(--dark-color);
}

.summary-total .total-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
}

.quote-footer {
    font-size: 14px;
    color: #4a5568;
    background: #fdfdfd;
    border-left: 4px solid var(--secondary-color);
    padding: 12px 15px;
    border-radius: 4px;
}

.quote-footer i {
    color: var(--secondary-color);
    margin-right: 6px;
}

/* Nyomtatási nézet */
@media print {
    body * {
        visibility: hidden;
    }
    .ai-quote-card, .ai-quote-card * {
        visibility: visible;
    }
    .ai-quote-card {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: none;
        box-shadow: none;
    }
    .btn-print {
        display: none;
    }
}