/* Critical CSS - Load First */
:root {
    --primary-color: #2ecc71;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --text-color: #2c3e50;
    --light-bg: #ecf0f1;
    --white: #fff;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --transition: all 0.3s ease;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header styles */
.contact-info {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
}

.main-nav {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 100%;
    height: 100%;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Hero section */
.hero {
    position: relative;
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    min-height: 450px;
    display: flex;
    align-items: center;
    margin-top: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 30px;
    color: var(--white);
    font-weight: 700;
}

.hero-search {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    padding: 0 20px;
}

.hero-search input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
}

.hero-search .inquire-btn {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}
@media (max-width: 455px) {
.inquire-btn {

        width: 60% !important;
        margin-left: 55px;

    }
}

.hero-search .inquire-btn:hover {
    transform: translateY(-2px);
}

.hero-search .inquire-btn i {
    font-size: 18px;
}

/* Categories section */
.categories {
    padding: 80px 0;
    background-color: var(--white);
}

.categories h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 36px;
    color: var(--text-color);
    font-weight: 700;
}

.categories .subtitle {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 50px;
    font-size: 18px;
}

/* Service Features Section */
.service-features {
    padding: 80px 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.service-features h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 36px;
    color: var(--text-color);
    font-weight: 700;
}

.service-features .subtitle {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 50px;
    font-size: 18px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.service-item:hover::before {
    opacity: 0.05;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 65px;
    height: 65px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.service-icon i {
    font-size: 28px;
    color: var(--white);
}

.service-item h3 {
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.service-item p {
    color: var(--secondary-color);
    font-size: 15px;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .service-features {
        padding: 60px 0;
    }

    .service-features h2 {
        font-size: 28px;
        padding: 0 20px;
    }

    .service-features .subtitle {
        font-size: 16px;
        padding: 0 20px;
        margin-bottom: 40px;
    }

    .service-grid {
        gap: 15px;
        padding: 10px;
    }

    .service-item {
        padding: 25px 15px;
    }

    .service-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 15px;
    }

    .service-icon i {
        font-size: 24px;
    }

    .service-item h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .service-item p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .service-features {
        padding: 40px 0;
    }

    .service-item {
        padding: 25px 15px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .service-icon i {
        font-size: 25px;
    }

    .service-item h3 {
        font-size: 18px;
    }

    .service-item p {
        font-size: 14px;
    }
}

/* Glass effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

/* Features section */
.features {
    padding: 80px 0;
    background-color: var(--white);
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature {
    padding: 30px;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
    font-size: 24px;
    color: var(--text-color);
}

.feature p {
    color: var(--secondary-color);
}

/* Parts section */
.parts-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.parts-section h2 {
    text-align: center;
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 50px;
    font-weight: 700;
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.parts-card {
    background: var(--white);
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.parts-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.parts-card.featured {
    border: 2px solid var(--primary-color);
}

.parts-card h3 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 16px;
}

.features-list li i {
    color: var(--success-color);
    font-size: 18px;
}

.save-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.parts-button {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    width: 100%;
}

.parts-button:hover {
    transform: translateY(-2px);
}

/* Footer styles */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    position: relative;
    padding: 80px 0 20px;
    overflow: hidden;
}

.footer-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z"></path></svg>') repeat-x;
    background-size: 1200px 120px;
    animation: wave-animation 18s linear infinite;
    opacity: 0.1;
}

.wave1 {
    animation: wave-animation 30s linear infinite;
    z-index: 1;
    opacity: 0.1;
    animation-delay: 0s;
    bottom: 0;
}

.wave2 {
    animation: wave-animation 15s linear infinite;
    z-index: 2;
    opacity: 0.05;
    animation-delay: -5s;
    bottom: 10px;
}

.wave3 {
    animation: wave-animation 20s linear infinite;
    z-index: 3;
    opacity: 0.07;
    animation-delay: -2s;
    bottom: 15px;
}

@keyframes wave-animation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-1200px);
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-section h4 {
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient);
}

.footer-section p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section p i {
    color: var(--primary-color);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.social-icon i {
    color: var(--white);
    font-size: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

.footer-bottom a {
    color: var(--primary-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section {
        text-align: center;
        align-items: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section a {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Mobile Header */
.mobile-header {
    background: var(--gradient);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    height: 60px;
    display: flex;
    align-items: center;
}

/* Desktop Header */
.desktop-header {
    display: none;
}

/* Show/Hide headers based on screen size */
@media (min-width: 769px) {
    .mobile-header {
        display: none;
    }
    
    .desktop-header {
        display: block;
    }

    .hero {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .desktop-header {
        display: none;
    }

    body {
        padding-top: 60px;
    }

    .mobile-header .container {
        padding: 0 15px;
    }

    .menu-toggle {
        background: none;
        border: none;
        color: white;
        font-size: 20px;
        cursor: pointer;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .menu-toggle i {
        color: white;
    }

    .phone-number {
        font-size: 16px;
    }

    .flag-icon {
        width: 24px;
        height: 16px;
    }

    .cart-icon {
        font-size: 20px;
        color: white;
    }

    .hero {
        min-height: 300px;
        padding: 40px 0;
        /* margin-top: 60px; */
    }

    .hero h2 {
        font-size: 28px;
        padding: 0 15px;
        margin-bottom: 20px;
    }

    .hero-search {
        flex-direction: column;
        gap: 12px;
        padding: 0 15px;
    }
    
    .hero-search input,
    .hero-search .inquire-btn {
        width: 100%;
        height: 50px;
    }

    .hero-search input {
        font-size: 15px;
    }

    .hero-search .inquire-btn {
        font-size: 15px;
    }

    .categories {
        padding: 40px 0;
    }

    .categories h2 {
        font-size: 24px;
        padding: 0 15px;
    }

    .categories .subtitle {
        font-size: 15px;
        padding: 0 15px;
        margin-bottom: 30px;
    }

    .brand-item {
        width: 140px;
        height: 150px;
        margin: 0 15px;
        padding: 15px;
    }

    .brand-item h3 {
        font-size: 14px;
    }

    .parts-section {
        padding: 40px 0;
    }

    .parts-section h2 {
        font-size: 24px;
        padding: 0 15px;
        margin-bottom: 30px;
    }

    .parts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .parts-card {
        padding: 25px;
    }

    .parts-card h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .features-list li {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .save-badge {
        font-size: 13px;
        padding: 6px 12px;
    }

    .features {
        padding: 40px 0;
    }

    .features .container {
        gap: 25px;
        padding: 0 15px;
    }

    .feature {
        padding: 20px;
    }

    .feature i {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .feature h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .feature p {
        font-size: 15px;
    }

    .footer-content {
        gap: 30px;
        padding: 0 15px;
    }

    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .footer-section p,
    .footer-section li {
        font-size: 15px;
    }

    .newsletter-form input,
    .newsletter-form button {
        height: 45px;
        font-size: 14px;
    }
}


@media (max-width: 576px) {
    .hero {
        min-height: 280px;
        padding: 30px 0;
    }

    .hero h2 {
        font-size: 24px;
    }

    .phone-number {
        font-size: 14px;
    }

    .flag-icon {
        width: 20px;
        height: 14px;
    }

    .cart-icon {
        font-size: 18px;
    }

    .brand-item {
        width: 120px;
        height: 130px;
        margin: 0 10px;
        padding: 10px;
    }

    .brand-item h3 {
        font-size: 13px;
    }

    .parts-card {
        padding: 20px;
    }

    .parts-card h3 {
        font-size: 18px;
    }

    .features-list li {
        font-size: 14px;
    }

    .save-badge {
        font-size: 12px;
        padding: 4px 10px;
        top: 10px;
        right: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-track {
        animation: none;
    }
    
    * {
        transition: none !important;
    }
}

@media (min-width: 769px) {
    .main-nav {
        margin-top: -50px;
        margin-bottom: -50px;
    }
}
