@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
    --primary-bg: #F0F2F5;
    --primary-text: #272626;
    --accent-color: #ED1F2D;
    --accent-hover-color: #C81A25;
    --shadow-light: #FFFFFF;
    --shadow-dark: #D1D9E6;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    padding-top: var(--header-height);
}

/* Language Content Visibility Control */
.lang-content {
    display: none;
}

html[lang="hu"] .lang-content.hu,
html[lang="en"] .lang-content.en,
html[lang="sk"] .lang-content.sk {
    display: block;
}

/* Handle inline elements like text inside buttons/links */
html[lang="hu"] a > .lang-content.hu,
html[lang="hu"] button > .lang-content.hu,
html[lang="en"] a > .lang-content.en,
html[lang="en"] button > .lang-content.en,
html[lang="sk"] a > .lang-content.sk,
html[lang="sk"] button > .lang-content.sk,
html[lang="hu"] img.lang-content.hu,
html[lang="en"] img.lang-content.en,
html[lang="sk"] img.lang-content.sk {
    display: inline;
}


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

h1, h2 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

p {
    margin-bottom: 1rem;
}

/* Header & Navigation */
#main-header {
    background: var(--primary-bg);
    padding: 0 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

#main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switcher button {
    background: none;
    border: none;
    color: var(--primary-text);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.lang-switcher button:hover,
.lang-switcher button.active {
    color: var(--accent-color);
}

.lang-switcher span {
    color: var(--primary-text);
    margin: 0 5px;
}

/* Neumorphic Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    color: var(--accent-color);
    background: var(--primary-bg);
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    white-space: nowrap;
}

.btn:hover {
    color: var(--accent-hover-color);
}

.btn:active, .btn.active-state {
    box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
    transform: translateY(1px);
}

.nav-survey-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: 110px;
    text-align: center;
}

/* Hero Section */
#hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
}

#hero .video-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    padding: 10px;
    background: var(--primary-bg);
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
}

#hero video {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.hero-project-info {
    max-width: 900px;
    margin: 2rem auto 0 auto;
    padding: 0 1rem;
}

.hero-slogan {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

/* Sections */
section {
    padding: 4rem 0;
    border-bottom: 1px solid #e2e6eb;
}

section:last-of-type {
    border-bottom: none;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

.about-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-icon img {
    width: 100%;
    max-width: 200px;
    height: auto;
}

#about p {
    text-align: justify;
}

.project-id {
    font-size: 1.1rem;
    color: #778899;
    font-style: italic;
    font-weight: bold;
}

/* Survey Section on Main Page */
#survey .container {
    text-align: center;
}

#survey .btn {
    margin-bottom: 5px;
}

.survey-intro {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

/* Survey Page Header */
#survey-header {
    background: var(--primary-bg);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
}

#survey-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
    width: 100%;
}

.back-link a {
    color: var(--primary-text);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: var(--accent-color);
}

/* Neumorphic Card (on survey.html) */
.neumorphic-card {
    background-color: var(--primary-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
    margin-top: 2rem;
}

.neumorphic-card .survey-intro {
    max-width: 700px;
}

/* === SURVEY PAGE LAYOUT === */
body.survey-page {
    /* The body scrolls naturally */
}

body.survey-page #survey {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.survey-container {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
}

.survey-container iframe {
    width: 100%;
    height: 3200px; /* Large fixed height to show the whole form */
    border: 0;
    display: block;
}


/* Contact Section */
#contact {
    text-align: center;
}

/* Footer */
footer {
    background: var(--primary-bg);
    color: #777;
    padding: 2rem 0;
    text-align: center;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 1rem;
}

.partner-logos img {
    max-height: 160px; /* Doubled size for better visibility */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partner-logos img:hover {
    opacity: 1;
}

.eu-logo-container {
    margin-top: 1.5rem;
}

.eu-logo-container img {
    max-height: 60px;
}

/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-bg);
    padding: 1.5rem 0;
    z-index: 2000;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease-in-out;
    transform: translateY(0);
}

#cookie-consent-banner.hidden {
    transform: translateY(150%); /* Hide it off-screen */
}

#cookie-consent-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

#cookie-consent-banner p {
    margin-bottom: 0;
    color: #555;
    font-size: 0.9rem;
}

#cookie-consent-banner .btn {
    flex-shrink: 0;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* Responsive */
@media(max-width: 768px) {
    body {
        padding-top: 60px;
        --header-height: 60px;
    }

    #main-header .container {
        padding: 0 1rem;
    }
    
    #main-nav {
        gap: 0.5rem;
    }

    .nav-logo img {
        height: 35px;
    }
    
    .nav-survey-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: 90px;
    }

    .lang-switcher button {
        font-size: 0.9rem;
        padding: 5px 3px;
    }
    
    .lang-switcher span {
        margin: 0 2px;
    }

    #hero {
        min-height: auto;
        padding: 2rem 1rem;
    }
    
    .hero-slogan {
        font-size: 1.3rem;
    }
    
    .project-id {
        font-size: 0.9rem;
    }

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

    .container {
        padding: 0 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-icon {
        display: none; /* Hide icon on mobile for more space */
    }

    #survey-header nav {
        padding: 0 1rem;
    }
    
    .neumorphic-card {
        padding: 1.5rem;
    }

    .survey-container iframe {
        height: 80vh;
    }
    
    body.survey-page #survey {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .partner-logos {
        flex-direction: column;
        gap: 2rem;
    }
    
    #cookie-consent-banner .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}