/* Root Variables */
:root {
    --primary-color: #0b509b;
    /* Professional Deep Blue */
    --secondary-color: #2da144;
    /* Growth Green */
    --accent-color: #f8f9fa;
    --dark-color: #1a1d20;
    --text-muted: #6c757d;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-4,
.display-6 {
    font-family: 'Outfit', sans-serif;
}

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

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

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

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

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

.btn-primary:hover {
    background-color: #083d75;
    border-color: #083d75;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 80, 155, 0.3);
}

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

/* Navbar */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
}

.nav-link {
    color: var(--dark-color) !important;
    padding: 10px 20px !important;
    transition: var(--transition);
}

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

/* Hero Section */
.hero-section {
    min-height: 90vh;
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.05;
}

/* Stats Section */
.stats-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

/* Service Cards */
.service-card {
    transition: var(--transition);
    overflow: hidden;
}

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

.icon-box {
    transition: var(--transition);
}

.service-card:hover .icon-box {
    transform: scale(1.1);
}

/* Contact Form */
.form-control {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 12px 20px;
}

.form-control:focus {
    background-color: #fff;
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #0b1a2a !important;
    /* Deep dark blue for better contrast */
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

footer h5 {
    color: var(--white);
    position: relative;
    padding-bottom: 15px;
}

footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

footer a.text-muted:hover {
    color: var(--secondary-color) !important;
    padding-left: 5px;
}

.hover-white:hover {
    color: var(--white) !important;
}

/* Icons Styling */
.contact-icon {
    transition: var(--transition);
    border: 1px solid rgba(11, 80, 155, 0.1);
    color: var(--primary-color);
    /* Initial state: colored icon on very light background */
}

.contact-section .contact-icon:hover {
    transform: rotate(10deg);
    background-color: var(--primary-color) !important;
    color: white !important;
    /* On hover: white icon on primary blue background */
}

/* Ensure icons inside containers are white if background is solid */
.bg-primary .fas,
.bg-primary .fab,
.bg-primary .fa-solid {
    color: #fff !important;
}

.bg-success .fas,
.bg-success .fab,
.bg-success .fa-solid {
    color: #fff !important;
}

/* Service Card Transitions */
.service-card .icon-box i {
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background-color: var(--primary-color) !important;
}

.service-card:hover .icon-box i {
    color: #fff !important;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    color: var(--white) !important;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.filter-white {
    filter: brightness(0) invert(1);
}

/* Input Group Styles */
.footer-newsletter .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-newsletter .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.whatsapp-btn,
.scroll-top-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white !important;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.whatsapp-btn {
    background-color: #25d366;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1) rotate(10deg);
}

.scroll-top-btn {
    background-color: var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsive Fixes & Media Queries */

/* Extra large devices (large desktops, 1200px and up) */
@media (max-width: 1199.98px) {
    .display-4 {
        font-size: 3rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
        padding: 80px 0 60px;
        min-height: auto;
        /* Adding a subtle background color/pattern for mobile */
        background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
            url('../images/hero-img.png') center/cover no-repeat;
    }

    .hero-section .d-flex {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-section .btn {
        margin-bottom: 10px;
    }

    .stats-section {
        margin-top: 0;
        padding: 40px 0;
    }

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

    .about-section .ps-lg-5 {
        padding-left: 0 !important;
        margin-top: 40px;
    }

    .about-section ul li {
        justify-content: center;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2.5rem;
    }

    .display-6 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 60px 0;
    }

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

    .contact-section .d-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-section .contact-icon {
        margin-right: 0 !important;
        margin-bottom: 15px;
    }

    footer {
        text-align: center;
    }

    footer .social-links {
        justify-content: center;
    }

    footer .d-flex {
        justify-content: center;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    .display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .navbar-brand span {
        font-size: 1.2rem !important;
    }

    .navbar-brand img {
        height: 40px;
    }

    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .whatsapp-btn,
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Adjustments for service cards on narrow screens */
@media (max-width: 400px) {
    .service-card {
        padding: 20px !important;
    }

    .icon-box {
        width: 60px !important;
        height: 60px !important;
    }

    .icon-box i {
        font-size: 1.5rem !important;
    }
}