:root {
    --primary-navy: #113146;
    --energy-green: #5CB138;
    --accent-blue: #053C8F;
    --light-bg: #F7F9FA;
    --white: #FFFFFF;
    --dark-text: #1F2937;
    --gold-accent: #D3AC67;
}

html, body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    background-color: var(--light-bg);
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-navy);
}

.section-padding {
    padding: 30px 0;
}

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

.section-title h2 {
    margin-bottom: 10px;
}

/* Custom Buttons */
.btn-primary {
    background-color: var(--energy-green);
    border-color: var(--energy-green);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #4A902D;
    border-color: #4A902D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 177, 56, 0.3);
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--energy-green);
    color: var(--energy-green);
    padding: 8px 22px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--energy-green);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: #042D6C;
    border-color: #042D6C;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 3px solid var(--energy-green);
    border-top: 3px solid var(--energy-green);
}

.navbar.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.navbar-nav .nav-link {
    color: var(--primary-navy);
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--energy-green);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--energy-green);
}

.navbar-brand img {
    max-height: 50px;
}

/* Hero Section */
.hero-slider {
    border-bottom: 3px solid var(--energy-green);
    width: 100%;
    overflow: hidden;
    background-color: #0b1a28;
}

.hero-slider .carousel-inner {
    width: 100%;
}

.hero-slider .carousel-item {
    position: relative;
    width: 100%;
    height: 520px; /* Uniform height for all slides */
    overflow: hidden;
    background-color: #0b1a28;
}

.hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 1200px) {
    .hero-slider .carousel-item {
        height: 440px;
    }
}

@media (max-width: 991px) {
    .hero-slider .carousel-item {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 260px;
    }
}

@media (max-width: 576px) {
    .hero-slider .carousel-item {
        height: 200px;
    }
}

.hero-slider .carousel-indicators {
    margin-bottom: 1.5rem;
}

.hero-slider .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: var(--energy-green);
    border: 2px solid #ffffff;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.hero-slider .carousel-indicators .active {
    width: 32px;
    border-radius: 6px;
    opacity: 1;
    background-color: var(--energy-green);
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 48px;
    height: 48px;
    background-color: rgba(10, 37, 64, 0.55);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    opacity: 0.75;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
    background-color: var(--energy-green);
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
}

/* Cards */
.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--energy-green);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--energy-green);
    margin-bottom: 20px;
}

.service-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
    border-color: var(--energy-green) !important;
}

.service-img-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    display: block;
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 49, 70, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-overlay .btn {
    transform: translateY(20px);
    transition: all 0.4s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.service-card:hover .service-overlay .btn {
    transform: translateY(0);
}

.service-content {
    padding: 25px;
    background-color: var(--white);
    position: relative;
    z-index: 2;
}

/* Solar Calculator */
.calculator-section {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 80px 40px;
    border-radius: 20px;
    margin: 50px auto;
}

.calculator-section h2, .calculator-section h4 {
    color: var(--white);
}

.calc-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calc-result-box {
    background: var(--white);
    color: var(--primary-navy);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.calc-result-box h3 {
    color: var(--energy-green);
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0 0 0;
}

/* Timeline */
.timeline-step {
    text-align: center;
    position: relative;
    padding: 20px;
}

.timeline-step .step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-navy);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 0 0 5px rgba(17, 49, 70, 0.2);
    transition: all 0.3s ease;
}

.timeline-step:hover .step-number {
    background: var(--energy-green);
    box-shadow: 0 0 0 5px rgba(92, 177, 56, 0.2);
}

/* Footer */
.footer {
    background-color: var(--primary-navy);
    color: var(--light-bg);
    padding: 60px 0 20px 0;
}

.footer h5 {
    color: var(--white);
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--energy-green);
}

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

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

.footer-links a {
    color: #A0B2C0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--energy-green);
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--energy-green);
    margin-top: 5px;
    margin-right: 15px;
}

.social-icons a {
    display: inline-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%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--energy-green);
    transform: translateY(-3px);
}

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

/* Floating Actions */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

.floating-call {
    position: fixed;
    bottom: 100px; /* Above whatsapp */
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #007bff; /* Bright blue */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.floating-call:hover {
    transform: scale(1.1);
    color: white;
}

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

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Testimonial */
.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin: 15px;
    text-align: center;
}

.testimonial-card .rating {
    color: var(--gold-accent);
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-navy);
    margin-top: 15px;
}

/* Admin */
.admin-sidebar {
    min-height: 100vh;
    background-color: var(--primary-navy);
    color: white;
}
.admin-sidebar a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background-color: var(--energy-green);
    color: white;
}

/* Animations & Statistics Styles */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(142, 198, 63, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(142, 198, 63, 0); }
    100% { box-shadow: 0 0 0 0 rgba(142, 198, 63, 0); }
}

.pulse-animation {
    animation: pulseGlow 2s infinite;
}

.stats-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    border-bottom: 4px solid var(--energy-green);
    transition: transform 0.3s ease;
}

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

.stats-icon {
    font-size: 3rem;
    color: var(--energy-green);
    margin-bottom: 15px;
}

.counter-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1;
}

.counter-label {
    font-size: 1.1rem;
    color: var(--secondary-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(92, 177, 56, 0.2);
    border-radius: 50%;
    border-top-color: var(--energy-green);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Trusted By Marquee Slider */
.trusted-by-section {
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

.marquee-container::before,
.marquee-container::after {
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    content: "";
    z-index: 2;
    pointer-events: none;
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

.marquee-track {
    display: inline-block;
    animation: marquee-scroll 25s linear infinite;
}

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

.marquee-item {
    display: inline-flex;
    flex-direction: column;
    width: 220px;
    margin: 0 15px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
    vertical-align: top;
}

.marquee-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.marquee-img-wrap {
    height: 100px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.marquee-brand {
    background-color: var(--primary-navy);
    color: var(--white);
    text-align: center;
    padding: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    border-top: 3px solid var(--energy-green);
}

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

/* Gallery Hover Styles */
.gallery-card-box {
    position: relative;
    overflow: hidden;
}

.gallery-card-box img {
    transition: transform 0.4s ease;
}

.gallery-card-box:hover img {
    transform: scale(1.08);
}

.gallery-hover-overlay {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.gallery-card-box:hover .gallery-hover-overlay {
    opacity: 1;
    transform: translateY(0);
}
