/* style.css */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Lato:wght@400;900&display=swap');

/* --- CSS Variables for Warm Color Scheme --- */
:root {
    --primary-color: #0055ffe1; /* Warm Orange */
    --secondary-color: #4539e6; /* Vibrant Red */
    --background-color: #b8b6a4; /* Soft Off-White */
    --text-color: #080801;
    --light-text-color: #fffffff7;
    --navbar-bg: rgba(182, 175, 175, 0.95);
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    padding-top: 80px; /* Add padding to body to prevent content from hiding behind fixed nav */
}

h1, h2, h3 {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 2rem 1rem;
}

/* --- Header & Fixed Navigation Bar --- */
.main-header {
    background-color: var(--navbar-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
}

.logo {
    font-family: 'Lato', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    padding: 0 1rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

/* Navigation Links: Hover effect */
.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%; /* Underline effect on hover */
}

/* Active Page Link */
.nav-links a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}


/* --- Hero Section (Home Page) --- */
.hero {
    background: linear-gradient(rgba(8, 8, 8, 0.4), rgba(0, 0, 0, 0.4)), url('../images/backgroun.gif.gif') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text-color);
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--light-text-color);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* --- Rides/Events Page: Grid Layout --- */
.rides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.ride-card {
    background: #f6f4f4;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ride-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.ride-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ride-card-content {
    padding: 1.5rem;
}

/* --- Gallery Page: Image Hover Effect --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    overflow: hidden; /* Important for the zoom effect */
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item img:hover {
    transform: scale(1.1); /* Zoom effect */
    filter: brightness(1.15); /* Brighter effect */
}

/* --- Contact Page --- */
.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    height: 150px;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--text-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Adjust for smaller nav */
    }

    .main-header {
        padding: 0.5rem 1rem;
        flex-direction: column;
        height: auto;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding-top: 0.5rem;
    }

    .nav-links li {
        padding: 0.5rem 0;
    }
    
    body {
      padding-top: 130px; /* Adjust padding for stacked nav */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
    /* --- Styling for the GIF on Home Page --- */
.fun-gif {
    max-width: 100%; /* Ensures the GIF is responsive and doesn't get too big */
    height: auto; /* Maintains the correct width-to-height ratio */
    margin-top: 1rem; /* Adds some space above the GIF */
    border-radius: 10px; /* Gives the GIF nice rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Adds a subtle shadow to make it pop */
}

/* A helper class we added to the HTML */
.text-center {
    text-align: center;
}
}