/* ============================================
   NIR SOLAR - MAIN STYLESHEET
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #f59e0b;
    --primary-dark: #d97706;
    --primary-light: #fbbf24;
    --secondary-color: #1e3a5f;
    --secondary-dark: #0f172a;
    --secondary-light: #334155;
    --accent-color: #10b981;
    --accent-dark: #059669;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --gradient-solar: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #dc2626 100%);
    --gradient-dark: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.3);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Heebo', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: var(--gradient-solar);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-white);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-white {
    background: var(--text-white);
    color: var(--secondary-color);
}

.btn-white:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    border-color: var(--text-white);
    color: var(--text-white);
}

.btn-outline-white:hover {
    background: var(--text-white);
    color: var(--secondary-color);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.logo-icon {
    font-size: 2rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.8));
    }
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-solar);
    transition: var(--transition-normal);
}

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

.nav-buttons {
    display: flex;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e3a5f 100%);
    z-index: -2;
}

.hero-bg::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"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(245,158,11,0.1)" stroke-width="0.5"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(245,158,11,0.1)" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(245,158,11,0.1)" stroke-width="0.5"/></svg>');
    background-size: 300px;
    opacity: 0.5;
    animation: float-bg 20s linear infinite;
}

@keyframes float-bg {
    from { transform: translateX(0) translateY(0); }
    to { transform: translateX(-300px) translateY(-300px); }
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-white);
}

.hero h1 {
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    animation: fade-up 0.8s ease forwards;
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 32px;
    opacity: 0;
    transform: translateY(30px);
    animation: fade-up 0.8s ease 0.2s forwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fade-up 0.8s ease 0.4s forwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fade-up 0.8s ease 0.6s forwards;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-plus {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    animation: bounce 2s ease-in-out infinite;
}

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

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: 8px;
}

/* Trust Section */
.trust-section {
    background: var(--bg-light);
    padding: 30px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.badge-icon {
    font-size: 1.5rem;
}

.badge span {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Section Styling */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header.light {
    color: var(--text-white);
}

.section-header.light h2 {
    color: var(--text-white);
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.8);
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-header.light .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: var(--bg-white);
}

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

.service-card {
    position: relative;
    padding: 40px 30px;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-solar);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

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

.service-card.featured {
    background: var(--gradient-dark);
    color: var(--text-white);
    transform: scale(1.05);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.service-card.featured p,
.service-card.featured li {
    color: rgba(255, 255, 255, 0.8);
}

.service-card.featured::before {
    background: var(--primary-color);
    transform: scaleX(1);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: -35px;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 6px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card p {
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
    margin-bottom: 24px;
}

.service-features li {
    padding: 8px 0;
    padding-right: 28px;
    position: relative;
    color: var(--text-light);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.service-card.featured .service-features li::before {
    color: var(--primary-color);
}

/* Sectors Section */
.sectors-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.sector-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.sector-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition-slow);
}

.sector-agriculture {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.sector-commercial {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.sector-municipal {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

.sector-residential {
    background: linear-gradient(135deg, #dc2626 0%, #f87171 100%);
}

.sector-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.sector-card:hover .sector-image {
    transform: scale(1.1);
}

.sector-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 1;
    color: var(--text-white);
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.sector-card:hover .sector-content {
    transform: translateY(0);
}

.sector-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.sector-content p {
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: var(--transition-normal);
}

.sector-card:hover .sector-content p {
    opacity: 1;
}

/* Advantages Section */
.advantages-section {
    padding: 100px 0;
    background: var(--gradient-dark);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.advantage-card {
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
    color: var(--text-white);
}

.advantage-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.advantage-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-white);
}

.advantage-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: var(--bg-light);
    z-index: 0;
}

.process-step {
    position: relative;
    text-align: center;
    z-index: 1;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--gradient-solar);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Projects Section */
.projects-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: var(--transition-slow);
}

.project-1 {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.project-2 {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.project-3 {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-info {
    padding: 24px;
    background: var(--bg-white);
}

.project-type {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 12px;
}

.project-info h3 {
    margin-bottom: 12px;
}

.project-stats {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.projects-cta {
    text-align: center;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: var(--gradient-dark);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.testimonial-stars {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-solar);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: var(--text-white);
    font-weight: 600;
}

.author-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 24px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-features {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 28px;
    height: 28px;
    background: var(--accent-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.about-image {
    position: relative;
}

.about-stats-card {
    background: var(--gradient-dark);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    color: var(--text-white);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.about-stat {
    margin-bottom: 30px;
}

.about-stat:last-child {
    margin-bottom: 0;
}

.about-stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.about-stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Storage Section */
.storage-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    position: relative;
    overflow: hidden;
}

.storage-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.storage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.storage-text {
    color: var(--text-white);
}

.storage-text h2 {
    color: var(--text-white);
    margin-bottom: 24px;
}

.storage-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
}

.storage-features {
    margin-top: 32px;
}

.storage-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
}

.storage-feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
}

.storage-feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.storage-feature h4 {
    color: var(--text-white);
    margin-bottom: 6px;
}

.storage-feature p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.storage-visual {
    position: relative;
}

.battery-animation {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    text-align: center;
}

.battery-icon {
    font-size: 8rem;
    margin-bottom: 20px;
    animation: battery-pulse 3s ease-in-out infinite;
}

@keyframes battery-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.5));
    }
}

.battery-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    color: var(--text-white);
}

.battery-stat {
    text-align: center;
}

.battery-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.battery-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Calculator Section */
.calculator-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.calculator-info {
    padding: 60px;
    background: var(--gradient-dark);
    color: var(--text-white);
}

.calculator-info h2 {
    color: var(--text-white);
    margin-bottom: 16px;
}

.calculator-info > p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.calculator-benefits {
    list-style: none;
}

.calculator-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-benefits li:last-child {
    border-bottom: none;
}

.benefit-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.calculator-form {
    padding: 60px;
}

.calculator-form h3 {
    margin-bottom: 24px;
}

.calc-input-group {
    margin-bottom: 24px;
}

.calc-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.calc-input-group input,
.calc-input-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.calc-input-group input:focus,
.calc-input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.range-slider {
    position: relative;
    margin-top: 10px;
}

.range-slider input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
    border-radius: 4px;
    outline: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--gradient-solar);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.range-value {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 10px;
}

.storage-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 26px;
    transition: var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-color);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.storage-toggle-label {
    font-weight: 600;
    color: var(--text-dark);
}

.calc-results {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    display: none;
}

.calc-results.show {
    display: block;
    animation: fade-up 0.5s ease;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    color: var(--text-light);
}

.result-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.result-value.highlight {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-solar);
    text-align: center;
}

.cta-content h2 {
    color: var(--text-white);
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.contact-text a,
.contact-text span {
    font-weight: 600;
    color: var(--text-dark);
}

.contact-text a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
}

.checkbox-label input {
    width: auto;
    margin-top: 3px;
}

/* Footer */
.footer {
    background: var(--secondary-dark);
    color: var(--text-white);
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin: 20px 0;
}

.footer-brand .logo-text {
    color: var(--text-white);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    font-size: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

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

    .storage-content {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
    }

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

    .service-card.featured {
        transform: none;
    }

    .process-timeline {
        grid-template-columns: 1fr 1fr;
    }

    .process-timeline::before {
        display: none;
    }

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

    .about-features {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .process-timeline {
        grid-template-columns: 1fr;
    }

    .calculator-info,
    .calculator-form {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 24px;
    }
}

/* Animations on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Battery Animation Bar */
.battery-bar {
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.battery-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7);
    border-radius: 20px;
    animation: charge 3s ease-in-out infinite;
    position: relative;
}

.battery-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s linear infinite;
}

@keyframes charge {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

@keyframes shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

/* Result Grid */
.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.result-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: white;
    border-radius: var(--border-radius);
    text-align: center;
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.result-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.result-value.highlight {
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* ============================================
   ADVANCED INTRO ANIMATION
   ============================================ */

/* Intro Screen */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    overflow: hidden;
}

.intro-screen.fade-out {
    animation: introFadeOut 1s ease forwards;
}

@keyframes introFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* Animated Background */
.intro-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a0f1a 0%, #1a2744 30%, #0d1929 70%, #050a12 100%);
}

.intro-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    animation: bgPulse 4s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Solar Rays Background */
.solar-rays {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
        transparent 0deg,
        rgba(245, 158, 11, 0.03) 10deg,
        transparent 20deg,
        rgba(245, 158, 11, 0.03) 30deg,
        transparent 40deg,
        rgba(245, 158, 11, 0.03) 50deg,
        transparent 60deg
    );
    animation: rotateRays 30s linear infinite;
}

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

/* Grid Overlay */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(245, 158, 11, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
    opacity: 0.5;
}

@keyframes gridMove {
    from { transform: perspective(500px) rotateX(60deg) translateY(0); }
    to { transform: perspective(500px) rotateX(60deg) translateY(60px); }
}

/* Particles */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.particle-energy {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.8), transparent);
    animation: floatUp 4s ease-out infinite;
}

.particle-solar {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.8), transparent);
    animation: floatUp 5s ease-out infinite;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.5);
    }
}

/* Intro Content */
.intro-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* Sun Animation */
.sun-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
    animation: sunFloat 3s ease-in-out infinite;
}

@keyframes sunFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

.sun-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    border-radius: 50%;
    box-shadow:
        0 0 60px rgba(245, 158, 11, 0.8),
        0 0 100px rgba(245, 158, 11, 0.5),
        0 0 150px rgba(245, 158, 11, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    animation: sunPulse 2s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% {
        box-shadow:
            0 0 60px rgba(245, 158, 11, 0.8),
            0 0 100px rgba(245, 158, 11, 0.5),
            0 0 150px rgba(245, 158, 11, 0.3),
            inset 0 0 30px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow:
            0 0 80px rgba(245, 158, 11, 1),
            0 0 130px rgba(245, 158, 11, 0.7),
            0 0 180px rgba(245, 158, 11, 0.4),
            inset 0 0 40px rgba(255, 255, 255, 0.4);
    }
}

.sun-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #fff7ed 0%, #fef3c7 50%, #fbbf24 100%);
    border-radius: 50%;
}

.sun-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
}

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

/* Sun Rays Animated */
.sun-rays-animated {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    animation: rotateSunRays 10s linear infinite;
}

.sun-rays-animated::before,
.sun-rays-animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 150px;
    background: linear-gradient(to bottom, rgba(245, 158, 11, 0.8), transparent 40%, transparent 60%, rgba(245, 158, 11, 0.8));
}

.sun-rays-animated::after {
    transform: translateX(-50%) rotate(90deg);
}

@keyframes rotateSunRays {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Intro Logo */
.intro-logo {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

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

.logo-main {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    text-shadow:
        0 0 20px rgba(245, 158, 11, 0.5),
        0 0 40px rgba(245, 158, 11, 0.3);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.logo-tagline {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* Energy Flow Animation */
.energy-flow-container {
    width: 100%;
    max-width: 400px;
    height: 100px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 1s ease 0.8s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.energy-path {
    width: 100%;
    height: 100%;
}

.flow-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawPath 2s ease forwards 1s;
}

@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

.energy-dot {
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.8));
}

/* Battery 3D Animation */
.storage-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

.battery-3d {
    position: relative;
    perspective: 1000px;
}

.battery-front {
    position: relative;
    transform: rotateY(-5deg) rotateX(5deg);
    transform-style: preserve-3d;
}

.battery-terminal {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 12px;
    background: linear-gradient(to bottom, #6b7280, #4b5563);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
}

.battery-case {
    position: relative;
    width: 120px;
    height: 200px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 50%, #0f172a 100%);
    border: 3px solid #374151;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.battery-charge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    right: 6px;
    height: 0%;
    background: linear-gradient(to top,
        #10b981 0%,
        #34d399 40%,
        #6ee7b7 70%,
        #a7f3d0 100%
    );
    border-radius: 6px;
    transition: height 0.1s ease;
    overflow: hidden;
}

.charge-waves {
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.1) 20px,
        rgba(255, 255, 255, 0.1) 40px
    );
    animation: waveMove 2s linear infinite;
}

@keyframes waveMove {
    from { transform: translateX(0); }
    to { transform: translateX(40px); }
}

.battery-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.lightning-bolt {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    color: #fbbf24;
    animation: boltPulse 1s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.8));
}

@keyframes boltPulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.6; transform: translateX(-50%) scale(1.1); }
}

.battery-reflection {
    position: absolute;
    bottom: -30px;
    left: 10px;
    right: 10px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.3), transparent);
    filter: blur(10px);
    border-radius: 50%;
    opacity: 0.5;
}

/* Energy Stats */
.energy-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #10b981;
    font-family: 'Heebo', sans-serif;
}

.stat-unit {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Loading Progress */
.loading-progress {
    width: 100%;
    max-width: 400px;
    margin-top: 50px;
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
}

.progress-bar {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f59e0b, #10b981, #06b6d4);
    border-radius: 10px;
    transition: width 0.1s ease;
    position: relative;
}

.progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: progressGlow 1.5s ease-in-out infinite;
}

@keyframes progressGlow {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(400px); }
}

.loading-text {
    text-align: center;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Skip Button */
.skip-intro {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-family: 'Heebo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.skip-intro:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-main {
        font-size: 2.5rem;
    }

    .logo-tagline {
        font-size: 1rem;
    }

    .sun-container {
        width: 100px;
        height: 100px;
    }

    .sun-core {
        width: 50px;
        height: 50px;
    }

    .battery-case {
        width: 100px;
        height: 160px;
    }

    .energy-stats {
        gap: 15px;
    }

    .stat-item {
        padding: 10px 15px;
    }

    .stat-value {
        font-size: 1.3rem;
    }
}

/* ============================================
   OLD LOADING SCREEN (BACKUP)
   ============================================ */

/* Loading Screen Animation */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.8s ease, transform 0.8s ease;
    overflow: hidden;
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
    animation: bg-pulse 4s ease-in-out infinite;
}

@keyframes bg-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.loading-screen.hide {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.loader-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.loader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    animation: logo-float 2s ease-in-out infinite;
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.loader-text {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

.loader-sun {
    font-size: 4rem;
    animation: sun-rotate 3s linear infinite;
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.8));
}

@keyframes sun-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Battery Animation */
.loader-battery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-battery {
    display: flex;
    align-items: center;
    gap: 0;
}

.battery-head {
    width: 12px;
    height: 40px;
    background: linear-gradient(to bottom, #4a5568, #2d3748);
    border-radius: 0 6px 6px 0;
    margin-right: -2px;
}

.battery-body {
    width: 200px;
    height: 80px;
    background: linear-gradient(to bottom, #2d3748, #1a202c);
    border: 4px solid #4a5568;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 30px rgba(0, 0, 0, 0.5),
        inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.battery-level {
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    height: 0%;
    background: linear-gradient(to top,
        #10b981 0%,
        #34d399 30%,
        #6ee7b7 60%,
        #a7f3d0 100%
    );
    border-radius: 6px;
    transition: height 0.1s ease;
    box-shadow:
        0 0 20px rgba(16, 185, 129, 0.6),
        0 0 40px rgba(16, 185, 129, 0.3);
}

.battery-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.4) 0%,
        transparent 100%
    );
    border-radius: 6px 6px 0 0;
}

.battery-bolt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    z-index: 2;
    animation: bolt-flash 0.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.8));
}

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

.loader-percentage {
    font-size: 2.5rem;
    font-weight: 800;
    color: #10b981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    font-family: 'Heebo', sans-serif;
}

.loader-text-animation {
    margin-top: 30px;
}

.loading-word {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    animation: text-fade 2s ease-in-out infinite;
}

@keyframes text-fade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Energy Particles */
.energy-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.energy-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #10b981, transparent);
    border-radius: 50%;
    animation: particle-rise 3s ease-out infinite;
}

@keyframes particle-rise {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1);
    }
}

/* Energy Flow Lines */
.energy-flow {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to top, transparent, #10b981, transparent);
    animation: flow-up 2s linear infinite;
}

@keyframes flow-up {
    0% { transform: translateY(100vh); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-100px); opacity: 0; }
}

/* Solar Panel Grid Animation in Loader */
.solar-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(245, 158, 11, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    from { transform: perspective(500px) rotateX(60deg) translateY(0); }
    to { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

/* Loading Complete Animation */
.loading-screen.complete .loader-battery {
    animation: battery-complete 0.5s ease forwards;
}

@keyframes battery-complete {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.loading-screen.complete .battery-level {
    background: linear-gradient(to top,
        #f59e0b 0%,
        #fbbf24 50%,
        #fcd34d 100%
    );
    box-shadow:
        0 0 30px rgba(245, 158, 11, 0.8),
        0 0 60px rgba(245, 158, 11, 0.4);
}

.loading-screen.complete .loader-percentage {
    color: #f59e0b;
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.8);
}

/* Old loading spinner (backup) */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--secondary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hide {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(245, 158, 11, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
