/* ===================================
   AVERNEX - PROFESSIONAL EV WEBSITE
   style.css
=================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0b1220;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================
   CONTAINER
========================= */

.container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
}

/* =========================
   HEADER
========================= */

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 6%;
    z-index: 1000;

    background: transparent;
    border-bottom: none;

    transition: 0.3s ease;
}

.header.scrolled{
    background: rgba(11, 18, 32, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0px;
}

.logo {
    width: 100px;
    height: 120px;
    object-fit: contain;
}

.logo-text h2 {
    color: #ffffff;
    font-size: 1.5rem;
}

.logo-text span {
    font-size: 0.8rem;
    color: #e8ecf1;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: 0.3s;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: #ffffff;
}

.menu-btn {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
}

/* =========================
   HERO SECTION
========================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:linear-gradient(rgba(0,0,0,0.35),rgba(0,0,0,0.45)),
url("../images/toto1.jpeg");
    background-size: cover;
    background-position: center;
    padding: 120px 20px 80px;
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #d5dce7;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* =========================
   BUTTONS
========================= */

.btn-primary,
.btn-secondary,
.card-btn {
    display: inline-block;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary {
    background: #1e90ff;
    color: white;
}

.btn-primary:hover {
    background: #0073e6;
    transform: translateY(-3px);
}

.btn-secondary {
    border: 2px solid #1e90ff;
    color: #1e90ff;
}

.btn-secondary:hover {
    background: #1e90ff;
    color: white;
}

.card-btn {
    background: #1e90ff;
    color: white;
}

/* =========================
   SECTION TITLES
========================= */

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.section-title p {
    color: #b8c2d1;
    max-width: 700px;
    margin: 0 auto;
}

/* =========================
   COMPANY SECTION
========================= */

.company-section {
    padding: 100px 0;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.company-card {
    background: #121d31;
    padding: 30px;
    border-radius: 15px;
    transition: 0.3s ease;
    border: 1px solid rgba(30, 144, 255, 0.15);
}

.company-card:hover {
    transform: translateY(-8px);
    border-color: #1e90ff;
}

.company-card h3 {
    color: #1e90ff;
    margin-bottom: 15px;
}

.company-card p {
    color: #d5dce7;
}

/* =========================
   FEATURED PRODUCTS
========================= */

.featured-products {
    padding: 100px 0;
    background: #09111d;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: #121d31;
    border-radius: 18px;
    overflow: hidden;
    transition: 0.4s 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.35);
}

.product-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.product-card h3 {
    margin: 20px 20px 10px;
    color: #ffffff;
}

.product-card p {
    margin: 0 20px 20px;
    color: #b8c2d1;
}

.product-card .card-btn {
    margin: 0 20px 20px;
}

/* =========================
   SPARE PARTS SECTION
========================= */

.spares-section {
    padding: 100px 0;
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.parts-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    transition: 0.3s ease;
    cursor: pointer;
}

.parts-grid img:hover {
    transform: scale(1.05);
}

.center-btn {
    text-align: center;
    margin-top: 40px;
}

/* =========================
   WHY CHOOSE US
========================= */

.why-us {
    background: #09111d;
    padding: 100px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.why-card {
    background: #121d31;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
}

.why-card:hover {
    transform: translateY(-8px);
}

.why-card h3 {
    color: #1e90ff;
    margin-bottom: 15px;
}

.why-card p {
    color: #d5dce7;
}

/* =========================
   CONTACT CTA
========================= */

.contact-cta {
    padding: 100px 20px;
    text-align: center;
}

.contact-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.contact-cta p {
    max-width: 700px;
    margin: auto;
    color: #b8c2d1;
}

.cta-buttons {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* =========================
   FOOTER
========================= */

.footer {
    background: #050b14;
    padding-top: 70px;
}

.footer-container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-logo {
    width: 90px;
    margin-bottom: 15px;
}

.footer-box h3 {
    color: #1e90ff;
    margin-bottom: 20px;
}

.footer-box p {
    color: #b8c2d1;
    margin-bottom: 10px;
}

.footer-box ul {
    list-style: none;
}

.footer-box ul li {
    margin-bottom: 10px;
}

.footer-box ul li a {
    text-decoration: none;
    color: #ffffff;
    transition: 0.3s;
}

.footer-box ul li a:hover {
    color: #1e90ff;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #b8c2d1;
}

/* =========================
   WHATSAPP FLOAT BUTTON
========================= */

.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    right: 25px;
    bottom: 25px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #09111d;
}

::-webkit-scrollbar-thumb {
    background: #1e90ff;
    border-radius: 10px;
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 991px) {

    .menu-btn {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #121d31;
        display: none;
        padding: 20px 0;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .navbar.active {
        display: block;
    }

    .navbar ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .contact-cta h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {

    .header {
        padding: 12px 5%;
    }

    .logo {
        width: 55px;
        height: 55px;
    }

    .logo-text h2 {
        font-size: 1.2rem;
    }

    .logo-text span {
        font-size: 0.7rem;
    }

    .hero {
        padding-top: 140px;
    }

    .hero h1 {
        font-size: 2.4rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 220px;
        text-align: center;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 0.95rem;
    }

    .product-card img {
        height: 220px;
    }

    .parts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        text-align: center;
    }

    .contact-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .company-card,
    .product-card,
    .why-card {
        padding: 20px;
    }

    .parts-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 24px;
        right: 15px;
        bottom: 15px;
    }
}

/* =========================
   SIMPLE FADE ANIMATIONS
========================= */

.company-card,
.product-card,
.why-card {
    animation: fadeUp 0.8s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   IMAGE HOVER EFFECTS
========================= */

.product-card img,
.parts-grid img {
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* =========================
   GLOW EFFECTS
========================= */

.btn-primary:hover,
.card-btn:hover {
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.45);
}

.logo:hover {
    transform: scale(1.05);
    transition: 0.3s ease;
}

/* =========================
   SMOOTH TRANSITIONS
========================= */

a,
button,
.product-card,
.company-card,
.why-card {
    transition: all 0.3s ease;
}

.products-hero{
    padding:180px 0 100px;
    text-align:center;
    background:linear-gradient(
    rgba(0,0,0,.65),
    rgba(0,0,0,.65)),
    url("../images/toto2.jpeg");
    background-size:cover;
    background-position:center;
}

.products-hero h1{
    font-size:3.5rem;
    margin-bottom:15px;
}

.products-hero p{
    color:#d5dce7;
}

.search-box{
    text-align:center;
    margin-top:40px;
    margin-bottom:40px;
}


.search-box input{
    width:100%;
    max-width:500px;
    padding:15px 20px;
    border:none;
    border-radius:50px;
    background:#121d31;
    color:white;
    font-size:16px;
}