@import 'variables.css';

/* --- Navbar --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent-color);
}

.btn-contact {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-contact:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.hero-content h1 span {
    color: var(--primary-color);
    position: relative;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    border-top: 1px solid #E0E0E0;
    padding-top: 20px;
}

.stat-item h4 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.hero-image-wrapper {
    position: relative;
    z-index: 10;
}

.hero-image-wrapper img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* --- Product Cards --- */
.product-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eee;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 10px;
}

.product-image img {
    max-height: 100%;
}

.product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.product-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.badge-solar {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.badge-battery {
    background-color: #FFEBEE;
    color: #C62828;
}

/* --- Service Section --- */
.services-section {
    background-color: var(--background-light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* --- Contact Section --- */
.contact-section {
    background: var(--accent-color);
    color: var(--white);
    text-align: center;
}

.contact-section h2 {
    color: var(--white);
}

/* --- Footer --- */
footer {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Fix for footer logo contrast */
footer .logo {
    color: var(--white);
}

/* --- Mobile / Responsive --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-stats {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}