:root {
    --bg-color: #121212;
    /* Carbon Black-ish */
    --text-color: #ffffff;
    --accent-color: #00B4D8;
    /* Captery Electric Blue */
    --accent-hover: #48CAE4;
    --dark-grey: #1E1E1E;
    /* Lighter Carbon for sections */
    --glass-bg: rgba(30, 30, 30, 0.6);
    --font-main: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 6px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo-image {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
    margin: 0 auto;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

.nav-links a:not(.btn-nav) {
    color: var(--accent-color);
}

.nav-links a:not(.btn-nav):hover {
    color: var(--accent-color);
}

.btn-nav {
    padding: 10px 20px;
    background: var(--accent-color);
    color: #000000 !important;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* Dim image for text readability */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 1));
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.btn-primary {
    display: inline-block;
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Feature Sections */
.feature-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

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

.feature-section .container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
}

.feature-section.reverse .container {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.feature-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.feature-content .btn-charge {
    margin-top: 20px;
}

.feature-visual {
    flex: 1;
    border-radius: 10px;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-visual img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

#speed-visual {
    position: relative;
    min-height: 400px;
}

#speed-static-img,
#charge-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-visual:hover img {
    transform: scale(1.05);
}

/* Specs Section */
.specs-section {
    padding: 100px 0;
    background-color: var(--dark-grey);
}

.specs-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-transform: uppercase;
}

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

.spec-card {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease;
}

.spec-card:hover {
    border-color: var(--accent-color);
}

.spec-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}

.spec-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

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

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    margin-left: 20px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links a:hover {
    color: var(--text-color);
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 20px;
    }

    .nav-links {
        display: none;
        /* Simple hide for now, could add mobile menu */
    }

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

    .feature-section .container,
    .feature-section.reverse .container {
        flex-direction: column;
        text-align: center;
    }

    .feature-visual {
        width: 100%;
        height: 300px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a {
        margin: 0 10px;
    }
}

/* Battery Animation Demo */
.battery-demo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.battery-shell {
    width: 120px;
    height: 240px;
    border: 4px solid var(--text-color);
    border-radius: 10px;
    position: relative;
    margin-bottom: 30px;
    background: #000;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.1);
}

.battery-cap {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 10px;
    background: var(--text-color);
    border-radius: 4px 4px 0 0;
}

.battery-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, var(--accent-color), var(--accent-hover));
    transition: height 0.1s linear;
    box-shadow: 0 0 30px var(--accent-color);
}

.battery-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    mix-blend-mode: difference;
}

.battery-logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #fff;
}

.battery-type {
    font-size: 0.8rem;
    color: #fff;
    opacity: 0.8;
}

.charging-info {
    width: 100%;
    max-width: 200px;
    text-align: center;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.timer-text {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* Floating Battery Widget */
.floating-battery {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(18, 18, 18, 0.95);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 180, 216, 0.3);
}

@media (max-width: 768px) {
    .floating-battery {
        display: none;
    }
}

/* Navbar Battery Widget - Horizontal */
.navbar-battery {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
}

.battery-shell-horizontal {
    display: flex;
    align-items: center;
    position: relative;
}

.battery-body {
    width: 80px;
    height: 30px;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    position: relative;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.battery-cap-horizontal {
    width: 4px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 2px 0 0 2px;
    margin-left: -2px;
    z-index: 1;
}

.battery-fill-horizontal {
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, var(--accent-color), var(--accent-hover));
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--accent-color);
}

.battery-label {
    position: relative;
    z-index: 2;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #000000;
}

.timer-text-small {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--accent-color);
    min-width: 35px;
}

@media (max-width: 768px) {
    .navbar-battery {
        display: none;
    }
}

/* Battery Completion Animation */
@keyframes batteryGlow {

    0%,
    100% {
        box-shadow: 0 0 10px var(--accent-color);
    }

    50% {
        box-shadow: 0 0 30px var(--accent-color), 0 0 50px var(--accent-hover);
    }
}

.battery-charged {
    animation: batteryGlow 1.5s ease-in-out 3;
}

/* Charge Me Section */
.charge-section {
    padding: 100px 0;
    background-color: var(--bg-color);
    text-align: center;
}

.charge-section h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.charge-demo {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#charge-gif {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.charge-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 400px;
    background: var(--glass-bg);
    border-radius: 10px;
    border: 2px solid var(--accent-color);
}

.btn-charge {
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
}

.btn-charge:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 180, 216, 0.5);
}

.btn-charge:active {
    transform: translateY(0);
}

/* Products Section */
.products-section {
    padding: 100px 50px;
    background-color: #1a1a1a;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: #252525;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-card h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.product-card p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Electric Arc from Battery to Cursor */
#electric-arc-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.arc-path {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 4;
    filter: url(#glow);
    opacity: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.arc-path-secondary {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    opacity: 0.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes arcFlicker {
    0% {
        opacity: 1;
        stroke-width: 4;
        filter: url(#glow) drop-shadow(0 0 8px var(--accent-color));
    }
    
    20% {
        opacity: 0.7;
        stroke-width: 3;
    }
    
    40% {
        opacity: 1;
        stroke-width: 5;
        filter: url(#glow) drop-shadow(0 0 12px var(--accent-color));
    }
    
    60% {
        opacity: 0.8;
        stroke-width: 3.5;
    }
    
    80% {
        opacity: 1;
        stroke-width: 4.5;
        filter: url(#glow) drop-shadow(0 0 10px var(--accent-color));
    }
    
    100% {
        opacity: 0.9;
        stroke-width: 4;
    }
}

.arc-path {
    animation: arcFlicker 0.1s ease-in-out infinite;
}