/* Global Stylesheet for MuDiR Group BV 
   © 2023 MuDiR Group BV 
*/

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #2d3436;
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

:root {
    --primary-blue: #365b80;
    --accent-purple: #843fa1;
    --soft-blue: #dcf5fb;
    --soft-peach: #fef0e7;
    --accent-orange: #ff8c00;
}

/* --- LOGO TEXT PULSE --- */
@-webkit-keyframes text-pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    50% {
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
        text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
}

@keyframes text-pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    50% {
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
        text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
}

.logo-pulse {
    animation: text-pulse 2.5s infinite ease-in-out;
    display: inline-block;
}

/* --- PORTAL BUTTON PULSE --- */
@keyframes portal-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(54, 91, 128, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(54, 91, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(54, 91, 128, 0);
    }
}

/* --- BREATHING LOGO ANIMATION --- */
@keyframes logo-breathing {
    0% {
        opacity: 0.85;
        transform: scale(0.98);
        filter: brightness(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
        filter: brightness(1.05);
    }

    100% {
        opacity: 0.85;
        transform: scale(0.98);
        filter: brightness(0.95);
    }
}

/* --- PRECISION NAVBAR (Unified Style) --- */
.navbar {
    background: linear-gradient(90deg, var(--soft-blue) 0%, #ffffff 50%, var(--soft-peach) 100%) !important;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    min-height: auto;
}

.navbar-subpage {
    background: linear-gradient(90deg, var(--soft-blue) 0%, #ffffff 50%, var(--soft-peach) 100%) !important;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
    min-height: auto;
}

.navbar-nav .nav-link {
    font-size: 1.0rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    color: var(--primary-blue) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-orange) !important;
    transform: translateY(-1px);
}

.nav-contact-custom {
    color: var(--accent-orange) !important;
    font-size: 1.0rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    padding: 0.5rem 1rem !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-contact-custom:hover {
    color: #e67e22 !important;
    transform: translateY(-1px);
}

/* --- PORTAL BUTTON --- */
.navbar-nav .nav-item a.btn-portal {
    background-color: var(--primary-blue) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    padding: 8px 20px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    animation: portal-pulse 2s infinite;
    text-decoration: none !important;
    text-transform: uppercase;
    font-size: 0.9rem !important;
    margin-left: 10px;
}

.navbar-nav .nav-item a.btn-portal:hover {
    background-color: #2c4a69 !important;
    transform: translateY(-2px);
    animation: none;
    box-shadow: 0 6px 15px rgba(54, 91, 128, 0.4) !important;
}

/* --- SUBPAGE SPECIFICS --- */
.navbar-subpage .navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-subpage .navbar-brand img {
    background: transparent;
    border-radius: 15px;
    padding: 0;
    transition: transform 0.3s ease;
    height: 85px;
    width: auto;
    animation: logo-breathing 4s infinite ease-in-out;
}

.navbar-brand-text,
.logo-pulse {
    color: var(--primary-blue) !important;
    font-size: 1.25rem;
    font-weight: 700;
    margin-left: 10px;
    letter-spacing: -0.2px;
    display: inline-block;
    -webkit-animation: text-pulse 2.5s infinite ease-in-out;
    animation: text-pulse 2.5s infinite ease-in-out;
    transition: all 0.3s ease;
}

.navbar-subpage .navbar-toggler-icon {
    filter: none;
}

/* --- FOOTER --- */
.footer-btn {
    color: var(--primary-blue) !important;
    border: 2px solid var(--primary-blue);
    padding: 6px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-btn:hover {
    background-color: var(--primary-blue);
    color: white !important;
}

/* --- CAREERS PAGE EXCLUSIVE UPDATES --- */
/* This ensures the gradient only applies to the careers page and coordinates with the navbar colors */
.careers-page .tech-section-gradient {
    background: linear-gradient(135deg, rgba(54, 91, 128, 0.95) 0%, rgba(132, 63, 161, 0.8) 100%) !important;
    color: #ffffff;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.careers-page .tech-section-gradient h2,
.careers-page .tech-section-gradient p {
    color: #ffffff !important;
}