/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #0056b3;
    --secondary-color: #17a2b8;
    --accent-color: #ffc107;
    --success-color: #28a745;
    --warning-color: #fd7e14;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --white: #ffffff;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Border Radius */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* Typography */
body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-base);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo {
    height: 40px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition-base);
}

.navbar-nav .nav-link:hover {
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #0056b3;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Update text colors for better contrast on dark background */
.hero-section h1 {
    color: #ffffff !important;
}

.hero-section .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

.hero-section .scroll-indicator a {
    color: #ffc107 !important;
}

.hero-badge .badge {
    font-size: 0.9rem;
    border-radius: var(--border-radius-lg);
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 1);
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: var(--transition-base);
}

.scroll-indicator a:hover {
    color: #ffc107 !important;
}

.hero-section .btn-primary {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .hero-image img {
        max-width: 100% !important;
    }
}

/* Feature Items */
.feature-item {
    padding: 1.5rem 0;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Services Section */
.service-category-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
    margin-bottom: 1rem;
    overflow: hidden;
}

.service-category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-category-header {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none !important;
    color: inherit !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.service-category-header:hover {
    background: rgba(0, 86, 179, 0.05) !important;
    color: inherit !important;
}

.service-category-header:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25) !important;
    color: inherit !important;
}

.service-category-header .fas.fa-chevron-down {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.service-category-header[aria-expanded="true"] .fas.fa-chevron-down {
    transform: rotate(180deg);
}

.service-category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.service-category-content h4 {
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.service-category-content p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.service-list {
    background: rgba(248, 249, 250, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.service-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--white);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
    font-weight: 500;
}

.service-item:hover {
    background: rgba(0, 86, 179, 0.05);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.service-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Process Steps */
.process-step {
    position: relative;
    padding: 2rem 1rem;
}

.step-number {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.step-icon {
    width: 100px;
    height: 100px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    transition: var(--transition-base);
}

.process-step:hover .step-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.process-step h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.process-step p {
    color: #6c757d;
    line-height: 1.6;
}


/* Location Info */
.info-item {
    padding: 1rem 0;
}

.info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.map-container {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.form-floating > .form-control {
    border-radius: var(--border-radius-md);
    border: 2px solid #e9ecef;
    transition: var(--transition-base);
}

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

.form-floating > label {
    color: #6c757d;
}

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

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-brand .logo {
    background-color: white;
    padding: 5px;
    border-radius: 8px;
}

.social-links a {
    transition: var(--transition-base);
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a:hover {
    color: var(--primary-color) !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.back-to-top:hover {
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero-stats h3 {
        font-size: 1.5rem;
    }
    
    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .service-category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .accordion-button {
        padding: 1rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
    
    .process-step {
        padding: 1.5rem 0.5rem;
    }
    
    .step-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .service-item {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom Bootstrap Overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition-base);
}

.btn-primary:hover {
    background-color: #004085;
    border-color: #004085;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--border-radius-lg);
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-info {
    color: var(--secondary-color) !important;
}

/* Background Colors */
.bg-primary {
    background-color: var(--primary-color) !important;
}

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

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

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

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