/* Global Styles */
:root {
    --primary: #1788bd;
    --primary-light: #e8f0fe;
    --primary-dark: #2e59d9;
    --secondary: #858796;
    --success: #1cc88a;
    --success-light: #e6f7f0;
    --warning: #f6c23e;
    --warning-light: #fef8e6;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;
    --white: #ffffff;
    --gray: #f8f9fa;
    --dark-gray: #d1d3e2;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 0.15rem 1rem rgba(0, 0, 0, 0.1);
}

.navbar-brand span {
    color: var(--primary);
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    color: var(--dark) !important;
    position: relative;
}

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

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

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

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

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .hero-section {
        padding: 8rem 0;
    }

    .hero-section h1 {
        font-size: 3.5rem;
    }
}

/* Icon Box */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-box-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

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

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

/* Card */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
    border: none;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}

.service-card .icon-box {
    margin-top: -40px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

/* Testimonial */
.testimonial-card {
    border-left: 4px solid var(--primary);
}

.rating {
    color: var(--warning);
}

/* Blog Section */

.blog-section .card-img-top {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

/* Footer */
.footer {
    background-color: #2c3e50;
}

.footer a {
    color: var(--white);
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--primary-light) !important;
    padding-left: 5px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

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

.fadeInUp {
    animation-name: fadeInUp;
    animation-duration: 1s;
    animation-fill-mode: both;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
        text-align: center;
    }

    .hero-section img {
        margin-top: 2rem;
    }

    .counter {
        font-size: 2rem;
    }

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