:root{
    /* styles.css */
    --primary-color: #ffffff;
    --secodary-color: #f8f9fa;
    --accent-color: #0e1f3a;
    --text-color: #2a2a2a;
    --border-color: #e5e7eb;
    --highlight: #ffd700;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    overflow-x: hidden; /* Prevent horizontal scroll during animations */
}

.navbar{
    padding: 1.5rem 5%;
    background-color: rgba(255,255,255,0.95);
    position: fixed;
    width: 90%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.logo{
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links{
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color) ;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after{
    content: '';
    position: absolute;
    bottom: -5px ;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

header {
    background: url(many.jpg);
    background-size: cover;
    color: var(--highlight);
    padding: 250px 0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.about {
    padding: 40px 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    width: 80%;
    border-radius: 8px;
}

.about h2, .about p {
    opacity: 0;
    transform: translateY(30px);
    animation: slide-up 1s ease-out forwards;
    color: var(--highlight);
}
.about p {
    opacity: 0;
    transform: translateY(30px);
    animation: slide-up 1s ease-out forwards;
    color: var(--text-color);
} 

.about h4{
    color: var(--highlight);
}

.car-images {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 15px;
    justify-items: center;
}

.car-images img {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: filter 0.3s ease;
    filter: grayscale(100%); /* Default filter */
}

.car-images img:hover {
    filter: grayscale(0%); /* Remove filter on hover */
}

/* Modal Overlay */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Black transparent background */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.image-modal img {
    max-width: 90%; /* Prevents overflow */
    max-height: 90%; /* Prevents overflow */
    border-radius: 8px; /* Optional styling */
}

/* Close Button */
.image-modal .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}


footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    font-size: 14px;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Slide-up animation */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply slide-up animation to header and container */
header h1, .container {
    animation: slide-up 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}
