/* Smart Battery House - Main Styles */

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

:root { 
    --primary: #00f0ff; 
    --secondary: #0088ff; 
    --accent: #ff3366; 
    --dark: #0a0e1a; 
    --darker: #05070f; 
    --light: #e8f4f8; 
    --gray: #8b95a5; 
}

body { 
    font-family: 'Montserrat', sans-serif; 
    background: var(--darker); 
    color: var(--light); 
    overflow-x: hidden; 
    line-height: 1.6; 
}

html { 
    scroll-behavior: smooth; 
}

/* Background Animation */
.bg-animation { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1; 
    opacity: 0.03; 
    background: linear-gradient(90deg, var(--primary) 1px, transparent 1px), 
                linear-gradient(0deg, var(--primary) 1px, transparent 1px); 
    background-size: 50px 50px; 
    animation: gridMove 20s linear infinite; 
}

@keyframes gridMove { 
    0% { transform: translate(0, 0); } 
    100% { transform: translate(50px, 50px); } 
}

/* Scroll Indicator */
.scroll-indicator { 
    position: fixed; 
    top: 0; 
    left: 0; 
    height: 4px; 
    background: linear-gradient(90deg, var(--primary), var(--secondary)); 
    z-index: 9999; 
    transition: width 0.1s ease; 
}

/* Navigation */
nav { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    padding: 1.5rem 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    z-index: 1000; 
    background: rgba(10, 14, 26, 0.8); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid rgba(0, 240, 255, 0.1); 
}

.logo-img {
    height: 60px;
}

.logo { 
    font-family: 'Exo 2', sans-serif; 
    font-size: 1.8rem; 
    font-weight: 900; 
    letter-spacing: 2px; 
    background: linear-gradient(135deg, var(--primary), var(--secondary)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}

.nav-links { 
    display: flex; 
    gap: 3rem; 
    list-style: none; 
}

.nav-links a { 
    color: var(--gray); 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 1.1rem; 
    letter-spacing: 1px; 
    transition: all 0.3s ease; 
    position: relative; 
}

.nav-links a::after { 
    content: ''; 
    position: absolute; 
    bottom: -5px; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: var(--primary); 
    transition: width 0.3s ease; 
}

.nav-links a:hover { 
    color: var(--primary); 
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 0 5%; 
    position: relative; 
}

.hero-content { 
    max-width: 1400px; 
    width: 100%; 
}

.hero-label { 
    font-size: 1rem; 
    font-weight: 600; 
    letter-spacing: 4px; 
    color: var(--primary); 
    margin-bottom: 1rem; 
    text-transform: uppercase; 
    animation: slideIn 0.8s ease forwards; 
    opacity: 0; 
}

.hero-title { 
    font-family: 'Exo 2', sans-serif; 
    font-size: clamp(3rem, 8vw, 6rem); 
    font-weight: 900; 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
    background: linear-gradient(135deg, #ffffff, var(--primary), var(--secondary)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
    animation: slideIn 0.8s ease 0.2s forwards; 
    opacity: 0; 
}

.hero-subtitle { 
    font-size: clamp(1.2rem, 2.5vw, 1.8rem); 
    color: var(--gray); 
    max-width: 800px; 
    margin-bottom: 3rem; 
    animation: slideIn 0.8s ease 0.4s forwards; 
    opacity: 0; 
}

.hero-stats { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 2rem; 
    margin-top: 4rem; 
}

.stat-item { 
    padding: 2rem; 
    background: rgba(0, 240, 255, 0.03); 
    border: 1px solid rgba(0, 240, 255, 0.1); 
    border-radius: 8px; 
    transition: all 0.3s ease; 
    animation: fadeInUp 0.8s ease forwards; 
    opacity: 0; 
}

.stat-item:nth-child(1) { animation-delay: 0.6s; } 
.stat-item:nth-child(2) { animation-delay: 0.7s; } 
.stat-item:nth-child(3) { animation-delay: 0.8s; }

.stat-item:hover { 
    transform: translateY(-5px); 
    border-color: var(--primary); 
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2); 
}

.stat-number { 
    font-family: 'Exo 2', sans-serif; 
    font-size: 3.5rem; 
    font-weight: 900; 
    color: var(--primary); 
    line-height: 1; 
    margin-bottom: 0.5rem; 
}

.stat-label { 
    font-size: 1.1rem; 
    color: var(--gray); 
    font-weight: 500; 
}

/* Animations */
@keyframes slideIn { 
    to { opacity: 1; transform: translateY(0); } 
    from { transform: translateY(30px); } 
}

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

/* Section Styles */
.services { 
    padding: 8rem 5%; 
    max-width: 1600px; 
    margin: 0 auto; 
}

.section-header { 
    text-align: center; 
    margin-bottom: 5rem; 
}

.section-label { 
    font-size: 1rem; 
    font-weight: 600; 
    letter-spacing: 4px; 
    color: var(--primary); 
    margin-bottom: 1rem; 
    text-transform: uppercase; 
}

.section-title { 
    font-family: 'Exo 2', sans-serif; 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    font-weight: 900; 
    margin-bottom: 1rem; 
}

/* Services Grid - 3 COLUMNS */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 2rem; 
}

.service-card { 
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.05), rgba(0, 240, 255, 0.05)); 
    border: 1px solid rgba(0, 240, 255, 0.2); 
    border-radius: 12px; 
    padding: 3rem; 
    position: relative; 
    overflow: hidden; 
    transition: all 0.4s ease; 
}

.service-card::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent); 
    transition: left 0.6s ease; 
}

.service-card:hover::before { 
    left: 100%; 
}

.service-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary); 
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.3); 
}

.service-icon { 
    width: 70px; 
    height: 70px; 
    background: linear-gradient(135deg, var(--primary), var(--secondary)); 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 2rem; 
    margin-bottom: 2rem; 
    font-family: 'Exo 2', sans-serif; 
    font-weight: 900; 
}

.service-title { 
    font-family: 'Exo 2', sans-serif; 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 1rem; 
    color: var(--light); 
}

.service-description { 
    color: var(--gray); 
    font-size: 1.1rem; 
    line-height: 1.8; 
}

/* Projects Section */
.projects { 
    padding: 8rem 5%; 
    background: rgba(0, 240, 255, 0.02); 
}

.projects-container { 
    max-width: 1600px; 
    margin: 0 auto; 
}

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

.project-card { 
    background: var(--dark); 
    border: 1px solid rgba(0, 240, 255, 0.1); 
    border-radius: 12px; 
    overflow: hidden; 
    transition: all 0.4s ease; 
    cursor: pointer; 
}

.project-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary); 
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.2); 
}

.project-image-container { 
    position: relative; 
    height: 250px; 
    overflow: hidden; 
    background: rgba(0, 240, 255, 0.05); 
}

.project-image-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    grid-template-rows: repeat(2, 1fr); 
    height: 100%; 
    gap: 2px; 
}

.project-image { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.3s ease; 
}

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

.project-number { 
    font-family: 'Exo 2', sans-serif; 
    font-size: 5rem; 
    font-weight: 900; 
    color: rgba(0, 240, 255, 0.1); 
    padding: 2rem 2rem 0; 
    line-height: 1; 
}

.project-content { 
    padding: 0 2rem 2rem; 
}

.project-title { 
    font-family: 'Exo 2', sans-serif; 
    font-size: 1.6rem; 
    font-weight: 700; 
    margin-bottom: 1rem; 
    color: var(--primary); 
}

.project-description { 
    color: var(--gray); 
    font-size: 1rem; 
    line-height: 1.8; 
    margin-bottom: 1.5rem; 
}

.project-meta { 
    display: flex; 
    gap: 2rem; 
    flex-wrap: wrap; 
}

.project-meta-item { 
    display: flex; 
    flex-direction: column; 
}

.meta-label { 
    font-size: 0.85rem; 
    color: var(--gray); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.meta-value { 
    font-family: 'Exo 2', sans-serif; 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: var(--primary); 
}

/* Modal Styles */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(5, 7, 15, 0.95); 
    backdrop-filter: blur(10px); 
    overflow-y: auto; 
}

.modal.active { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    animation: fadeIn 0.3s ease; 
}

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

.modal-content { 
    background: var(--dark); 
    border: 1px solid rgba(0, 240, 255, 0.2); 
    border-radius: 16px; 
    max-width: 1200px; 
    width: 90%; 
    margin: 2rem; 
    padding: 3rem; 
    position: relative; 
    animation: slideUp 0.4s ease; 
}

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

.modal-close { 
    position: absolute; 
    top: 1.5rem; 
    right: 1.5rem; 
    font-size: 2rem; 
    color: var(--gray); 
    cursor: pointer; 
    background: rgba(0, 240, 255, 0.1); 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.3s ease; 
}

.modal-close:hover { 
    background: rgba(0, 240, 255, 0.2); 
    color: var(--primary); 
    transform: rotate(90deg); 
}

.modal-header { 
    margin-bottom: 2rem; 
    padding-bottom: 2rem; 
    border-bottom: 1px solid rgba(0, 240, 255, 0.1); 
}

.modal-number { 
    font-family: 'Exo 2', sans-serif; 
    font-size: 4rem; 
    font-weight: 900; 
    color: rgba(0, 240, 255, 0.2); 
    line-height: 1; 
    margin-bottom: 0.5rem; 
}

.modal-title { 
    font-family: 'Exo 2', sans-serif; 
    font-size: 2.5rem; 
    font-weight: 900; 
    color: var(--primary); 
    margin-bottom: 1rem; 
}

.modal-description { 
    font-size: 1.2rem; 
    color: var(--gray); 
    line-height: 1.8; 
    margin-bottom: 2rem; 
}

.modal-meta { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 2rem; 
    margin-bottom: 3rem; 
}

.modal-gallery { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 1rem; 
    margin-top: 2rem; 
}

.modal-gallery-item { 
    position: relative; 
    border-radius: 8px; 
    overflow: hidden; 
    aspect-ratio: 4/3; 
    cursor: pointer; 
    transition: transform 0.3s ease; 
}

.modal-gallery-item:hover { 
    transform: scale(1.05); 
}

.modal-gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 80px 20px;
    margin: 60px 0;
}

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

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-header p {
    font-size: 1.1rem;
    color: #a8a8a8;
    max-width: 600px;
    margin: 0 auto;
}

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

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: #00d4ff;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.05);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.contact-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-card p {
    color: #00d4ff;
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-card .sub-text {
    color: #888;
    font-size: 0.9rem;
    font-weight: 400;
}

.contact-messenger {
    background: linear-gradient(135deg, #0084ff, #00c6ff);
}

.contact-messenger:hover {
    border-color: #0084ff;
    box-shadow: 0 10px 40px rgba(0, 132, 255, 0.3);
}

.messenger-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #0084ff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.messenger-button:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    transform: scale(1.05);
}

.contact-map {
    margin-top: 60px;
    text-align: center;
}

.contact-map h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1.1rem;
}

.icon-phone::before { content: "📞"; }
.icon-email::before { content: "📧"; }
.icon-messenger::before { content: "💬"; }
.icon-location::before { content: "📍"; }

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* CTA Button */
.cta-button { 
    display: inline-block; 
    padding: 1.2rem 3rem; 
    background: linear-gradient(135deg, var(--primary), var(--secondary)); 
    color: var(--darker); 
    font-family: 'Exo 2', sans-serif; 
    font-size: 1.2rem; 
    font-weight: 700; 
    text-decoration: none; 
    border-radius: 50px; 
    letter-spacing: 2px; 
    transition: all 0.3s ease; 
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3); 
}

.cta-button:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.5); 
}

/* Footer */
footer { 
    padding: 3rem 5%; 
    border-top: 1px solid rgba(0, 240, 255, 0.1); 
    text-align: center; 
    color: var(--gray); 
}

.footer-content { 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* Responsive */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav { 
        padding: 1rem 5%; 
    }
    
    .logo-img {
        height: 28px;
        max-width: 140px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(0, 240, 255, 0.2);
        font-size: 1.2rem;
        z-index: 1001;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hero-stats { 
        grid-template-columns: 1fr; 
    }
    
    .services-grid { 
        grid-template-columns: 1fr; 
    }
    
    .projects-grid { 
        grid-template-columns: 1fr; 
    }
    
    .service-card, .project-card { 
        padding: 2rem; 
    }
    
    .modal-content { 
        padding: 2rem; 
        margin: 1rem; 
    }
    
    .modal-gallery { 
        grid-template-columns: 1fr; 
    }

    .contact-header h2 {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 300px;
    }
}
