/* MAIN PAGE STYLES START */
root{
    :root {
        --brand-dark-blue: #0f172a;
        --brand-orange: #ff7a00;
    }
}

body{
    font-family: "PT Sans", sans-serif;
    scroll-behavior: smooth;
}
.font-title{
    font-family: "PT Sans", sans-serif;
    font-weight: bold;
}

/* Base Navbar Transition */
.navbar {
    transition: transform 0.4s ease-in-out, background-color 0.3s;
    top: 0;
    width: 100%;
    z-index: 1030;
}

/* This class hides the navbar by sliding it up out of view */
.nav-up {
    transform: translateY(-100%);
}

/* This class styles the navbar when it's "stuck" at the top */
.navbar.scrolled {
    position: fixed;
    transform: translateY(0); /* Brings it back down */
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #eee;
}

/* 1. Base style for nav links */
.navbar-nav .nav-link {
    color: #333; /* Dark grey or your preferred default */
    border-top: 3px solid transparent; /* Invisible border so the menu doesn't "jump" when it appears */
    transition: all 0.3s ease;
    padding-top: 10px;
}

/* 2. Hover State */
.navbar-nav .nav-link:hover {
    color: orange !important;
    border-top: 3px solid orange;
}

/* 3. Active State (The page you are currently on) */
.navbar-nav .nav-link.active {
    color: orange !important;
    border-top: 3px solid orange;
    font-weight: bold;
}
/* Ensure the footer logo is white to match the theme */


/* Specific styling for the logo in the header vs footer */
.navbar-brand img {
    transition: height 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 80px; /* Shrinks logo slightly when scrolling for a "pro" feel */
}

/* CAROUSEL */
/* Adjust the height to whatever looks best for your design (e.g., 500px or 600px) */
.carousel-item {
    height: 85vh; /* This means 70% of the screen height */
    min-height: 400px; /* Ensures it doesn't get too small on mobile */
    background-color: #000; /* Black background fills gaps if the image loads slowly */
}

.carousel-item img {
    height: 100%;
    object-fit: cover; /* This crops the top/bottom of the image instead of squishing it */
    object-position: center; /* Keeps the middle of the photo visible */
}

.carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}
.carousel-caption {
    top: 0;
    bottom: 0;
    left: 15vw;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
}
.carousel-caption h1 {
    font-size: 4rem;
    font-weight: bolder;
}
.carousel-caption p {
    font-size: 1.6rem;
    font-weight: normal;
}
.btn-caption-color{
    background-color: orange;
}
.btn-caption-color:hover{
    background-color: rgb(1,46,88);
}

.container-background-dark-blue{
    background-color: #012E58FF;
}
.container-background-grey{
    background-color: lightgray;
}
.text-orange{
    color: orange;
}
.text-dark-blue{
    color: #012E58FF;
}



/* --- SERVICE CARD STYLES --- */

.service-card {
    position: relative;
    padding-bottom: 50px; /* Space for the box to overlap the bottom */
    cursor: pointer;
}

.service-img-wrapper {
    overflow: hidden;
    border-radius: 4px;
}

.service-img-wrapper img {
    width: 100%;
    height: 250px; /* Keeps all images uniform height */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.08);
}

/* The White Info Box */
.service-info-box {
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 5;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* The Sliding Window (The Frame) */
.sliding-window {
    height: 30px; /* Only one line visible at a time */
    overflow: hidden;
    margin-bottom: 5px;
}

/* The container that actually moves */
.sliding-content {
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-subtitle, .service-link {
    height: 30px;
    line-height: 30px;
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.service-subtitle {
    color: orange; /* Ensure this is defined in :root */
}

.service-link {
    color: #00a8ff;
    text-decoration: none;
}

.service-title {
    color: #0f172a; /* brand-dark */
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0;
}

/* --- HOVER EFFECTS --- */

/* 1. Push the whole box up slightly */
.service-card:hover .service-info-box {
    transform: translateY(-15px);
}

/* 2. Slide the text content up by exactly 30px to swap them */
.service-card:hover .sliding-content {
    transform: translateY(-30px);
}

/**/
.logo-slider-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.logo-track {
    display: inline-flex;
    align-items: center;
    animation: scrollLogos 25s linear infinite;
}

.logo-track img {
    height: 60px; /* Adjust this to make logos bigger or smaller */
    margin: 0 40px; /* Space between logos */
    filter: grayscale(100%); /* Optional: makes logos gray for a pro look */
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* On hover, logos turn to original color and brighten up */
.logo-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/*OUR SERVICES PREVIEW*/
/* Custom Hover Effect */
.h-100 {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.h-100:hover {
    transform: translateY(-10px); /* Lifts the card up */
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important; /* Deepens the shadow */
}

/* Optional: Change icon color on hover */
.h-100:hover i {
    color: #fd7e14 !important; /* Changes blue icon to orange on hover */
    transition: color 0.3s ease;
}

/* The Animation Logic */
@keyframes scrollLogos {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } /* Moves halfway through the doubled list */
}

/* Custom Shake for FA 4.7 */
.card:hover .fa {
    display: inline-block;
    animation: kf-shake 0.5s ease-in-out;
}

@keyframes kf-shake {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(8deg); }
    60% { transform: rotate(-8deg); }
    80% { transform: rotate(8deg); }
    100% { transform: rotate(0deg); }
}

/*MANAGEMENT TEAM*/
.management-gradient {
    background-color: whitesmoke;
}
.team-card {
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

.team-img {
    transition: transform 0.6s ease;
}

.team-card:hover .team-img {
    transform: scale(1.05); /* Subtle zoom on the manager's photo */
}

/* CALL TO ACTION STYLES START*/
/* Video Container Setup */
.cta-video-container {
    position: relative;
    width: 100%;
    height: 60vh; /* Adjust height as needed */
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Make Video fill the container */
.cta-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Darker Overlay to make white text pop */
.cta-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 50, 0.7); /* Deep blue/black tint */
    z-index: 1;
}
@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(253, 126, 20, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(253, 126, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(253, 126, 20, 0); }
}

/* Ensure content stays on top */
.cta-content {
    position: relative;
    z-index: 2;
}

/* Re-applying the Pulse Animation from earlier */
.pulse-button {
    animation: pulse-orange 2s infinite;
    border: none;
    background-color: #fd7e14;
    color: white;
}

/* FOOTER STYLES */
footer img {
    max-height: 50px;
}
.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    transition: all 0.3s ease;
    color: #adb5bd !important; /* Light grey */
}

.footer-links a:hover {
    color: orange !important;
    padding-left: 8px; /* Slides the link to the right on hover */
}




/* PORTFOLIO PAGE STYLES START*/
/* Portfolio Card Design */
.portfolio-card {
    transition: all 0.4s ease;
    border: 1px solid #eee;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1) !important;
}

.portfolio-img-container {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.portfolio-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-img-container img {
    transform: scale(1.1);
}

/* Category Badges */
.portfolio-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #0A1432B3; /* Brand Orange */
    color: white;
    padding: 8px 15px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    letter-spacing: 1px;
}

.bg-dark-blue {
    background-color: #012E58FF;
}

.btn-orange {
    background-color: #F59D1FFF;
    color: white;
    transition: all 0.3s ease;
}

.btn-orange:hover {
    background-color: white;
    color: #012E58FF;
    transform: scale(1.05);
}

/* Filter Buttons */
.btn-outline-dark-blue {
    color: #012E58FF;
    border: 2px solid #012E58FF;
    border-radius: 50px;
    font-weight: 600;
    padding: 8px 25px;
    transition: all 0.3s ease;
}

.btn-outline-dark-blue:hover,
.btn-outline-dark-blue.active {
    background-color: #012E58FF;
    color: white;
}

/* Smooth transition for filtering */
.portfolio-item {
    transition: all 0.5s ease;
}

.portfolio-item.hide {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}
/* PORTFOLIO PAGE STYLES END*/



/* SERVICES PAGE STYLES START */
/* --- MODERN PROCESS STEPS --- */
.process-step {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    border-bottom: 5px solid #e9ecef; /* Neutral bottom border */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    z-index: 1;
}

/* The Big Background Number */
.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(1, 46, 88, 0.5); /* Very faint Blue */
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
    transition: all 0.4s ease;
    z-index: -1;
}

.process-step h5 {
    color: #012E58FF;
    font-weight: 700;
    margin-top: 10px;
    position: relative;
}

/* Hover State */
.process-step:hover {
    transform: translateY(-12px);
    border-bottom: 5px solid orange; /* Changes to Brand Orange on hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.process-step:hover .step-number {
    color: rgba(253, 126, 20, 0.5); /* Number glows orange slightly */
    transform: scale(1.1);
}

/* Text adjustment to make room for the bullet */
.process-step h5, .process-step p {
    padding-left: 20px;
    text-align: left; /* Aligned left for a more professional look */
}

.service-page-card a{
    background-color: #012E58FF;
    color: white;
    padding: 0.5rem;
    border-radius: 3px;
}
.service-page-card a:hover{
    background-color: #fd7e14;
    color: white;
    padding: 0.6rem;
}

/* Styling for the Advantage section */
.bg-light.border-top.border-bottom {
    background-color: #fcfcfc !important; /* Very subtle off-white */
}

.fa-3x.text-orange {
    font-size: 2.5rem; /* Adjusting size to not overwhelm the text */
    margin-bottom: 20px;
    display: block;
}

.col-md-3 h5 {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

/* Subtle hover effect for the trust items */
.col-md-3 .p-3 {
    transition: transform 0.3s ease;
}

.col-md-3:hover .p-3 {
    transform: translateY(-5px);
}
/* SERVICES PAGE STYLES END */


/* ABOUT PAGE STYLES START */

/* ABOUT PAGE STYLES END */


/* CONTACT PAGE STYLES START */
/* Styling for the 2 Contact Cards */
.contact-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-card:hover {
    transform: translateY(-8px);
    border: 1px solid rgba(1, 46, 88, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Customizing Form Elements (The premium look) */
.form-control, .form-select {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    background-color: #fcfcfc;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: rgba(1, 46, 88, 0.4);
    box-shadow: 0 0 0 0.25rem rgba(1, 46, 88, 0.1);
    background-color: white;
}

/* Specific select dropdown arrow style */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23F59D1F' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-size: 16px 16px;
}

/* The Submit Button to match brand primary/secondary */
.btn-dark-blue {
    background-color: #012E58FF;
    border: none;
    transition: all 0.3s ease;
}

.btn-dark-blue:hover {
    background-color: #F59D1FFF; /* Your Brand Orange */
    transform: translateY(-2px);
    color: white;
}

/* Clean Form Style */
.form-wrapper {
    background-color: #ffffff !important; /* Forces background to be white */
    background-image: none !important;    /* Removes the previous pattern */
    border: 1px solid #eee !important;
}

/* Image styling for the side gallery */
.form-gallery-img {
    object-fit: cover;
    border: 5px solid white; /* Gives it a "photo" frame look */
}

/* Mobile adjustment: ensure images don't crowd the form on small screens */
@media (max-width: 992px) {
    .form-wrapper {
        padding: 30px 20px !important;
    }
}
/* CONTACT PAGE STYLES END */




@media (max-width: 900px){
    .nav-contact-info{
        display: none;
    }
    .carousel-caption {
        top: 0;
        bottom: 0;
        left: 10vw;
        right: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: center;
    }
    .carousel-caption h1 {
        font-size: 3rem;
        font-weight: bolder;
    }
    .carousel-caption p {
        font-size: 1rem;
        font-weight: normal;
    }
    .carousel-caption .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}