/* CSS Variables */
:root {
    --primary-color: #166e96;
    --secondary-color: #1a8fbf;
    --dark-color: #1e293b;
    --light-bg: #f8fafc;
    --bs-primary: #166e96;
    --bs-primary-rgb: 22, 110, 150;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Override Bootstrap primary color */
.btn-primary {
    background-color: #166e96;
    border-color: #166e96;
}

.btn-primary:hover {
    background-color: #125a7a;
    border-color: #125a7a;
}

.btn-primary:focus,
.btn-primary:active {
    background-color: #125a7a;
    border-color: #125a7a;
    box-shadow: 0 0 0 0.25rem rgba(22, 110, 150, 0.25);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #166e96 0%, #1a8fbf 100%);
    min-height: 100vh;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero/home-bg.jpg') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    line-height: 1.3;
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #166e96 0%, #1a8fbf 100%);
    min-height: 100vh;
    padding: 100px 0 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero/services-bg.jpg') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.page-header-services::before {
    background-image: url('../images/hero/services-bg.jpg') !important;
    background-position: center !important;
    background-size: cover !important;
    opacity: 0.15 !important;
}

.page-header-about::before {
    background-image: url('../images/hero/about-bg.jpg') !important;
    background-position: center !important;
    background-size: cover !important;
    opacity: 0.15 !important;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Stats Section */
.stats-section {
    background: var(--light-bg);
    padding: 80px 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

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

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

/* Section Titles */
.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 3rem;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(22, 110, 150, 0.2);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #166e96, #1a8fbf);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

/* Service Section (Services Page) */
.service-section {
    padding: 80px 0;
}

.service-section:nth-child(even) {
    background: var(--light-bg);
}

.service-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #166e96, #1a8fbf);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin-bottom: 2rem;
}

.service-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.service-intro {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.service-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 2.5rem 0 1.5rem;
}

.service-content p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.service-list li {
    padding: 1rem 0 1rem 2.5rem;
    position: relative;
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
}

.service-list li::before {
    content: '\f26b';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Why Us Section */
.why-us-section {
    background: var(--light-bg);
    padding: 80px 0;
}

.quote-box {
    background: linear-gradient(135deg, #166e96, #1a8fbf);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    margin: 3rem 0;
    box-shadow: 0 10px 40px rgba(22, 110, 150, 0.3);
    text-align: center;
}

.quote-box p {
    font-size: 1.4rem;
    font-style: italic;
    margin: 0;
    line-height: 1.8;
}

/* Brands Section */
.brands-section {
    padding: 80px 0;
}

.brand-logo {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #e2e8f0;
    transition: all 0.3s;
    color: #94a3b8;
    font-weight: 600;
}

.brand-logo:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(22, 110, 150, 0.2);
    transform: translateY(-5px);
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.contact-form-wrapper .form-control:focus {
    border-color: #166e96;
    box-shadow: 0 0 0 0.25rem rgba(22, 110, 150, 0.25);
}

.contact-form-wrapper .form-label {
    font-weight: 600;
    color: var(--dark-color);
}

/* Contact Section (Old - for backward compatibility) */
.contact-section {
    background: linear-gradient(135deg, #166e96 0%, #1a8fbf 100%);
    padding: 80px 0;
    color: white;
}

.contact-section .section-title {
    color: white;
}


/* About Page Styles */
.about-content {
    padding: 80px 0;
}

.about-section {
    margin: 5rem 0;
    padding: 3rem 0;
}

.about-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.about-section p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.about-section a:hover {
    text-decoration: underline;
}

/* Enhanced About Section Styles */
.about-intro-card {
    background: linear-gradient(135deg, rgba(22, 110, 150, 0.05) 0%, rgba(26, 143, 191, 0.05) 100%);
    padding: 4rem 3rem;
    border-radius: 25px;
    margin: 4rem 0;
}

.about-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.about-image-wrapper img {
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.about-text-content {
    padding: 1rem;
}

.section-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #166e96, #1a8fbf);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.section-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #166e96, #1a8fbf);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(22, 110, 150, 0.3);
}

.section-header {
    text-align: center;
}

.about-expertise-card {
    background: white;
    padding: 4rem 3rem;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.expertise-content {
    padding: 1rem;
}

.expertise-features {
    margin-top: 2rem;
}

.feature-item {
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 10px;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: all 0.3s;
}

.feature-item:hover {
    background: linear-gradient(135deg, rgba(22, 110, 150, 0.1), rgba(26, 143, 191, 0.1));
    transform: translateX(5px);
}

.about-track-record {
    background: linear-gradient(135deg, rgba(22, 110, 150, 0.03) 0%, rgba(26, 143, 191, 0.03) 100%);
    padding: 4rem 3rem;
    border-radius: 25px;
}

.stats-box-enhanced {
    background: linear-gradient(135deg, #166e96, #1a8fbf);
    padding: 4rem 3rem;
    border-radius: 25px;
    text-align: center;
    color: white;
    box-shadow: 0 15px 50px rgba(22, 110, 150, 0.4);
    position: relative;
    overflow: hidden;
}

.stats-box-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.stats-box-enhanced h3 {
    color: white;
    position: relative;
    z-index: 1;
}

.stats-box-enhanced p {
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
}

.stats-icon {
    font-size: 4rem;
    opacity: 0.3;
    position: relative;
    z-index: 1;
}

.about-why-us-card {
    background: white;
    padding: 4rem 3rem;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-color);
}

.why-us-content {
    padding: 1rem;
}

.why-us-points {
    margin-top: 2rem;
}

.point-item {
    padding: 1.2rem;
    background: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: all 0.3s;
}

.point-item:hover {
    background: linear-gradient(135deg, rgba(22, 110, 150, 0.1), rgba(26, 143, 191, 0.1));
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(22, 110, 150, 0.2);
}

.stats-box {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin: 2rem 0;
}

.stats-box h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Image Placeholders */
.img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 400px;
    background: linear-gradient(135deg, #d1e7f0, #b8d9e8);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #166e96;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.footer a:hover {
    color: white;
}

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

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

/* Animation initial states */
.stat-card,
.service-card,
.brand-logo {
    will-change: transform, opacity;
}

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

/* Performance optimization */
.hero-section,
.stats-section,
.service-card,
.stat-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Form Message Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.form-message {
    animation: fadeIn 0.3s ease-in;
}

/* Responsive Design */
@media (max-width: 991px) {
    .img-placeholder {
        min-height: 250px;
        max-height: 300px;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .service-title {
        font-size: 2rem;
    }

    .about-section h2 {
        font-size: 2rem;
    }

    .quote-box p {
        font-size: 1.1rem;
    }

    .service-header {
        flex-direction: column;
        text-align: center;
    }
}



@media only screen and (max-width: 998px) {
    #navbarNav {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        height: calc(100dvh - 76px);
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: start;
        position: fixed;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: start;
        background: #ffffff;
        width: 90%;
        right: 0;
        top: 76px;
        overflow: scroll;
        z-index: 99;
        -webkit-transition: all 0.4s ease-in-out;
        -o-transition: all 0.4s ease-in-out;
        transition: all 0.4s ease-in-out;
    }

    .right {
        -webkit-transform: translateX(100%);
        -ms-transform: translateX(100%);
        transform: translateX(100%);
    }
}