/* CSS Variables for Theme */
:root {
    --primary-color: #002366; /* Navy blue */
    --secondary-color: #ffffff;
    --accent-color: #bc002d; /* Japanese red */
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --dark-gray: #444444;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
h1{
    font-size: 50px;
line-height: 64px;
color: #222;
}
h2{
    font-size: 46px;
    line-height: 54px;
    color: #222;
}
h4{
   line-height: 36px;
    font-weight: 700;
    font-size: 15px;
}
p{
    font-size: 16px;
    color: #4d0909;
    line-height: 30px;
}
.section-p1{
    padding: 40px 80px;
}
.section-m1{
    margin: 40px 0;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #242527 0%, #35363a 50%, #35363a 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 2px 10px rgba(9, 26, 80, 0.3);
    position: fixed;
    width: 100%;
    top: 40px; /* Position below the top info bar */
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Top Info Bar Styles */
.top-info-bar {
    background-color: #000000;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    padding: 8px 0;
}

.top-info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.established-info .established-text {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.japan-time-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.time-icon {
    font-size: 1rem;
    animation: pulse 2s infinite;
}

.japan-time-text {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

#japan-time {
    color: #ffd700;
    font-weight: 500;
    margin-left: 2px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Main Header Styles */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    position: relative;
    margin-right: 15px;
}

.logo-icon img {
    height: 65px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(95, 80, 80, 0.3));
    transition: filter 0.3s ease;
}

.logo-icon:hover img {
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

.logo-text {
    font-family: 'Arial Black', Arial, sans-serif;
    font-weight: 900;
    margin-left: 5px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.1;
    font-size: 1.8rem;
    position: relative;
}

.logo-text::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.logo:hover .logo-text::before {
    opacity: 1;
}

.logo-text span {
    color: #ffffff;
    display: block;
    font-size: 0.7em;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-family: 'Arial', sans-serif;
}

/* Navigation */
/* Mobile Toggle Button */
.nav-toggle {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}


nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li {
    margin-left: 25px;
    position: relative;
}

nav ul li:first-child {
    margin-left: 0;
}

/* Enhanced Navigation Links */
.nav-menu li a {
    display: inline-block;
    position: relative;
    text-decoration: none;
    padding: 12px 20px;
    margin: 0 5px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    overflow: hidden;
}

/* Innovative Hover Effects */
.nav-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-menu li a:hover::before {
    left: 100%;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #c7c7c7, #ffffff, #ffd700);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu li a:hover::after {
    width: 80%;
}

/* Active State */
.nav-menu li a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #f0eee4;
    box-shadow: 0 4px 15px rgba(196, 195, 189, 0.3);
    transform: translateY(-2px);
}

.nav-menu li a.active::after {
    width: 80%;
    background: #c4c4c4;
}

/* Hover States */
.nav-menu li a:hover {
    color: #f5f3e9;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Navigation Container Enhancement */
nav {
    position: relative;
}

nav::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -20px;
    right: -20px;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

nav:hover::before {
    opacity: 1;
}

/* Hero Section */
.hero {
    /* Background with graceful degradation */
    background: url('images/mainhero.png') no-repeat center center/cover;
    /* Layout */
    height: 90vh;
    ;
    min-height: 100dvh;
    max-height: 1200px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--secondary-color);
    margin-top: 120px;
    position: relative;
    
    /* Performance optimizations */
    background-attachment: scroll;
    will-change: transform;
    backface-visibility: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #8b0101;
}

.hero h2 {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #f70000;
}

.btn {
     background-color: var(--accent-color); 
    color: var(--secondary-color);
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: inline-block; /* Ensures proper button sizing */
}

.btn:hover {
    background-color: #9c0025;
    transform: translateY(-2px);
}

.contact-icon {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  width: 50px;
  height: 50px;
  background-color: #062544;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1);
}

.contact-icon:hover {
  transform: scale(1.1);
  background-color: #004c99;
}


/* Vehicle Grid */
.vehicles {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.filters select {
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.vehicle-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.vehicle-image {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.vehicle-details {
    padding: 20px;
}

.vehicle-details h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.vehicle-price {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin: 10px 0;
}
.inventory-button-container {
    display: flex;
    justify-content: center;
    margin: 30px 0; /* Adds space above and below the button */
    width: 100%;
    height: 80px; 
}
/* Services Section */
.services {
    padding: 60px 0;
    background-color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background-color: var(--light-gray);
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-section p {
    color: var(--secondary-color);
}
    
.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;;
}
.copyright p{
    color: var(--secondary-color);
}

.select-container {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

/* Base Select Styling */
.select-container select {
    width: 100%;
    padding: 12px 40px 12px 15px;
    font-size: 16px;
    color: #333;
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Hover State */
.select-container select:hover {
    border-color: #bc002d; /* Your accent color */
}

/* Focus State */
.select-container select:focus {
    outline: none;
    border-color: #002366; /* Your primary color */
    box-shadow: 0 0 0 3px rgba(0, 35, 102, 0.1); /* Primary color with opacity */
}

/* Disabled State */
.select-container select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Custom Dropdown Arrow */
.select-container::after {
    content: "▼";
    font-size: 12px;
    color: #002366; /* Primary color */
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Options Styling */
.select-container option {
    padding: 10px 15px;
    background: white;
    color: #333;
}

/* Option Hover State */
.select-container option:hover {
    background-color: #002366; /* Primary color */
    color: white;
}

/* Group Headers */
.select-container optgroup {
    font-weight: bold;
    color: #002366; /* Primary color */
    padding: 5px 0;
}
/* Shop page */

/* Contact page */
#about-header{
    background-image: url(images/nagoya.jpg);
    width: 100%;
    height: 100svh;
    background-size: cover;
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 14px;
}
#about-header h2,
#about-header p{
    color: #fff;
}
#about-head{
    display: flex;
    align-items: center;
}
#about-head img{
    width: 50%;
    height: auto;
}
#about-head div{
    padding-left: 40px;
}
#contact-details{
display: flex;
align-items:center ;
justify-content: space-between;
}

#contact-details .details{
    width: 40%;
}
#contact-details .details span,
#form-details form span{
    font-size: 12px;
}
#contact-details .details h2,
#form-details form h2{
        font-size: 26px;
        line-height: 35px;
        padding: 20px 0;
}
#contact-details .details h3{
    font-size: 16px;
    padding-bottom: 15px;
}
#contact-details .details li{
list-style: none;
display: flex;
padding: 10px 0;
}
#contact-details .details li i{
    font-size: 14px;
    padding-right: 22px;
}  
#contact-details .details li p{
    margin: 0;
    font-size: 14px;
}
#contact-details .map{
width: 55%;
height: 400px;
}
#contact-details .map iframe{
    width: 100%;
    height: 100%;
    }
    #form-details{
        display: flex;
        justify-content: space-between;
        margin: 30px;
        padding: 80px;
        border: 1px solid #e1e1e1;
    }
#form-details form{
width: 65%;
display: flex;
flex-direction: column;
align-items: flex-start;
}

#form-details form input,
#form-details form textarea{
    width: 100%;
    padding: 12px 15px;
    outline: none;
    margin-bottom: 20px;
    border: 1px solid #e1e1e1;
}
#form-details form button{
    background-color: #088178;
    color: #fff;
}
#form-details .people{
    padding-bottom: 25px;
}
#form-details .people div img{
    width: 65px;
    height: 65px;
    object-fit: cover;
    margin-right: 15px;
}
#form-details .people div p{
    margin: 0;
    font-size: 13px;
    line-height: 25px;
}
#form-details .people div p span{
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #000;
}
/* Product page */
/* Product Section */
.product-container {
  display: flex;
  max-width: 1200px;
  margin: 2rem auto;
  gap: 2rem;
}

.product-image, .product-details {
  flex: 1;
}

.product-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
  margin-top: 2rem;
}

.thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.thumbnails img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
}

.thumbnails img:hover {
  border-color: #0066cc;
}

/* Related Cars */
.cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.car-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
}

.car-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}






/* Responsive Design */
/* Large tablets and small desktops */
@media (max-width: 1024px) {
    /* Keep top info bar visible on tablets */
    .top-info-bar {
        padding: 6px 0;
    }
    
    .established-info .established-text,
    .japan-time-text {
        font-size: 0.8rem;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    /* Show smaller version of top info bar */
    .top-info-bar {
        padding: 5px 0;
        font-size: 0.75rem;
    }
    
    .established-info .established-text,
    .japan-time-text {
        font-size: 0.75rem;
    }
    
    .time-icon {
        font-size: 0.9rem;
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    /* Adjust hero section margin for mobile with top bar */
    .hero {
        margin-top: 100px;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 40px;
        height: 60px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1001;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .toggle-bar {
        width: 100%;
        height: 3px;
        background: var(--secondary-color) !important;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    nav ul {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 80px);
        background: var(--primary-color);
        flex-direction: column;
        padding: 2rem 0;
        transition: right 0.3s ease;
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        margin: 1rem 0;
        text-align: center;
    }

    nav ul li a {
        color: var(--secondary-color);
        padding: 0.5rem 2rem;
        display: block;
    }

    /* Hamburger to X animation */
    .nav-toggle.active .toggle-bar:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    
    .nav-toggle.active .toggle-bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .toggle-bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    #form-details{
    padding: 40px;
}
#form-details form{
    width: 50%;
}
}

    


/* Small mobile devices (iPhone X and similar) */
@media (max-width: 477px) {
    /* Keep top info bar visible but smaller */
    .top-info-bar {
        padding: 4px 0;
    }
    
    .established-info .established-text,
    .japan-time-text {
        font-size: 0.7rem;
    }
    
    .time-icon {
        font-size: 0.8rem;
    }
    
    /* Fix header positioning */
    header {
        top: 25px; /* Adjust for smaller top bar */
    }
    
    /* Adjust hero section margin */
    .hero {
        margin-top: 85px;
    }
    .hero-heading {
    font-size: 1.2rem;            /* Slightly smaller font for narrow screens */
    top: 35%;                     /* Adjust vertical position if needed */
  }
    
    /* Fix hamburger menu size */
    .nav-toggle {
        width: 15px;
        height: 45px;
        padding: 7px;
    }
    
    .toggle-bar {
        width: 25px;
        height: 3px;
        margin: 4px 0;
        background: var(--secondary-color) !important;
    }
    
    /* Adjust mobile menu position */
    nav ul {
        top: 65px;
        height: calc(100vh - 65px);
    }
    
    /* Logo adjustments for small screens */
    .logo-icon img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    #contact-details{
   
    flex-direction: column;
}
#contact-details .details{
    width: 100%;
    margin-bottom: 30px;
}
#contact-details .map{
    width: 100%;
}
}

/* Very small devices (iPhone SE and smaller) */


/* about */
#about-head{
   
    flex-direction: column;
}
#about-head img{
width: 100%;
margin-bottom: 20px;
}
#about-head div{
    padding-left: 0px;
}

    /* contact */
#contact-details .details{
    width: 100%;
    margin-bottom: 30px;
}
#contact-details .map{
    width: 100%;
}
#form-details{
    margin: 10px;
    padding: 30px 10px;
   flex-wrap: wrap;
}
#form-details form{
    width: 100%;
    margin-bottom: 30px;
}



