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

:root {
    /* Vista Lateral Kft. színvilág */
    --primary-color: #2c4665;      /* Sötétkék a logóból */
    --secondary-color: #3d5a7a;    /* Világosabb kék */
    --accent-orange: #ff8c5a;      /* Narancssárga a logóból */
    --accent-gold: #ffb347;        /* Arany narancs */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-gray: #7a7a7a;            /* Háttér szürke a logóból */
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #2c4665 0%, #3d5a7a 100%);
    --gradient-warm: linear-gradient(135deg, #ff8c5a 0%, #ffb347 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

body:has(.modal.active) {
    overflow: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(44, 70, 101, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(44, 70, 101, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;       /* Flexbox megjelenítés a soron belüli elemeknek */
    align-items: center;        /* Függőlegesen középre igazítja a képet és a szöveget */
    gap: 0.75rem;              /* Ízléses távolság a logókép és a szöveg között */
    text-decoration: none;      /* Eltünteti az esetleges link aláhúzást */
    color: inherit;             /* Megtartja a beállított szövegszínt */
    font-weight: bold;
}

.logo img {
    width: 250px;
    height: 100%;
    display: block;             /* Megakadályozza a képek alatti apró plusz margót */
    
}

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

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.nav-menu a:hover {
    color: var(--accent-orange);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    background: var(--gradient);
    color: var(--white);
    padding: 60px 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 140, 90, 0.15);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 179, 71, 0.1);
    border-radius: 50%;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-align: justify;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 140, 90, 0.4);
}

/* Sections */
.section {
    padding: 80px 2rem;
    position: relative;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 600px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

.about-text ul {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
    list-style: disc;
    padding-left: 1.5rem;
}

.about-text strong {
    color: var(--accent-orange);
}

/* Services Section */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(44, 70, 101, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(44, 70, 101, 0.2);
    border-top-color: var(--accent-orange);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-icon * {
    position: relative;
    z-index: 2;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-warm);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover .service-icon::after {
    opacity: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    text-align: justify;
}

.service-card {
    cursor: pointer;
}

@media (min-width: 992px) {
    .services-grid .service-card:nth-child(7) {
        grid-column: 2; /* A 2. (középső) oszlopba kényszeríti az elemet */
    }
}

/* Modal háttér (overlay) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 2rem 1rem; /* Margó mobilon, hogy a kártya ne érjen a kijelző széléhez */
}

/* A felugró kártya doboza */
.modal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    
    /* Görgethetőség beállítása */
    max-height: 85vh;    /* Képernyő magasságának maximum 85%-a lehet */
    overflow-y: auto;    /* Függőleges gördítősáv megjelenítése, ha szükséges */
}

/* Modal nyitott állapota */
.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal.active .modal-content {
    transform: translateY(0);
}

/* Bezáró (X) gomb */
.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--accent-orange);
}

/* Modal belső elemei */
.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.modal-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: justify;
    margin: 0.5rem 0 1.5rem 0;
}

/* Gördítősáv igazítása a lekerekített sarokhoz */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 20px 0; /* Alul-felül elhagy helyet, így nem ér el a lekerekített sarkokig */
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 10px;
    opacity: 0.5;
}

/* Modal belsejében lévő elemek formázása */
#modalDescription h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1.1rem;
}

#modalDescription ul {
    list-style: none; /* Alapértelmezett pöttyök eltüntetése */
    padding-left: 0;
    margin-top: 0.5rem;
}

#modalDescription li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Egyedi pipa vagy színes pötty a felsorolás elemei elé */
#modalDescription li::before {
    content: "✓"; /* Vagy használsz sima pöttyöt: "•" */
    position: absolute;
    left: 0;
    color: var(--accent-orange, #ff6b35); /* Az oldalad kiemelő színe */
    font-weight: bold;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(44, 70, 101, 0.1);
    border-left: 4px solid var(--accent-orange);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 140, 90, 0.2);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;             /* Állítsd be a kívánt szélességet */
    height: 50px;            /* Állítsd be a kívánt magasságot */
    border-radius: 50%;      /* Ha kör alakú keretet szeretnél (elhagyható) */
    overflow: hidden;        /* A kilógó részek levágása */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;  /* Fehér háttér, ha a logó átlátszó PNG */
    border: 1px solid #eee;  /* Opcionális finom keret */
}

/* A logókép illesztése a konténerbe */
.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;     /* Biztosítja, hogy a teljes logó látszódjon torzulás nélkül */
    padding: 4px;            /* Kis belső margó, hogy a logó ne érjen teljesen a széléhez */
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.author-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: justify;
}

/* Resources Section */
.resources {
    background: var(--bg-light);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(44, 70, 101, 0.1);
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(44, 70, 101, 0.2);
}

.resource-image {
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
}

.resource-image::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 30%;
    width: 100px;
    height: 100px;
    background: var(--accent-orange);
    opacity: 0.2;
    border-radius: 50%;
}

.resource-content {
    padding: 1.5rem;
}

.resource-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.resource-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-align: justify;
}

.resource-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.resource-link:hover {
    color: var(--accent-gold);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: var(--gradient);
    padding: 3rem;
    border-radius: 20px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: var(--accent-orange);
    opacity: 0.1;
    border-radius: 50%;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.contact-item, .social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.contact-icon, .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 140, 90, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: var(--accent-orange);
    transform: scale(1.1);
}

.no-style {
    text-decoration: none;
    color: #e5e7eb;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(44, 70, 101, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-warm);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-orange);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-orange);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 140, 90, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-orange);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(255, 140, 90, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top:hover {
    background: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 140, 90, 0.4);
}

.scroll-top.show {
    display: flex;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(44, 70, 101, 0.1);
        transition: left 0.3s ease;
    }

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

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
        text-align: justify;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .testimonials-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
}
