/* Általános stílusok */
:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #ff9800;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --white-color: #ffffff;
    --section-padding: 100px 0;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.section-padding {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
}

/* Navigáció */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 50px;
}

.small-logos {
    display: flex;
    align-items: center;
}

@media (max-width: 767.98px) {
    .small-logos {
        display: none;
    }
}

.navbar .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--primary-color);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

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

/* Hero szekció */
.hero-section {
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    padding: 200px 0 100px;
    position: relative;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    color: var(--white-color);
    border-color: var(--white-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Csapatunk szekció */
.team-section-parallax {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.8));
    color: var(--white-color);
}

.team-section-parallax::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/team/team-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    opacity: 0.15;
    z-index: 0;
    animation: teamBgMove 10s ease-in-out infinite alternate;
}

@keyframes teamBgMove {
    0% {
        transform: scale(1.0) translateY(0);
    }
    100% {
        transform: scale(1.05) translateY(-10px);
    }
}

.team-section-content {
    position: relative;
    z-index: 1;
}

.section-title, .section-subtitle {
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.team-section-content .section-title,
.team-section-content .section-subtitle {
    color: var(--white-color);
}

.team-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.team-stat-container {
    perspective: 1000px;
    min-width: 200px;
    flex: 1;
    height: 100%;
    margin-bottom: 30px;
}

.team-stat-item {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 240px; /* 20%-kal növelve a 200px-ről */
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.team-stat-front, .team-stat-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
}

.team-stat-front {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-stat-container:hover .team-stat-front {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.team-stat-back {
    background-color: rgba(255, 255, 255, 0.9);
    transform: rotateY(180deg);
    padding: 20px;
    overflow-y: auto;
    min-height: 240px; /* Hozzáadva a hátsó oldal minimális magassága */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: var(--dark-color); /* Adding text color to ensure visibility */
}

.team-stat-icon {
    margin-bottom: 15px;
}

.team-stat-icon img {
    width: 64px;
    height: 64px;
    transition: transform 0.3s ease;
}

.team-stat-item.hover-active .team-stat-icon img,
.team-stat-item.touch-active .team-stat-icon img {
    transform: scale(1.1);
}

.team-stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}

.team-stat-title {
    font-size: 1.2rem;
    color: var(--gray-color);
    font-weight: 500;
}

.team-stat-back h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.team-stat-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.team-stat-back p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.team-stat-item.hover-active,
.team-stat-item.touch-active {
    transform: rotateY(180deg);
}

/* Szakértelem szekció */
.expertise-section-parallax {
    position: relative;
    overflow: hidden;
}

.expertise-section-parallax::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/expertise/expertise-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: 0;
}

.expertise-section-content {
    position: relative;
    z-index: 1;
}

.expertise-card-container {
    perspective: 1000px;
    height: 100%;
    min-height: 300px;
    margin-bottom: 30px;
}

.expertise-card {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.expertise-card-container:hover .expertise-card,
.expertise-card-container:focus .expertise-card,
.expertise-card-container:active .expertise-card {
    transform: rotateY(180deg);
}

.expertise-card-front, .expertise-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.expertise-card-front {
    background-color: var(--white-color);
}

.expertise-card-back {
    background-color: var(--white-color);
    transform: rotateY(180deg);
    overflow-y: auto;
}

.expertise-card .icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.expertise-card .icon-box i {
    font-size: 30px;
    color: var(--primary-color);
}

.expertise-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-back-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Szolgáltatási csomagok */
.service-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.service-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.service-header {
    background-color: var(--light-color);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card.featured .service-header {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.service-header h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.service-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
}

.service-card.featured .service-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.service-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features i {
    color: var(--primary-color);
    margin-right: 10px;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Referenciák */
#references {
    position: relative;
    overflow: hidden;
}

#references::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/references/references-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.1;
    z-index: 0;
}

#references .container {
    position: relative;
    z-index: 1;
}

.reference-logo {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.reference-logo img {
    max-height: 100px;
    max-width: 100%;
}

.reference-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.testimonial {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 10px;
    padding-left: 30px;
}

.testimonial-author {
    font-weight: 700;
    text-align: right;
}

/* Logo Slider */
.logo-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 30px 0;
    margin-top: 20px;
}

.logo-slider {
    display: flex;
    animation: slide 30s linear infinite;
    width: calc(180px * 15);
}

.logo-slider-2 {
    animation: slide2 30s linear infinite;
    animation-delay: -15s;
}

.logo-slide {
    width: 180px;
    height: 100px;
    padding: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white-color);
    border-radius: 8px;
    margin: 0 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.logo-slide img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-180px * 15));
    }
}

@keyframes slide2 {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-180px * 15));
    }
}

@media (max-width: 767.98px) {
    .logo-slide {
        width: 150px;
        height: 80px;
        padding: 10px;
        margin: 0 10px;
    }
    
    .logo-slide img {
        max-height: 60px;
    }
    
    .logo-slider {
        width: calc(150px * 15);
    }
    
    @keyframes slide {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 15));
        }
    }
    
    @keyframes slide2 {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 15));
        }
    }
}

/* LinkedIn Feed */
.linkedin-feed {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* News Cards */
.news-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-card-img-container {
    height: 200px;
    overflow: hidden;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.05);
}

.news-card-date {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.news-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card .card-text {
    color: var(--gray-color);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.news-card .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-card .btn:hover {
    transform: translateY(-2px);
}

/* Q&A Section */
.faq-section {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 20px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: var(--secondary-color);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 10px 0;
    color: var(--gray-color);
    line-height: 1.6;
}

.faq-answer.show {
    display: block;
}

/* Kapcsolat */
.contact-info {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

.certificate-logos {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.certificate-logos img {
    max-height: 120px;
}

.contact-form {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-control, .form-select {
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.form-control:focus, .form-select:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 80px 0 30px;
}

/* EU Support Popup */
.eu-support-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.eu-support-popup img {
    height: 30vh;
    width: auto;
    border-radius: 4px;
}

.footer-logo {
    max-height: 50px;
}

.footer h5 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* Reszponzív beállítások */
@media (max-width: 991.98px) {
    .navbar {
        padding: 10px 0;
    }
    
    .hero-section {
        padding: 150px 0 80px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card.featured {
        transform: scale(1);
    }
    
    .service-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .expertise-card-container {
        min-height: 350px;
    }
    
    .expertise-card {
        min-height: 350px;
    }
    
    .expertise-card.touch-active {
        transform: rotateY(180deg);
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .team-stat-container {
        min-width: 140px;
    }
    
    .team-stat-front {
        padding: 30px 20px;
    }
    
    .team-stat-item {
        min-height: 200px; /* Mobilon kisebb magasság */
    }
    
    .team-stat-back {
        min-height: 200px; /* Mobilon kisebb magasság */
    }
    
    .team-stat-icon img {
        width: 48px;
        height: 48px;
    }
    
    .team-stat-number {
        font-size: 2.5rem;
    }
    
    .team-stat-title {
        font-size: 1rem;
    }
    
    .team-stat-back h4 {
        font-size: 1.3rem;
    }
    
    .team-stat-image {
        height: 120px;
    }
}
