:root {
    /* Brand Colors - Sophisticated and Trustworthy */
    --brand-blue: #005070;
    --brand-dark-blue: #003a52;
    --brand-light-blue: #e6f0f5;
    --brand-yellow: #ffb949;
    --brand-gold: #d49a3d;

    /* Theme Colors */
    --bs-primary: var(--brand-blue);
    --bs-primary-rgb: 0, 80, 112;
    --bs-secondary-rgb: 255, 185, 73;

    --bs-link-color: var(--brand-blue);
    --bs-link-hover-color: var(--brand-dark-blue);

    --bs-body-font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--bs-body-font-family);
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 80, 112, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    position: relative;
    overflow: hidden;
}

.hero-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: scale(1.02);
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    overflow: hidden;
}

.service-card {
    border: none;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-card-img-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
}

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

.service-card:hover .service-card-img {
    transform: scale(1.1);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--brand-yellow);
    color: var(--brand-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: absolute;
    bottom: -30px;
    right: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Button Styling */
.btn-primary {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--brand-dark-blue);
    border-color: var(--brand-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 80, 112, 0.3);
}

.btn-accent {
    background-color: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--brand-blue);
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 185, 73, 0.4);
}

.btn-outline-accent {
    color: var(--brand-yellow);
    border-color: var(--brand-yellow);
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-accent:hover {
    background-color: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 185, 73, 0.4);
}

/* Navbar Tweaks */
.navbar {
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-dark-blue)) !important;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    line-height: 1.1;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-right: 0; /* Let content determine spacing */
}

.brand-text {
    font-size: 1rem; /* Smaller base size */
    white-space: normal; /* Allow wrapping */
    max-width: 280px; /* Limit width to force wrap on very long names */
    display: inline-block;
    vertical-align: middle;
}

@media (min-width: 992px) {
    .brand-text {
        font-size: 1.1rem;
        max-width: 400px; /* More space on desktop */
    }
}

.navbar-brand i {
    color: var(--brand-yellow);
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/* Footer */
footer {
    background: var(--brand-dark-blue) !important;
}

/* Section specific */
.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--brand-yellow);
    margin-top: 1rem;
    border-radius: 2px;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue);
    background-color: rgba(0, 80, 112, 0.1);
    margin-bottom: 1rem;
}

.object-fit-cover {
    object-fit: cover;
}

.grayscale-hover {
    transition: filter 0.3s ease;
}

.grayscale-hover:hover {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* Banner / Hero Styles */
.hero-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 600px; /* Adjust as needed */
    color: white;
    overflow: hidden;
}

.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 350px;
    color: white;
    display: flex; /* Verify this doesn't conflict with d-flex later */
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 43, 92, 0.7); /* Brand Dark Blue with opacity */
    z-index: 1;
}

/* Ensure content is above overlay */
.hero-banner .container,
.page-header .container {
    position: relative;
    z-index: 2;
}

/* Typography Overrides for Banners */
.hero-banner h1, .page-header h1 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-banner p, .page-header p {
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    color: rgba(255, 255, 255, 0.9) !important; /* Force light text */
}

/* Infinite Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0));
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    animation: marquee 40s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-logo {
    height: 80px;
    width: auto;
    margin: 0 50px;
    opacity: 0.5;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    object-fit: contain;
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.15);
}

/* Social Media Hover */
.hover-text-white {
    transition: color 0.3s ease;
}

.hover-text-white:hover {
    color: #fff !important;
}