* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

body {
    background-color: #fff;
    color: #000;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 700;
    padding: 2vw;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

header {
    margin-bottom: 4vw;
}


.contact-info p {
    font-size: 2vw;
    margin-bottom: 0.5vw;
}

.contact-info a,
.contact-link,
.header-link {
    color: currentColor;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.contact-info a:hover,
.contact-link:hover,
.header-link:hover {
    opacity: 0.7;
}

h2 {
    font-size: 4vw;
    letter-spacing: -0.02em;
    margin-bottom: 2vw;
    border-bottom: 2px solid currentColor;
    padding-bottom: 1vw;
}

.grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2vw;
    padding-bottom: 2vw;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    cursor: grab;
}

.grid:active {
    cursor: grabbing;
}

.grid::-webkit-scrollbar {
    display: none;
}

.item {
    flex: 0 0 80vw;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .item {
        flex: 0 0 30vw;
    }
}

h3 {
    font-size: 2vw;
    margin-bottom: 1vw;
    letter-spacing: -0.02em;
}

ul {
    list-style: none;
}

li {
    font-size: 1.2vw;
    margin-bottom: 0.3vw;
}

.price {
    margin-top: 1vw;
    font-size: 1.5vw;
}

.image-link {
    display: block;
    margin-bottom: 1.5vw;
    position: relative;
}

.stock-badge {
    position: absolute;
    top: 1vw;
    right: 1vw;
    padding: 0.5vw 1vw;
    color: #fff;
    font-weight: 700;
    font-size: 1vw;
    z-index: 10;
    pointer-events: none;
}

.badge-sold {
    background-color: #d9534f;
}

.badge-coming {
    background-color: #f0ad4e;
}

.car-image {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%) contrast(120%);
    transition: filter 0.3s ease;
}

.car-image:hover {
    filter: grayscale(0%) contrast(100%);
}

.details-link {
    margin-top: 1.5vw;
}

.details-link a {
    color: #000;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    padding-bottom: 0.2vw;
    font-size: 1.2vw;
    display: inline-block;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.details-link a:hover {
    color: #fff;
    background-color: #111111;
}

@media (max-width: 768px) {
    .image-link { margin-bottom: 3vw; }
    .details-link { margin-top: 3vw; }
    .details-link a { font-size: 4vw; }

    body { padding: 4vw; }
    h2 { font-size: 8vw; }
    .grid { gap: 4vw; }
    h3 { font-size: 5vw; }
    li { font-size: 4vw; }
    .price { font-size: 5vw; }
}

/* Menu Toggle Button (Yeezy Style) */
.menu-toggle {
    position: fixed;
    top: 2vw;
    left: 2vw;
    z-index: 1000;
    mix-blend-mode: difference;
    width: 3vw;
    height: 3vw;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 0;
    mix-blend-mode: difference;
    
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: transform 0.3s ease, background-color 0.3s ease;
    transform-origin: center;
}

@media (max-width: 768px) {
    .menu-toggle {
        top: 4vw;
        left: 4vw;
        width: 8vw;
        height: 6vw;
    }
    .menu-toggle .bar {
        height: 2px;
    }
}

/* Yeezy Menu Open State Animation */
.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(1.3vw) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
    transform: translateY(-1.3vw) rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(2.5vw) rotate(45deg);
    }
    .menu-toggle.open .bar:nth-child(2) {
        transform: translateY(-2.5vw) rotate(-45deg);
    }
}

/* Fullscreen Menu Overlay */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #111111;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.fullscreen-menu.active {
    opacity: 1;
    pointer-events: all;
}

.fullscreen-menu ul {
    list-style: none;
    text-align: center;
    padding: 0;
    mix-blend-mode: difference;
}

.fullscreen-menu li {
    margin-bottom: 3vw;
    font-size: 1.5vw;
}

@media (max-width: 768px) {
    .fullscreen-menu li {
        margin-bottom: 6vw;
    }
}

.fullscreen-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 6vw;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .fullscreen-menu a {
        font-size: 12vw;
    }
}

.fullscreen-menu a:hover {
    color: #888;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2vw;
    width: 100%;
}

.logo {
    width: 60%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* Dark Mode Overrides */
body.dark-mode {
    background-color: #111111;
    color: #fff;
}
body.dark-mode .logo {
    content: url('https://cdn.galaxyone.com.au/logo-white.png');
    mix-blend-mode: screen;
}
body.dark-mode .menu-toggle .bar {
    background-color: #fff;
}
body.dark-mode .details-link a {
    color: #fff;
}
body.dark-mode .details-link a:hover {
    color: #000;
    background-color: #fff;
}

/* Light Mode Specific Overrides */
body.light-mode {
    background-color: #fff;
    color: #000;
}
body.light-mode .logo {
    content: url('https://cdn.galaxyone.com.au/logo-black.png');
    mix-blend-mode: multiply;
}
body.light-mode .details-link a {
    color: #000;
}
body.light-mode .details-link a:hover {
    color: #fff;
    background-color: #111111;
}

/* Base styles for toggle button */
.theme-toggle {
    position: fixed;
    top: 2vw;
    right: 2vw;
    z-index: 1000;
    mix-blend-mode: difference;
    background: transparent;
    border: 1px solid currentColor;
    color: currentColor;
    padding: 0.5vw 1vw;
    cursor: pointer;
    font-size: 1vw;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: currentColor;
    color: #000;
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 4vw;
        right: 4vw;
        font-size: 3vw;
        padding: 1vw 2vw;
    }
}
