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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

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

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

h1 {
    font-size: 3.5rem;
    color: #1d1d1f;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    color: #1d1d1f;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    color: #1d1d1f;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

h4 {
    font-size: 1.2rem;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background-color: rgba(29, 29, 31, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
}

.logo:hover {
    color: #0071e3;
}

.navbar.scrolled .logo {
    color: #1d1d1f;
}

.navbar-right {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0071e3;
}

.navbar.scrolled .nav-link {
    color: #1d1d1f;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn.primary {
    background-color: #0071e3;
    color: white;
}

.btn.primary:hover {
    background-color: #0077ed;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.btn.secondary {
    background-color: rgba(0, 0, 0, 0.08);
    color: #1d1d1f;
}

.btn.secondary:hover {
    background-color: rgba(0, 0, 0, 0.12);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg, #1d1d1f 0%, #2d2d2d 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
}

.hero-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.15;
}

.battery-container {
    position: relative;
    width: 200px;
    height: 300px;
}

.battery-body {
    position: relative;
    width: 120px;
    height: 200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
}

.battery-cap {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
    border-radius: 5px 5px 0 0;
}

.battery-level {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    overflow: hidden;
}

.energy-wave {
    position: absolute;
    bottom: -50px;
    left: -50%;
    width: 200%;
    height: 100px;
    background: linear-gradient(180deg, rgba(0, 113, 227, 0.6) 0%, rgba(0, 113, 227, 0.3) 100%);
    border-radius: 50%;
    animation: wave 3s ease-in-out infinite;
}

.energy-wave:nth-child(1) {
    animation-delay: 0s;
    opacity: 0.8;
}

.energy-wave:nth-child(2) {
    animation-delay: 1s;
    opacity: 0.6;
}

.energy-wave:nth-child(3) {
    animation-delay: 2s;
    opacity: 0.4;
}

.energy-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #0071e3;
    border-radius: 50%;
    opacity: 0;
    animation: particle 4s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 40%;
    animation-delay: 0.8s;
}

.particle:nth-child(3) {
    left: 60%;
    animation-delay: 1.6s;
}

.particle:nth-child(4) {
    left: 80%;
    animation-delay: 2.4s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 3.2s;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes particle {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    20% {
        opacity: 1;
        transform: translateY(-50px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-200px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-250px) scale(0);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-size: 4.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.03em;
    animation: fadeIn 1s ease-out;
}

.hero p {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeIn 1s ease-out 0.6s both;
}

.hero-buttons .btn.primary {
    background-color: #0071e3;
    color: white;
}

.hero-buttons .btn.primary:hover {
    background-color: #0077ed;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.hero-buttons .btn.secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-buttons .btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: #fff;
}

.about-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.feature-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background-color: #f5f5f7;
    border-radius: 16px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

.feature-item.visible {
    opacity: 1;
    transform: scale(1);
}

.feature-item:hover {
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: scale(1.02);
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1d1d1f;
    transition: color 0.3s ease;
}

.feature-item:hover h3 {
    color: #0071e3;
}

.feature-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Products Section */
.products {
    padding: 100px 0;
    background-color: #f5f5f7;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.product-item {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

.product-item.visible {
    opacity: 1;
    transform: scale(1);
}

.product-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: scale(1.02);
}

.product-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #f5f5f7;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-item h3, .product-item p {
    padding: 0 1.5rem;
}

.product-item h3 {
    margin-top: 1.5rem;
    font-size: 1.4rem;
    color: #1d1d1f;
    transition: color 0.3s ease;
}

.product-item:hover h3 {
    color: #0071e3;
}

.product-item p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: #fff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.service-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background-color: #f5f5f7;
    border-radius: 16px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

.service-item.visible {
    opacity: 1;
    transform: scale(1);
}

.service-item:hover {
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: scale(1.02);
}

.service-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1d1d1f;
    transition: color 0.3s ease;
}

.service-item:hover h3 {
    color: #0071e3;
}

.service-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: #f5f5f7;
}

.contact-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}

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

.contact-card {
    background-color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    text-align: center;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

.contact-card.visible {
    opacity: 1;
    transform: scale(1);
}

.contact-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: scale(1.02);
}

.contact-card h3 {
    margin-bottom: 1rem;
    color: #1d1d1f;
    transition: color 0.3s ease;
}

.contact-card:hover h3 {
    color: #0071e3;
}

.contact-card p {
    margin-bottom: 1.5rem;
    color: #555;
}

.contact-link {
    display: inline-block;
    color: #0071e3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.contact-link:hover {
    color: #0077ed;
}

/* Footer */
.footer {
    background-color: #1d1d1f;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #86868b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

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

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

.footer-section ul li a {
    color: #86868b;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #86868b;
    font-size: 0.85rem;
}

.footer-link {
    color: #86868b;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

.footer-link:hover {
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.4rem;
    }
    
    .battery-container {
        width: 150px;
        height: 225px;
    }
    
    .battery-body {
        width: 90px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .navbar-right {
        display: none;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
    }
    
    .hero-animation {
        display: none;
    }
    
    .about, .products, .services, .contact {
        padding: 80px 0;
    }
    
    .about-subtitle, .contact-subtitle {
        font-size: 1.1rem;
    }
    
    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .feature-item, .service-item, .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .navbar .container {
        padding: 0.875rem 15px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-buttons {
        gap: 0.875rem;
    }
    
    .hero-buttons .btn {
        font-size: 0.95rem;
        padding: 0.875rem 1.25rem;
    }
    
    .about, .products, .services, .contact {
        padding: 60px 0;
    }
    
    .about-subtitle, .contact-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .feature-item, .service-item, .contact-card {
        padding: 1.75rem 1.25rem;
    }
    
    .product-item h3, .feature-item h3, .service-item h3, .contact-card h3 {
        font-size: 1.2rem;
    }
    
    .product-item p, .feature-item p, .service-item p, .contact-card p {
        font-size: 0.9rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section p, .footer-section ul li a {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.75rem;
        line-height: 1.5;
    }
    
    .footer-link {
        display: inline-block;
        margin: 0.25rem 0.5rem;
    }
}

@media (max-width: 375px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.125rem;
    }
    
    .about, .products, .services, .contact {
        padding: 50px 0;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f7;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Selection Styling */
::selection {
    background-color: rgba(0, 113, 227, 0.2);
    color: #1d1d1f;
}

/* Focus Styling */
*:focus {
    outline: 2px solid #0071e3;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    .btn {
        transition: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .feature-item, .product-item, .service-item, .contact-card {
        transition: none;
    }
    
    .feature-item:active, .product-item:active, .service-item:active, .contact-card:active {
        transform: scale(0.98);
    }
    
    .nav-link {
        padding: 0.5rem;
    }
    
    .contact-link {
        padding: 0.5rem;
        display: inline-block;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .about, .products, .services, .contact {
        padding: 60px 0;
    }
}