:root {
    --primary-color: #2c3e50;
    --accent-color: #c0a080;
    --light-gray: #f8f9fa;
    --white-color: #ffffff;
    --text-color: #34495e;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Lato', sans-serif;
    --transition-speed: 0.4s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
}

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

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--heading-font);
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition-speed);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white-color);
    border-color: var(--accent-color);
}

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

.full-width {
    width: 100%;
}

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    transition: background-color var(--transition-speed);
}

#main-header.scrolled {
    background-color: var(--white-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

#main-header.scrolled .logo {
    color: var(--primary-color);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--white-color);
    font-weight: 600;
    transition: color 0.2s;
    position: relative;
}

#main-header.scrolled .nav-link {
    color: var(--text-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--white-color);
}

#main-header.scrolled .bar {
    background-color: var(--primary-color);
}


#hero {
    height: 100vh;
    background: url('img/7d59636ecfc13137443bbdcf7c89d2ed.jpeg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

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

#hero h1 {
    color: var(--white-color);
    margin-bottom: 1rem;
    font-size: 4.5rem;
}

#hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
}


#miert-mi {
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.feature-card {
    background-color: var(--white-color);
    padding: 2.5rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}


.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px;
}

.timeline-content {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 6px;
    position: relative;
}

.timeline-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 1;
    top: 30px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 3px solid var(--white-color);
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -10px;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: " ";
    position: absolute;
    top: 22px;
    right: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent var(--light-gray);
    z-index: 10;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: " ";
    position: absolute;
    top: 22px;
    left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent var(--light-gray) transparent transparent;
    z-index: 10;
}

.additional-services {
    margin-top: 4rem;
    text-align: center;
}

.additional-services ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.additional-services li {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.list-icon {
    color: var(--accent-color);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}


#galeria {
    background-color: var(--white-color);
}

.slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-item {
    min-width: 100%;
    cursor: pointer;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.prev-slide, .next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.prev-slide:hover, .next-slide:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-slide {
    left: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.next-slide {
    right: 0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 200;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal .prev, .modal .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.modal .next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.modal .prev:hover, .modal .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


#kapcsolat {
    background-color: var(--light-gray);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    background-color: var(--white-color);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.contact-info {
    padding-left: 2rem;
    border-left: 1px solid #eee;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.contact-info li img {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.form-message {
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    min-height: 48px; 
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.form-message.success {
    background-color: #e6f7ec;
    color: #27ae60;
    border: 1px solid #2ecc71;
    opacity: 1;
}

.form-message.error {
    background-color: #fcebeb;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    opacity: 1;
}


#main-footer {
    background-color: var(--primary-color);
    color: var(--light-gray);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}


.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .timeline-container::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 10px;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after {
        content: none;
    }
    
    .timeline-item .timeline-content::before {
        content: " ";
        position: absolute;
        top: 22px;
        left: -10px;
        border-width: 10px;
        border-style: solid;
        border-color: transparent var(--light-gray) transparent transparent;
        z-index: 10;
    }

    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 20px; 
        margin-left: -10px; 
        right: auto;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 1rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .nav-link {
        color: var(--primary-color);
    }
    
    .nav-link:hover::after {
        width: 50%;
        left: 25%;
    }

    #main-header.scrolled .nav-link {
        color: var(--primary-color);
    }

    #hero h1 { font-size: 3rem; }
    
    h2 { font-size: 2.2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
    .contact-info { border-left: none; padding-left: 0; }
    .additional-services ul {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    #hero h1 { font-size: 2.5rem; }
    .container { padding: 0 1.5rem; }
}