/* Custom CSS for Greenencore Energy - Premium Aesthetic Overhaul */

/* 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 is handled by Tailwind class 'scroll-smooth' */
html {
    scroll-padding-top: 80px; /* Account for sticky header */
}

/* General overrides */
body {
    overflow-x: hidden;
}

/* 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;
}
.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.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.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    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;
    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);
}
