/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2C5AA0;        /* Deep warm blue */
    --secondary-color: #4A7BC1;      /* Medium warm blue */
    --accent-color: #6B9CE8;         /* Light warm blue */
    --warm-blue-light: #E8F0FE;      /* Very light warm blue for backgrounds */
    --warm-blue-bright: #8BB3FF;     /* Bright warm blue for accents */
    --text-dark: #2C3E50;            /* Dark blue-gray for text */
    --text-light: #5D6D7E;           /* Medium blue-gray for text */
    --background-light: #F8FAFF;     /* Very light blue background */
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(44, 90, 160, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 150px 0 100px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-logo {
    max-width: 200px;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
	margin-top: 5px;
    background: var(--accent-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: #e6954c;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
    margin-top: 3rem;
}

/* Products Section */
.products {
    background: var(--background-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Mobile-specific product grid */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
        gap: 1rem;
    }
    
    .product-card {
        margin-bottom: 0; /* Remove extra margin since we have gap */
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .product-description {
        font-size: 0.8rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Limit to 3 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .btn-outline {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .product-image {
        height: 180px; /* Slightly smaller images on very small screens */
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
}

/* Ensure filters work well on mobile */
@media (max-width: 768px) {
    .filter-container {
        gap: 0.5rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: 1.5rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Product Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 2001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-image {
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 15px 0 0 15px;
}

.modal-image img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.modal-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.modal-features {
    margin-bottom: 2rem;
}

.modal-features h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.modal-features ul {
    list-style: none;
    padding: 0;
}

.modal-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.modal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Make product cards clickable */
.product-card {
    cursor: pointer;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-image {
        border-radius: 15px 15px 0 0;
        padding: 1.5rem;
    }
    
    .modal-info {
        padding: 2rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    padding-right: 2rem;
}

.about-description {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    font-size: 1.5rem;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact Section */
.contact {
    background: var(--background-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.1);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        padding-right: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--white);
}

/* Update modal image section for carousel */
.modal-image {
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 15px;
    border-radius: 15px 0 0 15px;
    position: relative;
    min-height: 400px;
}

/* Responsive carousel */
@media (max-width: 768px) {
    .modal-image {
        border-radius: 15px 15px 0 0;
        min-height: 500px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
}

/* Product Filters */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.product-card {
    transition: var(--transition);
}

.product-card.hidden {
    display: none;
}

/* Services Section Updates for Mobile */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Mobile-specific services grid - 2 columns */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin-bottom: 0;
    }
    
    .service-title {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .service-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .service-features {
        font-size: 0.8rem;
    }
    
    .service-features li {
        padding: 0.3rem 0;
        padding-left: 1.2rem;
        line-height: 1.3;
    }
    
    .service-icon img {
        max-width: 50px; /* Smaller icons on mobile */
        height: auto;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-title {
        font-size: 1rem;
    }
    
    .service-description {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 4; /* Limit description to 4 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .service-features {
        display: none; /* Hide features on very small screens to save space */
    }
    
    .service-icon img {
        max-width: 40px;
    }
}

/* Medium screens - keep single column for tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Sticky Filter Container */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    position: sticky;
    top: 80px; /* Position below navbar */
    z-index: 100;
    background: var(--background-light);
    padding: 1rem 0;
    margin-top: -1rem; /* Compensate for extra padding */
    transition: all 0.3s ease;
}

/* Add some shadow when scrolled */
.filter-container.scrolled {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

/* Mobile-specific sticky filters */
@media (max-width: 768px) {
    .filter-container {
        top: 70px; /* Adjust for mobile navbar height */
        padding: 0.8rem 0;
        gap: 0.5rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: 1.5rem;
        scrollbar-width: none; /* Hide scrollbar for Firefox */
        -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
    }
    
    .filter-container::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari */
    }
    
    .filter-container.scrolled {
        padding: 0.8rem 0;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Adjust products section to account for sticky filters */
.products {
    background: var(--background-light);
    position: relative;
}

/* Ensure smooth transition when filters become sticky */
.container {
    position: relative;
}

/* Add to your existing CSS in style.css */

/* Smooth transitions for product filtering */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    transition: opacity 0.3s ease;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

/* Smooth hiding/showing of product cards */
.product-card.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

/* Filter button loading state */
.filter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Mobile-specific updates */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        transition: opacity 0.2s ease;
    }
}

/* Sticky Close Button for Product Modal */
.modal-content {
    background: var(--white);
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: sticky;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 2001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-left: auto; /* Push to the right */
    margin-bottom: -40px; /* Overlap with content */
    float: right; /* Ensure it stays on the right */
}

.close-modal:hover {
    background: var(--background-light);
    color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Ensure modal body accounts for sticky close button */
.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
    padding-top: 10px; /* Add space for the close button */
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-image {
        border-radius: 15px 15px 0 0;
        min-height: 500px;
    }
    
    .close-modal {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
        margin-bottom: -35px;
    }
}

/* Improved Modal Layout - Better Positioning */
.modal-content {
    background: var(--white);
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    /* Remove top margin to position higher */
    margin: 20px auto;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
    /* Remove extra padding at top */
    padding-top: 0;
}

/* Adjust modal image section to be more compact */
.modal-image {
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem; /* Reduced from 2rem */
    border-radius: 15px 0 0 15px;
    position: relative;
    min-height: 350px; /* Reduced from 400px */
    height: auto;
}

/* Adjust carousel container positioning */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem; /* Reduced from 1rem */
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    max-height: 300px; /* Limit max height */
}

/* Adjust modal info section */
.modal-info {
    padding: 2rem; /* Reduced from 3rem */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Start from top instead of center */
    overflow-y: auto;
    max-height: 70vh; /* Limit height and allow scrolling if needed */
}

.modal-info h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    margin-top: 0; /* Remove default margin */
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .modal-image {
        border-radius: 15px 15px 0 0;
        padding: 1rem; /* Further reduced on mobile */
        min-height: 300px; /* Reduced from 500px */
        max-height: 40vh; /* Limit height on mobile */
    }
    
    .modal-info {
        padding: 1.5rem; /* Reduced on mobile */
        max-height: none; /* Remove max-height on mobile */
    }
    
    .carousel-img {
        max-height: 250px; /* Smaller on mobile */
    }
    
    .carousel-item {
        padding: 0.25rem; /* Even less padding on mobile */
    }
    
    /* Adjust carousel buttons for mobile */
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: 8px;
    }
    
    .carousel-next {
        right: 8px;
    }
    
    /* Adjust close button position */
    .close-modal {
        top: 8px;
        right: 8px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
        margin-bottom: -35px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 10px auto;
    }
    
    .modal-image {
        min-height: 250px;
        padding: 0.8rem;
    }
    
    .modal-info {
        padding: 1.2rem;
    }
    
    .modal-info h2 {
        font-size: 1.5rem;
    }
    
    .carousel-img {
        max-height: 200px;
    }
    
    .close-modal {
        top: 6px;
        right: 6px;
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
        margin-bottom: -32px;
    }
}

/* Large screens - adjust for better proportions */
@media (min-width: 1200px) {
    .modal-content {
        max-width: 1000px;
    }
    
    .modal-image {
        min-height: 400px;
    }
    
    .carousel-img {
        max-height: 350px;
    }
}

.shipping-info {
    background: var(--background-light);
    padding: 80px 0;
}

.shipping-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.shipping-details ul {
    list-style: none;
    padding: 0;
}

.shipping-details li {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .shipping-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.shipping-banner {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Service Modal Specific Styles */
.service-modal .modal-image {
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 15px 0 0 15px;
}

.service-modal .modal-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
}

/* Mobile responsive for service modal */
@media (max-width: 768px) {
    .service-modal .modal-image {
        border-radius: 15px 15px 0 0;
        padding: 1.5rem;
    }
    
    .service-modal .modal-image img {
        max-width: 150px;
    }
}

/* Projects Section */
.projects-section {
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Project Modal */
.project-modal .modal-content {
    max-width: 1000px;
}

.project-modal .modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.project-modal .modal-image {
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-radius: 15px 0 0 15px;
    min-height: 400px;
}

.project-modal .modal-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    max-height: 70vh;
}

.project-features {
    margin-bottom: 2rem;
}

.project-features h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.project-features ul {
    list-style: none;
    padding: 0;
}

.project-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.project-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.project-button-container {
    margin-top: auto;
    padding-top: 0rem;
}

/* Mobile responsive for projects */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .project-card {
        margin-bottom: 0;
    }
    
    .project-info {
        padding: 1rem;
    }
    
    .project-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .project-description {
        font-size: 0.8rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .project-modal .modal-body {
        grid-template-columns: 1fr;
    }
    
    .project-modal .modal-image {
        border-radius: 15px 15px 0 0;
        min-height: 300px;
    }
    
    .project-modal .modal-info {
        padding: 1.5rem;
        max-height: none;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-info {
        padding: 0.8rem;
    }
    
    .project-title {
        font-size: 0.9rem;
    }
}

/* Download Button Container */
.download-button-container {
    margin: 1.5rem 0;
    text-align: left;
}

.download-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Download Button - Matching existing .btn-primary exactly */
.btn-download {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    background: var(--accent-color);
    color: var(--text-dark);
    margin-top: 5px;
}

.btn-download:hover {
    background: #e6954c;
    transform: translateY(-2px);
}

/* Sticky WhatsApp Button */
.whatsapp-sticky {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366; /* WhatsApp green */
    color: var(--white);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    text-decoration: none;
    font-weight: 500;
    border: none;
}

.whatsapp-sticky:hover {
    background: #128C7E; /* Darker WhatsApp green */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-text {
    font-size: 0.9rem;
    white-space: nowrap;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .whatsapp-sticky {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
    }
    
    .whatsapp-text {
        font-size: 0.8rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .whatsapp-sticky {
        bottom: 10px;
        right: 10px;
        padding: 8px 14px;
    }
    
    .whatsapp-text {
        display: none; /* Hide text on very small screens */
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}
