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

body {
    background: linear-gradient(135deg, #f4f6f9 0%, #e9edf2 100%);
    background-attachment: fixed;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.text-blue {
    color: #0044cc;
}

/* GOMBOK */
.btn-primary {
    background-color: #0044cc;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #003399;
}

.btn-outline {
    background-color: transparent;
    color: #0044cc;
    border: 2px solid #0044cc;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
    transition: 0.3s;
}

.btn-outline:hover {
    background-color: #f0f5ff;
}

/* FEJLÉC */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 700;
    margin: 0 15px;
    font-size: 13px;
    text-transform: uppercase;
    transition: 0.3s;
}

.main-nav a:hover{
    color: #ff9900;
    border-bottom: 2px solid #ff9900;
    padding-bottom: 5px;
}

.main-nav a.active {
    border-bottom: 2px solid #ff9900;
    padding-bottom: 5px;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.contact-info {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    display: flex;
    gap: 20px;
}

/* =========================================
   FŐOLDAL - HERO SECTION (Videós fejléc)
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    color: #ffffff;
    max-width: 800px;
    padding: 0 50px;
}

.hero-slogan {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtext {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* =========================================
   FŐOLDAL - GOOGLE ÉRTÉKELÉSEK
   ========================================= */
.reviews-section {
    padding: 80px 50px;
    background-color: transparent;
}

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

.review-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #d1d9e6;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stars {
    color: #ff9900;
    margin-bottom: 15px;
    font-size: 18px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.reviewer-name {
    font-weight: bold;
    color: #1a1a1a;
    font-size: 16px;
}

/* SZOLGÁLTATÁSOK SZEKCIÓ */
.services-section {
    padding: 80px 50px;
    text-align: center;
}

.section-title {
    font-size: 40px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.title-underline {
    width: 60%;
    max-width: 700px;
    height: 3px;
    background-color: #ff9900;
    margin: 0 auto 50px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background-color: #ffffff;
    padding: 40px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

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

.icon-circle {
    width: 70px;
    height: 70px;
    background-color: #0044cc;
    color: white;
    font-size: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.service-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* JELLEMZŐK / LÁBLÉC SZEKCIÓ */
.features-section {
    margin-top: auto; 
    background-image: url('footer-nyak.png');
    background-color: #001233;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    color: white;
    padding: 40px 50px 20px 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    font-size: 36px;
    color: #0055ff;
}

.feature-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 13px;
    color: #a0b2c6;
    line-height: 1.5;
}

.footer-legal {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    font-size: 13px;
    color: #ffffff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff9900;
}

/* ALOLDALAK EXTRA STÍLUSAI (ÁSZF, Kapcsolat stb.) */
.content-page-section {
    padding: 80px 50px;
    min-height: 50vh;
}

.aszf-box, .page-text-container {
    display: block;
    width: 50% !important;
    min-width: 600px;
    margin: 40px auto !important;
    background-color: #ffffff !important;
    padding: 40px !important;
    border: 1px solid #d1d9e6 !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    line-height: 1.6;
    color: #333;
}

.aszf-content ul {
    margin-left: 40px;
    margin-bottom: 20px;
    padding-left: 20px;
}

.aszf-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-page-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    width: 250px;
}

.contact-card h3 {
    margin: 15px 0 10px 0;
    font-size: 18px;
}
.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.reference-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #d1d9e6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ref-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    cursor: pointer;
    overflow: hidden;
    background-color: #e9edf2;
}

.ref-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover effektek a képen (Nagyító ikon megjelenése) */
.ref-image-wrapper:hover .ref-image {
    transform: scale(1.05);
}

.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    pointer-events: none; /* Hogy a kattintás átmenjen a képre */
}

.ref-image-wrapper:hover .zoom-icon {
    opacity: 1;
}

.ref-content {
    padding: 25px;
}

.ref-content h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.ref-description {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* =========================================
   LIGHTBOX (Képnézegető)
   ========================================= */
.lightbox {
    display: none; /* Alapból rejtett */
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

/* Bezárás (X) gomb */
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #ff9900;
    text-decoration: none;
    cursor: pointer;
}

/* =========================================
   SZOLGÁLTATÁSOK - HOVER DIAVETÍTÉS
   ========================================= */
.services-slide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-hover-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #d1d9e6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

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

.slide-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    background-color: #001233;
    overflow: hidden;
}

/* Képek egymásra helyezése és elrejtése */
.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* Alapból minden kép átlátszó */
    transition: opacity 0.6s ease-in-out; /* Finom áttűnés */
}

/* Ez teszi láthatóvá az épp aktuális képet */
.slide-img.active {
    opacity: 1;
}

.service-info {
    padding: 30px;
}

.service-info h3 {
    font-size: 22px;
    color: #0044cc;
    margin-bottom: 15px;
}

.service-info p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* Animáció a megnyitáshoz */
@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}
/* ==================================================== */
/* MOBIL OPTIMALIZÁLÁS */
/* ==================================================== */
@media (max-width: 1024px) {
    .services-grid, .features-section {
        grid-template-columns: repeat(2, 1fr);
    }
    .aszf-box, .page-text-container {
        width: 90% !important;
        min-width: auto; 
    }
}

@media (max-width: 768px) {
    /* 1. A FEJLÉC (HEADER) MOBILOS IGAZÍTÁSA */
    .main-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 15px 10px !important;
    }

    .logo {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-bottom: 15px !important;
    }
    
    /* A logó hivatkozásának kényszerített középre igazítása */
    .logo a {
        display: flex !important;
        justify-content: center !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    /* Biztos ami biztos, a képet is középre húzzuk */
    .logo-img {
        margin: 0 auto !important;
    }

    .main-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 5px;
    }
    
    .header-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .contact-info {
        margin-bottom: 15px;
        text-align: center;
    }
    
    .contact-info span {
        display: block;
        margin-bottom: 5px;
    }

    /* 2. AZ OLDAL TÖBBI RÉSZÉNEK MOBILOS IGAZÍTÁSA */
    .hero-content {
        padding: 0 20px;
        text-align: center;
        margin: 0 auto;
    }

    .hero-slogan {
        font-size: 36px;
    }

    .hero-subtext {
        font-size: 18px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-section, .reviews-section, .features-section, .content-page-section {
        padding: 40px 20px;
    }

    .services-grid, .features-section {
        grid-template-columns: 1fr;
    }

    .footer-legal {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        gap: 15px;
    }

    .contact-page-container {
        flex-direction: column;
        align-items: center;
    }
    
    .reference-grid {
        grid-template-columns: 1fr;
    }
    
    .ref-image-wrapper {
        height: 200px;
    }
    
    .services-slide-grid {
        grid-template-columns: 1fr;
    }
    
    .slide-wrapper {
        height: 200px;
    }
}