:root {
    --primary-color: #000B58; /* Deep Navy Blue */
    --accent-color: #4364F7; /* Modern Royal Blue */
    --accent-hover: #3b59e9;
    --body-bg: #f8fafc; /* Premium off-white background */
    --text-color: #1e293b; /* Dark slate text */
    --text-muted: #64748b; /* Slate gray text */
    --card-bg: #ffffff; /* White cards */
    --card-border: rgba(0, 0, 0, 0.08); /* Clean card border */
    --footer-bg: #000B58; /* Deep navy footer to match white-logo.png */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header / Navbar Styling */
.navbar-brand {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 90px;
    max-height: 90px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s;
}

.navbar-custom.scrolled .navbar-brand img {
    height: 65px;
    max-height: 65px;
}

.navbar-custom {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none;
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar-custom.scrolled, .navbar-custom.navbar-dark-always {
    padding: 8px 0;
    background: rgba(0, 11, 88, 0.95) !important; /* Premium navy glassmorphism */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 12px;
    letter-spacing: 0.5px;
    position: relative;
    padding: 6px 0 !important;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-1.5px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #ffffff;
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
    text-shadow: none;
}

#brand-text-fallback {
    color: #ffffff !important;
}

/* Footer styling */
footer {
    background-color: var(--footer-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 80px 0 30px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
    max-height: 100px;
    margin-bottom: 25px;
}

.footer-title {
    color: white;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 25px;
    border-left: 3px solid var(--accent-color);
    padding-left: 12px;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-links li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Scroll Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    border: 2px solid var(--accent-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
}

#scrollTopBtn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}

/* Shared Section Elements */
.section-padding {
    padding: 100px 0;
}

.section-title-sub {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 35px;
    position: relative;
}

/* Asymmetric Cards (Xafran style) */
.card-asymmetric {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0;
    padding: 40px;
    transition: all 0.3s;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.card-asymmetric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--accent-color);
    transition: all 0.3s;
}

.card-asymmetric:hover::before {
    height: 100%;
}

.card-asymmetric:hover {
    transform: translateY(-8px);
    background-color: var(--card-bg);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.card-asymmetric h2, .card-asymmetric h3, .card-asymmetric h4 {
    color: var(--primary-color) !important;
}

.card-asymmetric p, .card-asymmetric div {
    color: var(--text-color) !important;
}

.card-icon {
    font-size: 2.25rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}

/* Project / Portfolio Grid */
.project-filter-btn {
    background-color: transparent;
    color: var(--text-muted);
    border: none;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    margin: 0 5px;
}

.project-filter-btn:hover, .project-filter-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 0px;
    margin-bottom: 30px;
    height: 380px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.5);
}

.project-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(10, 14, 41, 0.75), transparent);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 5;
}

.project-card:hover .project-info-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Contact Details & Form styling */
.contact-info-box {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 24px 30px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contact-info-box:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.contact-info-icon {
    width: 54px;
    height: 54px;
    background-color: rgba(67, 100, 247, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--accent-color);
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-info-box:hover .contact-info-icon {
    background-color: var(--accent-color);
    color: #ffffff;
    transform: scale(1.05);
}

.form-control-custom {
    background-color: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 6px !important;
    color: var(--text-color) !important;
    padding: 12px 18px !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.form-control-custom:focus {
    background-color: #ffffff !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 4px rgba(67, 100, 247, 0.15) !important;
}

#officeMap, #projectsMap {
    height: 400px;
    width: 100%;
    border: 1px solid var(--card-border);
    background-color: #f1f5f9;
}

/* --- Hero Slider (Index Page) --- */
.hero-carousel {
    height: 100vh;
    width: 100%;
    position: relative;
}

.carousel-item {
    height: 100vh;
    background-color: #05081a;
}

.carousel-background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
    z-index: 1;
}

.carousel-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
    padding-top: 80px;
}

.slider-content-wrap {
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    margin-bottom: 20px;
}

.slider-sub-tag {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.slider-btn-wrap {
    padding-left: 24px;
}

.slider-title {
    font-size: 2.85rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.slider-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 25px;
    max-width: 650px;
    line-height: 1.6;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.85);
}

.btn-slider {
    padding: 12px 30px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-radius: 50px;
    border: 2px solid var(--accent-color);
    background-color: transparent;
    color: white;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-slider:hover {
    background: linear-gradient(135deg, #0052D4 0%, #4364F7 50%, #6FB1FC 100%);
    border-color: transparent;
    color: white !important;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(67, 100, 247, 0.45);
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    width: 25px;
    border-radius: 5px;
    background-color: var(--accent-color) !important;
}

/* --- About Us Page (About Page Custom Layout) --- */
#about-img-container, #mv-img-container, #mission-img-container, #vision-img-container {
    position: relative;
    padding: 15px;
}

#about-img-container img, #mv-img-container img, #mission-img-container img, #vision-img-container img {
    border: 1px solid var(--card-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.4s ease;
    opacity: 0.95 !important;
    width: 100%;
    position: relative;
    z-index: 1;
}

#about-img-container::before, #mv-img-container::before, #mission-img-container::before, #vision-img-container::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 80px;
    height: 80px;
    border-top: 3px solid var(--accent-color);
    border-left: 3px solid var(--accent-color);
    z-index: 0;
    pointer-events: none;
}

#about-img-container::after, #mv-img-container::after, #mission-img-container::after, #vision-img-container::after {
    content: '';
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 80px;
    height: 80px;
    border-bottom: 3px solid var(--accent-color);
    border-right: 3px solid var(--accent-color);
    z-index: 0;
    pointer-events: none;
}

#about-intro {
    color: var(--text-color) !important;
    font-size: 1.05rem;
    line-height: 1.7;
}

#about-intro p {
    margin-bottom: 20px;
}

.about-section-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
    letter-spacing: 0.5px;
    margin-top: 50px;
}

.about-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: 8px !important;
    padding: 24px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.about-card:hover {
    background: var(--card-bg) !important;
    border-color: var(--accent-color) !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.about-card strong, .about-card b {
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    font-size: 1.08rem;
    letter-spacing: 0.5px;
}

.about-quote-block p {
    font-size: 1.35rem;
    font-style: italic;
    color: var(--accent-color);
    text-align: center;
    margin: 40px auto 20px;
    max-width: 800px;
    font-weight: 300;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    padding: 25px 0;
    line-height: 1.5;
}

.about-cta-block p {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-top: 15px;
    letter-spacing: 0.5px;
}

/* --- Premium Services Page Cards --- */
.service-card-premium {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.service-card-premium:hover {
    transform: translateY(-6px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.service-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.service-card-premium:hover .service-img-wrap img {
    transform: scale(1.08);
}

.service-icon-badge {
    position: absolute;
    bottom: -20px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: var(--navy-dark);
    border: 2px solid var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: all 0.3s ease;
}

.service-card-premium:hover .service-icon-badge {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

.service-body {
    padding: 35px 25px 25px;
}

.service-body h4 {
    color: var(--text-color) !important;
    font-weight: 700;
    transition: color 0.3s ease;
}

.service-card-premium:hover .service-body h4 {
    color: var(--accent-color) !important;
}

.service-body p {
    color: var(--text-muted) !important;
}

/* --- Lightbox / Image Popup Modal --- */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 8, 26, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.show {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.lightbox-modal.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.8);
    z-index: 10001;
}

/* --- Premium Contact Form Upgrades --- */
.form-floating:focus-within i {
    color: var(--accent-color) !important;
}

.form-floating label {
    transition: all 0.2s ease !important;
}

.btn-submit-premium {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(67, 100, 247, 0.2);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.btn-submit-premium:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 25px rgba(67, 100, 247, 0.45) !important;
}

.btn-submit-premium:active {
    transform: translateY(-1px);
}

.btn-submit-premium i {
    transition: transform 0.3s ease;
}

.btn-submit-premium:hover i {
    transform: translateX(5px) scale(1.1);
}

/* Toggler Button Contrast Upgrades */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4) !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
    background: transparent !important;
}

.navbar-toggler:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25) !important;
}

.navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Collapsed Navbar Mobile Responsive Design */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(0, 11, 88, 0.98) !important; /* Solid premium navy backdrop */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 24px 20px !important;
        border-radius: 12px !important;
        margin-top: 15px !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .navbar-collapse .nav-link {
        margin: 8px 0 !important;
        display: block !important;
        font-size: 1.05rem !important;
        padding: 8px 16px !important;
        border-radius: 8px !important;
        background-color: rgba(255, 255, 255, 0.03);
    }
    
    .navbar-collapse .nav-link:hover, 
    .navbar-collapse .nav-link.active {
        background-color: rgba(67, 100, 247, 0.15) !important;
        color: #ffffff !important;
        padding-left: 20px !important; /* Creative indent on hover */
    }
}
