/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    /* Corporate Color Palette */
    --primary-color: #0b2545;       /* Deep Navy (Trust, Stability) */
    --accent-color: #007bff;        /* Engineering Blue (Action) */
    --text-dark: #1d1d1d;           /* High Contrast Black */
    --text-muted: #6c757d;          /* Soft Gray */
    --bg-light: #f8f9fa;            /* Clean Background */
    --white: #ffffff;
    
    /* Spacing & Effects */
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease-in-out;
}

/* Import Google Fonts: Roboto (Headings) & Inter (Body) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Roboto:wght@500;700;900&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* =========================================
   2. NAVIGATION BAR
   ========================================= */
.navbar {
    background-color: var(--primary-color) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--white) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 400;
    font-size: 0.95rem;
    margin-left: 1rem;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--white) !important;
}

/* Underline effect on hover */
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
    position: absolute;
    bottom: 5px;
    left: 0;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 4px;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

/* =========================================
   3. HERO SECTION (Home Page)
   ========================================= */
header.bg-primary {
    /* Overriding the default blue background with a gradient + image */
    background: linear-gradient(135deg, rgba(11, 37, 69, 0.9) 0%, rgba(11, 37, 69, 0.8) 100%), 
                url('../img/hero-bg.jpg') no-repeat center center; /* Ensure you have an image here */
    background-size: cover;
    color: var(--white);
    padding: 8rem 0; /* More breathing room */
    position: relative;
}

header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

header .lead {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
}

/* =========================================
   4. CARDS & SERVICES
   ========================================= */
.card {
    border: none;
    border-radius: 8px;
    background: var(--white);
    transition: var(--transition);
    border: 1px solid #eee; /* Subtle border */
}

/* Lift Effect on Hover */
.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover) !important;
    border-color: transparent;
}

.card-title {
    font-weight: 700;
    margin-top: 10px;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Icon Styling inside cards */
.fs-1 {
    color: var(--accent-color) !important;
    transition: var(--transition);
}

.card:hover .fs-1 {
    transform: scale(1.1);
}

/* =========================================
   5. FORMS
   ========================================= */
.form-control {
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    background-color: #fcfcfc;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    background-color: var(--white);
}

textarea.form-control {
    resize: none; /* Prevents breaking layout */
}

/* =========================================
   6. FOOTER
   ========================================= */
footer {
    background-color: #111 !important; /* Almost black */
    color: #bbb !important;
    font-size: 0.9rem;
}

footer h5 {
    color: var(--white);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

footer a {
    color: #bbb;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--accent-color);
    padding-left: 5px; /* Subtle movement */
}

footer .border-top {
    border-color: #333 !important;
}

/* =========================================
   7. UTILITIES & RESPONSIVE TWEAKS
   ========================================= */
/* Map Aspect Ratio Container */
.ratio-21x9 {
    --bs-aspect-ratio: 42.85%; /* Adjusts map height */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }
    
    header.bg-primary {
        padding: 4rem 0;
    }

    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 1rem;
        margin-top: 10px;
        border-radius: 4px;
    }
}