/* Custom CSS for Go Green Energy - Premium Aesthetic & Dark Mode Support */

/* Modern Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #16a34a, #064e3b);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #15803d, #022c22);
}

/* Smooth HTML scroll behavior */
html {
    scroll-padding-top: 90px;
}

section[id] {
    scroll-margin-top: 90px;
}

/* Base Light Theme - Strict Mobile & OS Dark Mode Override */
:root, html, body {
    color-scheme: only light !important;
    --bs-body-bg: #f9fafb;
    --bs-body-color: #1f2937;
    --bs-border-color: #e5e7eb;
}

body {
    overflow-x: hidden;
    background-color: #f9fafb !important;
    color: #1f2937 !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light Theme Defaults */
.bg-gray-50 {
    background-color: #f9fafb;
}
.bg-white {
    background-color: #ffffff;
}
.bg-gray-100 {
    background-color: #f3f4f6;
}

.text-gray-900 {
    color: #111827;
}
.text-gray-800 {
    color: #1f2937;
}
.text-gray-700 {
    color: #374151;
}
.text-gray-600 {
    color: #4b5563;
}
.text-gray-500 {
    color: #6b7280;
}
.text-gray-400 {
    color: #9ca3af;
}
.text-brand {
    color: #16a34a;
}
.text-brand-dark {
    color: #064e3b;
}
.text-brand-light {
    color: #4ade80;
}
.text-brand-accent {
    color: #eab308;
}

/* Navbar & Mobile Menu Light Theme */
#navbar {
    background-color: #ffffff;
    transition: background-color 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}
#mobile-menu {
    background-color: rgba(255, 255, 255, 0.98);
    border-color: #e5e7eb;
}

/* Form Controls */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    background-color: #f9fafb;
    color: #111827;
    border-color: #e5e7eb;
}
input:focus,
textarea:focus,
select:focus {
    background-color: #ffffff;
    color: #111827;
    border-color: #16a34a;
}
input::placeholder,
textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}
select option {
    background-color: #ffffff;
    color: #111827;
}
#form-success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #16a34a;
}

/* Borders */
.border-gray-100 {
    border-color: #f3f4f6;
}
.border-gray-200 {
    border-color: #e5e7eb;
}

/* Intentionally Dark Sections & Footer */
footer, .bg-gray-900 {
    background-color: #111827 !important;
    color: #d1d5db !important;
}
.bg-brand-dark {
    background-color: #064e3b;
}

/* Gradient Text Utilities */
.text-gradient-primary {
    background-image: linear-gradient(135deg, #16a34a 0%, #064e3b 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.text-gradient-accent {
    background-image: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Navbar Links */
.nav-link {
    position: relative;
    padding-bottom: 2px;
    color: #374151;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, #16a34a, #4ade80);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: #16a34a;
}
.mobile-nav-link {
    color: #374151;
}
.mobile-nav-link:hover {
    color: #16a34a;
}
.mobile-nav-link.active {
    color: #16a34a;
    background-color: rgba(22, 163, 74, 0.08);
    border-left: 4px solid #16a34a;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}
.glass-panel-dark {
    background: rgba(6, 78, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Shadow utilities and Hover Lifts for cards */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hover-lift:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Custom Micro-animations */
@keyframes softPulse {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
.btn-pulse:hover {
    animation: softPulse 1.5s infinite;
}

/* Service Card Hover Animations */
.group:hover .icon-bounce {
    animation: bounce 1s ease infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Utility to ensure text readability over images */
.text-shadow-sm {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}
.text-shadow-md {
    text-shadow: 2px 4px 6px rgba(0,0,0,0.8);
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, background-color 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
#mobile-menu.show {
    max-height: 500px;
    opacity: 1;
}

/* Contact form glowing inputs */
.form-input-glow {
    transition: all 0.3s ease;
}
.form-input-glow:focus {
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #16a34a, #4ade80, #eab308);
    z-index: 10000;
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
}

/* Floating Action Buttons (Back to Top & Quick Contact) */
.floating-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.back-to-top-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #16a34a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
}
.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.back-to-top-btn:hover {
    background-color: #064e3b;
    color: #ffffff;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 30px rgba(6, 78, 59, 0.5);
}

/* Floating WhatsApp Badge */
.floating-whatsapp-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: softPulse 2s infinite;
}
.floating-whatsapp-btn:hover {
    transform: scale(1.12) rotate(8deg);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* Floating elements continuous animation */
@keyframes floatY {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.animate-float {
    animation: floatY 4s ease-in-out infinite;
}

/* Shimmer Effect on Cards */
.card-shimmer {
    position: relative;
    overflow: hidden;
}
.card-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}
.card-shimmer:hover::after {
    left: 100%;
}

/* Enforced Light Theme Overrides for Mobile & OS Dark Mode */
@media (prefers-color-scheme: dark) {
    :root, html, body {
        color-scheme: only light !important;
        background-color: #f9fafb !important;
        color: #1f2937 !important;
    }
    #navbar, nav, header {
        background-color: #ffffff !important;
        color: #1f2937 !important;
    }
    #mobile-menu {
        background-color: #ffffff !important;
        color: #1f2937 !important;
    }
    .bg-white {
        background-color: #ffffff !important;
    }
    .bg-gray-50 {
        background-color: #f9fafb !important;
    }
    .bg-gray-100 {
        background-color: #f3f4f6 !important;
    }
    .text-gray-900 {
        color: #111827 !important;
    }
    .text-gray-800 {
        color: #1f2937 !important;
    }
    .text-gray-700 {
        color: #374151 !important;
    }
    .text-gray-600 {
        color: #4b5563 !important;
    }
    .nav-link, .mobile-nav-link {
        color: #374151 !important;
    }
    .nav-link:hover, .mobile-nav-link:hover, .nav-link.active, .mobile-nav-link.active {
        color: #16a34a !important;
    }
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        background-color: #f9fafb !important;
        color: #111827 !important;
        border-color: #e5e7eb !important;
    }
}

