/* ===========================
   NCC Racing – styles.css
   Modern, responsive, clean
=========================== */

:root {
    --primary: #ff2a2a;
    --dark: #111;
    --light: #f4f4f4;
    --gray: #666;
    --max-width: 1200px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: var(--light);
    color: var(--dark);
}

/* NAVBAR */
nav {
    width: 100%;
    background: var(--dark);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 999;
}

nav .logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--primary);
}

nav ul {
    display: flex;
    gap: 25px;
}

nav ul li {
    list-style: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary);
}

/* MOBILE MENU */
#menu-btn {
    display: none;
    font-size: 26px;
    color: white;
    cursor: pointer;
}

#nav-menu.active {
    right: 0;
}

@media (max-width: 768px) {
    nav ul {
        position: fixed;
        right: -100%;
        top: 70px;
        background: var(--dark);
        width: 200px;
        height: 100vh;
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        transition: var(--transition);
    }

    #menu-btn {
        display: block;
    }
}

/* HERO */
.hero {
    height: 100vh;
    background: url("../assets/images/hero.jpg") center/cover no-repeat;
    padding-top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 0 0 10px #000;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
}

/* SECTIONS */
section {
    max-width: var(--max-width);
    margin: auto;
    padding: 100px 20px;
}

section h2 {
    font-size: 35px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
    letter-spacing: 1px;
}

/* ABOUT */
.about-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--gray);
    text-align: center;
}

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

.gallery-img:hover {
    transform: scale(1.03);
}

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image {
    width: 70%;
    border-radius: 10px;
}

.modal-bg {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: auto;
}

form input, form textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
}

form button {
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}

form button:hover {
    background: #d02020;
}

/* FOOTER */
footer {
    text-align: center;
    background: var(--dark);
    color: white;
    padding: 20px;
    margin-top: 40px;
}
