* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

:root {
    --yamaha-red: #e60012;
    --yamaha-dark: #000000;
    --yamaha-gray: #1a1a1a;
    --yamaha-light-gray: #f5f5f5;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --rail-left: 13px;
    --rail-top: 13px;
    --rail-tile: 56px;
    --rail-gap: 8px;
    --rail-gutter: 0px;
}

html {  
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    background-image:
        linear-gradient(180deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0.32) 42%, rgba(5, 5, 5, 0.58) 100%),
        url('../Image/Bacground1.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    padding-left: var(--rail-gutter);
}

/* Home page background matches the admin login screen */
body.home-page {
    background-image:
        radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%),
        url('../Image/Bacground1.jpg');
}

img {
    max-width: 100%;
}

section[id] {
    scroll-margin-top: 96px;
}

/* Fixed Glass Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

/* Navigation */
nav {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    position: relative;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.header-scrolled nav {
    background-color: var(--yamaha-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}

.nav-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 1.5rem 0 84px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
    z-index: 1;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(10, 10, 10, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: var(--yamaha-red);
    border-color: var(--yamaha-red);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
}

.nav-icons a i,
.search-toggle i {
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.55));
}

.nav-icons {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.nav-icons a,
.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--text-primary);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    cursor: pointer;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transition: all 0.3s ease;
}

.nav-icons a:hover,
.search-toggle:hover {
    background: var(--yamaha-red);
    border-color: var(--yamaha-red);
}

/* Left icon rail (Yamaha-style) */
.side-rail {
    position: fixed;
    top: var(--rail-top);
    left: var(--rail-left);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: var(--rail-gap);
    max-height: calc(100vh - 26px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px;
    scrollbar-width: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.side-rail::-webkit-scrollbar {
    display: none;
}

.side-rail.rail-collapsed .side-btn:not(.menu-btn) {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-14px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
}

.side-btn {
    position: relative;
    flex: 0 0 auto;
    width: var(--rail-tile);
    height: var(--rail-tile);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    background: rgba(12, 12, 12, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    overflow: hidden;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.28s ease, opacity 0.28s ease;
}

.side-btn i {
    font-size: 1.12rem;
    line-height: 1;
    transform: translateY(0);
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.side-btn .side-label {
    position: absolute;
    left: 3px;
    right: 3px;
    bottom: 5px;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(7px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.side-btn:hover,
.side-btn:focus-visible {
    background: var(--yamaha-red);
    border-color: var(--yamaha-red);
    transform: translateX(3px);
    outline: none;
}

.side-btn:hover i,
.side-btn:focus-visible i {
    transform: translateY(-8px);
}

.side-btn:hover .side-label,
.side-btn:focus-visible .side-label {
    opacity: 1;
    transform: translateY(0);
}

/* Side rail button matching the page the user is currently on */
.side-btn.active,
.side-btn.active:focus-visible {
    background: var(--yamaha-red);
    border-color: var(--yamaha-red);
    box-shadow: 0 6px 18px rgba(230, 0, 18, 0.42);
}

.side-btn.active i,
.side-btn.active:focus-visible i {
    transform: translateY(-8px);
}

.side-btn.active .side-label,
.side-btn.active:focus-visible .side-label {
    opacity: 1;
    transform: translateY(0);
}

.side-btn.menu-btn {
    background: linear-gradient(150deg, rgba(230, 0, 18, 0.96), rgba(139, 0, 10, 0.96));
    border-color: rgba(255, 255, 255, 0.28);
}

.side-btn.menu-btn:hover {
    background: linear-gradient(150deg, #ff1a2c, #a3000d);
}

@media (hover: none) and (min-width: 969px) {
    .side-btn i {
        transform: translateY(-8px);
    }

    .side-btn .side-label {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    z-index: 10000;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-close {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mega Menu */
body.menu-open {
    overflow: hidden;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mega-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(12, 12, 12, 0.7);
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    border-bottom: 0;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-menu.active {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.75rem 2rem 2rem 96px;
}

.mega-categories {
    min-width: 0;
}

.mega-cat-list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mega-content {
    min-width: 0;
}

.mega-categories .mega-links {
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-menu-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-heading {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mega-subheading {
    margin-top: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.mega-categories h3 {
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.mega-cat {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: rgba(255, 255, 255, 0.72);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.65rem 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mega-cat:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.mega-cat.active {
    color: #ffffff;
    background: rgba(230, 0, 18, 0.18);
    border-left-color: var(--yamaha-red);
}

.mega-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.3rem 1.25rem;
}

.mega-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.2rem 0;
    transition: color 0.25s ease;
}

.mega-links a:hover {
    color: #ffffff;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
}

.mega-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 2rem 1.25rem;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: center;
}

.mega-empty a {
    color: var(--yamaha-red);
    font-weight: 700;
    text-decoration: none;
}

.mega-empty a:hover {
    color: #ffffff;
}

.mega-item {
    position: relative;
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mega-item .card-badge {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 2;
    padding: 0.2rem 0.45rem;
    background: var(--yamaha-red);
    color: #ffffff;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.4;
    text-transform: uppercase;
}

.mega-item:hover {
    border-color: var(--yamaha-red);
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-3px);
}

.mega-item img {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.4rem;
}

.mega-item .mega-name {
    display: block;
    padding: 0.55rem 0.7rem 0.2rem;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mega-item .mega-displacement,
.mega-item .mega-variant-count {
    display: block;
    padding: 0 0.7rem 0.55rem;
    color: var(--text-secondary);
    font-size: 0.62rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mega-item .mega-variant-count {
    color: var(--yamaha-red);
    font-weight: 700;
}

.mega-viewall {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    color: var(--yamaha-red);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: gap 0.3s ease;
}

.mega-viewall:hover {
    gap: 0.8rem;
}

@media (max-width: 900px) {
    .mega-menu-inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .mega-categories {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .mega-categories h3 {
        width: 100%;
        margin-bottom: 0.35rem;
    }

    .mega-cat-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .mega-categories .mega-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem 1rem;
        margin-top: 0.5rem;
        padding-top: 0.75rem;
    }

    .mega-cat {
        width: auto;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 999px;
        padding: 0.5rem 0.9rem;
        font-size: 0.75rem;
    }

    .mega-cat.active {
        border-color: var(--yamaha-red);
        background: rgba(230, 0, 18, 0.22);
    }

    .mega-links {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem 1rem;
        margin-top: 0.5rem;
        padding-top: 0.75rem;
    }

    .mega-links a {
        padding: 0.2rem 0;
    }

    .mega-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Hero Section with Video */
.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1280 / 676;
    height: auto;
    min-height: 430px;
    max-height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, transparent 80%);
    z-index: 1;
    pointer-events: none;
}

/* Promo Banner Below */
.promo-banner {
    position: relative;
    width: min(92%, 1480px);
    margin: clamp(2rem, 5vw, 56px) auto 0;
    height: clamp(270px, 33vw, 540px);
    overflow: hidden;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    z-index: 10;
}

.promo-banner-container {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.promo-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: none;
}

.promo-slide.active {
    display: block;
}

.promo-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #000;
}

.promo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.promo-nav:hover {
    background: var(--yamaha-red);
}

.promo-prev {
    left: 15px;
}

.promo-next {
    right: 15px;
}

.promo-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.promo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-dot.active {
    background: var(--yamaha-red);
}

.promo-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    color: inherit;
    text-decoration: none;
}

.promo-slide img.promo-media,
.promo-slide video.promo-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #000;
    display: block;
}

.promo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 4vw, 3rem);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.promo-caption strong {
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.promo-caption p {
    color: var(--text-secondary);
    max-width: 60ch;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
}

.promo-nav,
.promo-dots {
    z-index: 4;
}

.promo-dot {
    border: 0;
    padding: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

@media (min-width: 969px) {
    .hero-content {
        padding-left: clamp(110px, 8vw, 150px);
    }
}

.hero-text {
    max-width: 600px;
}

.hero-subtitle {
    color: var(--yamaha-red);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.2vw, 2px);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.75);
}

.hero-description {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: var(--yamaha-red);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--yamaha-red);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-primary:hover {
    background: #cc0010;
    border-color: #cc0010;
    transform: translateX(5px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--yamaha-dark);
}

/* Brands */
.brands {
    padding: 4rem 0;
    background: transparent;
}

.brands-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 1.5rem;
}

.brand-card {
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.brand-card:hover {
    border-color: var(--yamaha-red);
    background: rgba(17, 17, 17, 0.75);
    transform: scale(1.05);
}

.brand-card img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
}

.brand-card-name {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}

/* Models */
.models {
    padding: 5rem 0;
    background: transparent;
}

.section-header {
    max-width: 1400px;
    margin: 0 auto clamp(1.75rem, 4vw, 3rem);
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 2px solid var(--yamaha-red);
    padding-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.6rem, 3.6vw, 2.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.2vw, 2px);
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75);
}

.section-header p {
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
}

.section-link {
    color: var(--yamaha-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.section-link:hover {
    gap: 0.75rem;
}

.models-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
    gap: 1.35rem;
}

.model-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    transition: all 0.3s ease;
}

.model-card:hover {
    border-color: var(--yamaha-red);
    transform: translateY(-5px);
}

.model-image {
    width: 100%;
    height: 220px;
    padding: 1.1rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 62%, rgba(230, 0, 18, 0.12), transparent 62%),
        rgba(0, 0, 0, 0.35);
}

.model-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.45));
    transition: transform 0.3s ease;
}

.model-card:hover .model-image img {
    transform: scale(1.06);
}

.model-badge {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    background: var(--yamaha-red);
    color: var(--text-primary);
    padding: 0.28rem 0.58rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    line-height: 1.4;
    text-transform: uppercase;
    z-index: 1;
}

.model-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.2rem 1.25rem 1.35rem;
}

.model-category {
    color: var(--yamaha-red);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.model-name {
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.model-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.5;
    margin-bottom: 0.9rem;
}

.model-btn {
    color: var(--yamaha-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.model-btn:hover {
    gap: 0.75rem;
}

.model-card .model-btn {
    margin-top: auto;
    font-size: 0.76rem;
}

/* Feature Banner */
.feature-banner {
    position: relative;
    overflow: hidden;
    margin: 3rem 0;
    background: #050505;
}

.feature-banner-media {
    position: relative;
    line-height: 0;
}

.feature-banner-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.feature-banner-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.12) 100%);
    pointer-events: none;
}

.feature-banner-content {
    position: absolute;
    inset: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
}

.feature-banner-text {
    max-width: 500px;
}

.feature-banner-title {
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

.feature-banner-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 2px solid var(--yamaha-red);
    padding: 3rem 0 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #333333;
}

.footer-social a:hover {
    background: var(--yamaha-red);
    border-color: var(--yamaha-red);
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding: 2rem 2rem 0;
    border-top: 1px solid #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

@media (max-width: 968px) {
    :root {
        --rail-gutter: 0px;
        --rail-left: 8px;
        --rail-top: 8px;
        --rail-tile: 42px;
        --rail-gap: 6px;
    }

    body {
        background-attachment: scroll;
    }

    .side-rail {
        max-height: calc(100vh - 16px);
    }

    .side-btn .side-label {
        left: 2px;
        right: 2px;
        bottom: 3px;
        font-size: 0.44rem;
        letter-spacing: 0;
        line-height: 1.05;
    }

    .menu-toggle {
        display: none;
    }

    body.menu-open .side-rail .side-btn:not(.menu-btn) {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .nav-container {
        height: 62px;
        padding: 0 1.25rem 0 60px;
    }

    .hero-content {
        padding-left: 60px;
    }

    .mega-menu.active {
        max-height: calc(100vh - 62px);
        max-height: calc(100dvh - 62px);
    }

    .mega-menu-inner {
        padding: 1.5rem 1.25rem;
    }

    .hero {
        min-height: 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
        text-align: center;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.5rem;
    }
}

@media (max-width: 720px) {
    :root {
        --rail-left: 7px;
        --rail-top: 7px;
        --rail-tile: 40px;
        --rail-gap: 5px;
    }

    .side-rail {
        max-height: calc(100vh - 14px);
    }

    .nav-container {
        height: 58px;
        padding: 0 1rem 0 58px;
    }

    .logo img {
        height: 44px !important;
    }

    .promo-banner {
        width: 90%;
        height: clamp(160px, 42vw, 270px);
        margin-top: 1.5rem;
        border-radius: 8px;
    }

    .promo-dots {
        bottom: 12px;
    }

    .mega-menu.active {
        max-height: calc(100vh - 62px);
        max-height: calc(100dvh - 62px);
    }

    .mega-menu-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .mega-categories {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .mega-categories h3 {
        width: 100%;
        margin-bottom: 0.35rem;
    }

    .mega-cat {
        width: auto;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 999px;
        padding: 0.45rem 0.8rem;
        font-size: 0.72rem;
        letter-spacing: 0.5px;
    }

    .mega-cat.active {
        border-color: var(--yamaha-red);
        background: rgba(230, 0, 18, 0.22);
    }

    .mega-links {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem 1rem;
        margin-top: 0.5rem;
        padding-top: 0.75rem;
    }

    .mega-links a {
        padding: 0.2rem 0;
    }

    .mega-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .mega-item img {
        height: 82px;
        padding: 0.25rem;
    }

    .mega-item span {
        font-size: 0.62rem;
        padding: 0.4rem 0.35rem;
        letter-spacing: 0.2px;
    }

    .mega-viewall {
        margin-top: 0.9rem;
    }

    .hero-content {
        padding: 0 1.25rem 0 58px;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 2.5px;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.85rem 1.5rem;
        font-size: 0.82rem;
    }

    .section-link {
        font-size: 0.8rem;
    }

    .brands {
        padding: 3rem 0;
    }

    .models {
        padding: 3.5rem 0;
    }

    .model-image {
        height: 220px;
    }

    .model-name {
        font-size: 1.18rem;
    }

    .feature-banner-content {
        padding: 0 1.25rem;
    }

    .feature-banner-title {
        font-size: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem;
    }

    .footer-bottom {
        padding: 1.5rem 1.25rem 0;
    }

    .footer-brand p {
        max-width: none;
    }
}

@media (max-width: 520px) {
    .nav-icons {
        gap: 0.15rem;
    }

    .nav-icons a,
    .search-toggle {
        padding: 0.4rem;
        font-size: 1rem;
    }

    .mega-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mega-item img {
        height: 96px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.92rem;
        margin-bottom: 1.75rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.85rem 1.25rem;
    }

    .promo-nav {
        width: 34px;
        height: 34px;
    }

    .promo-prev {
        left: 8px;
    }

    .promo-next {
        right: 8px;
    }

    .section-header {
        align-items: flex-start;
    }

    .section-link {
        font-size: 0.75rem;
    }

    .brands-grid {
        gap: 1rem;
    }

    .brand-card {
        height: 96px;
        padding: 1rem;
    }

    .model-image {
        height: 210px;
    }

    .model-content {
        padding: 1.2rem 1.25rem 1.35rem;
    }

    .feature-banner {
        min-height: 340px;
    }

    .feature-banner-title {
        font-size: 1.65rem;
    }

    .feature-banner-desc {
        font-size: 0.9rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.25rem;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom-links {
        gap: 0.5rem 1rem;
    }
}

@media (max-width: 380px) {
    :root {
        --rail-left: 6px;
        --rail-top: 6px;
        --rail-tile: 40px;
        --rail-gap: 5px;
    }

    .side-rail {
        max-height: calc(100vh - 12px);
    }

    .nav-container {
        padding: 0 0.85rem 0 56px;
    }

    .hero-content {
        padding-left: 56px;
    }

    .logo img {
        height: 40px !important;
    }

    .mega-menu-inner {
        padding: 0.85rem;
    }

    .mega-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mega-item img {
        height: 82px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 0.76rem;
        padding: 0.75rem 1rem;
    }
}

/* Fit the hero video and Premium Service banner to the screen instead of cropping them */
@media (max-width: 899px) {
    .hero {
        aspect-ratio: auto;
        min-height: 0;
        max-height: none;
        padding-top: 62px;
        display: flex;
        flex-direction: column;
        background: #080808;
    }

    .hero-video {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        height: auto;
        aspect-ratio: 1280 / 676;
        object-fit: cover;
        display: block;
        background: #000;
    }

    .hero-overlay {
        display: none;
    }

    .hero-content {
        height: auto;
        padding-top: 1.5rem;
        padding-bottom: 2rem;
        background: #0a0a0a;
    }

    .hero-text {
        max-width: none;
    }

    .feature-banner {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .feature-banner-shade {
        display: none;
    }

    .feature-banner-content {
        position: static;
        inset: auto;
        max-width: none;
        margin: 0;
        height: auto;
        padding: 1.5rem 1.25rem;
    }

    .feature-banner-text {
        max-width: none;
    }
}

@media (max-width: 720px) {
    .hero {
        padding-top: 58px;
    }
}

@media (min-width: 900px) and (max-width: 1240px) {
    .feature-banner-text {
        max-width: 38vw;
    }
}

@media (min-width: 2400px) {
    .feature-banner-content {
        max-width: none;
        margin: 0;
        padding-left: clamp(2rem, 8vw, 220px);
    }
}
