/* Modern Solar Energy Design System */
:root {
    --primary: #f39c12; /* Sun Orange */
    --primary-dark: #e67e22;
    --secondary: #2c3e50; /* Deep Blue */
    --accent: #3498db; /* Sky Blue */
    --bg-light: #f9f9f9;
    --bg-dark: #1a1a1a;
    --text-main: #333;
    --text-muted: #666;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

header.scrolled .logo {
    background: transparent;
    padding: 0;
}

.header-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
}

header.scrolled .header-logo {
    height: 75px;
}

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

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

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-3px);
}

/* Hero Section & Page Header */
.hero, .page-header {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/hero.png');
}

.page-header {
    height: 40vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/hero.png');
    margin-top: 80px;
}

.hero-content, .page-header-content {
    max-width: 800px;
}

.hero h1, .page-header h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.page-header h1 {
    font-size: 3rem;
}

.hero p, .page-header p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-btns {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Content Sections */
.section-padding {
    padding: 100px 0;
}

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

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.mv-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.mv-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.services-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-list-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--primary);
    transition: var(--transition);
}

.service-list-item:hover {
    transform: translateX(10px);
    background: var(--white);
    box-shadow: var(--shadow);
}

.service-list-item h3 {
    margin-bottom: 10px;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Categories Grid */
.categories {
    padding: 100px 0;
    background-color: #fff;
}

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

.category-card {
    position: relative;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--white);
}

.category-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* Featured Products */
.featured {
    padding: 100px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-img {
    height: 200px;
    background: #eee;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card h3 {
    margin-bottom: 10px;
}

.product-card .btn {
    width: 100%;
    margin-top: 15px;
}

/* Why Choose Us */
.why-us {
    padding: 100px 0;
    background-color: var(--secondary);
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
}

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

/* Testimonials */
.testimonials {
    padding: 100px 0;
}

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

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.quote {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    font-size: 1.1rem;
}

/* Contact CTA */
.contact-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    text-align: center;
}

.contact-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-cta .btn-white {
    background: var(--white);
    color: var(--primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Listing Styles */
.products-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-wrapper {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-wrapper input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border-radius: 50px;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    transition: var(--transition);
}

.search-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.product-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(243, 156, 18, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #ddd;
    transition: var(--transition);
}

.page-link.active, .page-link:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
/* Partner / Brand Slider */
.partner-slider {
    padding: 50px 0 40px;
    background: #fff;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.slider-label {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* fade edges */
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.slider-track {
    display: flex;
    gap: 50px;
    width: max-content;
    align-items: center;
    animation: scrollBrands 35s linear infinite;
}

.slider-wrapper:hover .slider-track {
    animation-play-state: paused;
}

.slide {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 140px;
    height: 70px;
    background: #fff;
    border-radius: 12px;
    padding: 10px 16px;
    transition: transform 0.3s ease;
}

.slide:hover {
    transform: scale(1.1);
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

@keyframes scrollBrands {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.solar-brands-section .section-header {
    margin-bottom: 40px;
}

.solar-brands-section .section-header h2 {
    font-size: 2rem;
    color: var(--secondary);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    padding: 0 20px;
}

.brand-card {
    background: var(--white);
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(243, 156, 18, 0.2);
    border-color: var(--primary);
}

.brand-logo-wrap {
    width: 100px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.brand-card:hover .brand-logo-wrap img {
    transform: scale(1.08);
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary);
    letter-spacing: 0.5px;
}

.brand-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(243, 156, 18, 0.12);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-img {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.team-info p {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
}

/* About Collage */
.about-collage {
    display: flex;
    gap: 15px;
    align-items: stretch;
}
.about-collage .img-main {
    width: 60%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: var(--shadow);
    min-height: 400px;
}
.about-collage .img-stack {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.about-collage .img-stack img {
    width: 100%;
    flex: 1;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 768px) {
    /* Header & Navigation */
    header, header.scrolled {
        padding: 0;
    }
    .header-logo, header.scrolled .header-logo {
        height: 80px;
    }
    .menu-toggle {
        display: block;
        margin-right: 10px;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        gap: 15px;
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        color: var(--text-main);
    }
    nav .btn-whatsapp {
        display: none;
    }

    /* Typography */
    .hero h1 { font-size: 2.2rem; }
    .page-header h1 { font-size: 2rem; }
    .section-header h2 { font-size: 1.8rem; }
    .contact-cta h2 { font-size: 1.8rem; }
    .hero p, .page-header p { font-size: 1rem; }

    /* Layout & Spacing */
    .section-padding { padding: 50px 0; }
    .contact-cta { padding: 50px 0; }
    .page-header { height: 30vh; margin-top: 65px; }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    .hero-btns .btn { width: 100%; text-align: center; }

    /* Grids to Single Column */
    .about-grid, .mv-grid, .services-list-grid, .categories-grid, .product-grid, .features-grid, .testimonial-grid, .brands-grid, .team-grid, .reviews-grid, .footer-content, .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* About Section */
    .about-image { position: relative !important; top: 0 !important; }
    .about-collage { flex-direction: column; }
    .about-collage .img-main { width: 100%; min-height: 250px; }
    .about-collage .img-stack { width: 100%; flex-direction: row; }
    .about-collage .img-stack img { height: 150px; }

    /* Reviews Section */
    .google-reviews-header > div {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px !important;
    }
    .google-reviews-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .google-rating-overall {
        flex-direction: column;
        gap: 5px;
    }
    #writeReviewBtn { width: 100%; margin-top: 15px; }

    /* Products Controls */
    .products-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .filters {
        justify-content: center;
    }
    .search-wrapper {
        max-width: 100%;
    }

    /* Projects / Modal */
    .projects-gallery {
        padding: 40px 0;
    }
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }

    /* Footer */
    .footer-col {
        text-align: center;
    }
    .contact-info li {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }
    .social-links {
        justify-content: center;
    }
}
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-col p {
    color: #ccc;
    line-height: 1.6;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #ccc;
}

.contact-info i {
    color: var(--primary);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

/* Footer Styles */
.footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-col p {
    color: #ccc;
    line-height: 1.6;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #ccc;
}

.contact-info i {
    color: var(--primary);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

/* Reviews Page Styles */
.reviews-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.google-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.google-rating-overall {
    display: flex;
    align-items: center;
    gap: 20px;
}

.google-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 600;
}

.google-logo i {
    color: #4285F4;
    font-size: 2rem;
}

.overall-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
}

.overall-stars {
    color: #fbbc05;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
}

.overall-stars span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
}

.reviewer-avatar.bg-1 { background-color: #4285F4; }
.reviewer-avatar.bg-2 { background-color: #EA4335; }
.reviewer-avatar.bg-3 { background-color: #FBBC05; }
.reviewer-avatar.bg-4 { background-color: #34A853; }
.reviewer-avatar.bg-5 { background-color: #8E24AA; }
.reviewer-avatar.bg-6 { background-color: #F4511E; }

.reviewer-details h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.reviewer-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-stars {
    color: #fbbc05;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.review-text {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Projects Gallery & Modal */
.projects-gallery {
    padding: 80px 0;
    background-color: var(--bg-light);
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    background: #000;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.8;
}

.gallery-item:hover img, .gallery-item:hover video {
    transform: scale(1.1);
    opacity: 1;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    transition: var(--transition);
}

.gallery-item:hover .play-icon {
    color: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--white);
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Modal */
.media-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: var(--primary);
}

/* Chatbot Styles */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4);
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    background-color: var(--primary-dark);
}

.solar-chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    max-height: 500px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.solar-chatbot.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-chat {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-chat:hover {
    transform: rotate(90deg);
}

.chat-body {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 350px;
    background: #f4f7f6;
}

.chat-message {
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 85%;
    animation: fadeIn 0.3s ease-out;
}

.bot-message {
    background: var(--white);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.user-message {
    background: var(--primary);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    box-shadow: 0 2px 10px rgba(243, 156, 18, 0.2);
}

.chat-footer {
    padding: 15px;
    background: var(--white);
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
}

.chat-footer input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 50px;
    outline: none;
    font-family: var(--font-body);
    transition: var(--transition);
}

.chat-footer input:focus {
    border-color: var(--primary);
}

.chat-footer button {
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-footer button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.chat-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #25d366;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.chat-btn:hover {
    background: #128c7e;
    color: #fff;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
