/* General Styles */
:root {
    --primary-color: #1a4b84;      /* Darker blue */
    --primary-hover: #0d2b4d;      /* Even darker blue for hover */
    --dark-bg: #1c2331;           /* Dark background */
    --text-dark: #2c3e50;         /* Dark text */
    --text-muted: #505d6f;        /* Muted text */
    --light-bg: #f1f5f9;          /* Light background */
    --border-color: #e2e8f0;      /* Border color */
}

/* Smooth Scroll */
.smooth-scroll {
    scroll-behavior: smooth;
    scroll-padding-top: 76px; /* Height of the navbar */
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    position: relative; /* For scroll to top button */
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color) !important;
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.top-bar a {
    text-decoration: none;
    display: inline-block;
    padding: 0.25rem 0;
    transition: opacity 0.3s ease;
}

.top-bar a:hover {
    opacity: 0.8;
}

.top-bar i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
}

/* Navigation */
.navbar {
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    margin-top: 0;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-brand {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--text-dark) !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Updated Dropdown Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 1rem 0;
    min-width: 300px;
}

.dropdown-header {
    color: #007bff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 0.5rem 1.5rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    color: #555;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(28, 35, 49, 0.85), rgba(28, 35, 49, 0.85)), url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding: 100px 0;
    color: #fff;
    margin-top: -76px; /* Offset for navbar */
}

.hero-section h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 2.5rem;
}

.hero-section .lead {
    font-family: 'Open Sans', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* Services Section */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-card .card-body {
    padding: 2rem;
}

.service-card .card-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card ul li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.service-card ul li i {
    margin-top: 0.25rem;
}

.service-card .btn {
    width: 100%;
}

/* Feature Box */
.feature-box {
    padding: 2rem;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-box i {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-box h5 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-box p {
    color: #666;
    margin-bottom: 0;
}

.feature-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.feature-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 1rem;
}

#about {
    background: linear-gradient(to right, #f8f9fa, #fff);
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-color);
    opacity: 0.1;
}

/* Blog Section */
.blog-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.blog-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Testimonials */
.testimonial-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-card .card-text {
    font-style: italic;
    color: #666;
}

/* Contact Section */
.form-control {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-size: 1rem;
}

.form-control-lg {
    padding: 1.2rem;
    font-size: 1.1rem;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 75, 132, 0.25);
}

.contact-info {
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
}

.contact-info h4 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-info-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-info-header a {
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.contact-info-header a:hover {
    opacity: 0.8;
}

.contact-info-header i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
}

.contact-info-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-info-footer a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info-footer a:hover {
    opacity: 0.8;
}

/* Footer */
footer {
    background-color: var(--dark-bg) !important;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes the logo white */
}

footer h5 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

footer ul li a:hover {
    opacity: 1;
}

.social-links a {
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
    margin-right: 1rem;
}

.social-links a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Buttons */
.btn-primary {
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-outline-primary {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 100px 0 50px;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .feature-box {
        margin-bottom: 1rem;
    }
    
    .feature-list {
        margin-bottom: 2rem;
    }
    
    .contact-info-footer {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .contact-info-footer a {
        margin: 0.5rem;
    }
    
    .contact-info-header {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .contact-info-header a {
        margin: 0.25rem 0;
    }
}

/* Mega Menu Dropdown */
.mega-menu {
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    padding: 2rem 0;
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-top: 0;
}

.mega-menu .container {
    max-width: 1140px;
    margin: 0 auto;
}

.mega-menu .dropdown-header {
    color: #007bff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid #f8f9fa;
    margin-bottom: 0.5rem;
}

.mega-menu .dropdown-item {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #555;
}

.mega-menu .dropdown-item:hover {
    background-color: transparent;
    color: #007bff;
    padding-left: 5px;
    transition: all 0.2s ease;
}

.mega-menu .col-md-4 {
    padding: 0 2rem;
}

.mega-menu .col-md-4:not(:last-child) {
    border-right: 1px solid #f1f1f1;
}

@media (max-width: 991px) {
    .mega-menu {
        width: auto;
        position: relative;
        padding: 1rem;
    }
    
    .mega-menu .col-md-4 {
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .mega-menu .col-md-4:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid #f1f1f1;
        padding-bottom: 1rem;
    }
}

/* Services Menu */
.services-menu {
    padding: 0;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 350px;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

.services-menu::-webkit-scrollbar {
    width: 6px;
}

.services-menu::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 4px;
}

.services-menu::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

.services-menu::-webkit-scrollbar-thumb:hover {
    background: var(--text-dark);
}

.dropdown-header {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 1rem 1rem 0.5rem;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: normal;
    word-wrap: break-word;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid #e9ecef;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding-left: 1.25rem;
}

@media (max-width: 768px) {
    .services-menu {
        width: 300px;
        max-height: 400px;
    }
}

/* Map Container */
.map-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-radius: 8px;
}

.map-container iframe {
    transition: opacity 0.3s ease;
}

.map-container iframe:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .map-container {
        margin-bottom: 1rem;
    }
    
    .map-container iframe {
        height: 250px;
    }
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
}

section:first-of-type {
    padding-top: 0;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.scroll-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 35px;
        height: 35px;
    }
}

.why-choose-us {
    padding-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: 3rem;
}

.why-choose-us h2 {
    margin-bottom: 2rem;
}

.feature-list {
    margin-bottom: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.feature-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .why-choose-us {
        padding-top: 2rem;
        margin-top: 2rem;
    }
    
    .feature-list {
        margin-bottom: 1.5rem;
    }
} 