/* Custom Properties / Variables */
:root {
    --primary: #0A192F;       /* Deep Navy */
    --primary-dark: #05101E;  /* Darker Navy for footers/strips */
    --secondary: #0056B3;     /* Electric Blue */
    --accent: #FF6B00;        /* Safety Orange */
    --text-main: #333333;     /* Dark Charcoal */
    --bg-light: #F8F9FA;      /* Very Light Gray */
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Typography Utility */
.letter-spacing-1 { letter-spacing: 1px; }

/* Custom Buttons */
.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #004494;
    border-color: #004494;
}
.btn-accent {
    background-color: var(--accent);
    color: #fff;
    border: none;
    font-weight: 500;
}
.btn-accent:hover {
    background-color: #e65c00;
    color: #fff;
}

/* Background Utilities */
.bg-primary-dark { background-color: var(--primary-dark); }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.border-secondary { border-color: rgba(255,255,255,0.1) !important; }

/* Navigation */
.navbar {
    transition: var(--transition);
    padding: 1rem 0;
    background-color: transparent;
}
.navbar.scrolled {
    background-color: var(--primary);
    padding: 0.7rem 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.navbar-brand { font-size: 1.5rem; }
.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--accent) !important;
}
/* Ensure mobile menu has dark background if opened before scrolling */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--primary);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url('https://images.unsplash.com/photo-1541888086925-9c1737be7043?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
}

/* Sections */
.section-padding { padding: 5rem 0; }

/* About Check List */
.check-list li { font-size: 1.05rem; }

/* Product Cards */
.product-card {
    transition: var(--transition);
    border-radius: 8px;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.product-icon-wrapper {
    height: 150px;
    background-color: #E9ECEF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

/* Services */
.service-card {
    transition: var(--transition);
    border-top: 4px solid transparent;
}
.service-card:hover {
    border-top-color: var(--accent);
    transform: translateY(-5px);
}

/* Process Timeline */
@media (min-width: 992px) {
    .process-timeline::before {
        content: '';
        position: absolute;
        top: 30px;
        left: 10%;
        right: 10%;
        height: 2px;
        background-color: rgba(255,255,255,0.2);
        z-index: 0;
    }
}
.process-step {
    position: relative;
    z-index: 1;
}
.step-icon {
    width: 60px;
    height: 60px;
    transition: var(--transition);
}
.process-step:hover .step-icon {
    transform: scale(1.1);
}

/* Gallery / Projects */
.gallery-item {
    cursor: pointer;
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 86, 179, 0.8); /* Secondary color with opacity */
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Contact Info */
.contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

/* Footer Links */
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}
.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* Floating Contact */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}
.floating-contact .btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility - Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .fade-up {
        transition: none;
        opacity: 1;
        transform: none;
    }
    .product-card:hover, .service-card:hover, .gallery-item:hover .gallery-overlay {
        transform: none;
        transition: none;
    }
}