:root {
    --primary-color: #6c757d;
    --primary-hover: #5a6268;
    --primary-light: rgba(108, 117, 125, 0.1);
    --secondary-color: #adb5bd;
    --bg-danger: #ff0000;
    --light-bg: #f8f9fa;
    --dark-color: #212529;
    --white: #ffffff;
    --orange: #f39c12;
    --grey-100: #f8f9fa;
    --grey-200: #e9ecef;
    --grey-300: #dee2e6;
    --grey-400: #ced4da;
    --grey-500: #adb5bd;
    --grey-600: #6c757d;
    --grey-700: #495057;
    --grey-800: #343a40;
    --grey-900: #212529;
    --gradient-primary: linear-gradient(135deg, #adb5bd 0%, #6c757d 100%);
    --gradient-secondary: linear-gradient(135deg, #e9ecef 0%, #ced4da 100%);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Inter', sans-serif;
    overflow-x: hidden;
    font-size: 15px;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--grey-100);
}

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

.brand-primary {
    color: var(--primary-color);
    font-weight: bold;
}

.brand-secondary {
    color: var(--orange);
    /* or var(--secondary-color) */
    font-weight: bold;
}


/* Enhanced Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1.2rem;
    padding: 0.5rem 0;
    text-align: center;
    transition: all 0.3s ease;
}

.top-bar:hover {
    background-color: var(--primary-hover);
}

.top-bar a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.top-bar a:hover {
    text-decoration: underline;
    color: #fff;
    transform: translateY(-2px);
}

/* Header and Navigation */
.navbar {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--grey-300);
}

.navbar.scrolled {
    box-shadow: var(--shadow-light);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--grey-800) !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link {
    font-weight: 500;
    margin: 0 0.2rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem !important;
    color: var(--grey-700) !important;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

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

/* Enhanced Hero Carousel */
.carousel-item {
    height: 100vh;
    min-height: 500px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: transform 0.5s ease;
}

.carousel-item:hover {
    transform: scale(1.01);
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 1;
    transition: all 0.5s ease;
}

.carousel-item:hover::before {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
}

.carousel-caption {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 700px;
    width: 90%;
    z-index: 2;
    animation: slideUp 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
    transition: all 0.5s ease;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(-20px);
    }
}

.carousel-caption h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
    transition: all 0.3s ease;
}

.carousel-item:hover .carousel-caption h1 {
    transform: translateY(-5px);
}

.carousel-caption p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
    color: white;
    transition: all 0.3s ease;
}

.carousel-item:hover .carousel-caption p {
    transform: translateY(-5px);
}

.btn-hero {
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 50px;
    background: var(--gradient-primary);
    border: none;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(108, 117, 125, 0.4);
    color: white;
    background: var(--primary-hover);
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background-color: white;
}

.service-item {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    background-color: var(--grey-100);
}

.service-item h4 {
    margin-top: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-item:hover h4 {
    color: var(--primary-color);
}

.service-item i {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-item:hover i {
    transform: scale(1.2);
    color: var(--primary-hover);
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: var(--gradient-secondary);
    transition: all 0.3s ease;
}

.stats-section:hover {
    background: linear-gradient(135deg, #dde1e6 0%, #c8ced6 100%);
}

.stat-item {
    text-align: center;
    padding: 1rem;
    transition: all 0.4s ease;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.stat-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-light);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    /* color: var(--primary-color); */
    display: block;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    color: var(--primary-hover);
}

.stat-label {
    font-size: 1.1rem;
    /* color: var(--grey-700); */
    transition: all 0.3s ease;
}

.stat-item:hover .stat-label {
    color: var(--grey-800);
    font-weight: 500;
}

.custom-icon {
    display: inline-block;
    font-size: 2rem;
    /* Icon size */
    width: 3rem;
    height: 3rem;
    line-height: 3rem;
    text-align: center;
    color: var(--primary-color);
    /* Primary color */
    border: 2px solid var(--primary-color);
    /* Circular outline */
    border-radius: 50%;
    transition: all 0.3s ease;
}

.custom-icon:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.stat-item {
    margin-bottom: 2rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background-color: white;
}

.testimonial-card {
    background: var(--grey-100);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
    height: 100%;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transition: left 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.testimonial-card:hover::before {
    left: 0;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-text {
    color: var(--grey-800);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-author {
    transform: translateX(10px);
    color: var(--primary-hover);
}

.stars i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.testimonial-card:hover .stars i {
    transform: scale(1.2);
    color: var(--primary-hover);
}

.testimonial-footer {
    margin-top: auto;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    transition: all 0.3s ease;
}

.cta-section:hover {
    background: linear-gradient(135deg, #9fa6ad 0%, #5a6268 100%);
}

.cta-section h2 {
    margin-bottom: 2rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cta-section:hover h2 {
    transform: scale(1.05);
}

.btn-cta {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    background: white;
    border: none;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: var(--grey-200);
    color: var(--primary-color);
}

/* Enhanced Footer */
footer {
    background: var(--grey-800);
    color: white;
    padding: 4rem 0 2rem;
    transition: all 0.3s ease;
}

footer:hover {
    background: var(--grey-900);
}

.footer-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    transition: all 0.3s ease;
}

footer:hover .footer-title {
    color: var(--grey-300);
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

footer:hover .footer-title::after {
    width: 70px;
    background: var(--gradient-secondary);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

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

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.social-icons a {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    color: white;
    margin-right: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

/* Scroll to top button */
#scrollTopBtn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    transform: scale(0.8);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

#scrollTopBtn:hover {
    transform: scale(1.1);
    background: var(--primary-hover);
}

/* Loading Animation */
.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1200px) {
    .carousel-caption {
        bottom: 20%;
    }
}

@media (max-width: 992px) {
    .carousel-item {
        height: 70vh;
        min-height: 400px;
        background-attachment: scroll;
    }

    .carousel-caption {
        bottom: 15%;
    }

    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
        background: rgba(255, 255, 255, 0.95);
        border-radius: var(--border-radius);
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 60vh;
        min-height: 350px;
    }

    .carousel-caption {
        bottom: 10%;
        width: 95%;
    }

    .top-bar {
        font-size: 1rem;
        padding: 0.75rem 0;
    }

    .service-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    footer .col-md-6,
    footer .col-lg-3 {
        text-align: center;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 50vh;
        min-height: 300px;
    }

    .carousel-caption {
        bottom: 5%;
    }

    .top-bar {
        font-size: 0.9rem;
    }

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

    .btn-hero,
    .btn-cta {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .services-section,
    .testimonials-section,
    .cta-section {
        padding: 3rem 0;
    }

    #scrollTopBtn {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .navbar-collapse {
        background: white;
        position: absolute;
        top: 100%;
        /* right below the navbar */
        right: 0;
        /* align to the right */
        width: 60%;
        /* slightly wider for touch */
        max-width: 300px;
        /* optional max width */
        text-align: left;
        /* menu items aligned left */
        padding: 1rem;
        /* more padding for touch */
        border-radius: 0 0 8px 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        z-index: 1050;
        /* height: 100vh; */
    }

    /* Make menu links bigger for touch screens */
    .navbar-collapse .nav-link {
        padding: 0.75rem 0;
        font-size: 1rem;
    }
}

/* Performance optimizations */
.carousel-item {
    will-change: transform;
}

/* Accessibility improvements */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {

    .navbar,
    .top-bar,
    footer,
    #scrollTopBtn {
        display: none !important;
    }
}


/* Small button style */
.btn-cta-sm {
    display: inline-block;
    padding: 6px 20px;
    /* smaller padding */
    font-size: 14px;
    /* smaller text */
    font-weight: 500;
    color: var(--white);
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

/* Hover effect */
.btn-cta-sm:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    /* subtle lift for small button */
    box-shadow: var(--shadow-medium);
}

/* Disabled */
.btn-cta-sm:disabled {
    background-color: var(--grey-400);
    cursor: not-allowed;
    box-shadow: none;
}
