/* Global Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --accent-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gradient-primary: linear-gradient(135deg, #0056b3 0%, #0077cc 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    padding: 80px 0;
}

.section-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Navigation */
.navbar {
    background-color: rgba(41, 67, 92, 0.9); /* Softer navy blue */
    transition: all 0.3s ease;
    padding: 12px 0; /* Reduced padding for smaller header */
}

.navbar.scrolled {
    background-color: rgba(41, 67, 92, 0.95);
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    padding: 0;
    margin-right: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo-container img {
    filter: brightness(0) invert(1); /* Makes the logo white */
    max-height: 50px; /* Increased logo size */
}

.logo-container:hover {
    transform: translateY(-2px);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background: url('../images/hero-bg.png') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* About Section */
.about-content {
    padding-right: 30px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-item {
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-weight: 500;
    margin-bottom: 0;
}

/* Service Cards */
.service-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    transition: all 0.5s ease;
    z-index: -1;
    opacity: 0;
}

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

.service-card:hover::before {
    height: 100%;
    opacity: 1;
}

.service-card:hover h3,
.service-card:hover p {
    color: #fff;
}

.service-card:hover .service-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.service-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: rgba(0, 86, 179, 0.1);
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.service-card p {
    margin-bottom: 0;
    transition: all 0.3s ease;
}

/* CTA Section */
.cta-section {
    background-color: #29435c;
    position: relative;
    overflow: hidden;
    background-image: url('../images/cta-background.jpg');
    background-size: cover;
    background-position: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(41, 67, 92, 0.85) 0%, rgba(58, 93, 128, 0.85) 100%);
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

/* Contact Form */
.contact-form-wrapper {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-floating .form-control {
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    padding: 1.2rem 1rem;
}

.form-floating .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25);
}

/* Buttons */
.btn {
    padding: 0.6rem 1.8rem;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #004494 0%, #0056b3 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.btn-light {
    background-color: #fff;
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    background-color: #29435c; /* Matching the navbar color */
    padding: 40px 0;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #fff;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-section {
        height: auto;
        padding: 150px 0 100px;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    section {
        padding: 60px 0;
    }

    .logo-container img {
        max-height: 45px;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .service-card {
        margin-bottom: 30px;
    }

    .contact-form-wrapper {
        padding: 30px;
    }

    .logo-container img {
        max-height: 40px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        margin-right: 0;
    }

    .logo-container img {
        max-height: 35px;
    }
}

/* Page Header */
.page-header {
    padding-top: 180px;
    padding-bottom: 60px;
    background-color: #f8f9fa;
    position: relative;
}

.page-header h1 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.page-header .lead {
    color: var(--secondary-color);
}

/* Contact Info Cards */
.contact-info-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-card .icon-box {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background-color: rgba(0, 86, 179, 0.1);
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.contact-info-card .icon-box i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-info-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Animation Utilities */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
