:root {
    --primary-blue: #0095ff;
    /* Cloud Tech blue */
    --secondary-green: #35b452;
    /* "We believe in nature" green */
    --accent-blue: #007fd6;
    /* Darker blue for hover effects */
    --light-blue: #e6f5ff;
    /* Very light blue for backgrounds */
    --cloud-blue: #0095ff;
    /* Bright blue from the logo */
    --dark-gray: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --white: #ffffff;
    --black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

body {
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%230095ff' fill-opacity='0.05' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'/%3E%3C/svg%3E"),
        linear-gradient(to bottom, rgba(230, 245, 255, 0.3), rgba(255, 255, 255, 0.8));
    background-attachment: fixed;
}

/* Cloud Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 100% 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    animation: fadeIn 0.8s ease-in-out;
}

.section-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 149, 255, 0.1);
}

.controls-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Header Banner Section */
.banner-container {
    width: 100%;
    height: 300px;
    background-image: url('/api/placeholder/1200/300');
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.banner-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at top right, var(--cloud-blue), transparent 50%),
        radial-gradient(circle at bottom left, var(--secondary-green), transparent 60%);
    opacity: 0.7;
    animation: pulse 8s infinite ease-in-out;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 20px;
}

.banner-content h2 {
    font-size: 42px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: float 4s infinite ease-in-out;
}

.banner-content p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Breadcrumb */
.breadcrumb {
    background-color: rgba(248, 248, 248, 0.8);
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    backdrop-filter: blur(5px);
}

.breadcrumb-content {
    display: flex;
    align-items: center;
}

.breadcrumb-content a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.breadcrumb-content a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary-green);
    transition: width 0.3s;
}

.breadcrumb-content a:hover {
    color: var(--accent-blue);
}

.breadcrumb-content a:hover::after {
    width: 100%;
}

.breadcrumb-content span {
    margin: 0 10px;
    color: #999;
}

/* Page Title Section */
.page-title {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(0, 149, 255, 0.05) 0%, rgba(53, 180, 82, 0.05) 100%);
    border-bottom: 3px solid var(--secondary-green);
    position: relative;
    overflow: hidden;
}

.page-title::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 149, 255, 0.1) 0%, transparent 70%);
    animation: pulse 10s infinite linear;
}

.page-title h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

.page-title h1::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 10px;
    bottom: 10px;
    width: 5px;
    background-color: var(--secondary-green);
    animation: pulse 2s infinite;
}

.page-title p {
    font-size: 18px;
    color: var(--secondary-green);
    font-style: italic;
    z-index: 1;
    position: relative;
}

/* Product Categories Layout */
.product-layout {
    display: flex;
    margin: 30px 0;
    position: relative;
}

/* Sidebar */
.sidebar {
    width: 250px;
    margin-right: 30px;
    flex-shrink: 0;
    animation: fadeIn 0.6s ease-in-out;
}

.category-list {
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.category-item {
    position: relative;
    border-bottom: 1px solid var(--medium-gray);
    /* Added margin to create space between category buttons */
    margin-bottom: 3px;
}

.category-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    /* Remove margin from last item */
}

/* All category buttons are blue */
.category-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #0077cc;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.category-button::before {
    content: "";
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.5s;
}

.category-button:hover::before {
    left: 100%;
}

.category-button:hover,
.category-button.active {
    background-color: #0077cc;
    /* Darker blue on hover */
    color: var(--white);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Subcategory Styling - Updated to remove colorful styling */
.subcategory-list {
    display: none;
    background-color: #f5f5f5;
    /* Light gray background instead of dark */
    padding: 5px 0;
    border-top: 1px solid var(--medium-gray);
}

/* Modified to handle persistent open state */
.category-item.active .subcategory-list {
    display: block;
}

.subcategory-item {
    display: block;
    padding: 12px 15px 12px 25px;
    color: #333;
    /* Dark text for better readability */
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    font-size: 14px;
}

.subcategory-item:hover {
    background-color: #e9e9e9;
    /* Light gray on hover */
    color: #0077cc;
    /* Blue text on hover for subtle highlight */
    transform: translateX(5px);
}

/* Hide sidebar on mobile */
@media screen and (max-width: 768px) {
    .sidebar {
        display: none;
    }
}

/* Products Grid - Fixed for 3 per row */
.products-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--white);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    animation: fadeIn 0.8s ease-in-out;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 149, 255, 0.15);
    border-color: var(--primary-blue);
}

.product-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.product-card:hover::after {
    transform: scaleX(1);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 149, 255, 0.2),
            transparent);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-image::before {
    opacity: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite ease-in-out;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: linear-gradient(to bottom, white, #f9f9f9);
}

.product-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-blue);
    position: relative;
}

.product-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-green);
    margin: 8px auto 0;
    transition: width 0.3s;
}

.product-card:hover .product-title::after {
    width: 60px;
}


.product-features {
    display: flex;
    justify-content: space-around;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s;
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-icon {
    color: var(--secondary-green);
}

.feature-text {
    font-size: 12px;
}

/* Footer Contact Section */
.contact-section {
    background: linear-gradient(135deg, #2a3b4c, #1a2736);
    color: var(--white);
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
    margin-top: 50px;
    border-top: 5px solid var(--secondary-green);
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='%230095ff' fill-opacity='0.05' d='M14 16H9v-2h5V9.87a4 4 0 1 1 2 0V14h5v2h-5v15.95A10 10 0 0 0 23.66 27l-3.46-2 8.2-2.2-2.9 5a12 12 0 0 1-21 0l-2.89-5 8.2 2.2-3.47 2A10 10 0 0 0 14 31.95V16zm40 40h-5v-2h5v-4.13a4 4 0 1 1 2 0V54h5v2h-5v15.95A10 10 0 0 0 63.66 67l-3.47-2 8.2-2.2-2.88 5a12 12 0 0 1-21.02 0l-2.88-5 8.2 2.2-3.47 2A10 10 0 0 0 54 71.95V56zm-39 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm40-40a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM15 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm40 40a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'%3E%3C/path%3E%3C/svg%3E");
}

.cloud-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%230095ff' fill-opacity='0.1' d='M0,96L48,106.7C96,117,192,139,288,149.3C384,160,480,160,576,138.7C672,117,768,75,864,74.7C960,75,1056,117,1152,117.3C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.contact-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(5px);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.1);
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-blue);
    position: relative;
    padding-bottom: 10px;
}

.contact-item h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-green));
}

.contact-item p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.5s;
}

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    transform: translateY(-3px) rotate(8deg);
    box-shadow: 0 5px 15px rgba(0, 149, 255, 0.4);
}

/* Animation for category items */
.category-item {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.category-item:nth-child(1) {
    animation-delay: 0.1s;
}

.category-item:nth-child(2) {
    animation-delay: 0.2s;
}

.category-item:nth-child(3) {
    animation-delay: 0.3s;
}

.category-item:nth-child(4) {
    animation-delay: 0.4s;
}

.category-item:nth-child(5) {
    animation-delay: 0.5s;
}

/* Animation for product cards */
.product-card {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.products-grid .product-card:nth-child(1) {
    animation-delay: 0.2s;
}

.products-grid .product-card:nth-child(2) {
    animation-delay: 0.3s;
}

.products-grid .product-card:nth-child(3) {
    animation-delay: 0.4s;
}

.products-grid .product-card:nth-child(4) {
    animation-delay: 0.5s;
}

.products-grid .product-card:nth-child(5) {
    animation-delay: 0.6s;
}

.products-grid .product-card:nth-child(6) {
    animation-delay: 0.7s;
}

/* Cloud-inspired button styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 149, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 149, 255, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* Adding style for section titles to make them visible */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4CAF50;
    display: block;
    width: 100%;
}

/* Adding visibility improvements for tab headers */
.tab-header {
    cursor: pointer;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    background-color: #f8f8f8;
}

.tab-header.active {
    background-color: #fff;
    border-bottom: 3px solid #4CAF50;
}

.tab-header h2.section-title {
    margin-bottom: 0;
    border-bottom: none;
    font-size: 1.5rem;
}

/* Ensuring tab content is visible */
.tab-content {
    display: none;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
}

.tab-content.active {
    display: block;
}


/* Responsive Media Queries */
@media (max-width: 1024px) {
    .product-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Convert subcategories to horizontal on tablet/mobile */
    .subcategory-list {
        width: 100%;
        position: relative;
        left: 0;
        box-shadow: none;
    }

    .subcategory-item {
        padding-left: 30px;
    }
}

@media (max-width: 768px) {
    .banner-container {
        height: 200px;
    }

    .banner-content h2 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .page-title h1 {
        font-size: 28px;
    }

    .page-title p {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-button {
        padding: 12px 15px;
    }

    .subcategory-item {
        padding: 8px 15px 8px 30px;
    }
}

@media (max-width: 480px) {
    .banner-container {
        height: 150px;
    }

    .banner-content h2 {
        font-size: 24px;
    }

    .banner-content p {
        font-size: 14px;
    }

    .page-title {
        padding: 25px 0;
    }

    .page-title h1 {
        font-size: 22px;
    }

    .page-title p {
        font-size: 14px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-image {
        height: 180px;
    }

    .product-title {
        font-size: 14px;
    }

    .pagination-item {
        width: 30px;
        height: 30px;
        margin: 0 3px;
    }
}