/* Color Variables - Modern Blue Theme */
:root {
    --primary-color: #192bce;
    --primary-dark: #111e91;
    --primary-light: #4f5df5;
    --secondary-color: #E2E8F0;
    --accent-color: #f0f2ff;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --black: #000000;
    --footer-bg: #1a2332;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Navbar - Fixed UI Issues */
.navbar {
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    background-color: var(--white) !important;
}

.navbar .container {
    position: relative;
}

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

.navbar-brand img {
    transition: transform 0.3s ease;
    max-height: 60px;
    width: auto;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* CRITICAL FIX: Navbar Toggle Button */
.navbar-toggler {
    position: relative;
    z-index: 1050;
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background-color: transparent;
    cursor: pointer;
    display: block;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 43, 206, 0.25);
    outline: none;
}

.navbar-toggler:hover {
    background-color: var(--bg-light);
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    position: relative;
    transition: color 0.3s ease;
}

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

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

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

/* Mobile Menu Improvements */
@media (max-width: 991px) {
    .navbar-toggler {
        display: block !important;
        margin-left: auto;
    }
    
    .navbar-collapse {
        background-color: var(--white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        position: relative;
        z-index: 1040;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        display: block;
    }
    
    .navbar-nav {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .navbar-toggler {
        display: none;
    }
}

/* Hero Section - Fixed Background & Mobile Issues */
.hero-section {
    position: relative;
    overflow: hidden;
    background-image: url('images/hero-bg.avif');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
}

/* Fix for mobile background attachment */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        min-height: auto;
        padding: 100px 0 60px;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(25, 43, 206, 0.7), rgba(25, 43, 206, 0.3));
    z-index: 1;
}

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

.hero-content {
    color: var(--white);
}

.hero-content h1 {
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 400;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 0.9rem;
    opacity: 0.95;
    margin: 0;
}

/* Button Fixes */
.btn-primary {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    border: 2px solid var(--white);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Mobile Button Stack Fix */
@media (max-width: 576px) {
    .hero-content .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
}

/* Section Labels & Titles */
.section-label {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

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

/* About Section - Fixed Image Alignment */
.about-section img {
    object-fit: cover;
    width: 100%;
    min-height: 300px;
    max-height: 500px;
}

@media (max-width: 991px) {
    .about-section img {
        min-height: 250px;
        max-height: 350px;
        margin-bottom: 2rem;
    }
}

/* Service Cards - Fixed Height Issues */
.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    min-height: 280px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(25, 43, 206, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    margin: 0;
    flex-grow: 1;
}

/* Feature Boxes - Fixed Mobile Spacing */
.feature-box {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    min-height: 180px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.feature-box:hover {
    box-shadow: 0 10px 30px rgba(25, 43, 206, 0.15);
    transform: translateX(5px);
}

.feature-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 1rem;
}

.feature-box h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-box p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

/* Industry Tags - Mobile Responsive */
.industry-tag {
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    width: 100%;
}

.industry-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

/* Process Steps */
.process-step {
    text-align: center;
    padding: 2rem 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.process-step h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.process-step p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: #536872;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 140px 0 60px;
    text-align: center;
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 50px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

/* Mission & Vision Cards */
.mission-vision-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.mission-vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(25, 43, 206, 0.15);
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.mv-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

/* Value Cards */
.value-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 200px;
}

.value-card:hover {
    background: var(--bg-light);
}

.value-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-card h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* Benefit Cards */
.benefit-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    height: 100%;
    min-height: 250px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(25, 43, 206, 0.15);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.benefit-icon i {
    font-size: 2rem;
    color: var(--white);
}

.benefit-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--text-light);
    margin: 0;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.stat-item {
    color: var(--white);
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Service Details - Fixed Image Alignment */
.service-number {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.service-list i {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Fix testimonial images */
img.testimonial-thumb {
    width: 100%;
    height: auto;
    min-height: 250px;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 991px) {
    img.testimonial-thumb {
        margin-bottom: 2rem;
        min-height: 200px;
    }
}

/* Industry Cards */
.industry-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.industry-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(25, 43, 206, 0.15);
}

.industry-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.industry-card h5 {
    font-weight: 700;
    margin: 0;
}

/* Contact Page - Fixed Form & Info Box */
.contact-info-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    height: 100%;
}

.contact-item-detail {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon-wrapper i {
    font-size: 1.3rem;
    color: var(--white);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 43, 206, 0.15);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Map Section */
.map-section {
    height: 400px;
    background: var(--bg-light);
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer - Fixed Spacing */
.footer {
    background: var(--footer-bg);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--white);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--white);
}

/* Responsive Typography */
@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .contact-form-wrapper,
    .contact-info-box {
        padding: 1.5rem;
    }
}

/* Utility Classes for Spacing */
.py-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (max-width: 768px) {
    .py-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

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

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