:root {
    --primary: #EA3338;
    --primary-glow: rgba(234, 51, 56, 0.5);
    --secondary: #00F0FF;
    --secondary-glow: rgba(0, 240, 255, 0.5);
    --bg-color: #0b0c10;
    --bg-gradient: linear-gradient(135deg, #0b0c10 0%, #16102b 50%, #0d1b2a 100%);
    --surface-color: #1a1c29;
    --text-color: #ffffff;
    --text-muted: #a9b1d6;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    --transition: all 0.3s ease;
}

[data-theme="light"] {
    --primary: #EA3338;
    --primary-glow: rgba(234, 51, 56, 0.3);
    --secondary: #00BFFF;
    --secondary-glow: rgba(0, 191, 255, 0.3);
    --bg-color: #f0f4f8;
    --bg-gradient: linear-gradient(135deg, #f6f8fd 0%, #f1f5f9 100%);
    --surface-color: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    overflow-x: hidden;
    transition: background-color 0.5s, color 0.5s;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-color);
}

.section-title span {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Utility */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.py-5 { padding-top: 5rem; padding-bottom: 5rem; }

/* Loader */
#loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s;
}
.loader-spinner {
    width: 60px; height: 60px;
    border: 5px solid var(--surface-color);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Navbar */
header {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}
header.scrolled {
    background: var(--surface-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
    padding: 1rem 0;
}
[data-theme="light"] header.scrolled {
    background: var(--surface-color);
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    margin-right: auto;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo i { color: var(--secondary); text-shadow: 0 0 10px var(--secondary-glow); }

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}
.light-logo {
    display: none;
}
[data-theme="light"] .dark-logo {
    display: none;
}
[data-theme="light"] .light-logo {
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; box-shadow: 0 0 10px var(--primary-glow); }
.nav-links a:hover { color: var(--primary); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}
#theme-toggle:hover { color: var(--primary); transform: scale(1.1); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
}
.btn-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: inset 0 0 0 var(--primary), 0 0 10px var(--primary-glow);
}
.btn-primary:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-3px);
}
.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    box-shadow: inset 0 0 0 var(--secondary), 0 0 10px var(--secondary-glow);
}
.btn-secondary:hover {
    background: var(--secondary);
    color: #000;
    box-shadow: 0 0 20px var(--secondary-glow);
    transform: translateY(-3px);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(10,10,10,0.8), rgba(10,10,10,0.9)), url('../images/hero_banner.png') no-repeat center center/cover;
}
[data-theme="light"] #hero {
    background: linear-gradient(rgba(244,247,246,0.8), rgba(244,247,246,0.9)), url('../images/hero_banner.png') no-repeat center center/cover;
}

/* Page Banner */
.page-banner {
    padding: 150px 0 80px;
    background: linear-gradient(rgba(11, 12, 16, 0.8), rgba(11, 12, 16, 0.95)), url('../images/hero_banner.png') no-repeat center center/cover;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}
[data-theme="light"] .page-banner {
    background: linear-gradient(rgba(240, 244, 248, 0.8), rgba(240, 244, 248, 0.95)), url('../images/hero_banner.png') no-repeat center center/cover;
}
.page-banner-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}
.page-banner-title span {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}
.hero-particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}
.hero-title span { color: var(--primary); text-shadow: 0 0 15px var(--primary-glow); }
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    animation: slideUp 1s ease 0.3s forwards;
    opacity: 0;
    transform: translateY(30px);
}
.hero-btns {
    display: flex;
    gap: 1.5rem;
    animation: slideUp 1s ease 0.6s forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}
.about-img img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}
.about-img:hover img { transform: scale(1.05); }
.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}
.about-features {
    list-style: none;
    margin-top: 2rem;
}
.about-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}
.about-features i { color: var(--secondary); font-size: 1.2rem; }

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.product-card {
    background: var(--surface-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
[data-theme="light"] .product-card { border: 1px solid rgba(0,0,0,0.1); }

.product-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, transparent, var(--primary-glow), transparent);
    z-index: -1; transform: translateY(100%); transition: var(--transition);
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.product-card:hover::before { transform: translateY(0); }

.product-icon {
    font-size: 3rem; color: var(--primary); margin-bottom: 1.5rem;
    transition: var(--transition);
}
.product-card:hover .product-icon { transform: scale(1.1); color: var(--text-color); }

.product-img {
    width: 100%; height: 150px; object-fit: contain; margin-bottom: 1.5rem; border-radius: 10px;
}

.product-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.product-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* Why Choose Us */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem;
}
.feature-box {
    display: flex; gap: 1.5rem; padding: 1.5rem;
    background: var(--surface-color); border-radius: 15px;
    transition: var(--transition);
}
.feature-box:hover { transform: translateX(10px); background: rgba(0, 229, 255, 0.05); }
.feature-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(57, 255, 20, 0.1); color: var(--secondary);
    display: flex; justify-content: center; align-items: center; font-size: 1.5rem;
    flex-shrink: 0;
}
.feature-content h4 { margin-bottom: 0.5rem; }
.feature-content p { color: var(--text-muted); font-size: 0.9rem; }

/* Battery Manufacturing */
.battery-section {
    background: linear-gradient(to right, var(--surface-color), var(--bg-color));
    border-top: 1px solid rgba(0, 229, 255, 0.2);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    position: relative; overflow: hidden;
}
.battery-content { position: relative; z-index: 2; }
.battery-graphics { position: absolute; right: -10%; top: 50%; transform: translateY(-50%); opacity: 0.1; font-size: 40rem; color: var(--primary); z-index: 1; }

/* Stats */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center;
}
.stat-item { padding: 2rem; background: var(--surface-color); border-radius: 15px; }
.stat-number { font-size: 3rem; font-family: var(--font-heading); color: var(--primary); font-weight: 900; margin-bottom: 0.5rem; text-shadow: 0 0 15px var(--primary-glow); }
.stat-label { color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* Forms */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.form-group { margin-bottom: 1.5rem; }
.form-control {
    width: 100%; padding: 1rem 1.5rem;
    background: var(--surface-color); border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-color); border-radius: 8px; font-family: var(--font-main);
    transition: var(--transition);
}
[data-theme="light"] .form-control { border: 1px solid rgba(0,0,0,0.2); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 10px var(--primary-glow); }
textarea.form-control { height: 150px; resize: vertical; }

/* Contact Info */
.contact-info-item { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.contact-icon { width: 50px; height: 50px; border-radius: 50%; background: rgba(0, 229, 255, 0.1); color: var(--primary); display: flex; justify-content: center; align-items: center; font-size: 1.2rem; }
.map-container { width: 100%; height: 250px; background: var(--surface-color); border-radius: 15px; margin-top: 2rem; display: flex; justify-content: center; align-items: center; color: var(--text-muted); border: 1px solid rgba(255,255,255,0.05); }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card { background: var(--surface-color); padding: 2rem; border-radius: 15px; position: relative; }
.quote-icon { position: absolute; top: 1rem; right: 1.5rem; font-size: 3rem; color: rgba(255,255,255,0.05); }
[data-theme="light"] .quote-icon { color: rgba(0,0,0,0.05); }
.testi-text { font-style: italic; color: var(--text-muted); margin-bottom: 1.5rem; position: relative; z-index: 2; }
.testi-author { display: flex; align-items: center; gap: 1rem; }
.testi-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); }
.author-info h5 { margin-bottom: 0.2rem; }
.author-info span { color: var(--primary); font-size: 0.8rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.gallery-item { border-radius: 10px; overflow: hidden; height: 200px; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; opacity: 0; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: #fff; font-size: 2rem; }

/* Footer */
footer { background: var(--surface-color); padding: 4rem 0 2rem; border-top: 1px solid rgba(255,255,255,0.05); }
[data-theme="light"] footer { background: var(--surface-color); border-top: 1px solid rgba(0,0,0,0.1); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { color: var(--text-color); margin-bottom: 1.5rem; position: relative; padding-bottom: 0.5rem; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.social-icons { display: flex; gap: 1rem; margin-top: 1rem; }
.social-icons a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; justify-content: center; align-items: center; color: var(--text-color); text-decoration: none; transition: var(--transition); }
[data-theme="light"] .social-icons a { background: rgba(0,0,0,0.05); }
.social-icons a:hover { background: var(--primary); color: #000; transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); font-size: 0.9rem; }
[data-theme="light"] .footer-bottom { border-top: 1px solid rgba(0,0,0,0.1); }

/* Floating elements */
.floating-whatsapp { position: fixed; bottom: 30px; left: 30px; width: 60px; height: 60px; background: #25d366; color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2rem; text-decoration: none; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 99; transition: var(--transition); animation: pulse 2s infinite; }
.floating-whatsapp:hover { transform: scale(1.1); }

.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--primary); color: #000; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; text-decoration: none; box-shadow: 0 4px 15px var(--primary-glow); z-index: 99; opacity: 0; visibility: hidden; transition: var(--transition); border: none; cursor: pointer; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #fff; transform: translateY(-5px); }

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

/* Animations */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .battery-graphics { display: none; }
}
@media (max-width: 768px) {
    .nav-links { position: fixed; top: 0; right: -100%; width: 70%; height: 100vh; background: var(--surface-color); flex-direction: column; justify-content: center; align-items: center; transition: var(--transition); z-index: 1001; }
    .nav-links.active { right: 0; box-shadow: -10px 0 30px rgba(0,0,0,0.5); }
    .mobile-menu-btn { display: block; z-index: 1002; position: relative; }
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
}
