/* CSS Variables */
:root {
    --primary-orange: #FF7A00;
    --primary-white: #FFFFFF;
    --dark-bg: #1A1A1E;
    --darker-bg: #111111;
    --text-dark: #333333;
    --text-light: #F5F5F5;
    --text-muted: #A0A0A0;
    --border-color: #EAEAEA;
    --font-family: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--primary-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: #e66e00;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: var(--primary-orange);
    color: var(--primary-white);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background-color: #e66e00;
}

/* Header */
.header {
    background-color: var(--dark-bg);
    padding: 20px 0;
    position: relative;
    z-index: 100;
    border-bottom: 2px solid #2A2A2A;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    /* Removing fixed height so inline style in HTML takes precedence */
    display: block;
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--primary-white);
    font-size: 0.95rem;
    font-weight: 500;
}

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

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

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-white);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background-color: var(--dark-bg);
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0 120px;
    color: var(--primary-white);
    border-bottom: 5px solid var(--primary-orange);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 26, 30, 0.9) 0%, rgba(26, 26, 30, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero .highlight {
    color: var(--primary-orange);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-light);
}

/* Featured Products */
.featured-products {
    padding: 80px 0;
    background-color: var(--primary-white);
    text-align: center;
}

.featured-products h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--darker-bg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* 4 Columns Product Grid for All Products Page */
.product-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .product-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
}

.page-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background-color: var(--primary-white);
    color: var(--text-dark);
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover, .page-link.active {
    background-color: var(--primary-orange);
    color: var(--primary-white);
    border-color: var(--primary-orange);
}

.page-dots {
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 2px;
}

.product-card {
    background: var(--primary-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-img-wrapper {
    background: #f9f9f9;
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid var(--primary-orange);
    position: relative;
}

.product-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        var(--primary-orange) 5px,
        var(--primary-orange) 10px
    );
    opacity: 0.8;
}

.product-img-wrapper img {
    margin: 0 auto;
    height: 250px;
    object-fit: contain;
}

.product-info {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-info .price {
    font-weight: 800;
    color: var(--primary-orange);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.product-info .btn {
    margin-top: auto;
    text-align: center;
}

/* Transform Section */
.transform-section {
    background-color: var(--dark-bg);
    color: var(--primary-white);
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.transform-section h2 {
    font-size: 2.2rem;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.feature-item {
    padding: 20px;
}

.feature-item .icon {
    color: var(--primary-orange);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Truck Builds */
.truck-builds {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-white);
}

.truck-builds h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--darker-bg);
}

.builds-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.builds-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.builds-grid img:hover {
    transform: scale(1.02);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--primary-white);
    padding: 60px 0 20px;
    border-top: 1px solid #333;
    overflow: hidden; /* Prevent animation from overflowing */
}

/* Car Animation */
@keyframes drivingCar {
    0% {
        transform: translateX(-10px) translateY(0);
    }
    25% {
        transform: translateX(0) translateY(-2px) rotate(-1deg);
    }
    50% {
        transform: translateX(10px) translateY(0);
    }
    75% {
        transform: translateX(0) translateY(-1px) rotate(1deg);
    }
    100% {
        transform: translateX(-10px) translateY(0);
    }
}

@keyframes wheelBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(1px); }
}

.car-driving-logo {
    display: inline-block;
    animation: drivingCar 3s infinite linear;
    filter: drop-shadow(0 5px 15px rgba(255, 122, 0, 0.2));
}

.car-driving-logo img {
    animation: wheelBounce 0.5s infinite alternate ease-in-out;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--primary-white);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-orange);
    color: var(--primary-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .builds-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        padding: 20px;
        display: none;
        border-top: 1px solid #333;
    }
    .nav.active { display: block; }
    .nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .hero h1 { font-size: 2.2rem; }
    .hero { padding: 80px 0; }
    .footer-container { flex-direction: column; }
}

@media (max-width: 480px) {
    .builds-grid { grid-template-columns: 1fr; }
}
