/* Custom Style Overwrites for Bootstrap */

:root {
    --header-height: 90px;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
}

/* Sticky Header Logic */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    background-color: transparent;
}

header.sticky {
    background-color: #031A29;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.overflow-hidden header.sticky {
    background-color: transparent;
    box-shadow: none;
}

header.sticky .navbar-toggler-icon {
    filter: invert(1) brightness(10); /* Keep white on blue background */
}

header .navbar {
    width: 100%;
    height: 100%;
    padding: 0;
}

header .navbar-brand img {
    max-height: 70px; /* Adjust based on logo size */
}

/* White Hamburger Icon */
.navbar-toggler-icon {
    filter: invert(1) brightness(10); /* Ensures the icon is fully white */
    width: 30px;
    height: 30px;
}

/* Close icon (X) when menu is open */
.navbar-toggler.active .navbar-toggler-icon {
    background-image: none;
    position: relative;
    filter: none; /* Remove invert filter so white stays white */
}

.navbar-toggler.active .navbar-toggler-icon::before,
.navbar-toggler.active .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: white;
    top: 50%;
    left: 0;
}

.navbar-toggler.active .navbar-toggler-icon::before {
    transform: rotate(45deg);
}

.navbar-toggler.active .navbar-toggler-icon::after {
    transform: rotate(-45deg);
}

/* Side Overlay Menu (Right half) */
.fullscreen-nav {
    position: fixed;
    top: 0;
    right: -50%; /* Start off-screen */
    width: 50%;
    height: 100%;
    background-color: #031A29; /* Dark Blue */
    z-index: 2500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Align entries left */
    padding-left: 2.5%; /* Align with the logo/content */
    opacity: 0;
    visibility: hidden;
    transition: right 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
}

.fullscreen-nav.show {
    right: 0;
    opacity: 1;
    visibility: visible;
}

/* Content Darkening Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

body.overflow-hidden::after {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fullscreen-nav .navbar-nav {
    flex-direction: column; /* Menu entries under each other */
}

.fullscreen-nav .navbar-nav .nav-link {
    color: #FFF;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase; /* Kapital letters */
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.2;
    display: inline-block; /* Ensure underline only spans text width */
}

/* Submenu Styles */
.submenu-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.dropdown-submenu.active .submenu-list {
    max-height: 1000px; /* Large enough to fit content */
    margin-bottom: 0.5rem;
}

.submenu-link {
    font-size: 0.9rem !important;
    text-transform: none !important;
    font-weight: normal !important;
    margin: 0 !important;
}

.submenu-link::after {
    height: 1px !important;
    bottom: -1px !important;
}

.dropdown-toggle-custom {
    cursor: pointer;
    position: relative;
    padding-right: 25px !important;
}

.dropdown-toggle-custom::before {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.dropdown-submenu.active .dropdown-toggle-custom::before {
    content: '-';
}



.fullscreen-nav .menu-title {
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem !important;
}

.navbar-toggler {
    padding: 0.5rem;
    z-index: 3001;
    position: relative;
    border: 2px solid #FFF !important;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Home Page Background Logic */
.hero-section {
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.scroll-down-container {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-down-container.fade-out {
    opacity: 0;
    visibility: hidden;
}

.scroll-down {
    text-decoration: none;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.scroll-down:hover {
    opacity: 0.8;
}

.scroll-down svg {
    display: block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(20px);
    }
    60% {
        transform: translateY(10px);
    }
}



/* Force hamburger visibility */
.navbar-expand-lg .navbar-toggler {
    display: block !important;
}

@media (max-width: 992px) {
    .fullscreen-nav {
        width: 70%;
        right: -70%;
    }
    .fullscreen-nav .navbar-nav .nav-link {
        font-size: 1.5rem;
        line-height: 1.2;
        margin: 0;
        display: inline-block;
        position: relative;
    }
}

@media (max-width: 576px) {
    .fullscreen-nav {
        width: 100%;
        right: -100%;
        padding-top: 80px; /* Space for the logo/header */
        justify-content: flex-start; /* Start from top on mobile */
    }
    .fullscreen-nav .navbar-nav .nav-link {
        font-size: 1.2rem;
        line-height: 1.1;
        margin: 0;
        display: inline-block;
        position: relative;
    }
    .fullscreen-nav .menu-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem !important;
    }
}

/* Container Alignment */
#next-section {
    scroll-margin-top: 75px;
}

.container {
    padding-left: 2.5% !important;
    padding-right: 2.5% !important;
}

@media (max-width: 992px) {
    .container {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }
}

/* General link hover settings */
a {
    text-decoration: none !important;
    position: relative;
    display: inline-block;
    color:#FFF;
    transition: color 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    display: block;
    bottom: -1px;
    left: 0;
    background: currentColor;
    transition: width 0.3s ease;
}


a:hover::after {
    width: 100%;
}

.fullscreen-nav .navbar-nav .nav-link::after {
    height: 2px;
    bottom: -2px;
}

/* Specific overrides to prevent global red hover on brand-like links */
.navbar-brand:hover {
    color: inherit !important;
}

.navbar-brand:hover::after,
.scroll-down:hover::after {
    display: none;
}


.bg-blue {
    background-color: #031A29; /* Matching the header menu blue */
}

/* Services Slider */
.slider-container {
    cursor: grab;
    user-select: none;
    padding: 20px 0;
}

.slider-track {
    transition: transform 0.4s ease-out;
    will-change: transform;
}

.slider-item {
    min-width: 3000px;
    margin-right: 20px;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 2/3;
}

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

.image-wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 26, 41, 0.7); /* Using the primary blue */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-wrapper .overlay span {
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-align: center;
    padding: 0 10px;
}

.slider-item:hover .image-wrapper img {
    transform: scale(1.1);
}

.slider-item:hover .image-wrapper .overlay {
    opacity: 1;
}

.slider-controls button {
    width: 45px;
    height: 45px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: #031A29;
    color: #031A29;
}

.slider-controls button:hover {
    background-color: #031A29;
    border-color: #031A29;
    color: #fff;
}

.slider-controls button:active {
    background-color: #031A29 !important;
    border-color: #031A29 !important;
}

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



.footer-menu {
    font-size: 0.95rem;
}

.footer-menu a {
    color: #FFF !important;
}



@media (max-width: 767.98px) {
    .footer-logo {
        display: none !important;
    }
    .footer-content-left, .footer-content-right {
        text-align: left;
    }
    .footer-content-right {
        margin-top: 2rem !important;
    }
}
