:root {
    /* Colors */
    --primary-color: #e94029;
    /* Primary Red-Orange */
    --primary-dark: #c02e1b;
    --secondary-color: #053eff;
    /* Circuit Green/Success */
    --accent-color: #fd7e14;
    /* Alert Orange */
    --text-color: #333333;
    --text-light: #666666;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark-footer: #1a1a1a;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    /* Fonts */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-md);
    color: #222;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: var(--spacing-xl);
    position: relative;
    padding-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(233, 64, 41, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(233, 64, 41, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact a {
    margin-right: 20px;
    color: #ddd;
}

.top-contact a:hover {
    color: var(--white);
}

.top-contact i {
    margin-right: 5px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-md) 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: #053eff;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    object-fit: contain;
}

.nav-list {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-contact {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-contact:hover {
    background-color: #e86b02;
    color: white;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(233, 64, 41, 0.9) 0%, rgba(5, 62, 255, 0.9) 100%), url('https://images.unsplash.com/photo-1597872200969-2b65d56bd16b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* Services Section */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.card {
    background: var(--white);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Products Section */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
}

.product-card {
    padding: var(--spacing-md);
    text-align: left;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background-color: #fff;
    margin-bottom: var(--spacing-md);
    border-radius: 8px;
    padding: 10px;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.product-card p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Pricing Section */
.pricing-table {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
    /* Enable horizontal scroll */
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
    min-width: 500px;
    /* Ensure content doesn't squash */
}

.pricing-row:hover:not(.header-row) {
    background-color: #f8f9fa;
}

.header-row {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.pricing-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: var(--spacing-md);
    font-style: italic;
}

/* Why Us */
.why-us {
    background-color: var(--white);
}

.feature {
    text-align: center;
    padding: var(--spacing-md);
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.contact-info {
    padding: var(--spacing-lg);
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 12px;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: var(--spacing-lg);
}

.contact-info p {
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.social-links {
    margin-top: var(--spacing-xl);
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 20px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--white);
}

.contact-form {
    padding: var(--spacing-lg);
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Product Filters */
.product-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.filter-btn-prog {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.filter-btn-prog:hover,
.filter-btn-prog.active {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.program-card {
    display: flex;
    flex-direction: column;
}

.program-card .version {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-style: italic;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.btn-add-cart {
    margin-top: auto;
    width: 100%;
    padding: 10px;
    background-color: var(--success-color, #053eff);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-add-cart:hover {
    background-color: #218838;
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.whatsapp-float,
.cart-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s;
    text-decoration: none;
}

.whatsapp-float {
    background-color: #25d366;
    font-size: 35px;
}

.cart-float {
    background-color: var(--primary-color);
    font-size: 24px;
    position: relative;
}

.whatsapp-float:hover,
.cart-float:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Footer (Updated margin) */
.footer {
    background-color: var(--dark-footer);
    color: #adb5bd;
    text-align: center;
    padding: var(--spacing-lg) 0;
    margin-top: 0;
    font-size: 0.9rem;
    padding-bottom: 100px;
    /* Space for floating buttons on mobile */
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-list {
        display: block;
        /* Hidden handled by max-height or display none in JS */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }

    .nav-list.active {
        max-height: 400px;
        /* Adjust as needed */
        display: flex;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--light-bg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .top-bar {
        display: none;
        /* Hide top bar on small mobile for cleaner look */
    }
}

/* Cart Specific Styles */
.cart-items-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item span {
    font-size: 0.95rem;
    color: var(--text-color);
    flex-grow: 1;
    margin-right: 10px;
}

.cart-item .btn-remove {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    transition: color 0.3s;
}

.cart-item .btn-remove:hover {
    color: #cc0000;
}

.empty-cart-msg {
    text-align: center;
    padding: 20px;
    color: #999;
}

.cart-footer .btn-block {
    width: 100%;
    display: block;
    text-align: center;
    padding: 12px;
}

/* Search Bar */
.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#search-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 20px 0 0 20px;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#search-input:focus {
    border-color: var(--primary-color);
}

#search-btn {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

#search-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Image Zoom Modal */
.header-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content-img {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    object-fit: contain;
    animation: zoom 0.6s;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-image {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 2001;
}

.close-image:hover,
.close-image:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive Image Modal */
@media only screen and (max-width: 700px) {
    .modal-content-img {
        width: 100%;
    }
}

/* Map */
.map-container {
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Testimonials */
.testimonials {
    background-color: var(--light-bg);
}

.testimonial-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    border-top: 4px solid var(--secondary-color);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1rem;
}

.client-info i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 10px;
}

.client-info h4 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.client-info span {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}