/* Custom CSS for gallery and other elements */
.gallery-wrapper {
    position: relative;
    height: 500px;
}
.gallery-slide {
    display: none;
    transition: opacity 0.5s ease;
}
.gallery-slide.active {
    display: block;
    opacity: 1;
}

.thumbnail {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
}

.thumbnail:hover,
.thumbnail.active {
    transform: scale(1.05);
    opacity: 1;
}

.thumbnail.active {
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    animation: fadeIn 0.3s ease-out;
}

.close-modal {
    position: fixed;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.2s ease;
}

.close-modal:hover {
    color: #f87171;
    transform: scale(1.1);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.2s ease;
}
.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}
.prev-arrow {
    left: 20px;
}
.next-arrow {
    right: 20px;
}

/* Slide counter */
.slide-counter {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    z-index: 1001;
}

/* Loading spinner */
.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    z-index: 1001;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Custom select styling */
.custom-select {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.custom-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.custom-select::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
}
@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/Kezele2.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);
}

/* Map container styling */
#map {
    width: 100%;
    height: 500px;
    z-index: 1;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.leaflet-container {
    background-color: #f8fafc;
}
