/* Fonts */
body {
    font-family: 'Open Sans', sans-serif;
    color: #545b62;
    /* Corporate Grey */
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Montserrat', sans-serif;
}

/* Color Variables */
:root {
    --primary-color: #0f2b5b;
    /* Deep Navy Blue */
    --secondary-color: #545b62;
    /* Corporate Grey */
    --accent-color: #007bff;
    /* Bright Blue */
    --accent-secondary: #ff7b00;
    /* Energy Orange */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 123, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 123, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 123, 0, 0);
    }
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--primary-color) !important;
    /* Using Navy for footer instead of grey for better contrast */
}

.text-accent-secondary {
    color: var(--accent-secondary) !important;
}

.btn-accent {
    background: linear-gradient(45deg, var(--accent-color), #00d4ff);
    border: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-warning-custom {
    background: linear-gradient(45deg, var(--accent-secondary), #ffcc00);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-warning-custom:hover {
    background: linear-gradient(45deg, #e66e00, #e6b800);
    color: white;
    animation: pulse-glow 1.5s infinite;
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background: linear-gradient(45deg, #0056b3, #00a2ff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

.section-title {
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

.py-section {
    padding: 80px 0;
}

/* Navbar */
.navbar {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 10px;
    color: var(--primary-color) !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
#hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') top center no-repeat;
    /* Updated to a more tech/circuit image */
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 43, 91, 0.9) 0%, rgba(15, 43, 91, 0.6) 100%);
}

#hero h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

/* About Section */
.about-image-wrapper img {
    border-radius: 15px;
    transition: transform 0.3s;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-image-wrapper img:hover {
    transform: scale(1.02) rotate(1deg);
}

/* Feature Cards */
#why-us {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.feature-card {
    transition: all 0.4s ease;
    border: none;
    background: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary-color);
    transition: all 0.4s ease;
    z-index: -1;
    opacity: 0.03;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.feature-card:hover::before {
    height: 100%;
}

.feature-card:hover .icon-wrapper i {
    transform: scale(1.2) rotate(10deg);
    color: var(--accent-secondary) !important;
}

.icon-wrapper {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-wrapper i {
    transition: all 0.3s ease;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: default;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.product-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card .card-title {
    color: var(--primary-color);
}

/* Services Parallax */
.parallax-section {
    background: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    padding: 120px 0;
}

.service-item {
    padding: 20px;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: scale(1.1);
}

/* Contact Info */
.contact-info-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #001f3f 100%);
}

.form-control {
    padding: 12px 15px;
    border: 1px solid #ced4da;
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.15);
    background-color: #fff;
}

/* Footer */
footer.bg-dark {
    background-color: #0b2147 !important;
    /* Darker Navy */
}

.footer-links a {
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-secondary) !important;
    opacity: 1 !important;
    padding-left: 5px;
}

.social-links a:hover {
    background-color: var(--accent-secondary) !important;
    transform: translateY(-3px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px 0;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero .btn {
        width: 100%;
        margin-bottom: 10px;
        padding: 12px 20px !important;
    }

    #hero .d-flex {
        flex-direction: column;
    }

    .display-3 {
        font-size: 2.5rem;
    }
}