/* Modern CSS Variables */
:root {
    --primary-color: #0a0a0a;
    --secondary-color: #1a1a1a;
    --tertiary-color: #2a2a2a;
    --accent-color: #ffd700;
    --accent-hover: #ffed4e;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666666;
    --gradient-primary: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
    --gradient-accent: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    --gradient-text: linear-gradient(135deg, #ffd700 0%, #ffffff 50%, #ffd700 100%);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.5);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}
/* Anchor offset for fixed navbar */
section[id] { scroll-margin-top: 84px; }

body {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--primary-color);
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.display-4 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.lead {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 400;
    line-height: 1.5;
}

/* Navigation Styles */
.navbar {
    background: transparent !important;
    backdrop-filter: none;
    border-bottom: none;
    transition: all var(--transition-medium);
    padding: 1.5rem 0;
    font-weight: 500;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar.scrolled {
    background: transparent !important;
    backdrop-filter: none;
    border-bottom: none;
    padding: 1.5rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--accent-color) !important;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    padding: 0.25rem 0.6rem;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.logo-img {
    height: 72px;
    width: auto;
    margin-right: 12px;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3));
}

.brand-text {
    background: linear-gradient(135deg, #ffea75 0%, #ffd700 40%, #fff2a6 70%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.55), 0 0 14px rgba(255, 215, 0, 0.45);
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    margin: 0 0.8rem;
    transition: all var(--transition-fast);
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.navbar-nav { width: 100%; justify-content: flex-end; }
.navbar-nav .nav-link { font-size: 1.05rem; }

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -8px;
    left: 50%;
    background: var(--gradient-accent);
    transition: all var(--transition-medium);
    transform: translateX(-50%);
    border-radius: 1px;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    color: var(--accent-color);
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

/* Hero Section */
.hero {
    height: 100vh;
    height: 100svh;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.carousel {
    height: 100%;
    position: relative;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    height: 100vh;
    height: 100svh;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center;
    filter: none;
    transition: transform var(--transition-slow);
}

/* Desktop: Fill screen width and vertically center */
@media (min-width: 768px) {
    .carousel-item img {
        object-fit: cover;
        object-position: center;
        width: 100vw;
        height: 100vh;
        height: 100svh;
    }
}

.carousel-item:hover img {
    transform: scale(1.02);
}

.carousel-caption {
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: 2rem 0;
    bottom: 12%;
    left: 8%;
    right: 8%;
    text-align: center;
    border: none;
    box-shadow: none;
}

/* Translucent panel only behind caption text */
.carousel-caption .caption-bg {
    display: inline-block;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.carousel-caption .caption-bg .modern-btn {
    margin-top: 0.75rem;
}

.carousel-caption h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.japanese-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
    display: block;
    font-size: 0.8em;
    margin-bottom: 0.3em;
    letter-spacing: 0.05em;
}

.english-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    display: block;
    font-size: 0.9em;
}

.carousel-caption .lead {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.carousel-control-prev,
.carousel-control-next {
    display: none;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none;
}
.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.5);
}

/* Carousel indicators styling */
.carousel-indicators {
    position: absolute;
    z-index: 15;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    pointer-events: auto;
    width: auto;
    padding: 0;
    list-style: none;
    bottom: 8px;
}

.carousel-indicators .active {
    background-color: var(--accent-color);
}

/* Mobile indicators - more subtle */
@media (max-width: 768px) {
    .carousel-indicators {
        bottom: 4px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 6px;
        height: 6px;
        background-color: rgba(255, 215, 0, 0.2);
        border: 1px solid rgba(255, 215, 0, 0.3);
    }
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-strong);
}

/* Section Styles */
.section-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Styled list bullets for descriptions */
.styled-list li {
    position: relative;
    padding-left: 1.2rem;
}

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffd700 0%, #ffed4e 80%);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

/* About Section */
.about {
    background: var(--gradient-primary);
    position: relative;
    padding: 6rem 0;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.about-content {
    position: relative;
    z-index: 1;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.about-content .lead {
    font-size: 1.4rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 2rem;
}

.alert-warning {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--accent-color);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin: 2.5rem 0;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.alert-warning i {
    margin-right: 0.5rem;
}

.alert-info {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border-radius: var(--border-radius-md);
    padding: 1rem 1.25rem;
}

/* Cars Section */
.cars {
    background: var(--primary-color);
    position: relative;
    padding: 6rem 0;
}

.car-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-medium);
    border: 1px solid rgba(255, 215, 0, 0.1);
    height: 100%;
    position: relative;
}

.car-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: 1;
    pointer-events: none;
}

.car-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-strong);
}

.car-card:hover::before {
    opacity: 0.05;
}

.car-image {
    height: auto;
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}

.car-info {
    min-height: 140px;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-slow);
    filter: brightness(1) contrast(1.1);
}

.car-card:hover .car-image img {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.2);
}

.car-info {
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.45));
}

.car-info h4 {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
}

.car-info p,
.car-info p.text-muted {
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* Gallery Section */
.gallery {
    background: var(--gradient-primary);
    padding: 6rem 0;
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

/* Gallery Cards */
.gallery-card {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all var(--transition-medium);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    transition: all var(--transition-medium);
    cursor: pointer;
    border-radius: var(--border-radius-md);
    filter: brightness(0.9) contrast(1.1);
}

/* Responsive gallery image heights */
@media (max-width: 576px) {
    .gallery-image {
        height: auto;
        min-height: 200px;
        max-height: 350px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .gallery-image {
        height: auto;
        min-height: 220px;
        max-height: 400px;
    }
}

@media (min-width: 1200px) {
    .gallery-image {
        height: 280px;
    }
}

.gallery-image:hover {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.2);
}

/* Gallery card body styles removed - no text in gallery cards */

/* Load More Button */
#loadMoreBtn {
    background: linear-gradient(135deg, var(--accent-color), #ffed4e);
    border: none;
    color: #1a1a1a !important;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-medium);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

#loadMoreBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #ffed4e, var(--accent-color));
    color: #1a1a1a !important;
}

#loadMoreBtn:active {
    transform: translateY(0);
}

/* Collapse Button Styling */
#loadMoreBtn[data-action="collapse"] {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

#loadMoreBtn[data-action="collapse"]:hover {
    background: linear-gradient(135deg, #495057, #6c757d);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Progressive image loading (blurred colored placeholder) */
.progressive-placeholder {
    position: relative;
    display: block;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 255, 255, 0.06));
    overflow: hidden;
}

.progressive-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 255, 255, 0.09));
    filter: blur(20px);
    transform: scale(1.1);
    transition: opacity 0.4s ease;
}

.progressive-placeholder img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.progressive-loaded::before {
    opacity: 0;
}

.progressive-loaded img {
    opacity: 1;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 0 auto;
    padding-left: 1rem;
    max-width: 900px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 215, 0, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 2.5rem;
}
.timeline { overflow: hidden; }

@media (max-width: 576px) {
    .timeline {
        padding-left: 0.5rem;
    }
    .timeline:before {
        left: 10px;
    }
    .timeline-item {
        padding-left: 2rem;
        margin-bottom: 1.25rem;
    }
    .timeline-dot {
        left: 3px;
        width: 12px;
        height: 12px;
    }
    .timeline-content h5 {
        font-size: 1rem;
    }
    .timeline-content p {
        font-size: 0.95rem;
    }
}

.timeline-dot {
    position: absolute;
    left: 9px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
}

.timeline-content h5 {
    color: var(--text-primary);
    text-align: left;
}

.timeline-content p {
    color: var(--text-secondary);
    text-align: left;
}

/* Masonry layout using CSS multi-columns */
.masonry {
    column-count: 1;
    column-gap: 1rem;
}

@media (min-width: 576px) {
    .masonry { column-count: 2; }
}

@media (min-width: 992px) {
    .masonry { column-count: 3; }
}

@media (min-width: 1400px) {
    .masonry { column-count: 4; }
}

.masonry-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 1rem;
    display: inline-block;
    width: 100%;
}

.masonry-item picture,
.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-md);
}

/* Contact Section */
.contact {
    background: var(--primary-color);
    position: relative;
    padding: 6rem 0;
}

.contact-form .form-control,
.contact-form .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: var(--border-radius-md);
    padding: 1.2rem 1.5rem;
    transition: all var(--transition-medium);
    font-weight: 400;
    font-size: 0.95rem;
}

/* Ensure Select is readable on dark backgrounds */
.contact .form-select {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

.contact .form-select:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Native dropdown list colors (best-effort; browser dependent) */
.contact .form-select option {
    color: #111111 !important;
    background-color: #ffffff !important;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.15);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.contact-form .form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* Visual placeholder for date input when empty */
input[type="date"].is-empty::before {
    content: attr(placeholder);
    color: var(--text-muted);
}

.contact-form .btn-warning {
    background: var(--gradient-accent);
    border: none;
    color: var(--primary-color);
    font-weight: 700;
    padding: 1.2rem 3rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-medium);
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: var(--shadow-soft);
}

.contact-form .btn-warning:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.contact-info {
    padding: 2.5rem 0;
}

.contact-info h5 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.contact-info i {
    transition: all var(--transition-medium);
}

.contact-info:hover i {
    transform: scale(1.1);
    color: var(--accent-hover) !important;
}

/* Footer */
.footer {
    background: #000;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    padding: 2.5rem 0;
}

.social-links a {
    transition: all var(--transition-medium);
    display: inline-block;
    margin: 0 0.8rem;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    color: var(--accent-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-caption {
        bottom: 8%;
        left: 5%;
        right: 5%;
        padding: 2rem;
    }
    
    .carousel-caption h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .carousel-caption .lead {
        font-size: 1.1rem;
    }
    
    
    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .car-image {
        height: auto;
        aspect-ratio: 1/1;
    }
    
    /* Gallery card title styles removed - no text in gallery cards */
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    /* Fix carousel image heights on mobile */
    .hero {
        height: 100vh;
        height: 100svh;
        margin-top: 0;
    }
    
    .carousel {
        height: 100vh;
        height: 100svh;
    }
    
    .carousel-item {
        height: 100vh;
        height: 100svh;
    }
    
    .carousel-item img {
        height: 100vh;
        height: 100svh;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 576px) {
    .carousel-caption {
        padding: 1.5rem;
    }
    
    .carousel-caption h1 {
    font-size: 2rem;
    }
    
    .carousel-caption .lead {
        font-size: 1rem;
    }
    
    /* Ensure consistent carousel heights on small mobile */
    .hero {
        height: 100vh;
        height: 100svh;
        margin-top: 0;
    }
    
    .carousel {
        height: 100vh;
        height: 100svh;
    }
    
    .carousel-item {
        height: 100vh;
        height: 100svh;
    }
    
    .carousel-item img {
        height: 100vh;
        height: 100svh;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .contact-form .btn-warning {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    /* Raise Back to Top button above footer copyright */
    #backToTop {
        bottom: 88px !important;
    }

    /* Lighter caption background on mobile */
    .carousel-caption .caption-bg {
        background: rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        padding: 1rem 1.1rem;
    }

    /* Force single line for About lines on mobile */
    .single-line-mobile {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.9rem !important;
        line-height: 1.3;
        letter-spacing: -0.01em;
        margin-left: auto;
        margin-right: auto;
        max-width: 92%;
    }

    /* Smaller Google Maps button on mobile */
    #meeting .modern-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        border-radius: 40px;
    }

    /* Mobile-first container padding */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Center nav items and improve tap targets on mobile */
    .navbar-nav {
        justify-content: center !important;
    }
    .navbar-nav .nav-link {
        padding: 0.6rem 0.75rem;
        font-size: 1.15rem;
    }

    /* Tighter titles and card paddings */
    .section-title { margin-bottom: 2.5rem; }
    .car-info { padding: 1.25rem; }
    .masonry { column-gap: 0.75rem; }
    .masonry-item { margin-bottom: 0.75rem; }

    /* Reviews cards tighter padding */
    #reviews .card.glass-effect { padding: 1rem !important; }
}

    /* Section padding tighter on mobile */
    .about,
    .cars,
    .gallery,
    #meeting,
    #included,
    #tour-details,
    #additional-info,
    #itinerary,
    #reviews,
    .contact {
        padding: 3.5rem 0;
    }

    /* Stronger contrast for car info overlay on mobile */
    .car-card .car-image img {
        filter: brightness(1) contrast(1.2);
    }
    .car-info {
        background: linear-gradient(180deg, rgba(0,0,0,0.92), rgba(0,0,0,0.75));
        padding: 1.35rem 1rem;
    }
    .car-info h4 {
        text-shadow: 0 3px 6px rgba(0, 0, 0, 0.85);
    }
    .car-info p,
    .car-info p.text-muted {
        font-size: 1rem;
        font-weight: 700;
        text-shadow: 0 3px 6px rgba(0, 0, 0, 0.9);
    }

    /* Styled list bullets and spacing on mobile */
    .styled-list li {
        padding-left: 1rem;
    }
    .styled-list li::before {
        width: 6px;
        height: 6px;
        top: 0.6em;
    }

    /* Navbar brand pill and nav link sizing */
    .navbar-brand {
        padding: 0.2rem 0.5rem;
    }
    .navbar-nav .nav-link {
        font-size: 1.1rem;
        margin: 0 0.6rem;
    }

    /* Reviews cards tighter padding */
    .card.glass-effect {
        padding: 1rem !important;
    }

    /* Modal button size */
    #contactThanksModal .modern-btn {
        padding: 0.8rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 215, 0, 0.2);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Delayed loading overlay for slow page loads */
.loading-delayed {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.loading-delayed .loading-spinner {
    width: 48px;
    height: 48px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modern Japanese Button Styling */
.modern-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffed4e 100%);
    border: none;
    color: var(--primary-color);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    transition: all var(--transition-medium);
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.modern-btn:hover {
    background: linear-gradient(135deg, #ffed4e 0%, var(--accent-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4);
    color: var(--primary-color);
}

.modern-btn:hover::before {
    left: 100%;
}

/* Japanese Design Elements */
.japanese-pattern {
    position: relative;
}

.japanese-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Enhanced Visibility Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glow-effect {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.text-glow {
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

/* Japanese Typography Enhancements */
.japanese-accent {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Modern Japanese Grid Pattern */
.japanese-grid {
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Smooth transitions for all interactive elements */
* {
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-medium), box-shadow var(--transition-medium);
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* Focus visibility for keyboard users */
:focus-visible {
    outline: 2px dashed var(--accent-color);
    outline-offset: 3px;
}