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

:root {
    --primary-blue: #0e76bc;
    --light-blue: #24abe0;
    --dark-blue: #0e76bc;
    --accent-orange: #f7931e;
    --white: #ffffff;
    --black: #000000;
    --gray: #f5f5f5;
    --text-dark: #333333;
    --text-light: #666666;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

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

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

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

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 118, 188, 0.3);
}

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

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

.btn-white {
    background: var(--white);
    color: var(--primary-blue);
}

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

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

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

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 60px;
    width: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-blue);
}

.btn-contact {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 6px;
}

.btn-contact:hover {
    background: var(--dark-blue);
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 3px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .logo img {
        height: 50px;
        max-width: 180px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(14, 118, 188, 0.35) 0%, rgba(14, 118, 188, 0.25) 100%), url('../images/hero-battery-home.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: rgba(0,0,0,0.15);
    transform: skewX(-15deg);
    transform-origin: top right;
}

.hero-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
    line-height: 1.2;
}

.highlight {
    color: var(--white);
}

.hero-stars-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform 0.2s ease;
}

.hero-stars-link:hover {
    transform: scale(1.05);
}

.hero-stars {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stars .star {
    color: #ffd700;
    font-size: 1.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stars-text {
    font-size: 1rem;
    opacity: 0.95;
}

.hero-brands-overlay {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: flex-end;
    padding-right: 2rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.brand-overlay-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.brand-overlay-item:hover {
    transform: translateX(-10px);
}

.brand-overlay-item img {
    width: 220px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-cta .btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.hero-cta .btn-primary:hover {
    background: var(--light-blue);
}

.hero-cta .btn-outline {
    background: var(--light-blue);
    border-color: var(--light-blue);
    color: var(--white);
}

.hero-cta .btn-outline:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

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

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-stars .star {
        font-size: 1.5rem;
    }
    
    .hero-brands-overlay {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        padding-right: 0;
        gap: 1rem;
    }
    
    .brand-overlay-item {
        padding: 0.75rem 1.5rem;
    }
    
    .brand-overlay-item img {
        height: 35px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Services Preview */
.services-preview {
    padding: 80px 0;
    background: var(--gray);
}

.section-title {
    text-align: center;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(14, 118, 188, 0.15);
}

.service-card.featured {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
}

.service-icon-img {
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

.service-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-card.featured .service-link {
    color: var(--white);
}

.service-link:hover {
    color: var(--light-blue);
}

/* Brands Section */
.brands-section {
    padding: 80px 0;
    background: var(--gray);
}

.brands-section .container {
    max-width: 1100px;
}

.brands-logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .brands-logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .brands-logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.brand-logo-card {
    text-align: center;
    min-width: 0;
}

.brand-logo-box {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo-box img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.brand-fallback {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-dark);
    letter-spacing: 0.05em;
}

.brand-logo-card:hover .brand-logo-box {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Reviews Carousel Section */
.reviews {
    padding: 15px 0;
    background: var(--gray);
}

.reviews-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.reviews-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
    scrollbar-width: none;
}

.reviews-carousel::-webkit-scrollbar {
    display: none;
}

.review-card {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-width: 220px;
    max-width: 250px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.review-stars {
    color: #ffd700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.review-text {
    font-size: 0.8rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: break-word;
}

.review-author {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .reviews-carousel-wrapper {
        padding: 0 40px;
    }
    
    .reviews-carousel {
        gap: 1rem;
        padding: 10px 5px;
    }
    
    .review-card {
        min-width: calc(100% - 10px);
        scroll-snap-align: center;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.7);
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .carousel-prev {
        left: 0;
    }
    
    .carousel-next {
        right: 0;
    }
}

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

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-logo {
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    height: 50px;
    width: auto;
    max-width: 100%;
}

.footer h4 {
    color: var(--light-blue);
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
}

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

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--light-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .services-grid,
    .reviews-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-logo {
        height: 40px;
        max-width: 150px;
    }
}
