/* 
 * Hibikirun Motorcycle Parts - Custom Styles
 * Bootstrap 5 + Custom CSS
 */

/* ===== CSS Variables ===== */
:root {
    --primary-red: #e30614;
    --primary-black: #000000;
    --primary-white: #ffffff;
    --dark-gray: #1a1a1a;
    --medium-gray: #333333;
    --light-gray: #f5f5f5;
    --text-gray: #666666;
    --border-gray: #dddddd;
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark-gray);
    background-color: var(--primary-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-red);
}

/* ===== Navigation ===== */
.navbar {
    background-color: var(--primary-black);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(0,0,0,0.95);
}

.navbar-brand img {
    height: 45px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--primary-white) !important;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 1.25rem !important;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 1.25rem;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 2.5rem);
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.3);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--primary-black);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(227,6,20,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--primary-white);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-title span {
    color: var(--primary-red);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin-bottom: 2rem;
}

/* ===== Buttons ===== */
.btn-primary-custom {
    background-color: var(--primary-red);
    color: var(--primary-white);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2.5rem;
    border: 2px solid var(--primary-red);
    border-radius: 0;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary-custom:hover {
    background-color: transparent;
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(227,6,20,0.3);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--primary-white);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2.5rem;
    border: 2px solid var(--primary-white);
    border-radius: 0;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline-custom:hover {
    background-color: var(--primary-white);
    color: var(--primary-black);
    transform: translateY(-2px);
}

/* ===== Section Styles ===== */
.section-padding {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--dark-gray);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-red);
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* ===== Feature Cards ===== */
.feature-card {
    background-color: var(--primary-white);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.feature-text {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ===== Product Cards ===== */
.product-card {
    background-color: var(--primary-white);
    border: 1px solid var(--border-gray);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    background-color: var(--light-gray);
    padding: 2rem;
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-red);
    color: var(--primary-white);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
}

.product-info {
    padding: 1.5rem;
}

.product-sku {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.product-name {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin: 0.5rem 0;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.product-link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.product-link:hover {
    gap: 1rem;
}

/* ===== About Section ===== */
.about-section {
    background-color: var(--light-gray);
}

.about-image {
    position: relative;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 3px solid var(--primary-red);
    border-left: 3px solid var(--primary-red);
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-bottom: 3px solid var(--primary-red);
    border-right: 3px solid var(--primary-red);
}

.about-content {
    padding: 2rem;
}

.about-title {
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.about-text {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.about-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark-gray);
}

.about-features li i {
    color: var(--primary-red);
}

/* ===== Stats Section ===== */
.stats-section {
    background-color: var(--primary-black);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary-red);
    line-height: 1;
}

.stat-label {
    color: rgba(255,255,255,0.7);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-gray) 100%);
    padding: 5rem 0;
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-white);
    margin-bottom: 1rem;
}

.cta-text {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary-black);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 1.5rem;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--primary-white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-red);
    margin-top: 0.25rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    transition: all 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-gray) 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.webp') center/cover;
    opacity: 0.2;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--primary-white);
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
}

.page-breadcrumb {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,0.7);
}

.page-breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.page-breadcrumb a:hover {
    color: var(--primary-red);
}

/* ===== Product Detail Page ===== */
.product-detail-section {
    padding: 4rem 0;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    background-color: var(--light-gray);
    padding: 2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-gray);
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: contain;
}

.thumbnail-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    background-color: var(--light-gray);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--primary-red);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-info {
    padding: 1rem 0;
}

.detail-sku {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-gray);
    letter-spacing: 1px;
}

.detail-name {
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin: 0.5rem 0 1.5rem;
}

.detail-description {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.specs-table {
    width: 100%;
    margin-bottom: 2rem;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-gray);
}

.specs-table td {
    padding: 1rem 0;
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--dark-gray);
    width: 40%;
}

.specs-table td:last-child {
    color: var(--text-gray);
}

/* ===== Contact Page ===== */
.contact-section {
    padding: 4rem 0;
}

.contact-info-card {
    background-color: var(--primary-black);
    padding: 2.5rem;
    color: var(--primary-white);
    height: 100%;
}

.contact-info-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    color: var(--primary-red);
    font-size: 1.2rem;
    margin-top: 0.25rem;
}

.contact-info-item h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-info-item p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin: 0;
}

.contact-form {
    padding: 2rem;
    background-color: var(--primary-white);
    border: 1px solid var(--border-gray);
}

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

.form-label {
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--dark-gray);
}

.form-control {
    border: none;
    border-bottom: 2px solid var(--border-gray);
    border-radius: 0;
    padding: 0.75rem 0;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: transparent;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-red);
    background-color: transparent;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== Responsive Styles ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--primary-black);
        padding: 1rem;
        margin-top: 0.5rem;
    }
    
    .hero-content {
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
    
    .about-image::before,
    .about-image::after {
        display: none;
    }
    
    .product-gallery {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .footer {
        padding: 3rem 0 1rem;
    }
    
    .contact-info-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    .main-image img {
        height: 280px;
    }
}
