/* CSS Root Variables for Brand Colors */
:root {
    --primary-blue: #004b87;
    --primary-yellow: #ffc72c;
}

/* Font Families */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
}

/* Logo Roll-in Animation */
@keyframes logoRollIn {
    0% {
        transform: translateX(-200px) rotate(-180deg);
        opacity: 0;
    }

    50% {
        transform: translateX(-50px) rotate(-90deg);
        opacity: 0.7;
    }

    100% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
}

.logo-roll-in {
    animation: logoRollIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Mobile Brand Text */
.navbar-brand span {
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

html {
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Hero Section Styling */
#home {
    height: 100vh;
    /* Full viewport height */
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background-image: url('hero-bg.jpg');
    /* Fallback background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    /* Remove default padding */
    margin: 0;
    /* Remove any margins */
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 130%;
    /* Increased horizontal coverage */
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    object-fit: cover;
}

/* Dark Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

#home .container {
    position: relative;
    z-index: 3;
}

/* Hero Section CTA Button */
#home .btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#home .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Primary CTA Button Styling */
.btn-warning {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #e6b300;
    border-color: #e6b300;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #003d6b;
    border-color: #003d6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Floating Navigation Bar */
.floating-nav {
    position: fixed !important;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    /* Mobile width */
    max-width: 1200px;
    background-color: rgba(0, 75, 135, 0.95) !important;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    /* Smaller radius on mobile */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-logo {
    max-height: 50px;
    /* Smaller logo on mobile */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-toggler {
    border: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
}

.navbar-toggler:focus {
    box-shadow: none;
    color: var(--primary-yellow);
}

/* Mobile Menu Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
        background-color: rgba(0, 75, 135, 0.95);
        /* Ensure good contrast */
        border-radius: 10px;
        padding: 1rem;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .navbar-nav .nav-link {
        padding: 0.8rem 1rem !important;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .display-4 {
        font-size: 2.5rem;
        /* Scale down hero text */
    }

    .display-5 {
        font-size: 2rem;
    }

    /* Adjust section padding for mobile */
    section {
        padding: 40px 0;
        min-height: auto;
        /* Allow natural height on mobile */
    }

    #home {
        min-height: 100vh;
        /* Keep hero full height */
    }

    /* Modal Adjustments */
    .modal-dialog {
        margin: 10px;
    }
}

/* Desktop Styles (>992px) - Strict Preservation */
@media (min-width: 992px) {
    .floating-nav {
        top: 30px;
        width: 80%;
        min-width: 800px;
        height: 60px;
        border-radius: 50px;
        padding: 0.5rem 1.5rem;
        display: flex;
        align-items: center;
    }

    .nav-logo {
        max-height: 120px;
        /* Large logo restored */
        position: relative;
        z-index: 10;
    }

    .navbar-brand {
        overflow: visible;
        padding: 0;
        margin: 0;
    }

    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
        align-items: center;
        justify-content: flex-end;
    }

    .navbar-nav {
        flex-direction: row;
    }

    .nav-item {
        margin: 0 0.25rem;
    }

    .nav-link {
        padding: 0.5rem 0.75rem !important;
    }

    section {
        padding: 80px 0;
        min-height: 100vh;
    }

    section[id] {
        padding-top: 120px;
    }

    #home {
        padding-top: 0 !important;
    }
}

/* Common Styles */
.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    border-radius: 8px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    font-size: 0.85rem;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active-section {
    color: var(--primary-yellow) !important;
    background-color: rgba(255, 199, 44, 0.1);
}

.navbar-nav .nav-link.active-section {
    border-radius: 6px;
}

/* Card Hover */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Text Shadow */
#hero h1,
#hero p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Footer & Focus */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-yellow) !important;
}

footer .bi {
    transition: transform 0.3s ease, color 0.3s ease;
}

footer .bi:hover {
    transform: scale(1.2);
    color: var(--primary-yellow) !important;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

html {
    scroll-behavior: smooth;
}

.display-4 {
    line-height: 1.2;
}

.display-5 {
    line-height: 1.3;
}

.lead {
    line-height: 1.6;
}

img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

.btn:focus,
.nav-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 199, 44, 0.25);
}

.text-brand-yellow {
    color: var(--primary-yellow) !important;
}