/* Global Reset & Mobile Fixes */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

body {
    overflow-x: hidden !important;
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Mobile Viewport Fix */
@media (max-width: 640px) {
    .max-w-7xl {
        max-width: 100%;
    }

    section {
        overflow-x: hidden;
    }

    body {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
}

/* Loader Styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader.fade-out {
    opacity: 0;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a5f7a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Remix Icon Fix */
:where([class^="ri-"])::before {
    content: "\f3c2";
}

/* Header Styles */
header {
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header.scrolled .text-white {
    color: #1a5f7a !important;
}

header.scrolled .hover\:text-secondary:hover {
    color: #86a789 !important;
}

/* Hero Background */
.hero-bg {
    background-image: url('https://readdy.ai/api/search-image?query=modern%20corporate%20office%20building%20with%20glass%20facade%20against%20blue%20sky%2C%20professional%20business%20environment%2C%20clean%20architecture%2C%20minimalist%20design%2C%20corporate%20headquarters%2C%20contemporary%20building%20exterior%2C%20business%20district%2C%20professional%20photography&width=1920&height=1080&seq=hero001&orientation=landscape');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Smooth Scroll */
.scroll-smooth {
    scroll-behavior: smooth;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Slider Styles */
.slider-container {
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

/* Slider Animation Types */
/* Common styles for background layer */
.slide .slide-bg-layer {
    transition: all 8s ease-out;
}

/* Zoom Animation */
.slide-animation-zoom .slide-bg-layer {
    transition: transform 8s ease-out;
}

.slide-animation-zoom.active .slide-bg-layer {
    transform: scale(1.15);
}

/* Fade Animation */
.slide-animation-fade .slide-bg-layer {
    transition: opacity 2s ease-in-out;
}

/* Slide Right Animation */
.slide-animation-slide-right .slide-bg-layer {
    transition: transform 8s ease-out;
}

.slide-animation-slide-right.active .slide-bg-layer {
    transform: translateX(100px);
}

/* Slide Left Animation */
.slide-animation-slide-left .slide-bg-layer {
    transition: transform 8s ease-out;
}

.slide-animation-slide-left.active .slide-bg-layer {
    transform: translateX(-100px);
}

/* Pan Animation */
.slide-animation-pan .slide-bg-layer {
    background-size: 115% !important;
    transition: background-position 12s ease-out;
}

.slide-animation-pan.active .slide-bg-layer {
    background-position: 100% center !important;
}

/* Rotate Animation */
.slide-animation-rotate .slide-bg-layer {
    background-size: 115% !important;
    transition: transform 10s ease-out;
}

.slide-animation-rotate.active .slide-bg-layer {
    transform: scale(1.1) rotate(3deg);
}

.nav-dot.active {
    background-color: white !important;
}

/* Scroll to Top Button */
#scrollToTop {
    transform: translateY(100px);
}

#scrollToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Language Selector */
.lang-link.active-lang {
    background-color: rgba(26, 95, 122, 0.1);
    font-weight: 600;
}

.lang-link.active-lang::after {
    content: "✓";
    margin-left: 12px;
    color: #1a5f7a;
    font-weight: bold;
}

/* ========================================
   MOBILE MENU MINIMAL SHARP STYLES
   ======================================== */

/* 1. MAIN CONTAINER */
#mobileMenu {
    background: #1a5f7a;
}

/* Navigation area */
.mobile-menu-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(134, 167, 137, 0.5) transparent;
}

/* Webkit scrollbar styling */
.mobile-menu-nav::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu-nav::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-menu-nav::-webkit-scrollbar-thumb {
    background: rgba(134, 167, 137, 0.5);
}

.mobile-menu-nav::-webkit-scrollbar-thumb:hover {
    background: #86a789;
}

/* 2. HEADER SECTION - Logo + Close Button */
.mobile-menu-header {
    border-bottom: 2px solid #86a789;
}

.mobile-menu-close-btn {
    transition: all 0.2s ease;
}

.mobile-menu-close-btn:hover {
    background-color: #86a789;
    color: #1a5f7a;
}

/* 3. PARENT MENU ITEMS */
.mobile-menu-parent-item {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.mobile-menu-parent-item:hover {
    border-left-color: #86a789;
    background: rgba(134, 167, 137, 0.1);
}

/* 4. SUBMENU CONTAINER */
.mobile-submenu-container {
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid #86a789;
    padding: 0;
}

/* Submenu item base */
.mobile-submenu-item {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

/* Submenu hover */
.mobile-submenu-item:hover {
    border-left-color: #86a789;
    background: rgba(134, 167, 137, 0.15);
}

/* 5. LANGUAGE SECTION - Footer */
.mobile-menu-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px solid #86a789;
}

.mobile-language-section {
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(134, 167, 137, 0.3);
    padding: 0.5rem;
}

/* Active language highlight */
.active-lang-mobile {
    background: #86a789 !important;
    color: #1a5f7a !important;
    font-weight: 600;
}

/* Language item specific hover */
.mobile-lang-item:hover {
    background: rgba(134, 167, 137, 0.2) !important;
}

/* 6. DROPDOWN ANIMATIONS */
.mobile-dropdown-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.mobile-dropdown-menu.hidden {
    max-height: 0 !important;
    opacity: 0 !important;
}

/* Active dropdown toggle */
.mobile-dropdown-toggle.active {
    border-left-color: #86a789;
    background: rgba(134, 167, 137, 0.1);
}

/* 7. RESPONSIVE ADJUSTMENTS */
@media (max-width: 374px) {
    .mobile-menu-header {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .mobile-menu-parent-item {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }
}
