/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
    --primary-color: #4e73df;
    --primary-dark: #3a56b0;
    --primary-light: #7c96e8;
    --secondary-color: #1cc88a;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    color: #444444;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 800px;
    margin: 0 auto;
}

.heading-line {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1rem 0;
}

.heading-line.mx-auto {
    margin: 1rem auto;
}

.bg-light {
    background-color: #f8f9fc !important;
}

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

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

.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.25rem;
    transition: var(--transition);
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

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

.rounded-pill {
    border-radius: 50rem !important;
}

.rounded-4 {
    border-radius: 0.5rem !important;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preloader .loader {
    width: 50px;
    height: 50px;
    position: relative;
}

.circular {
    animation: rotate 2s linear infinite;
    height: 50px;
    width: 50px;
    position: absolute;
}

.path {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
    stroke-linecap: round;
    stroke: var(--primary-color);
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124;
    }
}

/*--------------------------------------------------------------
# Top Bar
--------------------------------------------------------------*/
.top-bar {
    font-size: 0.875rem;
}

.top-bar-info ul {
    margin: 0;
    padding: 0;
}

.top-bar-info ul li {
    display: inline-block;
}

.top-bar-social a {
    display: inline-block;
    transition: var(--transition);
}

.top-bar-social a:hover {
    transform: translateY(-3px);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header-main {
    transition: var(--transition);
}

.header-sticky {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.navbar-brand {
    padding: 0;
}

.navbar-brand .logo-icon {
    font-size: 1.75rem;
}

.navbar-nav .nav-link {
    padding: 1.5rem 1rem;
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
}

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

.navbar-nav .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 1.25rem;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary-color);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    position: relative;
}

.hero-slide {
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

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

.animated-text {
    position: relative;
    display: inline-block;
    padding-left: 0.5rem;
}

.animated-text:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 100%;
    background-color: var(--primary-color);
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: #fff;
}

.hero-slider .swiper-pagination-bullet {
    background-color: #fff;
    opacity: 0.5;
}

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--primary-color);
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.feature-card {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.feature-icon {
    color: var(--primary-color);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-text {
    color: var(--gray-color);
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about-img {
    border-radius: 0.5rem;
    overflow: hidden;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 30px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.exp-years {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.exp-text {
    font-size: 0.875rem;
}

.about-feature h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

.about-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/*--------------------------------------------------------------
# Counter Section
--------------------------------------------------------------*/
.counter-item {
    padding: 1.5rem;
}

.counter-icon {
    color: rgba(255, 255, 255, 0.7);
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.counter-text {
    font-size: 1.1rem;
    opacity: 0.8;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.service-card {
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.service-img {
    position: relative;
    overflow: hidden;
}

.service-img img {
    transition: var(--transition);
}

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

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: absolute;
    top: -30px;
    right: 20px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
}

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

.service-list li {
    margin-bottom: 0.5rem;
}

/*--------------------------------------------------------------
# Products Section
--------------------------------------------------------------*/
.product-tabs {
    margin-bottom: 2rem;
}

.product-tabs .nav-link {
    color: var(--dark-color);
    border-radius: 50rem;
    padding: 0.5rem 1.5rem;
    margin: 0 0.25rem;
    font-weight: 500;
}

.product-tabs .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
}

.product-card {
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.product-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.875rem;
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonial-card {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    height: 100%;
}

.testimonial-rating i {
    font-size: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-color);
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
}

.author-designation {
    font-size: 0.875rem;
    color: var(--gray-color);
}

/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/
.gallery-filter button {
    margin: 0 0.25rem;
    border-radius: 50rem;
}

.gallery-filter button.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.gallery-card {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.gallery-card img {
    transition: var(--transition);
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-popup {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transform: translateY(-20px);
    transition: var(--transition);
}

.gallery-card:hover .gallery-popup {
    transform: translateY(0);
}

.gallery-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-card:hover .gallery-title {
    transform: translateY(0);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact-info-item {
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(78, 115, 223, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-form-card {
    background-color: #fff;
    border-radius: 0.5rem;
}

.map-container {
    border-radius: 0.5rem;
    overflow: hidden;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer-section {
    background-color: #212529;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/*--------------------------------------------------------------
# Back to Top Button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

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

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .navbar-nav .nav-link.active:after {
        display: none;
    }
    
    .hero-slide {
        height: 70vh;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-slide {
        height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .experience-badge {
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 575px) {
    .hero-slide {
        height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .counter-number {
        font-size: 2rem;
    }
}