/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --secondary: #6c757d;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --font-primary: 'Poppins', sans-serif;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: var(--font-primary);
    color: #444;
    background-color: #fff;
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: capitalize;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 70px;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: var(--secondary);
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: capitalize;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

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

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

/*--------------------------------------------------------------
# Top Bar
--------------------------------------------------------------*/
.top-bar {
    font-size: 0.875rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.top-bar a:hover {
    color: #fff;
    text-decoration: none;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 0.875rem;
    transition: var(--transition);
}

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

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease-in-out;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: #fff !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar .navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
}

.navbar .navbar-brand span {
    color: var(--primary);
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--dark);
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    position: relative;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    left: 1rem;
    bottom: 5px;
    transition: var(--transition);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: calc(100% - 2rem);
}

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

.navbar .dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.75rem;
}

.navbar .dropdown-item {
    font-weight: 400;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
}

.navbar .dropdown-item:hover {
    background: var(--primary);
    color: #fff;
    padding-left: 1.75rem;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 10rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about-section {
    padding: 6rem 0;
    background-color: #f9f9f9;
}

.about-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-img img {
    transition: var(--transition);
    width: 100%;
}

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

.about-content {
    padding-left: 2rem;
}

.about-content h3 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

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

.about-feature {
    display: flex;
    margin-bottom: 1.5rem;
}

.about-feature i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services-section {
    padding: 6rem 0;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

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

.service-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

/*--------------------------------------------------------------
# Products Section
--------------------------------------------------------------*/
.products-section {
    padding: 6rem 0;
    background-color: #f9f9f9;
}

/* Product Card Styling */
.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background: #fff;
}

/* Product Image Container */
.product-img {
    position: relative;
    overflow: hidden;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 25px 15px;
    margin: 10px 10px 0 10px;
    border-radius: 4px;
}

/* Product Image */
.product-img img {
    max-height: 140px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin: 0 auto;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Product Content */
.product-content {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-content .product-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Space between image and content */
.product-card .product-img {
    margin-bottom: 15px;
}

/* Product title */
.product-title {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Product description */
.product-description {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Action buttons container */
.product-actions {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Adjust button spacing */
.product-actions .btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* Hover effect */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-description {
    margin: 10px 0 15px;
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.product-actions {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.product-category {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.product-title {
    font-size: 0.9rem;
    margin: 0.25rem 0 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    line-height: 1.2;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.product-title a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title a:hover {
    color: var(--primary);
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials-section {
    padding: 6rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/testimonial-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    color: #fff;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    margin: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card .quote {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 3px solid var(--primary);
}

.author-info h5 {
    margin-bottom: 0.25rem;
    color: #fff;
}

.author-info p {
    margin-bottom: 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

/*--------------------------------------------------------------
# CTA Section
--------------------------------------------------------------*/
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact-section {
    padding: 6rem 0;
    background-color: #f9f9f9;
}

.contact-info {
    margin-bottom: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.contact-info p {
    margin-bottom: 2rem;
    color: var(--secondary);
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 1.5rem;
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.contact-item p, .contact-item a {
    margin-bottom: 0;
    color: var(--secondary);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-form .form-control {
    height: 50px;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    border: 1px solid #e1e1e1;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.contact-form textarea.form-control {
    height: 150px;
    padding: 1rem;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer-widget {
    margin-bottom: 2rem;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-widget h5 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

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

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.footer-widget ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-size: 0.875rem;
}

.copyright a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/*--------------------------------------------------------------
# Back to Top Button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

/*--------------------------------------------------------------
# Responsive Styles
--------------------------------------------------------------*/
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .section-title h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: 5px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }
    
    .navbar .nav-link {
        padding: 0.5rem 0 !important;
        margin: 0;
    }
    
    .navbar .nav-link::after {
        display: none;
    }
    
    .hero-section {
        padding: 8rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        padding-left: 0;
        margin-top: 3rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 6rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section p {
        font-size: 1.125rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .testimonial-card {
        margin: 1rem 0;
    }
    
    .footer-widget {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1.25rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .back-to-top.active {
        bottom: 20px;
        right: 20px;
    }
}

/*--------------------------------------------------------------
# Animation Classes
--------------------------------------------------------------*/
.animate-up {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease-out;
}

.animate-up.animated {
    transform: translateY(0);
    opacity: 1;
}

/*--------------------------------------------------------------
# Custom Utilities
--------------------------------------------------------------*/
.bg-light {
    background-color: #f9f9f9 !important;
}

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

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

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

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

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

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

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

.fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fadeInLeft {
    animation: fadeInLeft 0.6s ease-out forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fadeInRight {
    animation: fadeInRight 0.6s ease-out forwards;
}

/*--------------------------------------------------------------
# Product Card
--------------------------------------------------------------*/
.product-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.product-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    border-top: 1px solid #eee;
}

.product-overlay:hover {
    bottom: 0;
    opacity: 1;
}

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

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/*--------------------------------------------------------------
# Partners Section
--------------------------------------------------------------*/
.partners-section {
    padding: 30px 0;
    background-color: #f8f9fa;
}

.partner-item {
    padding: 10px;
    text-align: center;
}

.partner-logo-container {
    background: white;
    padding: 15px; /* Slightly more padding for the larger logos */
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.partner-logo-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.partner-logo {
    max-width: 120px; /* Increased by 20% from 100px */
    max-height: 60px; /* Increased by 20% from 50px */
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-name {
    font-size: 12px;
    font-weight: 500;
    color: #555;
    margin-top: 8px;
}

/* Adjust carousel navigation */
.owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9) !important;
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    color: var(--primary) !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.owl-nav button:hover {
    background: var(--primary) !important;
    color: white !important;
}

.owl-prev {
    left: -15px;
}

.owl-next {
    right: -15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .partner-logo {
        max-width: 100px; /* Slightly smaller on mobile */
        max-height: 50px; /* Slightly smaller on mobile */
    }
}
