/* Sun Glowing Loader */
#sun-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

/* Prevent scrolling and hide content when loader is active */
body.loader-active {
    overflow: hidden;
    height: 100vh;
}

body.loader-active > *:not(#sun-loader) {
    visibility: hidden;
    opacity: 0;
}

/* Smooth content reveal after loader */
body:not(.loader-active) > *:not(#sun-loader) {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

#sun-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-sun {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #ffd700 0%, #ff8c42 70%, #d2691e 100%);
    border-radius: 50%;
    position: relative;
    animation: loaderSunGlow 2s ease-in-out infinite alternate;
}

.loader-sun::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: loaderSunPulse 1.5s ease-in-out infinite;
}

.loader-text {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    color: #ffd700;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    animation: loaderTextFade 2s ease-in-out infinite alternate;
}

@keyframes loaderSunGlow {
    0% { 
        box-shadow: 0 0 30px #ffd700, 0 0 60px #ff8c42, 0 0 90px #d2691e;
        filter: brightness(1);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 50px #ffd700, 0 0 100px #ff8c42, 0 0 150px #d2691e, 0 0 200px rgba(255, 215, 0, 0.4);
        filter: brightness(1.4);
        transform: scale(1.05);
    }
}

@keyframes loaderSunPulse {
    0% { 
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    100% { 
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes loaderTextFade {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Touch-friendly tap targets */
a, button, input, select, textarea, .clickable {
    min-height: 44px;
    min-width: 44px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    will-change: background, box-shadow;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px #ff8c42, 0 0 20px #ff8c42;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    background: linear-gradient(45deg, #8b4513, #a0522d);
    overflow: hidden;
    will-change: text-shadow, transform;
}

.nav-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        #ff8c42, #ffa500, #ff6347, #ffd700, #ff4500, #ff8c42);
    background-size: 400% 400%;
    animation: movingGradient 3s ease-in-out infinite;
    border-radius: 8px;
    z-index: -1;
    padding: 2px;
    margin: -2px;
}

.nav-logo::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(45deg, #8b4513, #a0522d);
    border-radius: 6px;
    z-index: -1;
}

.nav-logo:hover {
    text-shadow: 0 0 20px #ff8c42, 0 0 40px #ff8c42, 0 0 60px #ff8c42;
    transform: scale(1.05);
}

.nav-logo:hover::before {
    animation: movingGradient 1.5s ease-in-out infinite;
}

@keyframes movingGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    will-change: color, background-color, box-shadow;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background-color: #ff8c42;
    box-shadow: 0 0 10px rgba(255, 140, 66, 0.5);
}



.nav-menu .fa-phone {
    font-size: 1.2rem;
    vertical-align: middle;
}


.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    will-change: transform, background;
}

/* Hero Section */
.hero {
    padding-top: 80px; /* Adjust for fixed navbar */
    min-height: 100vh;
    background: linear-gradient(135deg, #ff8c42 0%, #d2691e 50%, #b8860b 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(255, 140, 66, 0.8), 0 0 40px rgba(255, 140, 66, 0.5);
    animation: titleGlow 3s ease-in-out infinite alternate;
    position: relative;
    padding: 20px 40px;
    border-radius: 15px;
    background: linear-gradient(45deg, #8b4513, #a0522d);
    overflow: hidden;
}

.hero-text h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        #ff8c42, #ffa500, #ff6347, #ffd700, #ff4500, #ff8c42);
    background-size: 400% 400%;
    animation: movingGradient 4s ease-in-out infinite;
    border-radius: 15px;
    z-index: -1;
    padding: 3px;
    margin: -3px;
}

.hero-text h1::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: linear-gradient(45deg, #8b4513, #a0522d);
    border-radius: 12px;
    z-index: -1;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
    animation: subtitleGlow 4s ease-in-out infinite alternate;
}

@keyframes subtitleGlow {
    0% { 
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
        transform: scale(1);
    }
    100% { 
        text-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.5);
        transform: scale(1.02);
    }
}

@keyframes titleGlow {
    0% { 
        text-shadow: 0 0 20px rgba(255, 140, 66, 0.8), 0 0 40px rgba(255, 140, 66, 0.5);
        transform: scale(1);
    }
    100% { 
        text-shadow: 0 0 30px rgba(255, 140, 66, 1), 0 0 60px rgba(255, 140, 66, 0.8), 0 0 90px rgba(255, 140, 66, 0.5);
        transform: scale(1.02);
    }
}

.hero-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    will-change: transform, background-color, color, box-shadow, text-shadow;
}

.btn-primary {
    background: linear-gradient(45deg, #ff8c42, #ffa500);
    color: white;
    border: 2px solid #ff8c42;
    box-shadow: 0 0 10px rgba(255, 140, 66, 0.6), 0 0 20px rgba(255, 140, 66, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #ffa500, #ff6347);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.8), 0 0 40px rgba(255, 165, 0, 0.6), 0 0 60px rgba(255, 165, 0, 0.4);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #ff8c42;
    border: 2px solid #ff8c42;
}

.btn-outline:hover {
    background: linear-gradient(45deg, #ff8c42, #ffa500);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 140, 66, 0.5);
}

/* Solar Animation with Neon Effects */
.solar-animation {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.sun {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #ffd700, #ff8c42, #d2691e);
    border-radius: 50%;
    position: absolute;
    top: 50px;
    animation: sunGlow 3s ease-in-out infinite alternate;
    z-index: 10;
}

@keyframes sunGlow {
    0% { 
        box-shadow: 0 0 20px #ffd700, 0 0 40px #ff8c42, 0 0 60px #d2691e;
        filter: brightness(1);
    }
    100% { 
        box-shadow: 0 0 40px #ffd700, 0 0 80px #ff8c42, 0 0 120px #d2691e, 0 0 160px rgba(255, 215, 0, 0.4);
        filter: brightness(1.3);
    }
}

/* Multiple Solar Panels Container */
.solar-panels-container {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 300px;
}

/* Individual Solar Panel */
.solar-panel {
    position: relative;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 140, 66, 0.5);
    border: 2px solid #ff8c42;
    transition: all 0.3s ease;
    animation: panelFloat 3s ease-in-out infinite;
}

.solar-panel:nth-child(1) { animation-delay: 0s; }
.solar-panel:nth-child(2) { animation-delay: 0.5s; }
.solar-panel:nth-child(3) { animation-delay: 1s; }
.solar-panel:nth-child(4) { animation-delay: 1.5s; }
.solar-panel:nth-child(5) { animation-delay: 2s; }
.solar-panel:nth-child(6) { animation-delay: 2.5s; }

.solar-panel:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 140, 66, 0.7), 0 0 35px rgba(255, 140, 66, 0.4);
}

.panel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    filter: brightness(1.1) contrast(1.2);
}

.panel-connection {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #ff8c42;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff8c42, 0 0 20px #ff8c42;
    animation: connectionPulse 2s ease-in-out infinite;
}

.solar-panel-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 140, 66, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(255, 165, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(255, 99, 71, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 215, 0, 0.2) 0%, transparent 50%);
    animation: panelShimmer 3s ease-in-out infinite;
}

.solar-panel-front::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: 
        linear-gradient(45deg, 
            rgba(255, 140, 66, 0.1) 0%, 
            rgba(255, 165, 0, 0.1) 25%, 
            rgba(255, 99, 71, 0.1) 50%, 
            rgba(255, 215, 0, 0.1) 75%, 
            rgba(255, 140, 66, 0.1) 100%);
    border-radius: 8px;
    animation: panelColorShift 4s ease-in-out infinite;
}

/* Solar Panel Connection Points */
.solar-panel-front .connection-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff8c42;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff8c42, 0 0 20px #ff8c42;
    animation: connectionPulse 2s ease-in-out infinite;
}

/* Solar Panel Frame */
.solar-panel-front .panel-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid #ff8c42;
    border-radius: 12px;
    box-shadow: 
        inset 0 0 10px rgba(255, 140, 66, 0.3),
        0 0 15px rgba(255, 140, 66, 0.2);
    pointer-events: none;
}

/* Solar Panel Mounting Brackets */
.solar-panel-front .mounting-bracket {
    position: absolute;
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, #ff8c42, #d2691e);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 140, 66, 0.6);
}

/* Solar Panel Cells Pattern */
.solar-panel-front .solar-cell {
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, 
        rgba(255, 140, 66, 0.1), 
        rgba(255, 165, 0, 0.1), 
        rgba(255, 99, 71, 0.1));
    border-radius: 2px;
    box-shadow: 
        inset 0 0 2px rgba(255, 140, 66, 0.3),
        0 0 4px rgba(255, 140, 66, 0.2);
    animation: cellGlow 3s ease-in-out infinite;
}

/* Solar Panel Wiring */
.solar-panel-front .wiring {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ff8c42;
    border-radius: 50%;
    box-shadow: 0 0 4px #ff8c42;
    animation: wiringPulse 1.5s ease-in-out infinite;
}

/* Solar Panel Data Display */
.solar-panel-front .data-display {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    border: 1px solid #ff8c42;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #ff8c42;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 8px rgba(255, 140, 66, 0.4);
    animation: dataFlicker 2s ease-in-out infinite;
}

@keyframes dataFlicker {
    0%, 100% { 
        opacity: 0.8;
        box-shadow: 0 0 8px rgba(255, 140, 66, 0.4);
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 12px rgba(255, 140, 66, 0.6), 0 0 16px rgba(255, 140, 66, 0.3);
    }
}

.solar-panel-front .wiring:nth-child(1) { top: 35px; left: 15px; animation-delay: 0s; }
.solar-panel-front .wiring:nth-child(2) { top: 35px; left: 35px; animation-delay: 0.3s; }
.solar-panel-front .wiring:nth-child(3) { top: 35px; left: 55px; animation-delay: 0.6s; }
.solar-panel-front .wiring:nth-child(4) { top: 35px; left: 75px; animation-delay: 0.9s; }
.solar-panel-front .wiring:nth-child(5) { top: 35px; left: 95px; animation-delay: 1.2s; }

.solar-panel-front .wiring:nth-child(6) { top: 55px; left: 15px; animation-delay: 0.1s; }
.solar-panel-front .wiring:nth-child(7) { top: 55px; left: 35px; animation-delay: 0.4s; }
.solar-panel-front .wiring:nth-child(8) { top: 55px; left: 55px; animation-delay: 0.7s; }
.solar-panel-front .wiring:nth-child(9) { top: 55px; left: 75px; animation-delay: 1s; }
.solar-panel-front .wiring:nth-child(10) { top: 55px; left: 95px; animation-delay: 1.3s; }

@keyframes wiringPulse {
    0%, 100% { 
        opacity: 0.5;
        box-shadow: 0 0 4px #ff8c42;
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 8px #ff8c42, 0 0 12px rgba(255, 140, 66, 0.5);
    }
}

.solar-panel-front .solar-cell:nth-child(1) { top: 20px; left: 20px; animation-delay: 0s; }
.solar-panel-front .solar-cell:nth-child(2) { top: 20px; left: 40px; animation-delay: 0.2s; }
.solar-panel-front .solar-cell:nth-child(3) { top: 20px; left: 60px; animation-delay: 0.4s; }
.solar-panel-front .solar-cell:nth-child(4) { top: 20px; left: 80px; animation-delay: 0.6s; }
.solar-panel-front .solar-cell:nth-child(5) { top: 20px; left: 100px; animation-delay: 0.8s; }

.solar-panel-front .solar-cell:nth-child(6) { top: 40px; left: 20px; animation-delay: 0.1s; }
.solar-panel-front .solar-cell:nth-child(7) { top: 40px; left: 40px; animation-delay: 0.3s; }
.solar-panel-front .solar-cell:nth-child(8) { top: 40px; left: 60px; animation-delay: 0.5s; }
.solar-panel-front .solar-cell:nth-child(9) { top: 40px; left: 80px; animation-delay: 0.7s; }
.solar-panel-front .solar-cell:nth-child(10) { top: 40px; left: 100px; animation-delay: 0.9s; }

.solar-panel-front .solar-cell:nth-child(11) { top: 60px; left: 20px; animation-delay: 0.2s; }
.solar-panel-front .solar-cell:nth-child(12) { top: 60px; left: 40px; animation-delay: 0.4s; }
.solar-panel-front .solar-cell:nth-child(13) { top: 60px; left: 60px; animation-delay: 0.6s; }
.solar-panel-front .solar-cell:nth-child(14) { top: 60px; left: 80px; animation-delay: 0.8s; }
.solar-panel-front .solar-cell:nth-child(15) { top: 60px; left: 100px; animation-delay: 1s; }

@keyframes cellGlow {
    0%, 100% { 
        opacity: 0.6;
        box-shadow: 
            inset 0 0 2px rgba(255, 140, 66, 0.3),
            0 0 4px rgba(255, 140, 66, 0.2);
    }
    50% { 
        opacity: 1;
        box-shadow: 
            inset 0 0 3px rgba(255, 140, 66, 0.5),
            0 0 6px rgba(255, 140, 66, 0.4),
            0 0 8px rgba(255, 140, 66, 0.2);
    }
}

.solar-panel-front .mounting-bracket:nth-child(1) {
    top: -15px;
    left: 20px;
    transform: rotate(15deg);
}

.solar-panel-front .mounting-bracket:nth-child(2) {
    top: -15px;
    right: 20px;
    transform: rotate(-15deg);
}

.solar-panel-front .mounting-bracket:nth-child(3) {
    bottom: -15px;
    left: 20px;
    transform: rotate(-15deg);
}

.solar-panel-front .mounting-bracket:nth-child(4) {
    bottom: -15px;
    right: 20px;
    transform: rotate(15deg);
}

.solar-panel-front .connection-point:nth-child(1) {
    top: 15px;
    left: 15px;
    animation-delay: 0s;
}

.solar-panel-front .connection-point:nth-child(2) {
    top: 15px;
    right: 15px;
    animation-delay: 0.5s;
}

.solar-panel-front .connection-point:nth-child(3) {
    bottom: 15px;
    left: 15px;
    animation-delay: 1s;
}

.solar-panel-front .connection-point:nth-child(4) {
    bottom: 15px;
    right: 15px;
    animation-delay: 1.5s;
}

@keyframes connectionPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.7;
        box-shadow: 0 0 10px #ff8c42, 0 0 20px #ff8c42;
    }
    50% { 
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 15px #ff8c42, 0 0 30px #ff8c42, 0 0 45px rgba(255, 140, 66, 0.5);
    }
}

@keyframes panelGlow {
    0% { 
        box-shadow: 
            0 0 20px #00ff88, 
            0 0 40px #00ff88, 
            0 0 60px #00ff88,
            inset 0 0 20px rgba(0, 255, 136, 0.2);
        transform: translateX(-50%) scale(1);
        border-color: #00ff88;
    }
    100% { 
        box-shadow: 
            0 0 30px #00ff88, 
            0 0 60px #00ff88, 
            0 0 90px #00ff88, 
            0 0 120px rgba(0, 255, 136, 0.3),
            inset 0 0 30px rgba(0, 255, 136, 0.4);
        transform: translateX(-50%) scale(1.05);
        border-color: #00ffff;
    }
}

@keyframes panelShimmer {
    0%, 100% { 
        opacity: 0.3;
        transform: translateX(-10px) translateY(-5px);
    }
    50% { 
        opacity: 0.7;
        transform: translateX(10px) translateY(5px);
    }
}

@keyframes panelColorShift {
    0% { 
        background: linear-gradient(45deg, 
            rgba(255, 140, 66, 0.1) 0%, 
            rgba(255, 165, 0, 0.1) 25%, 
            rgba(255, 99, 71, 0.1) 50%, 
            rgba(255, 215, 0, 0.1) 75%, 
            rgba(255, 140, 66, 0.1) 100%);
    }
    25% { 
        background: linear-gradient(45deg, 
            rgba(255, 99, 71, 0.1) 0%, 
            rgba(255, 140, 66, 0.1) 25%, 
            rgba(255, 165, 0, 0.1) 50%, 
            rgba(255, 215, 0, 0.1) 75%, 
            rgba(255, 99, 71, 0.1) 100%);
    }
    50% { 
        background: linear-gradient(45deg, 
            rgba(255, 165, 0, 0.1) 0%, 
            rgba(255, 99, 71, 0.1) 25%, 
            rgba(255, 140, 66, 0.1) 50%, 
            rgba(255, 215, 0, 0.1) 75%, 
            rgba(255, 165, 0, 0.1) 100%);
    }
    75% { 
        background: linear-gradient(45deg, 
            rgba(255, 215, 0, 0.1) 0%, 
            rgba(255, 165, 0, 0.1) 25%, 
            rgba(255, 99, 71, 0.1) 50%, 
            rgba(255, 140, 66, 0.1) 75%, 
            rgba(255, 215, 0, 0.1) 100%);
    }
    100% { 
        background: linear-gradient(45deg, 
            rgba(255, 140, 66, 0.1) 0%, 
            rgba(255, 165, 0, 0.1) 25%, 
            rgba(255, 99, 71, 0.1) 50%, 
            rgba(255, 215, 0, 0.1) 75%, 
            rgba(255, 140, 66, 0.1) 100%);
    }
}

/* Current Flow Lines */
.current-lines {
    position: absolute;
    top: 170px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

.current-line {
    width: 3px;
    height: 50px;
    margin: 0 8px;
    display: inline-block;
    animation: currentFlow 1.5s ease-in-out infinite;
    border-radius: 2px;
    position: relative;
    transition: all 0.5s ease;
}

.current-line.on {
    animation: currentFlow 1.5s ease-in-out infinite;
}

.current-line.off {
    animation: none;
    opacity: 0.3;
}

.current-line:nth-child(1) {
    background: linear-gradient(to bottom, #ff8c42, #ffa500, #ff6347);
    box-shadow: 0 0 10px #ff8c42, 0 0 20px #ff8c42, 0 0 30px rgba(255, 140, 66, 0.5);
}

.current-line:nth-child(2) {
    background: linear-gradient(to bottom, #ff6347, #d2691e, #ffd700);
    box-shadow: 0 0 10px #ff6347, 0 0 20px #ff6347, 0 0 30px rgba(255, 99, 71, 0.5);
}

.current-line:nth-child(3) {
    background: linear-gradient(to bottom, #ffd700, #ff8c42, #ffa500);
    box-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700, 0 0 30px rgba(255, 215, 0, 0.5);
}

.current-line:nth-child(1) { animation-delay: 0s; }
.current-line:nth-child(2) { animation-delay: 0.3s; }
.current-line:nth-child(3) { animation-delay: 0.6s; }

@keyframes currentFlow {
    0%, 100% { 
        height: 50px; 
        opacity: 0.7;
        transform: scaleY(1);
    }
    25% { 
        height: 65px; 
        opacity: 0.9;
        transform: scaleY(1.1);
    }
    50% { 
        height: 80px; 
        opacity: 1;
        transform: scaleY(1.2);
    }
    75% { 
        height: 65px; 
        opacity: 0.9;
        transform: scaleY(1.1);
    }
}

/* Power Switch */
.power-switch {
    position: absolute;
    bottom: 60px;
    right: 120px;
    z-index: 30;
    cursor: pointer;
    transition: all 0.3s ease;
}

.switch-base {
    width: 40px;
    height: 20px;
    background: linear-gradient(45deg, #8b4513, #a0522d);
    border-radius: 10px;
    border: 2px solid #ff8c42;
    box-shadow: 0 0 10px rgba(255, 140, 66, 0.4);
    position: relative;
    transition: all 0.3s ease;
}

.switch-lever {
    width: 16px;
    height: 16px;
    background: #ff8c42;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    box-shadow: 0 0 8px #ff8c42;
    transition: all 0.3s ease;
    animation: switchPulse 2s ease-in-out infinite;
}

.power-switch.on .switch-lever {
    left: 22px;
    background: #ff8c42;
    box-shadow: 0 0 12px #ff8c42, 0 0 20px rgba(255, 140, 66, 0.5);
}

.power-switch.off .switch-lever {
    left: 2px;
    background: #e74c3c;
    box-shadow: 0 0 8px #e74c3c;
}

.switch-label {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    color: #ff8c42;
    font-weight: 600;
    text-shadow: 0 0 5px #ff8c42;
    white-space: nowrap;
}

.power-switch:hover .switch-base {
    box-shadow: 0 0 15px rgba(255, 140, 66, 0.6), 0 0 25px rgba(255, 140, 66, 0.3);
    transform: scale(1.05);
}

@keyframes switchPulse {
    0%, 100% { 
        box-shadow: 0 0 8px #ff8c42;
    }
    50% { 
        box-shadow: 0 0 12px #ff8c42, 0 0 20px rgba(255, 140, 66, 0.5);
    }
}

/* Enhanced Glowing Bulb */
.glow-bulb {
    position: absolute;
    bottom: 40px;
    right: 40px;
    transform: none;
    z-index: 25;
    transition: all 0.5s ease;
}

.glow-bulb.on {
    animation: bulbGlow 2s ease-in-out infinite alternate;
}

.glow-bulb.off {
    animation: none;
    opacity: 0.3;
}

.bulb {
    width: 30px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #ffd700, #ff8c42);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    box-shadow: 0 0 20px #ffd700, 0 0 40px #ff8c42, 0 0 60px #ffa500;
    transition: all 0.5s ease;
}

.glow-bulb.off .bulb {
    box-shadow: 0 0 5px #ff8c42;
    background: radial-gradient(circle at 30% 30%, #666, #444);
}

.bulb-base {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 15px;
    background: #666;
    border-radius: 0 0 4px 4px;
}

.light-rays { display: none !important; }

/* Panel Wires from each solar panel */
.panel-wires {
    position: absolute;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

.panel-wire {
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, #ff8c42, #ffa500);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 140, 66, 0.6);
    animation: wireFlow 2s ease-in-out infinite;
    transition: all 0.5s ease;
}

.panel-wire.on {
    animation: wireFlow 1.5s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(255, 140, 66, 0.8), 0 0 20px rgba(255, 140, 66, 0.4);
}

.panel-wire.off {
    animation: none;
    opacity: 0.3;
    box-shadow: 0 0 4px rgba(255, 140, 66, 0.3);
}

/* Wire positions for each panel */
.panel-wire.wire-1 {
    height: 60px;
    left: -100px;
    top: 0;
    background: linear-gradient(to bottom, #ff8c42, #ffa500, #ff6347);
    animation-delay: 0s;
}

.panel-wire.wire-2 {
    height: 60px;
    left: -50px;
    top: 0;
    background: linear-gradient(to bottom, #ff6347, #d2691e, #ffd700);
    animation-delay: 0.2s;
}

.panel-wire.wire-3 {
    height: 60px;
    left: 0px;
    top: 0;
    background: linear-gradient(to bottom, #ffd700, #ff8c42, #ffa500);
    animation-delay: 0.4s;
}

.panel-wire.wire-4 {
    height: 60px;
    left: 50px;
    top: 0;
    background: linear-gradient(to bottom, #ffa500, #ff6347, #d2691e);
    animation-delay: 0.6s;
}

.panel-wire.wire-5 {
    height: 60px;
    left: 100px;
    top: 0;
    background: linear-gradient(to bottom, #d2691e, #ffd700, #ff8c42);
    animation-delay: 0.8s;
}

.panel-wire.wire-6 {
    height: 60px;
    left: 150px;
    top: 0;
    background: linear-gradient(to bottom, #ff8c42, #ffa500, #ff6347);
    animation-delay: 1s;
}

/* Junction Box */
.junction-box {
    position: absolute;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 18;
    width: 40px;
    height: 30px;
    background: linear-gradient(45deg, #8b4513, #a0522d);
    border-radius: 8px;
    border: 2px solid #ff8c42;
    box-shadow: 0 0 15px rgba(255, 140, 66, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.junction-connection {
    width: 20px;
    height: 20px;
    background: #ff8c42;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff8c42, 0 0 20px #ff8c42;
    animation: junctionPulse 2s ease-in-out infinite;
}

@keyframes junctionPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 10px #ff8c42, 0 0 20px #ff8c42;
    }
    50% { 
        transform: scale(1.2);
        box-shadow: 0 0 15px #ff8c42, 0 0 30px #ff8c42, 0 0 45px rgba(255, 140, 66, 0.5);
    }
}

/* Main Wire to Bulb */
.main-wire {
    position: absolute;
    top: 230px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 80px;
    background: linear-gradient(to bottom, #ff8c42, #ffa500, #ff6347, #ffd700);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(255, 140, 66, 0.8), 0 0 20px rgba(255, 140, 66, 0.4);
    z-index: 16;
    animation: mainWireFlow 1.5s ease-in-out infinite;
    transition: all 0.5s ease;
}

.main-wire.on {
    animation: mainWireFlow 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 140, 66, 0.9), 0 0 25px rgba(255, 140, 66, 0.5);
}

.main-wire.off {
    animation: none;
    opacity: 0.3;
    box-shadow: 0 0 6px rgba(255, 140, 66, 0.4);
}

@keyframes mainWireFlow {
    0%, 100% { 
        opacity: 0.8;
        box-shadow: 0 0 12px rgba(255, 140, 66, 0.8), 0 0 20px rgba(255, 140, 66, 0.4);
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 18px rgba(255, 140, 66, 1), 0 0 30px rgba(255, 140, 66, 0.6), 0 0 40px rgba(255, 140, 66, 0.3);
    }
}

/* Animated Current Particles */
.current-particles {
    position: absolute;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 17;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff8c42;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff8c42, 0 0 16px #ff8c42;
    animation: particleFlow 3s linear infinite;
}

.particle.on {
    animation: particleFlow 2s linear infinite;
}

.particle.off {
    animation: none;
    opacity: 0;
}

.particle-1 {
    left: -100px;
    top: 0;
    animation-delay: 0s;
    animation-duration: 2.5s;
}

.particle-2 {
    left: -50px;
    top: 0;
    animation-delay: 0.5s;
    animation-duration: 2.3s;
}

.particle-3 {
    left: 0px;
    top: 0;
    animation-delay: 1s;
    animation-duration: 2.1s;
}

.particle-4 {
    left: 50px;
    top: 0;
    animation-delay: 1.5s;
    animation-duration: 2.4s;
}

.particle-5 {
    left: 100px;
    top: 0;
    animation-delay: 2s;
    animation-duration: 2.2s;
}

.particle-6 {
    left: 150px;
    top: 0;
    animation-delay: 2.5s;
    animation-duration: 2.6s;
}

@keyframes particleFlow {
    0% {
        top: 0;
        opacity: 0;
        transform: scale(0.5);
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        top: 200px;
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Sparkle Animation */
@keyframes sparkleAnim {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
        box-shadow: 0 0 0 #ffd700;
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
        box-shadow: 0 0 20px #ffff88, 0 0 40px #ffff88;
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
        box-shadow: 0 0 0 #ffff88;
    }
}

.bulb {
    width: 30px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #ffff88, #ffaa00);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    box-shadow: 0 0 20px #ffff88, 0 0 40px #ffff88, 0 0 60px #ffff88;
}

.bulb::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 15px;
    background: #666;
    border-radius: 0 0 4px 4px;
}

@keyframes bulbGlow {
    0% { 
        box-shadow: 0 0 20px #ffff88, 0 0 40px #ffff88, 0 0 60px #ffff88;
        filter: brightness(1);
    }
    100% { 
        box-shadow: 0 0 30px #ffff88, 0 0 60px #ffff88, 0 0 90px #ffff88, 0 0 120px rgba(255, 255, 136, 0.3);
        filter: brightness(1.3);
    }
}

.panel {
    width: 120px;
    height: 80px;
    background: linear-gradient(45deg, #34495e, #2c3e50);
    border-radius: 8px;
    position: absolute;
    animation: panelFloat 4s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3), 0 0 30px rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
}

.panel:hover {
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.6), 0 0 50px rgba(0, 255, 136, 0.4);
    border-color: rgba(0, 255, 136, 0.8);
    transform: scale(1.1) rotate(5deg);
}

.panel-1 {
    left: 50px;
    top: 200px;
    animation-delay: 0s;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4), 0 0 30px rgba(0, 255, 136, 0.3);
}

.panel-2 {
    right: 50px;
    top: 150px;
    animation-delay: 1s;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3), 0 0 30px rgba(0, 255, 136, 0.2);
}

.panel-3 {
    left: 50%;
    bottom: 100px;
    animation-delay: 2s;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5), 0 0 30px rgba(0, 255, 136, 0.4);
}

@keyframes panelFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.3), 0 0 30px rgba(0, 255, 136, 0.2);
    }
    50% { 
        transform: translateY(-20px) rotate(2deg); 
        box-shadow: 0 0 25px rgba(0, 255, 136, 0.5), 0 0 50px rgba(0, 255, 136, 0.3);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5), 0 0 20px rgba(0, 255, 136, 0.3);
    animation: arrowGlow 2s ease-in-out infinite alternate;
}

@keyframes arrowGlow {
    0% { 
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.5), 0 0 20px rgba(0, 255, 136, 0.3);
        border-color: white;
    }
    100% { 
        box-shadow: 0 0 20px rgba(120, 149, 136, 0.8), 0 0 40px rgba(0, 255, 136, 0.5);
        border-color: #00ff88;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
}

.section-header:hover h2 {
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5), 0 0 25px rgba(0, 255, 136, 0.3);
    transform: scale(1.02);
}

.section-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.about-text p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text ul {
    list-style: none;
}

.about-text li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #555;
}

.about-text li i {
    color: #00ff88;
    margin-right: 0.8rem;
    font-size: 1.2rem;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
}

.about-text li:hover i {
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6), 0 0 20px rgba(0, 255, 136, 0.4);
    transform: scale(1.1);
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

/* Timeline */
.timeline {
    margin-top: 4rem;
}

.timeline h3 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #00ff88, #00ffff);
    transform: translateX(-50%);
    box-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
    animation: timelineGlow 2s ease-in-out infinite alternate;
}

@keyframes timelineGlow {
    0% { box-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88; }
    100% { box-shadow: 0 0 20px #00ff88, 0 0 40px #00ff88, 0 0 60px rgba(0, 255, 136, 0.3); }
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 60%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 60%;
    margin-right: 0;
    text-align: left;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: #00ff88;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
    animation: timelineDotGlow 1.5s ease-in-out infinite alternate;
}

@keyframes timelineDotGlow {
    0% { box-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88; }
    100% { box-shadow: 0 0 20px #00ff88, 0 0 40px #00ff88, 0 0 60px rgba(0, 255, 136, 0.3); }
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -60px;
}

.timeline-content h4 {
    color: #00ff88;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    will-change: transform, box-shadow;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
    will-change: left;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 20px #00ff88, 0 0 40px #00ff88;
    border-color: #00ff88;
    border-width: 2px;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00ff88, #00cc66);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    will-change: transform;
    box-shadow: 0 0 15px #00ff88, 0 0 30px #00ff88;
    border: 2px solid #00ff88;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 0;
    background: #f9f9f9;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    margin-top: 3rem;
}

.how-it-works-item {
    text-align: center;
    position: relative;
}

.how-it-works-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #2ecc71;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.4);
    transition: all 0.3s ease;
    will-change: transform, box-shadow;
}

.how-it-works-item:hover .how-it-works-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(46, 204, 113, 0.6);
}

.how-it-works-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.how-it-works-item p {
    font-size: 0.9rem;
    color: #666;
}

.how-it-works-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50px;
    right: -1rem;
    width: calc(100% - 100px);
    height: 2px;
    background: #ddd;
    z-index: -1;
}

@media (max-width: 1150px) {
    .how-it-works-item:not(:last-child)::after {
        display: none;
    }
}

/* Products Section */
.products {
    padding: 6rem 0;
    background: #f8f9fa;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #2ecc71;
    background: transparent;
    color: #2ecc71;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    will-change: background, color, box-shadow, transform;
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    background: #00ff88;
    color: #000;
    box-shadow: 0 0 15px #00ff88, 0 0 30px rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.product-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    will-change: transform, box-shadow;
    position: relative;
}

.product-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 136, 0.05) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.product-item:hover::after {
    opacity: 1;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 20px rgba(0, 255, 136, 0.3), 0 0 40px rgba(0, 255, 136, 0.2);
    border: 2px solid rgba(0, 255, 136, 0.5);
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.product-info p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.product-features span {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 0.9rem;
}

.product-features i {
    color: #2ecc71;
    margin-right: 0.5rem;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: white;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial {
    display: none;
    text-align: center;
    padding: 2rem;
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-content {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
    will-change: box-shadow, transform;
}

.testimonial-content:hover {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2), 0 0 50px rgba(0, 255, 136, 0.1);
    transform: translateY(-5px);
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: #00ff88;
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
    text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
    animation: quoteGlow 2s ease-in-out infinite alternate;
    will-change: text-shadow;
}

@keyframes quoteGlow {
    0% { text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88; }
    100% { text-shadow: 0 0 20px #00ff88, 0 0 40px #00ff88, 0 0 60px rgba(0, 255, 136, 0.3); }
}

.stars {
    margin-bottom: 1.5rem;
}

.stars i {
    color: #f39c12;
    font-size: 1.2rem;
    margin: 0 0.1rem;
    text-shadow: 0 0 5px #f39c12, 0 0 10px #f39c12;
    animation: starTwinkle 2s ease-in-out infinite;
    will-change: text-shadow;
}

.stars i:nth-child(1) { animation-delay: 0s; }
.stars i:nth-child(2) { animation-delay: 0.2s; }
.stars i:nth-child(3) { animation-delay: 0.4s; }
.stars i:nth-child(4) { animation-delay: 0.6s; }
.stars i:nth-child(5) { animation-delay: 0.8s; }

@keyframes starTwinkle {
    0%, 100% { 
        text-shadow: 0 0 5px #f39c12, 0 0 10px #f39c12;
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 10px #f39c12, 0 0 20px #f39c12, 0 0 30px rgba(243, 156, 18, 0.5);
        transform: scale(1.1);
    }
}

.testimonial-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
    will-change: background;
}

.nav-dot.active {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88, 0 0 20px rgba(0, 255, 136, 0.3);
    transform: scale(1.2);
}

/* Partners Section */


.partners {
    padding: 4rem 0;
    background: #f8f9fa;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    will-change: transform, box-shadow;
    position: relative;
    overflow: hidden;
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: top 0.5s ease;
    will-change: top;
}

.partner-logo:hover::before {
    top: 100%;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.partner-logo i {
    font-size: 3rem;
    color: #00ff88;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
    transition: all 0.3s ease;
    will-change: text-shadow, transform;
}

.partner-logo:hover i {
    text-shadow: 0 0 20px #00ff88, 0 0 40px #00ff88, 0 0 60px rgba(0, 255, 136, 0.3);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem; /* Reduced gap */
    }

    .partner-logo {
        padding: 0.5rem; /* Reduced padding */
    }

    .partner-logo i {
        font-size: 2rem; /* Much smaller icon */
        margin-bottom: 0.5rem; /* Reduced margin */
    }

    .partner-logo span {
        font-size: 0.7rem; /* Smaller text */
        line-height: 1.2;
    }
}

.partner-logo span {
    color: #2c3e50;
    font-weight: 500;
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #00ff88;
    margin-right: 1rem;
    margin-top: 0.2rem;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
    will-change: text-shadow;
}

.contact-item:hover i {
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6), 0 0 20px rgba(0, 255, 136, 0.4);
    transform: scale(1.1);
}

.contact-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #7f8c8d;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: #00ff88;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    will-change: background, color, box-shadow, transform;
    box-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
    border: 2px solid #00ff88;
}

.social-link:hover {
    background: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

.contact-form {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
    will-change: box-shadow;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.05), transparent);
    transition: left 0.8s ease;
    will-change: left;
}

.contact-form:hover::before {
    left: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    will-change: border-color;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 10px #00ff88, 0 0 20px rgba(0, 255, 136, 0.3);
    transform: scale(1.02);
    background: rgba(0, 255, 136, 0.05);
}

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

/* Map */
.map-container {
    margin-top: 4rem;
}

.map {
    height: 400px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
    will-change: box-shadow, transform;
}

.map:hover {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2), 0 0 50px rgba(0, 255, 136, 0.1);
    transform: scale(1.02);
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #7f8c8d;
    text-align: center;
}

.map-placeholder i {
    font-size: 3rem;
    color: #00ff88;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
    animation: mapIconGlow 2s ease-in-out infinite alternate;
    will-change: text-shadow;
}

@keyframes mapIconGlow {
    0% { 
        text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
        transform: scale(1);
    }
    100% { 
        text-shadow: 0 0 20px #00ff88, 0 0 40px #00ff88, 0 0 60px rgba(0, 255, 136, 0.3);
        transform: scale(1.1);
    }
}

/* Newsletter Section */
.newsletter {
    padding: 4rem 0;
    background: linear-gradient(135deg, #00ff88, #00cc66);
    color: #000;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 136, 0.1) 50%, transparent 70%);
    animation: newsletterShine 3s ease-in-out infinite;
    will-change: transform;
}

@keyframes newsletterShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    will-change: box-shadow;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4), 0 0 30px rgba(0, 255, 136, 0.2);
    transform: scale(1.02);
}

.newsletter-form button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    background: white;
    color: #2ecc71;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    will-change: background, color, box-shadow, transform;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 255, 136, 0.5);
    background: #00ff88;
    color: #000;
}

/* ==============================
   Mobile Bottom Navigation
   ============================== */
.mobile-bottom-nav {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    justify-content: space-around;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    color: #999;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
    will-change: color;
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-nav-item.active {
    color: #2ecc71;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px; /* Prevent content from being hidden by bottom nav */
    }

    .navbar {
        display: none; /* Hide top nav on mobile */
    }

    .mobile-bottom-nav {
        display: flex; /* Show bottom nav on mobile */
    }
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    animation: footerGlow 3s ease-in-out infinite;
    will-change: transform;
}

@keyframes footerGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
    transition: all 0.3s ease;
    will-change: text-shadow;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    overflow: hidden;
}

.footer-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        #00ff88, #00ffff, #ff0080, #ffff00, #0080ff, #00ff88);
    background-size: 400% 400%;
    animation: movingGradient 5s ease-in-out infinite;
    border-radius: 8px;
    z-index: -1;
    padding: 2px;
    margin: -2px;
}

.footer-logo::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    border-radius: 6px;
    z-index: -1;
}

.footer-logo:hover {
    text-shadow: 0 0 20px #00ff88, 0 0 40px #00ff88, 0 0 60px rgba(0, 255, 136, 0.5);
    transform: scale(1.05);
}

.footer-logo:hover::before {
    animation: movingGradient 2s ease-in-out infinite;
}

.footer-logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

.footer-section h4 {
    color: #00ff88;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-shadow: 0 0 5px #00ff88;
    transition: all 0.3s ease;
    will-change: text-shadow;
}

.footer-section:hover h4 {
    text-shadow: 0 0 10px #00ff88, 0 0 20px rgba(0, 255, 136, 0.5);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    will-change: color, text-shadow;
}

.footer-section ul li a:hover {
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
    transform: translateX(5px);
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fab-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-top: 10px;
    transition: all 0.3s ease;
    will-change: transform, opacity, box-shadow;
}

.fab-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.fab-call {
    background-color: #3498db; /* Blue for call */
}

.fab-whatsapp {
    background-color: #25d366; /* WhatsApp green */
}

.fab-chat {
    background-color: #5534db; /* A nice purple for chat */
}

@media (max-width: 768px) {
    .fab-container {
        bottom: 80px;
        flex-direction: column-reverse; /* To stack chat icon on top */
    }
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

@media (max-width: 768px) {
    .chat-widget {
        bottom: 80px;
        right: 20px;
        width: calc(100% - 40px);
        max-width: 350px;
    }
}

.chat-header {
    background: linear-gradient(135deg, #00ff88, #00cc66);
    color: #000;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    will-change: background;
    box-shadow: 0 0 15px #00ff88, 0 0 30px #00ff88;
    border: 2px solid #00ff88;
}

.chat-header:hover {
    background: #27ae60;
}

.chat-header i:first-child {
    margin-right: 0.5rem;
}

.chat-body {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 10px;
    max-width: 80%;
}

.chat-message.bot {
    background: #f0f0f0;
    margin-right: auto;
}

.chat-message.user {
    background: #00ff88;
    color: #000;
    margin-left: auto;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    border: 1px solid rgba(0, 255, 136, 0.5);
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
}

.chat-input input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    will-change: border-color;
}

.chat-input input:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3), 0 0 20px rgba(0, 255, 136, 0.2);
}

.chat-input button {
    width: 40px;
    height: 40px;
    border: none;
    background: #00ff88;
    color: #000;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    will-change: background, color, box-shadow, transform;
    box-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
    border: 2px solid #00ff88;
}

.chat-input button:hover {
    background: #00cc66;
    box-shadow: 0 0 20px #00ff88, 0 0 40px #00ff88, 0 0 60px rgba(0, 255, 136, 0.3);
    transform: scale(1.1);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    will-change: transform, opacity;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3), 0 0 60px rgba(0, 255, 136, 0.2);
    border: 2px solid rgba(0, 255, 136, 0.3);
}

@keyframes modalSlideIn {
    from { 
        transform: translateY(-50px); 
        opacity: 0; 
        box-shadow: 0 0 0 rgba(0, 255, 136, 0);
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.3), 0 0 60px rgba(0, 255, 136, 0.2);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover {
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
    transform: scale(1.1);
}

.modal h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        grid-template-columns: 1fr;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -50px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .chat-widget {
        width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #00ff88, #00ffff);
    z-index: 1001;
    transition: width 0.1s ease;
    will-change: width;
    box-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
}

/* Loading Animation with Neon Effects */
body:not(.loaded)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00ff88, #00cc66);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: loadingPulse 2s ease-in-out infinite;
    will-change: transform;
}

body:not(.loaded)::after {
    content: 'Loading SunBlaze Solar...';
    position: fixed;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    color: #000;
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 10000;
    text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
    animation: loadingTextGlow 1.5s ease-in-out infinite alternate;
    will-change: text-shadow;
}

@keyframes loadingTextGlow {
    0% { 
        text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
        transform: translateX(-50%) scale(1);
    }
    100% { 
        text-shadow: 0 0 20px #00ff88, 0 0 40px #00ff88, 0 0 60px rgba(0, 255, 136, 0.5);
        transform: translateX(-50%) scale(1.05);
    }
}

@keyframes loadingPulse {
    0%, 100% { 
        background: linear-gradient(135deg, #00ff88, #00cc66);
        box-shadow: inset 0 0 50px rgba(0, 255, 136, 0.3);
    }
    50% { 
        background: linear-gradient(135deg, #00cc66, #00ff88);
        box-shadow: inset 0 0 100px rgba(0, 255, 136, 0.5);
    }
}

/* Form Submit Button with Neon Effects */
.form-group button,
.contact-form button,
.modal button[type="submit"] {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: #00ff88;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    will-change: background, color, box-shadow, transform;
    box-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
    border: 2px solid #00ff88;
}

.form-group button:hover,
.contact-form button:hover,
.modal button[type="submit"]:hover {
    background: #00cc66;
    box-shadow: 0 0 20px #00ff88, 0 0 40px #00ff88, 0 0 60px rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

/* Notification Animation with Neon Effects */
@keyframes slideInRight {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
        box-shadow: 0 0 0 rgba(0, 255, 136, 0);
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.3), 0 0 40px rgba(0, 255, 136, 0.2);
    }
}

/* Reveal Animation with Neon Effects */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    will-change: opacity, transform;
}

section.revealed {
    opacity: 1;
    transform: translateY(0);
    box-shadow: inset 0 0 50px rgba(0, 255, 136, 0.1);
}

section:first-child {
    opacity: 1;
    transform: translateY(0);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
    will-change: opacity, transform;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
    will-change: opacity, transform;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
    will-change: opacity, transform;
}

.zoom-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Three Large Solar Panels Row */
.solar-panels-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    margin-top: 120px;
    position: relative;
    z-index: 21;
}

.big-panel {
    width: 160px;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.6), 0 0 35px rgba(0, 255, 136, 0.3);
    border: 2px solid #00ff88;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s;
}

.big-panel .panel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    filter: brightness(1.1) contrast(1.2);
}

.solar-wires-svg {
    position: absolute;
    left: 50%;
    top: 110px;
    transform: translateX(-50%);
    width: 420px;
    height: 260px;
    z-index: 20;
    pointer-events: none;
}

.panel-wire-svg {
    fill: none;
    stroke: url(#wire-gradient);
    stroke-width: 6px;
    filter: drop-shadow(0 0 8px #00ff88) drop-shadow(0 0 16px #00ff88);
    stroke-dasharray: 320;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.5s, opacity 0.5s;
    opacity: 1;
    animation: wireCurrentAnim 2s linear infinite;
}

.panel-wire-svg.off {
    opacity: 0.3;
    animation: none;
}

@keyframes wireCurrentAnim {
    0% { stroke-dashoffset: 320; }
    100% { stroke-dashoffset: 0; }
}

.main-wire-svg {
    fill: none;
    stroke: url(#main-wire-gradient);
    stroke-width: 10px;
    filter: drop-shadow(0 0 12px #00ff88) drop-shadow(0 0 24px #00ff88);
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.5s, opacity 0.5s;
    opacity: 1;
    animation: mainWireCurrentAnim 1.5s linear infinite;
}

.main-wire-svg.off {
    opacity: 0.3;
    animation: none;
}

@keyframes mainWireCurrentAnim {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}

/* Sun always visible above panels */
.sun {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #f9d423 60%, #ff4e50 100%);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 22;
    box-shadow: 0 0 60px 20px #f9d423, 0 0 120px 40px #ff4e50;
    animation: sunGlow 3s ease-in-out infinite alternate;
}






/* General Mobile Responsiveness */
@media (max-width: 768px) {
    .solar-animation {
        position: relative;
        width: 100%;
        height: 250px; /* Adjust height for mobile */
        margin-top: 2rem;
        transform: scale(0.6); /* Scale down the whole animation */
        transform-origin: center top;
    }

    .hero .solar-animation .hero-sun {
        width: 150px; /* Smaller sun */
        height: 150px;
        left: calc(50% - 75px);
        top: 20px;
    }

    .hero .solar-animation .hero-panel {
        width: 80px; /* Smaller panels */
    }

    .hero .solar-animation .hero-panel-1 { left: calc(50% - 120px); top: 150px; }
    .hero .solar-animation .hero-panel-2 { left: calc(50% - 40px); top: 130px; }
    .hero .solar-animation .hero-panel-3 { left: calc(50% + 40px); top: 150px; }
    .hero h2 {
        font-size: 2.5rem; /* Reduce heading size */
    }

    .hero p {
        font-size: 1rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        flex-direction: column; /* Stack buttons */
        gap: 1rem;
    }

    /* Hide complex animations that break layout */

    .solar-panels-arc {
        display: none;
    }

    .navbar .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        display: none; /* Hide by default */
    }

    .nav-menu.active {
        display: flex; /* Show when active */
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }

    .nav-toggle {
        display: block; /* Show the hamburger menu icon */
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        left: 25px;
    }
}

/* Responsive: stack panels on mobile */
@media (max-width: 900px) {
    .solar-wires-svg { width: 320px; }
    .solar-panels-row { gap: 20px; }
    .big-panel { width: 90px; height: 70px; }
}
@media (max-width: 600px) {
    .solar-panels-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 80px;
    }
    .big-panel { width: 80vw; max-width: 200px; height: 60vw; max-height: 120px; }
    .solar-wires-svg { width: 220px; height: 180px; top: 80px; }
    .sun { width: 60px; height: 60px; top: 0; }
}

/* Solar panels arranged around the sun in a curve */
.solar-panels-arc {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 420px; /* content width (panels span) */
    height: 150px; /* content height (topmost to bottommost panel) */
    padding: 0.5cm; /* total +1cm (left+right, top+bottom) */
    pointer-events: none;
    z-index: 21;
}

.solar-panels-arc .solar-panel {
    position: absolute;
    width: 160px;
    height: 110px;
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    pointer-events: auto;
}

.solar-panels-arc .solar-panel .panel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    filter: none;
    box-shadow: none;
    border: none;
}

/* Place three panels along an arc (left, center, right) */
.solar-panels-arc .solar-panel:nth-child(1) {
    left: 0px;
    top: 80px;
    transform: rotate(-15deg);
}

.solar-panels-arc .solar-panel:nth-child(2) {
    left: 130px;
    top: 40px;
    transform: rotate(0deg);
}

.solar-panels-arc .solar-panel:nth-child(3) {
    left: 260px;
    top: 80px;
    transform: rotate(15deg);
}

/* Ensure the sun is on top */
.sun { z-index: 22; }

/* Hero panels (no container) positioned around the sun */
.hero .solar-animation .hero-panel {
    position: absolute;
    width: 200px;
    height: 140px;
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    z-index: 21;
    will-change: transform;
}

/* Place along an arc */
.hero .solar-animation .hero-panel-1 { left: calc(50% - 260px); top: 210px; transform: rotate(-15deg); }
.hero .solar-animation .hero-panel-2 { left: calc(50% - 100px); top: 170px; transform: rotate(0deg); }
.hero .solar-animation .hero-panel-3 { left: calc(50% + 70px);  top: 210px; transform: rotate(15deg); }

/* Sun halo enhancements */
.sun::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid rgba(243, 156, 18, 0.35);
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.3);
    animation: sunRing 4s ease-in-out infinite;
}

.sun::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 60%);
    filter: blur(1px);
    pointer-events: none;
}

@keyframes sunRing {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* Hero panels (no container) subtle animation + sheen + shadow */
.hero .solar-animation .hero-panel {
    position: absolute;
    width: 200px;
    height: 140px;
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    z-index: 21;
    will-change: transform;
}

/* reflective sweep */
.hero .solar-animation .hero-panel::before {
    content: '';
    position: absolute;
    top: -120%;
    left: -40%;
    width: 60%;
    height: 300%;
    background: linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(10deg);
    mix-blend-mode: screen;
    pointer-events: none;
    animation: panelShine 6s ease-in-out infinite;
}

.hero .solar-animation .hero-panel::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -12px;
    height: 12px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 70%);
    filter: blur(6px);
    pointer-events: none;
}

@keyframes panelShine {
    0% { transform: translateX(-160%) rotate(10deg); opacity: 0; }
    20% { opacity: 1; }
    60% { transform: translateX(160%) rotate(10deg); opacity: 0.9; }
    100% { transform: translateX(160%) rotate(10deg); opacity: 0; }
}

/* Gentle float while preserving base rotation using CSS var */
.hero .solar-animation .hero-panel-1 { --rot: -15deg; animation: panelBreathe 5s ease-in-out infinite; }
.hero .solar-animation .hero-panel-2 { --rot: 0deg;   animation: panelBreathe 5.6s ease-in-out infinite; }
.hero .solar-animation .hero-panel-3 { --rot: 15deg;  animation: panelBreathe 6.2s ease-in-out infinite; }

@keyframes panelBreathe {
    0%, 100% { transform: translateY(0) rotate(var(--rot)); }
    50% { transform: translateY(-8px) rotate(var(--rot)); }
}

/* Pause float on hover and lift slightly */
.hero .solar-animation .hero-panel:hover {
    animation-play-state: paused;
    transform: translateY(-10px) rotate(var(--rot));
}

/* Stagger the sheen */
.hero .solar-animation .hero-panel-1::before { animation-delay: 0.2s; }
.hero .solar-animation .hero-panel-2::before { animation-delay: 0.9s; }
.hero .solar-animation .hero-panel-3::before { animation-delay: 1.6s; }

/* Ensure images remain clean */
.hero .solar-animation .hero-panel .panel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
    border-radius: 0;
    filter: none;
    box-shadow: none;
}

/* Re-apply positioning with rotation var */
.hero .solar-animation .hero-panel-1 { left: calc(50% - 260px); top: 210px; }
.hero .solar-animation .hero-panel-2 { left: calc(50% - 100px);  top: 170px; }
.hero .solar-animation .hero-panel-3 { left: calc(50% + 70px);  top: 210px; }

/* Enhanced Calculator Modal Styles */
.calculator-modal {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid #00d4ff;
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.3),
        0 0 60px rgba(0, 212, 255, 0.1),
        inset 0 0 30px rgba(0, 212, 255, 0.05);
    animation: modalGlow 2s ease-in-out infinite alternate;
}

@keyframes modalGlow {
    0% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), 0 0 60px rgba(0, 212, 255, 0.1), inset 0 0 30px rgba(0, 212, 255, 0.05); }
    100% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.4), 0 0 80px rgba(0, 212, 255, 0.2), inset 0 0 40px rgba(0, 212, 255, 0.1); }
}

/* Calculator Header */
.calc-header {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 255, 157, 0.1) 100%);
    border-radius: 15px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.calc-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: headerShine 3s infinite;
}

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

.calc-icon {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 1rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.calc-header h2 {
    color: #fff;
    font-size: 2.2rem;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.calc-header p {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin: 0;
}

/* Calculator Tabs */
.calc-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #b0b0b0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #fff;
    border-color: #00d4ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, #00d4ff 0%, #00ff9d 100%);
    color: #1a1a2e;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

/* Tab Content */
.calc-tab-content {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.calc-tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    color: #00d4ff;
    font-size: 1.1rem;
    z-index: 2;
}

.input-with-icon input,
.select-wrapper select {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-with-icon input:focus,
.select-wrapper select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.input-with-icon input::placeholder {
    color: #888;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    padding-left: 1rem;
    cursor: pointer;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Calculate Button */
.calc-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff9d 100%);
    border: none;
    border-radius: 12px;
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.calc-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.calc-btn:hover::before {
    left: 100%;
}

.calc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.calc-btn:active {
    transform: translateY(-1px);
}

.calc-btn i {
    margin-right: 0.5rem;
}

/* Comparison Container */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.comparison-card.solar {
    border-color: #00ff9d;
    background: rgba(0, 255, 157, 0.05);
}

.comparison-card h3 {
    color: #fff;
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-item span:first-child {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.comparison-item span:last-child {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.comparison-arrow {
    font-size: 2rem;
    color: #00d4ff;
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Results Section */
.calc-results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 212, 255, 0.3);
    display: none;
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.results-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    transform: translateY(-2px);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #00ff9d);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.result-card:hover::before {
    transform: scaleX(1);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.result-card.primary {
    border-color: #00d4ff;
}

.result-card.savings {
    border-color: #00ff9d;
}

.result-card.investment {
    border-color: #ff6b6b;
}

.result-card.payback {
    border-color: #feca57;
}

.result-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #00d4ff;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.result-card.savings .result-icon {
    color: #00ff9d;
}

.result-card.investment .result-icon {
    color: #ff6b6b;
}

.result-card.payback .result-icon {
    color: #feca57;
}

.result-content h4 {
    color: #b0b0b0;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-value {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    animation: valueCount 1s ease-out;
}

@keyframes valueCount {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Subsidy Section */
.subsidy-section {
    margin-bottom: 2rem;
}

.subsidy-section h4 {
    color: #fff;
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    text-align: center;
}

.subsidy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.subsidy-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.subsidy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.subsidy-card.central {
    border-color: #00d4ff;
}

.subsidy-card.state {
    border-color: #00ff9d;
}

.subsidy-card.emi {
    border-color: #feca57;
}

.subsidy-icon {
    font-size: 2rem;
    color: #00d4ff;
    flex-shrink: 0;
}

.subsidy-card.state .subsidy-icon {
    color: #00ff9d;
}

.subsidy-card.emi .subsidy-icon {
    color: #feca57;
}

.subsidy-content h5 {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.subsidy-amount {
    color: #00d4ff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.subsidy-card.state .subsidy-amount {
    color: #00ff9d;
}

.subsidy-card.emi .subsidy-amount {
    color: #feca57;
}

.subsidy-content p {
    color: #b0b0b0;
    margin: 0;
    font-size: 0.85rem;
}

/* Environmental Impact */
.environmental-impact {
    background: rgba(0, 255, 157, 0.05);
    border: 2px solid rgba(0, 255, 157, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.environmental-impact h4 {
    color: #fff;
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    text-align: center;
    color: #00ff9d;
}

.impact-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.impact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #b0b0b0;
    font-size: 0.95rem;
}

.impact-item i {
    color: #00ff9d;
    font-size: 1.2rem;
}

.impact-item strong {
    color: #fff;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-modal {
        width: 98%;
        max-height: 95vh;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .comparison-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .comparison-arrow {
        transform: rotate(90deg);
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .subsidy-cards {
        grid-template-columns: 1fr;
    }
    
    .impact-metrics {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        text-align: center;
    }
    
    .results-actions {
        justify-content: center;
    }
}

/* Auto-fetch and Location Detection Styles */
.auto-fetch-btn,
.auto-locate-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #00d4ff 0%, #00ff9d 100%);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.auto-fetch-btn:hover,
.auto-locate-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.auto-fetch-btn:active,
.auto-locate-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.auto-fetch-btn i,
.auto-locate-btn i {
    font-size: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.auto-fetch-btn.loading,
.auto-locate-btn.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Rate Information Display */
.rate-info {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rate-info small {
    display: block;
    color: #b0b0b0;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.rate-info small:last-child {
    margin-bottom: 0;
}

.rate-source,
.rate-update {
    color: #00d4ff !important;
}

/* Location Detection Status */
.location-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.5);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
    max-width: 300px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.location-status.success {
    border-color: #00ff9d;
    box-shadow: 0 5px 20px rgba(0, 255, 157, 0.3);
}

.location-status.error {
    border-color: #ff6b6b;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
}

.location-status h4 {
    margin: 0 0 0.5rem 0;
    color: #00d4ff;
    font-size: 1rem;
}

.location-status p {
    margin: 0;
    font-size: 0.9rem;
    color: #b0b0b0;
}

/* Enhanced Input with Auto-fetch */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon input {
    padding-right: 3.5rem; /* Make room for auto-fetch button */
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00d4ff;
    animation: spin 1s ease-in-out infinite;
}

/* Rate Suggestions */
.rate-suggestions {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rate-suggestion {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rate-suggestion:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    transform: translateY(-1px);
}

.rate-suggestion.active {
    background: rgba(0, 212, 255, 0.3);
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Comparison Inputs */
.comparison-inputs {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.comparison-inputs h4 {
    color: #fff;
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

.comparison-inputs .form-row {
    margin-bottom: 1rem;
}

.comparison-inputs .form-row:last-child {
    margin-bottom: 0;
}

.comparison-inputs .input-group {
    margin-bottom: 0;
}

.comparison-inputs .input-group label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.comparison-inputs .input-with-icon input {
    padding: 0.8rem 1rem 0.8rem 3rem;
    font-size: 0.95rem;
}

.comparison-inputs .auto-fetch-btn {
    width: 2.2rem;
    height: 2.2rem;
}

.comparison-inputs .auto-fetch-btn i {
    font-size: 0.9rem;
}

/* ==============================
   Responsive Enhancements
   ============================== */

/* Global responsive helpers */
img, video {
    max-width: 100%;
    height: auto;
}

.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Large tablets / small desktops */
@media (max-width: 1200px) {
    .hero-content {
        gap: 2rem;
        padding: 0 1.25rem;
    }
    .nav-container {
        padding: 0.75rem 1rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    /* Navbar: show burger, collapse menu */
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        gap: 0;
        padding: 0.75rem 1rem 1rem;
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        z-index: 1000;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }
    .nav-menu.active {
        transform: translateY(0);
    }
    .nav-item {
        border-bottom: 1px solid rgba(0,0,0,0.05);
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    .nav-item:last-child { border-bottom: 0; }
    .nav-link {
        padding: 1rem 0;
        width: 100%;
        display: block;
    }

    /* Hero to single column */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-visual {
        order: -1;
        margin-bottom: 1rem;
    }
    .cta-buttons {
        justify-content: center;
    }

    /* Common grids collapse to 2 cols */
    .services-grid,
    .product-grid,
    .stats-grid,
    .partners-grid,
    .testimonials-grid,
    .contact-grid,
    .newsletter-content,
    .calc-columns,
    .calc-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    /* Forms */
    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    /* Modals */
    .modal-content {
        width: 90vw;
        max-width: 720px;
        margin: 1rem;
    }
    .calculator-modal {
        width: 92vw;
        max-height: 90vh;
        overflow: auto;
    }
}

/* Large phones / small tablets */
@media (max-width: 768px) {
    /* Typography scaling */
    .hero-text h1 { 
        font-size: 2.25rem;
        padding: 15px 25px;
        margin-bottom: 1rem;
    }
    .hero-text h2 { 
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    .hero-text p { 
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.25rem; }

    /* Hero section improvements */
    .hero {
        min-height: 100vh;
        padding: 80px 0 20px;
    }
    .hero-content {
        gap: 2rem;
        padding: 0 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    .hero-buttons .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* Solar animation adjustments */
    .solar-animation {
        transform: scale(0.8);
        margin: 1rem 0;
    }
    .solar-panels-container {
        width: min(80vw, 300px);
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        top: 30px;
    }
    .solar-panel {
        width: 60px;
        height: 40px;
    }

    /* Navigation improvements */
    .nav-menu {
        top: 60px;
        padding: 1rem;
    }
    .nav-item {
        padding: 0.8rem 0;
    }
    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    /* Section spacing */
    section {
        padding: 3rem 0;
    }
    .container {
        padding: 0 1rem;
    }

    /* Grids to single column */
    .services-grid,
    .product-grid,
    .stats-grid,
    .partners-grid,
    .testimonials-grid,
    .contact-grid,
    .newsletter-content,
    .calc-columns,
    .calc-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* About section improvements */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .about-image {
        order: -1;
    }
    .about-img {
        max-width: 100%;
        height: auto;
    }

    /* Timeline responsive */
    .timeline-container {
        padding: 0;
    }
    .timeline-item {
        margin: 1rem 0;
        padding: 1rem;
    }

    /* Service cards */
    .service-card {
        padding: 1.5rem;
        margin: 0.8rem 0;
    }
    .service-card h3 {
        font-size: 1.2rem;
    }

    /* Product cards */
    .product-card {
        padding: 1.5rem;
        margin: 0.8rem 0;
    }

    /* Stats section */
    .stat-card {
        padding: 1.5rem;
        text-align: center;
    }
    .stat-number {
        font-size: 2rem;
    }

    /* Forms to single column */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .form-group {
        margin-bottom: 1rem;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    /* Contact section */
    .contact-card {
        padding: 1.5rem;
        margin: 1rem 0;
        text-align: center;
    }

    /* Testimonials */
    .testimonial {
        padding: 1.5rem;
        margin: 1rem 0;
        text-align: center;
    }
    .testimonial-nav {
        margin-top: 1.5rem;
    }

    /* Chat widget */
    .chat-widget {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        max-width: 350px;
    }
    .chat-header {
        padding: 0.8rem;
    }
    .chat-body {
        max-height: 250px;
    }

    /* Newsletter */
    .newsletter-content {
        text-align: center;
        padding: 2rem 1rem;
    }
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }
    .newsletter-form input {
        width: 100%;
    }

    /* Calculator modal */
    .calculator-modal {
        width: 95vw;
        max-height: 85vh;
        margin: 1rem auto;
    }
    .calc-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .calc-tab {
        flex: 1;
        min-width: 120px;
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }

    /* Results grid */
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .result-card {
        padding: 1rem;
    }

    /* Subsidy cards */
    .subsidy-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Environmental impact */
    .impact-metrics {
        flex-direction: column;
        gap: 1rem;
    }
    .impact-item {
        text-align: center;
        padding: 1rem;
        background: rgba(46, 204, 113, 0.1);
        border-radius: 8px;
    }

    /* Scroll indicator */
    .scroll-indicator {
        bottom: 20px;
    }

    /* Partners grid */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Footer improvements */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-section {
        margin-bottom: 1.5rem;
    }
}

/* Small phones */
@media (max-width: 576px) {
    /* Navigation */
    .nav-logo { 
        font-size: 1rem;
        padding: 6px 12px;
    }
    .nav-logo i { font-size: 1.2rem; }
    .nav-container { 
        padding: 0.5rem 0.75rem;
    }
    .nav-menu {
        top: 55px;
    }

    /* Hero section */
    .hero {
        padding: 70px 0 15px;
    }
    .hero-text h1 {
        font-size: 1.8rem;
        padding: 12px 20px;
        line-height: 1.3;
    }
    .hero-text h2 {
        font-size: 1.2rem;
    }
    .hero-text p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    .hero-content {
        padding: 0 0.75rem;
        gap: 1.5rem;
    }

    /* Solar animation */
    .solar-animation {
        transform: scale(0.7);
    }
    .solar-panels-container {
        width: min(75vw, 250px);
        gap: 8px;
        top: 25px;
    }
    .solar-panel {
        width: 50px;
        height: 35px;
    }
    .sun {
        width: 60px;
        height: 60px;
    }

    /* Typography */
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
    p { font-size: 0.9rem; }

    /* Sections */
    section {
        padding: 2.5rem 0;
    }
    .container {
        padding: 0 0.75rem;
    }
    .section-header {
        margin-bottom: 2rem;
        text-align: center;
    }

    /* Buttons */
    .btn,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
        font-size: 0.95rem;
        margin: 0.5rem 0;
    }

    /* Cards */
    .card,
    .service-card,
    .product-card,
    .testimonial,
    .contact-card {
        padding: 1.2rem;
        margin: 0.75rem 0;
    }

    /* Stats */
    .stat-card {
        padding: 1.2rem;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .stat-label {
        font-size: 0.85rem;
    }

    /* Timeline */
    .timeline-item {
        padding: 1rem;
        margin: 0.8rem 0;
    }
    .timeline-content h4 {
        font-size: 1rem;
    }
    .timeline-content p {
        font-size: 0.85rem;
    }

    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 12px;
        font-size: 16px; /* prevent iOS zoom */
        border-radius: 6px;
    }
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    /* Modals */
    .modal-content {
        width: 96vw;
        margin: 0.25rem auto;
        padding: 1rem;
        border-radius: 8px;
    }
    .modal-header h2 {
        font-size: 1.3rem;
    }
    .close {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    /* Calculator */
    .calculator-modal {
        width: 98vw;
        max-height: 90vh;
        margin: 0.5rem auto;
    }
    .calc-tab {
        padding: 0.7rem 0.4rem;
        font-size: 0.8rem;
        min-width: 100px;
    }
    .calc-input {
        padding: 12px;
        font-size: 16px;
    }
    .result-card {
        padding: 0.8rem;
    }
    .result-value {
        font-size: 1.2rem;
    }

    /* Chat widget */
    .chat-widget {
        right: 8px;
        bottom: 8px;
        width: calc(100vw - 16px);
        max-width: 320px;
    }
    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .chat-body {
        max-height: 200px;
    }
    .chat-input {
        font-size: 14px;
        padding: 8px;
    }

    /* Newsletter */
    .newsletter {
        padding: 2rem 0;
    }
    .newsletter-content {
        padding: 1.5rem 0.75rem;
    }
    .newsletter-form input {
        padding: 12px;
        font-size: 16px;
    }

    /* Partners */
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .partner-logo {
        height: 60px;
    }

    /* Location/status adjustments */
    .location-status {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 10px;
        top: auto;
        width: calc(100vw - 1.5rem);
        max-width: 380px;
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    /* Scroll indicator */
    .scroll-indicator {
        bottom: 15px;
    }
    .scroll-arrow {
        width: 20px;
        height: 20px;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    .footer-content {
        gap: 1.5rem;
    }
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    .footer-section p,
    .footer-section a {
        font-size: 0.85rem;
    }
    .footer-bottom {
        padding: 1rem 0;
        font-size: 0.8rem;
    }

    /* About section specific */
    .benefits {
        margin-top: 1.5rem;
    }
    .benefits ul {
        flex-direction: column;
        gap: 0.8rem;
    }
    .benefits li {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        text-align: center;
    }
}

/* ==============================
   Investment Details Section
   ============================== */
.investment-details {
    padding: 4rem 0;
    background: #fff;
}

.investment-content h3 {
    font-size: 1.5rem;
    color: #2ecc71;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.investment-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.investment-table td {
    padding: 1rem;
    border: 1px solid #ddd;
}

.investment-table tr td:first-child {
    font-weight: bold;
    width: 30%;
}

.terms-list {
    padding-left: 1.5rem;
}

.terms-list li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* ==============================
   Scrolling Gallery Styles
   ============================== */
.gallery {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0, 212, 255, 0.06) 100%);
}

.scrolling-gallery {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.scrolling-gallery:active {
    cursor: grabbing;
}

.gallery-track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
}

.gallery-item {
    flex: 0 0 auto;
    width: clamp(240px, 28vw, 420px);
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #0b1220;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
}

.gallery-item:hover img {
    transform: scale(1.04);
    filter: saturate(1.1);
}

/* Hide native scrollbar for smooth visual */
.scrolling-gallery::-webkit-scrollbar { display: none; }
.scrolling-gallery { -ms-overflow-style: none; scrollbar-width: none; }

/* Mobile-specific improvements */
@media (max-width: 480px) {
    /* Prevent zoom on form inputs */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
        transform: scale(1);
    }
    
    /* Improve touch targets */
    .btn, button, .nav-link, .tab-btn {
        min-height: 48px;
        padding: 12px 16px;
    }
    
    /* Better spacing for small screens */
    .modal {
        padding: 0.5rem;
    }
    
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Improve readability */
    p, li {
        line-height: 1.6;
    }
}

@media (max-width: 768px) {
    .gallery { padding: 3rem 0; }
    .gallery-track { gap: 12px; padding: 12px; }
    
    /* Ensure proper spacing */
    .section-header {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    /* Mobile Navigation */
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
        padding: 0.5rem;
        border-radius: 4px;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    
    .nav-toggle:hover,
    .nav-toggle:focus {
        background: rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile-optimized cards */
    .card, .service-card, .product-card {
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }

    .mobile-bottom-nav {
        display: none;
    }
}

/* ==============================================
   HIGH-PRIORITY RESPONSIVE NAVIGATION OVERRIDE
   ============================================== */

/* --- Desktop Styles (769px and wider) --- */
@media (min-width: 769px) {
    .nav-menu {
        display: flex !important; /* Ensure desktop menu is visible */
        flex-direction: row !important;
        position: static !important;
        width: auto !important;
        background: none !important;
        box-shadow: none !important;
    }

    .nav-toggle {
        display: none !important; /* Ensure mobile toggle is hidden */
    }

    .mobile-bottom-nav {
        display: none !important; /* Ensure mobile bottom nav is hidden */
    }
}

/* --- Mobile Styles (768px and narrower) --- */
@media (max-width: 768px) {
    body {
        padding-bottom: 60px !important; /* Prevent content from being hidden by bottom nav */
    }

    .nav-menu {
        display: none !important; /* Ensure desktop menu is hidden by default */
        position: absolute !important;
        top: 70px !important; /* Adjust if navbar height is different */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
        flex-direction: column !important;
        padding: 1rem 0 !important;
    }

    .nav-menu.active {
        display: flex !important; /* Show menu when toggled */
    }

    .nav-toggle {
        display: flex !important; /* Ensure mobile toggle is visible */
    }

    .mobile-bottom-nav {
        display: flex !important; /* Ensure mobile bottom nav is visible */
    }
}




