/* 
    SOLARIS - Premium Futuristic Solar Energy Template
    Visual Identity: Eco-Futurism & Clean Tech
*/

:root {
    --primary-color: #FFD700; /* Solar Yellow */
    --secondary-color: #50C878; /* Emerald Green */
    --accent-color: #39FF14; /* Neon Green */
    --deep-blue: #0047AB;
    --matte-black: #1A1A1A;
    --dark-bg: #0F0F0F;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-light: #F5F5F5;
    --text-muted: #A0A0A0;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

.text-muted {
    color: var(--text-muted) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

/* Navbar */
.navbar {
    padding: 20px 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.sticky {
    padding: 10px 0;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-toggler {
    border: 1px solid var(--glass-border) !important;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.navbar-toggler:focus {
    box-shadow: none;
    border-color: var(--primary-color) !important;
}

.navbar-toggler i {
    font-size: 24px;
    color: var(--text-light);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 15px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

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

/* Dropdown Customization */
.dropdown-menu {
    border: none;
    margin-top: 15px !important;
    padding: 10px;
}

.dropdown-item {
    color: var(--text-light) !important;
    border-radius: 8px;
    margin-bottom: 5px;
    padding: 10px 20px;
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background-color: var(--primary-color) !important;
    color: var(--matte-black) !important;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

/* Buttons */
.btn-premium {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-solar {
    background: var(--primary-color);
    color: var(--matte-black);
    border: none;
}

.btn-solar:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.btn-outline-glass {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-light);
}

.btn-outline-glass:hover {
    background: var(--glass-bg);
    border-color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

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

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Bento Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
}

.bento-item {
    padding: 30px;
}

/* Custom Utilities */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.bg-darker {
    background-color: #080808;
}

/* Animations */
.energy-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(57, 255, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); }
}

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

.loader-content {
    text-align: center;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Energy Nodes */
.energy-node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-color);
    z-index: 10;
}

.node-1 { top: 20%; right: 10%; }
.node-2 { bottom: 15%; left: 5%; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 25px;
    height: 45px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 30px; }
}

/* Footer */
footer {
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive Navbar */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        border: 1px solid var(--glass-border);
    }
    
    .nav-link {
        margin: 10px 0;
    }
    
    .dropdown-menu {
        background: transparent !important;
        border: none !important;
        padding-left: 15px;
    }
}


/* Lenis required CSS */
html.lenis, html.lenis body { height: auto; width: 100vw; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }
