:root {
    --primary-color: #1295d9;
    --secondary-color: #27f7c6;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --dark-bg: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Enhanced Navbar */
.custom-navbar {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(18, 149, 217, 0.07);
    border-bottom: 1.5px solid #e2e8f0;
    z-index: 9999 !important;
    transition: all 0.3s ease;
}

.navbar-logo {
    height: 38px;
    width: auto;
    margin-right: 10px;
    display: inline-block;
}

.navbar-brand-text {
    font-weight: 800;
    font-size: 1.45rem;
    color: #1295d9 !important;
    letter-spacing: 0.5px;
}

.navbar-toggler {
    border: 2px solid #1295d9 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    background: rgba(18, 149, 217, 0.1) !important;
    z-index: 10000 !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(18, 149, 217, 0.25) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231295d9' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 20px !important;
    height: 20px !important;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #1e293b !important;
    margin: 0 4px;
    font-size: 1.08rem;
    transition: color 0.3s, background 0.3s;
    border-radius: 8px;
    padding: 8px 18px !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #27f7c6 !important;
    background: #f0f9ff;
}

.btn-navbar-cta {
    background: linear-gradient(90deg, #1295d9 60%, #27f7c6 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 1.08rem;
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    box-shadow: 0 4px 18px rgba(18, 149, 217, 0.1);
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-navbar-cta:hover {
    background: #1295d9;
    color: #fff !important;
    transform: translateY(-2px) scale(1.04);
}

/* Products Hero Section */
.products-hero {
    background: linear-gradient(135deg, rgba(18, 149, 217, 0.9) 0%, rgba(39, 247, 198, 0.8) 100%),
                url('/placeholder.svg?height=600&width=1200&text=Solar+Panels+Installation');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="solar-grid" width="20" height="20" patternUnits="userSpaceOnUse"><rect width="20" height="20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23solar-grid)"/></svg>');
    opacity: 0.3;
}

.products-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.products-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInUp 1s ease-out;
}

.products-hero h1 i {
    margin-right: 20px;
    color: var(--secondary-color);
}

.products-hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: slideInUp 1s ease-out 0.2s both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    animation: slideInUp 1s ease-out 0.4s both;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.btn-hero:hover {
    background: #d97706;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
    color: white;
}

/* Section Styling */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Products Section */
.products-section {
    background: var(--bg-light);
}

.product-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid #e2e8f0;
    position: relative;
    margin-bottom: 30px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-main-image {
    transform: scale(1.1);
}

.product-thumbnails {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px;
    border-radius: 15px;
}

.product-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

.product-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1.05rem;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-specs {
    margin-bottom: 25px;
    flex: 1;
}

.spec-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-dark);
}

.spec-item i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.product-details-btn {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.product-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(18, 149, 217, 0.3);
    color: white;
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(5px);
}

.product-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-image {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.product-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-close:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Technical Support CTA Section */
.tech-support-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #334155 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tech-support-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="tech-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="rgba(39,247,198,0.1)"/><path d="M15,5 L15,25 M5,15 L25,15" stroke="rgba(39,247,198,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23tech-pattern)"/></svg>');
    opacity: 0.3;
}

.tech-support-content {
    position: relative;
    z-index: 2;
}

.tech-support-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 3rem;
    color: white;
    box-shadow: 0 20px 40px rgba(18, 149, 217, 0.3);
}

.tech-support-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.tech-support-section p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tech-support-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-tech-support {
    background: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    padding: 18px 35px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(39, 247, 198, 0.3);
}

.btn-tech-support:hover {
    background: #1ee6b8;
    transform: translateY(-3px) scale(1.05);
    color: var(--text-dark);
}

.btn-tech-support.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-tech-support.secondary:hover {
    background: white;
    color: var(--text-dark);
}

/* WhatsApp Button */
.whatsapp-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: #25d366;
    border-radius: 35px;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
    padding: 0 28px;
    min-width: 0;
    height: 56px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    color: #fff;
    font-size: 1.15rem;
    text-decoration: none;
    z-index: 9998 !important;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn i {
    font-size: 2rem;
    margin-right: 14px;
    margin-left: 2px;
}

.whatsapp-btn-text {
    font-weight: 600;
    font-size: 1.13rem;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.5px;
    margin: 0;
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: scale(1.08);
    color: #fff;
}

.whatsapp-btn::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(37, 211, 102, 0.3);
    border-radius: 40px;
    animation: ripple 2s infinite;
    z-index: -1;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 100px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.footer-section p,
.footer-section li {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.newsletter-form {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #475569;
    border-radius: 12px;
    background: #334155;
    color: white;
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

.newsletter-form button {
    background: var(--secondary-color);
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    color: var(--text-dark);
    font-weight: 600;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #1ee6b8;
}

.footer-bottom {
    border-top: 1px solid #475569;
    padding-top: 40px;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: #475569;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98) !important;
        border-radius: 15px !important;
        margin-top: 15px !important;
        padding: 20px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid #e2e8f0 !important;
    }

    .btn-navbar-cta {
        width: 100%;
        text-align: center;
        margin-top: 16px;
    }

    .navbar-nav .nav-link {
        margin: 0 0 8px 0;
        text-align: center;
    }

    .tech-support-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-tech-support {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .products-hero h1 {
        font-size: 2.8rem;
    }

    .products-hero p {
        font-size: 1.2rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .product-card {
        margin-bottom: 30px;
    }

    .product-image-container {
        height: 200px;
    }

    .product-content {
        padding: 20px;
    }

    .tech-support-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .tech-support-section h2 {
        font-size: 2.2rem;
    }

    .tech-support-section p {
        font-size: 1.1rem;
    }

    .whatsapp-btn {
        height: 48px;
        padding: 0 14px;
        right: 16px;
        bottom: 16px;
        border-radius: 24px;
    }

    .whatsapp-btn i {
        font-size: 1.3rem;
        margin-right: 8px;
    }

    .whatsapp-btn-text {
        font-size: 0.98rem;
    }

    .footer {
        padding: 60px 0 30px;
    }

    .footer-content {
        gap: 30px;
        margin-bottom: 30px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .products-hero h1 {
        font-size: 2.2rem;
    }

    .products-hero p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .product-name {
        font-size: 1.3rem;
    }

    .tech-support-section h2 {
        font-size: 1.8rem;
    }

    .btn-tech-support {
        padding: 15px 25px;
        font-size: 1.1rem;
    }
}