﻿/* =================================================================
   ATEN WEBDESIGN - VÉGLEGES STÍLUSLAP (Minden Javítással)
   Verzió: 2025.06 - v9 - Final SEO & Perf Fix
   ================================================================= */

/* --- 1. ALAP BEÁLLÍTÁSOK ÉS VÁLTOZÓK --- */
:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --dark-bg: #121212;
    --light-text: #f4f4f4;
    --dark-text: #333;
    --card-bg: #1a1a1a;
    --border-color: #2a2a2a;
    --star-color: #ffc107;
    --font-family: 'Poppins', sans-serif;
    --vh: 1vh; /* Alapértelmezett fallback */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--light-text);
    font-size: 16px; /* Alap betűméret beállítása */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style-type: none;
}

main {
    padding-top: 70px; 
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 2. ÁLTALÁNOS & ÚJRAHASZNÁLHATÓ OSZTÁLYOK --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem; 
}

.section-padding { padding: 60px 0; } 
.section-title { text-align: center; font-size: 2rem; font-weight: 600; margin-bottom: 1rem; } 
.section-intro { text-align: center; max-width: 600px; margin: 0 auto 3rem auto; color: #b0b0b0; font-weight: 300; }
.dark-variant { background-color: #0f0f0f; }

.subsection-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.hero-cta {
    font-size: 1rem;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}
.hero-cta:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }
.hero-cta-group { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-cta.cta-primary { background: linear-gradient(to right, var(--primary-color), var(--secondary-color)); color: var(--light-text); border: 2px solid transparent; }
.hero-cta.cta-secondary { background: transparent; color: var(--light-text); border: 2px solid var(--light-text); }
.hero-cta.cta-secondary:hover { background: var(--light-text); color: var(--dark-text); }


/* --- 3. NAVIGÁCIÓS SÁV --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* JAVÍTVA: Alapból (mobilon) legyen sötét háttér, hogy az ikon mindig látszódjon */
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.main-header.scrolled {
    /* Ezt a szabályt a biztonság kedvéért meghagyjuk, ha görgetésre extra effektet akarnál */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar { display: flex; justify-content: space-between; align-items: center; height: 70px; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; } 
.nav-logo { font-size: 1.8rem; font-weight: 800; } 
.logo-highlight { color: var(--primary-color); }

.nav-menu {
    position: fixed;
    left: -100%;
    top: 70px; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--dark-bg);
    width: 100%;
    height: calc(100vh - 70px); 
    text-align: center;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    gap: 0.5rem; 
    display: flex;
}
.nav-menu.active { left: 0; }
.nav-item { margin: 12px 0; } 
.nav-link { font-size: 1.3rem; font-weight: 400; transition: color 0.3s ease; position: relative; } 
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 50%; background-color: var(--primary-color); transition: all 0.3s ease-out; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; left: 0; }
.nav-link.active, .nav-link:hover { color: var(--primary-color); font-weight: 600; }
.contact-button { padding: 0.6rem 1.4rem; border: 1px solid var(--primary-color); border-radius: 50px; transition: all 0.3s ease; font-size: 1.3rem; } 
.contact-button:hover { background-color: var(--primary-color); color: var(--light-text); }

.hamburger { display: block; cursor: pointer; z-index: 1001; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--primary-color); transition: all 0.3s ease-in-out; }
.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* --- 4. ŰRLAPOK (Lebegő Címkés Dizájn) --- */
.form-group { position: relative; margin-bottom: 2rem; }
.form-group.floating-label input,
.form-group.floating-label textarea {
    width: 100%; padding: 1rem; background-color: transparent; border: 1px solid #444; border-radius: 5px;
    color: var(--light-text); font-family: inherit; font-size: 1rem; transition: border-color 0.3s ease; position: relative; z-index: 1;
}
.form-group.floating-label label { position: absolute; top: 1rem; left: 1rem; color: #a0a0a0; pointer-events: none; transition: all 0.2s ease-out; z-index: 0; }
.form-group.floating-label input:focus, .form-group.floating-label textarea:focus { outline: none; border-color: var(--primary-color); }
.form-group.floating-label input:focus + label, .form-group.floating-label input:not(:placeholder-shown) + label,
.form-group.floating-label textarea:focus + label, .form-group.floating-label textarea:not(:placeholder-shown) + label {
    transform: translateY(-1.75rem) translateX(-0.25rem) scale(0.85);
    color: var(--primary-color);
    background-color: var(--card-bg);
    padding: 0 0.5rem;
    z-index: 2;
}
.form-group > label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #c0c0c0; }
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating input[type="radio"] { display: none; }
.star-rating label { font-size: 2rem; color: #444; cursor: pointer; transition: color 0.2s; }
.star-rating input[type="radio"]:checked ~ label, .star-rating label:hover, .star-rating label:hover ~ label { color: var(--star-color); }
.form-response { padding: 1rem; margin-bottom: 1.5rem; border-radius: 5px; text-align: center; font-weight: 600; }
.form-response.success { background-color: rgba(40, 167, 69, 0.2); color: #28a745; border: 1px solid #28a745; }
.form-response.danger { background-color: rgba(220, 53, 69, 0.2); color: #dc3545; border: 1px solid #dc3545; }


/* --- 5. OLDALSPECIFIKUS STÍLUSOK --- */
.hero-section {
    height: calc(var(--vh, 1vh) * 100); display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 0 1.5rem; position: relative; margin-top: -70px;
}
.hero-content { max-width: 800px; animation: fadeIn 1.5s ease-in-out; }
.hero-title { font-size: 2.2rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; } 
.hero-title .highlight { background: linear-gradient(to right, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-emphasis-color: transparent; }
.hero-subtitle { font-size: 1.1rem; font-weight: 300; max-width: 600px; margin: 0 auto 2.5rem auto; }

.page-header {
    background-color: var(--card-bg);
    text-align: center;
    margin-top: -70px;
    padding: 120px 1.5rem 50px 1.5rem; 
}
.page-header h1 { font-size: 2.2rem; margin-bottom: 0.5rem; } 
.page-header p { font-size: 1.1rem; color: #b0b0b0; font-weight: 300; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.service-card {
    background-color: var(--card-bg); padding: 2.5rem 2rem; border-radius: 10px;
    border: 1px solid var(--border-color); transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.service-card:hover { transform: translateY(-10px); border-color: var(--primary-color); }
.service-card .icon-wrapper { font-size: 3rem; margin-bottom: 1rem; line-height: 1; text-align: center; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--light-text); }
.service-card p { text-align: center; }

.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 4rem; }
.process-step { text-align: center; }
.process-step p { text-align: center; }
.step-number { width: 60px; height: 60px; background: linear-gradient(to right, var(--primary-color), var(--secondary-color)); color: var(--light-text); border-radius: 50%; display: inline-flex; justify-content: center; align-items: center; font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; }
.process-step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.portfolio-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; }
.portfolio-card { background-color: var(--card-bg); border-radius: 10px; overflow: hidden; border: 1px solid var(--border-color); }
.portfolio-image { overflow: hidden; }
.portfolio-image img { transition: transform 0.4s ease; }
.portfolio-image a:hover img { transform: scale(1.05); }
.portfolio-content { padding: 2rem; }
.portfolio-content h3 { font-size: 1.8rem; }
.project-category { color: var(--primary-color); font-weight: 600; margin-bottom: 1rem; }

.about-me-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; text-align: center; }
.about-me-image img { max-width: 400px; border-radius: 10px; margin: 0 auto; display: block; }
.about-me-content h2 { font-size: 2.5rem; font-weight: 600; margin-bottom: 1rem; }
.about-me-content .lead-paragraph { font-size: 1.2rem; font-weight: 300; color: #c0c0c0; margin-bottom: 1.5rem; }

.contact-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.contact-info h3 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.contact-steps { list-style: none; padding: 0; margin-bottom: 2rem; }
.contact-steps li { display: flex; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-steps span { flex-shrink: 0; display: inline-flex; justify-content: center; align-items: center; width: 28px; height: 28px; background-color: var(--primary-color); color: var(--light-text); border-radius: 50%; font-weight: 600; margin-right: 1rem; }
.contact-info hr { border: none; height: 1px; background-color: var(--border-color); margin: 2rem 0; }
.contact-direct { font-size: 1.1rem; }
.contact-direct a { color: #c0c0c0; transition: color 0.3s ease; }
.contact-direct a:hover { color: var(--primary-color); }
.contact-form-wrapper { background-color: var(--card-bg); padding: 2.5rem; border-radius: 10px; }
#submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.reviews-page-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.review-card { background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 10px; padding: 1.5rem; margin-bottom: 1.5rem; position: relative; overflow: hidden; }
.review-card::before { content: '“'; position: absolute; top: -10px; left: 10px; font-size: 6rem; color: rgba(255, 255, 255, 0.05); font-family: Georgia, serif; line-height: 1; z-index: 0; }
.review-card > * { position: relative; z-index: 1; }
.review-card h5 { color: var(--light-text); }
.review-card .text-muted { font-size: 0.9rem; color: #888; }
.review-card .stars { color: var(--star-color); font-size: 1.1rem; margin: 0.5rem 0; }
.review-card .comment-text { font-style: italic; color: #c0c0c0; }
.pagination-controls { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; }
.pagination-controls button { padding: 0.5rem 1rem; font-size: 1rem; }
.pagination-controls button:disabled { background: var(--border-color); color: #666; cursor: not-allowed; border-color: #444; }
#page-indicator { font-weight: 600; }
.review-form-sidebar { position: relative; }
.sticky-sidebar { position: sticky; top: 120px; }
.review-form-container { background-color: var(--card-bg); padding: 2rem; border-radius: 10px; }
.form-intro { font-size: 0.9rem; color: #b0b0b0; margin-top: -1.5rem; margin-bottom: 1.5rem; }

.legal-content { max-width: 800px; margin: 0 auto; line-height: 1.8; }
.legal-content h3 { font-size: 1.8rem; margin-top: 2.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.legal-content h4 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: 1rem; color: #e0e0e0; }
.legal-content p, .legal-content ul { margin-bottom: 1.5rem; }
.legal-content ul { list-style-type: disc; padding-left: 2rem; }
.legal-content ul li { margin-bottom: 0.8rem; }
.legal-content a { color: var(--secondary-color); text-decoration: underline; font-weight: 600; }
.legal-content a:hover { color: var(--primary-color); }


/* --- 6. FOOTER --- */
/* --- 6. FOOTER --- */
.site-footer { background-color: #0a0a0a; color: #a0a0a0; padding: 60px 0 20px 0; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; text-align: center; gap: 2.5rem; margin-bottom: 40px; }
.footer-column h4 { color: var(--light-text); font-size: 1.1rem; font-weight: 600; margin-bottom: 1.5rem; }
.footer-column ul { padding: 0; }
.footer-column ul li { margin-bottom: 0.8rem; }
.footer-column a:hover { color: var(--primary-color); text-decoration: underline; }

/* ÚJ: A láblécbe illesztett logó stílusai */
.footer-icon-logo {
    width: 50px; /* Logó szélessége */
    height: 50px; /* Logó magassága */
    margin: 0 auto 1rem auto; /* Középre igazítás és alsó térköz */
    display: block;
}
/* ÚJ SZABÁLY VÉGE */

.footer-logo { font-size: 2rem; font-weight: 700; color: var(--light-text); margin-bottom: 1rem; }
.social-icons { display: flex; justify-content: center; gap: 0.5rem; } 

/* JAVÍTVA: Elérhetőség szekció és social ikonok olvashatóságának javítása */
.footer-column.contact-column p {
    margin-bottom: 1.2rem;
}
.footer-column.contact-column p a {
    font-size: 1.05rem;
    font-weight: 400;
    color: #d0d0d0;
    transition: color 0.3s ease;
}
.footer-column.contact-column p a:hover {
    color: var(--primary-color);
    text-decoration: none;
}
.social-icons a svg {
    fill: #a0a0a0;
    transition: fill 0.3s ease;
}
.social-icons a:hover svg {
    fill: var(--primary-color);
}

.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 20px; text-align: center; font-size: 0.9rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; } 
.legal-links a { color: #a0a0a0; transition: color 0.3s ease; }
.legal-links a:hover { color: var(--light-text); }

.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 20px; text-align: center; font-size: 0.9rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; } 
.legal-links a { color: #a0a0a0; transition: color 0.3s ease; }
.legal-links a:hover { color: var(--light-text); }

/* --- ÚJ: HARMONIKA BLOG DIZÁJN --- */
.blog-container {
    max-width: 900px; 
}

.blog-post-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}

.blog-post-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.post-summary {
    padding: 1.5rem; 
    cursor: pointer;
}

.post-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-text);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-post-item h2 {
    font-size: 1.5rem; 
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #888;
    margin: 1rem 0;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-excerpt {
    color: #b0b0b0;
    line-height: 1.6;
    margin: 1rem 0;
}

.btn-read-more {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-read-more:hover {
    color: var(--secondary-color);
}

.btn-read-more svg { /* JAVÍTVA: SVG-re célozzuk a forgatást */
    transition: transform 0.4s ease;
}

.btn-read-more.active svg { /* JAVÍTVA: SVG-re célozzuk a forgatást */
    transform: rotate(180deg);
}

.full-post-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1.0); 
}

.full-post-content .full-post-inner {
    padding: 0 1.5rem 1.5rem 1.5rem; 
    border-top: 1px solid var(--border-color);
    line-height: 1.8;
}

.full-post-content h6 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.full-post-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}
.full-post-content ul li {
    margin-bottom: 0.5rem;
}


/* --- 7. RESZPONZIVITÁS (FINOMHANGOLT) --- */

/* Tablet nézet (768px-től) */
@media(min-width: 768px) {
    main { padding-top: 80px; }
    .container { padding: 0 2rem; }
    .section-padding { padding: 80px 0; }
    
    .main-header {
        background-color: rgba(18, 18, 18, 0);
        backdrop-filter: none;
        box-shadow: none;
    }
    .main-header.scrolled {
        background-color: rgba(18, 18, 18, 0.85);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .navbar { height: 80px; padding: 0 2rem; }
    .nav-logo { font-size: 2rem; }
    .nav-menu { top: 80px; height: calc(100vh - 80px); }
    .hero-section { margin-top: -80px; padding: 0 2rem; } /* JAVÍTVA: -80px-re állítva */
    .hero-title, .page-header h1 { font-size: 3rem; }
    .page-header { padding: 140px 2rem 60px 2rem; margin-top: -80px;}
    .footer-grid { grid-template-columns: repeat(4, 1fr); text-align: left; }
    .social-icons { justify-content: flex-start; }
    .about-me-layout { text-align: left; grid-template-columns: auto 1fr; gap: 3rem; }
    .about-me-image img { margin: 0; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
    .post-summary { padding: 2rem; }
    .blog-post-item h2 { font-size: 1.8rem; }
    .full-post-content .full-post-inner { padding: 0 2rem 2rem 2rem; }
}

/* Nagyobb tablet és kisebb desktop (992px-től) */
@media(min-width: 992px) {
    .hamburger { display: none; }
    .nav-menu { 
        position: static; 
        left: auto; 
        top: auto; 
        flex-direction: row; 
        width: auto; 
        height: auto; 
        background-color: transparent;
        align-items: center; /* JAVÍTÁS: Vertikális középre igazítás */
    }
    .nav-link { font-size: 1rem; }
    .contact-button { font-size: 1rem; padding: 0.7rem 1.5rem;}
    .hero-title { font-size: 4rem; }
    .contact-layout, .reviews-page-layout { grid-template-columns: 2fr 1fr; gap: 4rem; }
    .contact-layout { grid-template-columns: 1fr 1.2fr; }
    .portfolio-card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; }
    .portfolio-card .portfolio-content { padding: 3rem; }
    .portfolio-card:nth-child(even) .portfolio-image { grid-column: 2 / 3; grid-row: 1 / 2; }
    
    /* ÚJ BLOKK: Desktop navigáció szétcsúszásának javítása */
    .navbar {
        justify-content: flex-start;
    }
    .nav-logo {
        margin-right: auto; /* A logót a bal szélre tolja */
    }
    .nav-menu {
        gap: 1.5rem; /* Kisebb térköz, hogy biztosan elférjen */
        flex-shrink: 0; /* Megakadályozza a menü összenyomódását */
    }
}


/* --- 8. ANIMÁCIÓK --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- 9. EGYEDI GÖRGETŐSÁV --- */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--card-bg);
}
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    border: 3px solid var(--dark-bg);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #7e1eff, #3c8aff);
}

/* --- 10. ACCESSIBILITY FIXES --- */
.footer-column a,
.contact-direct a,
.legal-links a {
    display: inline-block;
    padding: 8px;
    margin: -8px; 
    border-radius: 4px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}
.nav-link.analyzer-icon {
    padding: 0.5rem 0.8rem;
}
.nav-link.analyzer-icon i, /* JAVÍTVA: i tag helyett */
.nav-link.analyzer-icon .fas {
    font-size: 1.4rem;
    vertical-align: middle;
}
.nav-link.analyzer-icon:after {
    display: none;
}