/* SolarSu - Main Stylesheet */

/* ===== CRITICAL CSS ===== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    overflow-x: hidden; 
    background-color: #f9fafb;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== FONT AWESOME ICONS ===== */
.fa, .fas, .far, .fab, .fal, .fad {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* ===== GRADIENTS ===== */
.gradient-green { 
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%); 
}

.gradient-orange { 
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%); 
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-btn { 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    width: 56px; 
    height: 56px; 
    background: #25d366; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 8px 30px rgba(37,211,102,0.4); 
    z-index: 999; 
    transition: all 0.3s; 
}

.whatsapp-btn:hover { 
    transform: scale(1.1); 
    box-shadow: 0 12px 40px rgba(37,211,102,0.6); 
}

@media (min-width: 768px) {
    .whatsapp-btn { 
        bottom: 30px; 
        right: 30px; 
        width: 65px; 
        height: 65px; 
    }
}

/* ===== ANIMATIONS ===== */
.fade-in { 
    animation: fadeIn 0.8s ease-in; 
}

@keyframes fadeIn { 
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

/* Hero Image Animations */
.hero-image { 
    animation: floatImage 6s ease-in-out infinite;
    transition: all 0.3s ease;
    will-change: transform;
}

.hero-image:hover { 
    transform: scale(1.05) rotate(2deg);
}

@keyframes floatImage { 
    0%, 100% { 
        transform: translate3d(0, 0, 0) rotate(0deg); 
    } 
    50% { 
        transform: translate3d(0, -20px, 0) rotate(2deg); 
    } 
}

/* Badge Animations */
.badge-float { 
    animation: badgeFloat 3s ease-in-out infinite;
    will-change: transform;
}

@keyframes badgeFloat { 
    0%, 100% { 
        transform: translate3d(0, 0, 0); 
    } 
    50% { 
        transform: translate3d(0, -10px, 0); 
    } 
}

.badge-pulse { 
    animation: badgePulse 2s ease-in-out infinite;
    will-change: transform;
}

@keyframes badgePulse { 
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 10px 40px rgba(0,0,0,0.2); 
    } 
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 15px 50px rgba(0,0,0,0.3); 
    } 
}

/* Shine Effect */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s infinite;
    will-change: left;
    pointer-events: none;
}

@keyframes shine {
    0% { 
        left: -100%; 
    }
    50%, 100% { 
        left: 100%; 
    }
}

/* ===== HERO BACKGROUND EFFECTS ===== */
.hero-bg-pattern {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(249, 115, 22, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(234, 88, 12, 0.1) 0%, transparent 70%);
}

.water-drops {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    will-change: auto;
}

.drop {
    position: absolute;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(96, 165, 250, 0.1) 70%, transparent 100%);
    border-radius: 50%;
    animation: dropFall 15s infinite ease-in;
    will-change: transform, opacity;
}

@keyframes dropFall {
    0% { 
        transform: translate3d(0, -100px, 0) scale(0); 
        opacity: 0; 
    }
    10% { 
        opacity: 0.6; 
    }
    90% { 
        opacity: 0.3; 
    }
    100% { 
        transform: translate3d(0, 100vh, 0) scale(1); 
        opacity: 0; 
    }
}

.sun-rays {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(251, 191, 36, 0.05) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(249, 115, 22, 0.05) 50%, transparent 70%);
    animation: rayRotate 20s linear infinite;
    will-change: transform;
}

@keyframes rayRotate {
    0% { 
        transform: rotate(0deg) translateZ(0); 
    }
    100% { 
        transform: rotate(360deg) translateZ(0); 
    }
}

.heat-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(249, 115, 22, 0.03) 25%,
        rgba(251, 191, 36, 0.03) 50%,
        rgba(249, 115, 22, 0.03) 75%,
        transparent 100%);
    animation: heatWave 8s ease-in-out infinite;
    will-change: transform;
}

@keyframes heatWave {
    0%, 100% { 
        transform: translate3d(0, 0, 0) scaleY(1); 
    }
    50% { 
        transform: translate3d(0, -20px, 0) scaleY(1.1); 
    }
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* Make fonts bolder on mobile */
    h1, h2, h3, h4, h5, h6 {
        font-weight: 900 !important;
        letter-spacing: -0.02em;
    }
    
    .font-bold {
        font-weight: 700 !important;
    }
    
    .font-semibold {
        font-weight: 600 !important;
    }
    
    .font-black {
        font-weight: 900 !important;
    }
    
    /* Improve text readability on mobile */
    p, span, div {
        font-weight: 500;
    }
    
    /* Mobile section padding */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Mobile container padding */
    .max-w-7xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* ===== UTILITY CLASSES ===== */
.transition-all {
    transition: all 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}
