/* Variables and Root setup */
:root {
    /* Color Palette */
    --bs-primary: #0f2f6b;
    --bs-secondary: #35548d;
    --bs-dark: #081a3a;
    --bs-dark-card: #0e2550;
    
    /* Brand Accent */
    --primary-accent: #d71920;
    --primary-accent-hover: #b31218;
    --primary-light: #ffe2e4;

    /* Spacing */
    --section-padding: 6rem;
}

/* Typography Overrides */
.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}
.font-inter {
    font-family: 'Inter', sans-serif;
}
.fw-300 { font-weight: 300; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

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

.text-primary-accent { color: var(--primary-accent) !important; }
.bg-primary-accent { background-color: var(--primary-accent) !important; color: #000 !important; }
.bg-primary-light { background-color: var(--primary-light) !important; }
.bg-primary-custom { background-color: var(--primary-accent) !important; border-color: var(--primary-accent) !important; color: #fff !important; }
.bg-dark-card { background-color: var(--bs-dark-card) !important; }
.text-light-gray { color: #CBD5E1 !important; }

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-accent);
    color: #fff;
    border: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    background-color: var(--primary-accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(215, 25, 32, 0.28);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: all 0.3s ease;
}
.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

/* Nav */
#mainNavbar {
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(8, 26, 58, 0.08);
}
#mainNavbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}
.navbar-dark .navbar-nav .nav-link {
    color: var(--bs-dark);
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-accent);
}
.navbar-dark .navbar-toggler {
    color: var(--bs-dark);
}
.navbar-dark .navbar-toggler-icon {
    filter: invert(1);
}
.brand-logo {
    height: 62px;
    width: auto;
    display: block;
}
.footer-logo {
    height: 52px;
    width: auto;
    display: inline-block;
}
.subtitle-brand {
    font-size: 0.65rem;
    letter-spacing: 2px;
    vertical-align: middle;
}

/* Hero Section */
.hero-section {
    position: relative;
}
.hero-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hero-overlay {
    background: linear-gradient(135deg, rgba(8, 26, 58, 0.92) 0%, rgba(15, 47, 107, 0.68) 55%, rgba(215, 25, 32, 0.42) 100%);
}
.text-gradient {
    background: linear-gradient(90deg, #ffffff 0%, #8bb1ff 45%, #ff5a61 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.text-shadow-sm {
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Base Utility */
.py-10 {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}
.transition-all {
    transition: all 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}
.animate-bounce {
    animation: bounce 2s infinite;
}

/* Premium Shadows & Cards */
.shadow-premium {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.img-reveal {
    position: relative;
}
.img-reveal::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
    border-radius: inherit;
    pointer-events: none;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--primary-accent) !important;
}

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-box-lg {
    width: 70px;
    height: 70px;
}
.icon-box i {
    line-height: 0;
}

.service-img-height {
    height: 200px;
}

.service-box {
    transition: transform 0.3s ease;
}
.service-box:hover {
    transform: translateY(-10px) scale(1.02);
}

.testimonial-card {
    transition: all 0.3s;
}
.testimonial-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    transform: translateY(-5px);
}

/* Form Styles */
.form-control, .form-select {
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}
.form-control:focus, .form-select:focus {
    background-color: rgba(255,255,255,0.05) !important;
    color: white !important;
    border-color: var(--primary-accent) !important;
    box-shadow: 0 0 0 0.25rem rgba(215, 25, 32, 0.22);
}

/* Media Queries */
@media (max-width: 991.98px) {
    #mainNavbar {
        background: rgba(255, 255, 255, 0.98);
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .brand-logo {
        height: 50px;
    }
    .footer-logo {
        height: 46px;
    }
    .py-10 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}
