/* Global Styles */
:root {
    --primary-color: #1a5f7a;    /* Changed to a professional blue */
    --secondary-color: #2c88aa;  /* Lighter shade for hover states */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --accent-color: #ff6b6b;     /* Accent color for highlights */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px; /* Height of fixed navbar */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 76px; /* Height of fixed navbar */
}

/* Section Styles */
.section {
    padding: 80px 0;
    min-height: 50vh;
}

.section-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 2rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Logo Styles */
.logo-img {
    height: 50px; /* Default height for desktop */
    width: auto;
    transition: all 0.3s ease;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo-img {
        height: 40px; /* Smaller height for tablets */
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 35px; /* Even smaller height for mobile phones */
    }
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 1rem 1.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Carousel Styles */
#home {
    padding-top: 0;
}

.carousel-item {
    height: calc(100vh - 76px);
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.8);
}

.carousel-caption {
    background: rgba(0,0,0,0.6);
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-caption h2 {
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Products Section */
.productsSwiper {
    padding: 2rem 1rem;
    overflow: hidden;
    position: relative;
}

.swiper-slide {
    height: auto;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    padding-bottom: 40px; /* Add space for pagination */
}

.swiper-slide-active {
    opacity: 1;
}

.swiper-slide .card {
    margin: 0 auto;
    max-width: 350px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.swiper-slide .card img {
    height: 200px;
    width: 100%;
    object-fit: contain;
    background-color: #fff;
    padding: 1rem;
}

.swiper-pagination {
    bottom: 0;
    padding-top: 1rem;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

.price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-top: 1rem;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
}

/* Services Section */
.service-card {
    text-align: center;
    padding: 2rem 1rem;
}

.service-card .card-title {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Contact Section */
.contact-info {
    padding: 1rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.contact-item i {
    color: #0d6efd;
    margin-top: 0.25rem;
}

.contact-item h5 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #0d6efd;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #0a58ca;
}

.contact-item address {
    color: #666;
    line-height: 1.6;
}

#map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#contact form {
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    padding: 2rem 0;
    margin-top: 0;
    color: white;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Social Media Section */
.social-media a {
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.social-media a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.social-media .bi {
    font-size: 1.75rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        padding: 1rem;
        max-width: 90%;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
        padding: 1rem;
    }

    .nav-link {
        padding: 0.5rem 1rem;
    }

    .logo-img {
        height: 35px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .productsSwiper {
        padding: 1rem 0;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .swiper-slide .card {
        max-width: 280px;
    }

    .swiper-slide .card img {
        height: 160px;
        padding: 0.5rem;
    }

    .contact-item {
        padding: 0.75rem;
    }
    
    #map {
        height: 300px !important;
    }
}