@font-face {
    font-family: "OpenSans-Regular";
    src: url("/assets/fonts/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf")
        format("truetype");
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: "OpenSans-Regular", sans-serif;
}

/* Hero section with background image */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-image: url("/assets/images/home-kezele.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll !important;
        background-position: top center;
    }
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(5px); /* for Safari */
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}
.content-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
/* Navigation */
.nav-container {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 1.5rem 2rem;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.3)
    );
}

/* Language dropdown */
.language-dropdown {
    position: relative;
}

.language-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.language-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 50;
}

.language-dropdown:hover .language-dropdown-menu {
    opacity: 1;
    visibility: visible;
    border-radius: 0.5rem;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #333;
    transition: background-color 0.2s;
}

.language-option:hover {
    background-color: #f5f5f5;
    border-radius: 0.5rem;
}

.flag-icon {
    width: 24px;
    height: 16px;
    margin-right: 0.75rem;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.95);
    overflow-x: hidden;
    transition: 0.5s;
}

.mobile-menu-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
}

.mobile-menu-link {
    padding: 0.5rem;
    font-size: 2rem;
    color: white;
    display: block;
    transition: 0.3s;
}

.mobile-menu-link:hover {
    color: #f1f1f1;
}

.close-mobile-menu {
    position: absolute;
    top: 1.5rem;
    right: 2.5rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

/* Modern Mobile Language Dropdown */
.mobile-language-dropdown {
    margin-top: 2rem;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.mobile-language-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.mobile-language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-language-btn i {
    transition: transform 0.3s ease;
}

.mobile-language-btn.active i {
    transform: rotate(180deg);
}

.mobile-language-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 0.5rem 0.5rem;
}

.mobile-language-options.active {
    max-height: 300px;
}

.mobile-language-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-language-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #38bdf8;
}

/* Hero content */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Content sections */
.content-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Feature cards */
.feature-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeInBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-bottom {
    animation: fadeInBottom 1s ease-out;
}

/* Underline animation for links */
.underline-animation {
    position: relative;
}

.underline-animation::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.underline-animation:hover::after {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .mobile-menu-icon {
        display: block;
    }

    .desktop-menu {
        display: none;
    }
}

@media (min-width: 1025px) {
    .mobile-menu-icon {
        display: none;
    }

    .desktop-menu {
        display: flex;
    }
}

/* Scroll animation trigger */

.fade-in-bottom {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-bottom.show {
    opacity: 1;
    transform: translateY(0);
}
