/* CSS Variables */
:root {
    --primary: #cc4133;      /* Softer red from the logo */
    --secondary: #f39421;    /* Orange/sun gradient color */
    --dark: #333333;         /* Dark gray/almost black for text */
    --light: #f5f5f5;
    --success: #00a651;      /* Green from "SOLAR & LED HUB" */
    --success-dark: #007a3d; /* Darker green for footer */
    --white: #ffffff;
    --gray: #666666;
    --cream: #fff4cf;        /* Cream color for text */
    --text-black: #222222;   /* Darker black for headings */
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles - FIXED for correct layout */
header {
    background-color: var(--white);
    color: var(--dark);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--success);
    position: relative;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--primary);
}

.logo-text p {
    font-size: 12px;
    color: var(--success);
}

/* Desktop Navigation - ALWAYS hidden on mobile */
.desktop-nav {
    display: flex;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav ul li {
    margin-left: 20px;
}

.desktop-nav ul li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 5px;
    position: relative;
    transition: all 0.3s ease;
}

.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.desktop-nav ul li a:hover {
    color: var(--primary);
}

.desktop-nav ul li a:hover::after {
    width: 100%;
}

/* Mobile Navigation - ALWAYS hidden on desktop, ALWAYS hidden when not active */
.mobile-nav {
    display: none;
    background-color: var(--primary);
    border-radius: 4px;
    width: 100%;
    margin-top: 15px;
}

#mobile-nav {
    display: none;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav ul li:last-child {
    border-bottom: none;
}

.mobile-nav ul li a {
    display: block;
    padding: 15px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}


/* Dropdown Menu Styles */

/* Desktop Dropdown */
.desktop-nav .dropdown {
    position: relative;
}

.desktop-nav .dropdown-toggle {
    padding-right: 20px; /* Space for the chevron */
}

.desktop-nav .dropdown-toggle i {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.desktop-nav .dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.desktop-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.desktop-nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-nav .dropdown-menu li {
    margin: 0;
    display: block;
}

.desktop-nav .dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.desktop-nav .dropdown-menu a:hover {
    background-color: rgba(204, 65, 51, 0.1);
    color: var(--primary);
}

.desktop-nav .dropdown-menu a::after {
    display: none; /* Remove the underline effect from dropdown items */
}

/* Mobile Dropdown */
.mobile-nav .mobile-dropdown {
    position: relative;
}

.mobile-nav .mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav .mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
}

.mobile-nav .mobile-dropdown.active .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}

.mobile-nav .mobile-dropdown-menu {
    display: none;
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

.mobile-nav .mobile-dropdown.active .mobile-dropdown-menu {
    display: block;
}

.mobile-nav .mobile-dropdown-menu li {
    border-bottom: none;
}

.mobile-nav .mobile-dropdown-menu a {
    padding: 12px 15px;
}


/* Hamburger Menu - MUST BE HIDDEN on desktop */
.hamburger-menu {
    display: none;
    align-items: center;
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 16px;
    margin-left: 10px;
}

.hamburger-icon span {
    height: 2px;
    width: 100%;
    background-color: var(--white);
    border-radius: 2px;
}

/* IMPORTANT: Make sure desktop and mobile never show together */
@media (max-width: 992px) {
    .desktop-nav {
        display: none !important; /* Force hide on mobile */
    }
    
    .hamburger-menu {
        display: flex !important; /* Force show hamburger on mobile */
    }
}

@media (min-width: 993px) {
    .mobile-nav, 
    .mobile-nav.active {
        display: none !important; /* Force hide on desktop, even if active class is present */
    }
    
    .hamburger-menu {
        display: none !important; /* Force hide hamburger on desktop */
    }
    
    .desktop-nav {
        display: flex !important; /* Force show desktop nav on desktop */
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 750px;
    /*background: url('/api/placeholder/1200/500') center/cover no-repeat;*/
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--success);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--white);
}

.section-dark {
    background-color: #f0f8ff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--text-black);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--success);
}

/* About Section */
.about-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.about-image {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.about-content h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 24px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--dark);
}

.company-details {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.company-details p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.company-details strong {
    min-width: 150px;
    display: inline-block;
    color: var(--dark);
}


/*Counter*/
/* Counter Section Styles */
.counter-section {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('./images/solar-banner.jpg') center/cover no-repeat fixed;
    padding: 80px 0;
    color: var(--white);
    text-align: center;
}

.counters-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.counter-item {
    padding: 30px;
    margin: 20px;
    min-width: 200px;
    transition: all 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-10px);
}

.counter-icon {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.counter-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
    position: relative;
    display: inline-block;
}

.counter-text {
    font-size: 18px;
    color: var(--cream);
    font-weight: 500;
}

/* Media queries for counter section */
@media (max-width: 768px) {
    .counter-item {
        min-width: 160px;
        padding: 20px;
    }
    
    .counter-icon {
        font-size: 36px;
    }
    
    .counter-number {
        font-size: 36px;
    }
    
    .counter-text {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .counters-container {
        flex-direction: column;
        align-items: center;
    }
    
    .counter-item {
        margin: 10px;
        min-width: 240px;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    color: var(--text-black);
    margin-bottom: 15px;
    font-size: 22px;
}

.service-content p {
    color: var(--dark);
    margin-bottom: 20px;
}

.learn-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--success);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.learn-more:hover {
    background-color: var(--primary);
}

/* Features Section */
.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.feature-card {
    width: 250px;
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: rgba(243, 148, 33, 0.2);
    border-radius: 50%;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 30px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--text-black);
    font-size: 18px;
}

.feature-card p {
    color: var(--dark);
    font-size: 14px;
}

/* Partners Section */
.partners {
    background-color: var(--light);
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.partners h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-black);
    font-size: 28px;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.partner-logo {
    height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Testimonials Section */
.testimonials {
    background-color: #f8f8f8;
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.testimonial:last-child {
    margin-bottom: 0;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 16px;
    line-height: 1.7;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

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

.client-details h4 {
    color: var(--text-black);
    margin-bottom: 5px;
}

.client-details p {
    color: var(--primary);
    margin: 0;
    font-style: normal;
    font-size: 14px;
}

/* Contact Section */
.contact {
    background-color: var(--light);
    padding: 80px 0;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.contact-info-container {
    flex: 1;
    min-width: 300px;
}

.contact-info-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.contact-info-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid var(--success);
    padding-bottom: 10px;
}

.contact-detail {
    display: flex;
    margin-bottom: 15px;
}

.contact-icon {
    color: var(--primary);
    font-size: 20px;
    margin-right: 15px;
    min-width: 24px;
}

.contact-text h4 {
    color: var(--dark);
    margin-bottom: 5px;
}

.contact-text p, .contact-text a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.25);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--success);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary), #992e24);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-section h3 {
    color: var(--cream);
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--success);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--cream);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 10px;
}

.footer-links a:hover {
    color: var(--secondary);
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--success);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
}

.footer-bottom p {
    font-size: 14px;
    color: #e0e0e0;
}

/* Scroll to top button */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--success);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: var(--success-dark);
}

/* Additional Responsive styles */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .about-container, .contact-container {
        flex-direction: column;
    }
    
    .about-image, .about-content {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .logo img {
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .logo-text p {
        font-size: 10px;
    }
}