:root {
    --black: #080808;
    --white: #f5f5f5;
    --gold: #b28c3b;
    --gold-accent: #e0b04c;
    --grey-dark: #1a1a1a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ÚJ SZABÁLY: Biztosítja, hogy az egész dokumentum ne görgethető vízszintesen */
html {
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--black);
    line-height: 1.8;
    background-color: var(--white);
    /* Biztosítja, hogy a body sem görgethető vízszintesen */
    overflow-x: hidden; 
}

.heading-xl { 
    font-size: 4.5em; 
    font-weight: 700; 
    line-height: 1.1; 
    letter-spacing: 3px; 
    text-transform: uppercase; 
}
.heading-lg { 
    font-size: 3em; 
    font-weight: 600; 
    position: relative; 
    display: inline-block;
    padding-bottom: 10px;
}
.heading-lg.center-heading { 
    width: 100%; 
    display: block; 
    text-align: center;
}
.heading-lg::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--gold-accent);
    transition: transform 0.6s ease;
}
.section.active .heading-lg::after {
    transform: scaleX(1);
}
.heading-lg.center-heading::after {
    left: 50%;
    transform: translateX(-50%);
}

.subtitle { 
    font-size: 1.5em; 
    font-weight: 300; 
    max-width: 800px; 
    margin: 30px auto 0; 
}

.gold-text { color: var(--gold); }
.white-text { color: var(--white); }
.montserrat { font-family: 'Montserrat', sans-serif; }
.open-sans { font-family: 'Open Sans', sans-serif; }

.section {
    padding: 140px 8%; 
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.dark-bg { background-color: var(--black); color: var(--white); }
.light-bg { background-color: var(--white); color: var(--black); }

.navbar {
    background-color: var(--black);
    padding: 0 8%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
}
.nav-logo { 
    height: 65px;
    transition: transform 0.3s;
}

.navbar a {
    color: var(--white);
    text-decoration: none;
    margin-left: 45px;
    font-weight: 400;
    transition: color 0.4s;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.navbar a:hover { color: var(--gold-accent); }

.lang-switcher {
    background: none;
    color: var(--white); 
    border: 1px solid var(--grey-dark); 
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.lang-switcher::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--gold-accent);
    transform: scaleX(0); 
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

.lang-switcher:hover {
    color: var(--gold-accent); 
    border-color: var(--gold); 
}

.lang-switcher:hover::after {
    transform: scaleX(1); 
}

.cta-button {
    display: inline-block;
    background-color: var(--gold-accent);
    color: var(--black) !important;
    padding: 20px 50px;
    margin-top: 50px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease-out;
}
.cta-button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.cta-button:hover { color: var(--black); }

.secondary-button {
    display: inline-block;
    background: none;
    border: 1px solid var(--gold);
    color: var(--black) !important;
    padding: 15px 35px;
    transition: all 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.secondary-button:hover {
    background-color: var(--gold);
    color: var(--black) !important;
}

.hero-section {
    text-align: center;
    padding-top: calc(90px + 170px);
    min-height: 100vh;
}

.service-matrix {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-top: 150px;
    padding: 20px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}
.matrix-item {
    font-size: 1.2em;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.3s, color 0.3s;
}
.matrix-item i {
    font-size: 2.5em;
    display: block;
    margin-bottom: 15px;
    transition: color 0.3s;
}
.matrix-item:hover { transform: translateY(-10px); }
.matrix-item:hover i { color: var(--gold-accent); }

.about-section { padding: 0; }
.about-container { display: flex; min-height: 100vh; }
.about-image-side {
    width: 55%;
    background-color: var(--grey-dark);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    filter: brightness(0.8);
    transition: filter 0.5s;
    background-size: cover;
    background-position: center;
    background-image: url('my-photo.jpg');
}
.about-image-side:hover {
    filter: brightness(1);
}
.about-text-side {
    width: 45%;
    padding: 100px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-text-side p { margin-bottom: 30px; }
.about-text-side h3 { margin-top: 40px; margin-bottom: 20px; font-size: 1.5em; font-weight: 600; }
.clean-list { list-style: none; padding-left: 0; }
.clean-list li { margin-bottom: 15px; font-weight: 300; }
.clean-list span { font-weight: 600; margin-right: 5px; }

.services-section { text-align: center; }
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 80px;
}
.service-card {
    background-color: var(--grey-dark);
    padding: 40px;
    border-radius: 2px;
    text-align: left;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-left 0.4s ease;
    border-left: 5px solid var(--gold); 
    position: relative;
    overflow: hidden;
}
.card-icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--gold-accent);
    transition: transform 0.4s;
}
.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-left: 5px solid var(--gold-accent);
}
.service-card:hover .card-icon { transform: rotateY(360deg); }

.service-card h3 {
    font-size: 1.7em;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}
.service-card p {
    color: #c0c0c0;
    font-weight: 300;
}

.references-section { text-align: center; }
.reference-quotes {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; 
    margin-top: 80px;
}
.quote-box {
    width: 100%; 
    max-width: none;
    padding: 40px;
    background-color: var(--white);
    border: 1px solid #ccc;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--gold-accent);
    transition: all 0.3s;
}
.quote-box:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
.quote-box i { font-size: 2em; margin-bottom: 20px; display: block; }
.quote-box p { font-size: 1.1em; line-height: 1.7; font-style: italic; }
.quote-box cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: var(--gold);
    margin-top: 20px;
    border-top: 1px dashed #ddd;
    padding-top: 10px;
}

.contact-section { text-align: center; }
.contact-grid {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-top: 80px;
    text-align: left;
}
.contact-info-block { width: 40%; padding: 20px; }
.contact-details { margin-top: 30px; }
.contact-details p { 
    margin-bottom: 15px; 
    font-size: 1.1em; 
    display: flex; 
    align-items: center; 
}
.contact-details i { margin-right: 15px; font-size: 1.2em; }
.contact-info-block h3 { font-size: 2em; margin-bottom: 20px; font-weight: 700; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 40%;
}
.contact-form input,
.contact-form textarea {
    padding: 18px 22px;
    border: 1px solid #444;
    background-color: #1a1a1a;
    color: var(--white);
    border-radius: 0;
    transition: border-color 0.3s;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold-accent); outline: none; }
.contact-form textarea { min-height: 180px; }

.contact-form .cta-button { 
    width: 100%;
    margin-top: 10px;
}

.footer {
    padding: 30px 8%;
    text-align: center;
    font-size: 0.9em;
    color: #555;
    background-color: var(--black);
    border-top: 1px solid #222;
}

.animate-fade-in { opacity: 0; transform: translateY(20px); transition: opacity 1s ease-out, transform 1s ease-out; }
.animate-fade-in.active { opacity: 1; transform: translateY(0); }
.animate-slide-up { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-slide-up.active { opacity: 1; transform: translateY(0); }
.animate-slide-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-slide-left.active { opacity: 1; transform: translateX(0); }
.animate-slide-right { opacity: 0; transform: translateX(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-slide-right.active { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }
.delay-5 { transition-delay: 1.0s; }
.delay-6 { transition-delay: 1.2s; }


@media (max-width: 1200px) {
    .heading-xl { font-size: 3.5em; letter-spacing: 2px; }
    .heading-lg { font-size: 2.5em; }
    .subtitle { font-size: 1.3em; }
    .navbar a { margin-left: 20px; font-size: 0.9em; } 
    .about-container { flex-direction: column; min-height: auto; }
    .about-image-side { 
        width: 100%; 
        min-height: 400px;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0% 100%);
    }
    .about-text-side { width: 100%; padding: 80px 5%; }
}

@media (max-width: 900px) {
    .navbar nav { display: none; } 
    .hero-section { padding-top: 150px; }
    .section { padding: 100px 5%; min-height: auto; } 
    .heading-xl { 
        font-size: 2.2em; 
        letter-spacing: 0.5px;
        /* Ezt a címet tettem még kisebbre, hogy biztosan elférjen */
        max-width: 100%; 
        overflow-wrap: break-word; /* Sorok törését engedélyezem */
    }
    .heading-lg { font-size: 2em; }
    .subtitle { font-size: 1em; }
    
    .service-matrix { 
        flex-wrap: wrap; 
        gap: 30px 10px; 
        margin-top: 60px;
        justify-content: space-around;
        border: none; 
    }
    .service-matrix::before, .service-matrix::after { 
        content: '';
        width: 100%;
        height: 1px;
        background-color: #333;
        position: absolute;
    }
    .service-matrix::before { top: 0; }
    .service-matrix::after { bottom: 0; }
    .matrix-item { 
        flex-basis: 45%; 
        font-size: 1em; 
        margin: 10px 0;
    }
    .matrix-item i { font-size: 2em; }

    .about-container { margin-top: 0; }
    .about-image-side { 
        min-height: 300px;
        clip-path: polygon(0 0, 100% 0, 100% 98%, 0% 100%);
    }
    .about-text-side { padding: 60px 5%; }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .reference-quotes { 
        grid-template-columns: 1fr;
        gap: 30px; 
    }
    .quote-box { padding: 30px; }
    
    .contact-grid { flex-direction: column; gap: 40px; margin-top: 50px; }
    .contact-info-block, .contact-form { width: 100%; padding: 0; }
    .contact-info-block h3 { font-size: 1.5em; }
    .contact-form input, .contact-form textarea { padding: 15px 20px; }
    .contact-form .cta-button { padding: 15px 30px; }
    
    .footer { font-size: 0.8em; padding: 20px 5%; }
}

@media (max-width: 550px) {
    .heading-xl { font-size: 1.6em; } /* Tovább csökkentve a kilógás ellen */
    .heading-lg { font-size: 1.6em; }
    .subtitle { margin: 20px auto 0; }
    .cta-button { padding: 15px 30px; margin-top: 30px; font-size: 0.9em; }
    
    .service-matrix { gap: 20px 0; }
    .matrix-item { flex-basis: 50%; } 
    .matrix-item:nth-child(even) { text-align: right; } 
    .matrix-item:nth-child(odd) { text-align: left; }
    .matrix-item i { margin-bottom: 5px; } 

    .about-image-side { min-height: 200px; }
    .secondary-button { padding: 12px 25px; font-size: 0.9em; }
    
    .contact-details p { font-size: 1em; }
}