/* Base Styles */
:root {
    --primary-color: #e60012; /* Japanese tech red accent */
    --bg-dark: #0f1012;
    --bg-darker: #080809;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --font-main: 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.3s ease;
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-slow);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggering for lists or grids */
.services-grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.3s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.4s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.5s; }

.rental-grid .rental-item:nth-child(even) { transition-delay: 0.15s; }

/* Placeholders */
.full-width-image-placeholder {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px;
    margin: 50px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.narrow-image-placeholder {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-image-placeholder {
    width: calc(100% + 60px); /* Pull out of padding */
    margin: -40px -30px 25px -30px;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--primary-color);
}

/* Typography */
h1, h2, h3, h4 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
    transition: width 0.5s ease;
}

.section-title:hover::after {
    width: 100px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.accent {
    color: var(--primary-color);
}

.section {
    padding: 100px 0;
}

.dark-bg {
    background-color: var(--bg-darker);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 16, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: var(--transition);
}

/* Hero Section with Slider */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s linear; /* Subtle zoom effect */
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active, .dot:hover {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Buttons */
.cta-btn, .submit-btn, .btn-outline {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary-color);
    color: var(--text-light);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cta-btn::before, .submit-btn::before, .btn-outline::before {
    content: "";
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: rgba(255,255,255,0.2);
    transition: all 0.4s ease;
    transform: skewX(-20deg);
}

.cta-btn:hover::before, .submit-btn:hover::before, .btn-outline:hover::before {
    left: 100%;
}

.cta-btn:hover, .submit-btn:hover {
    background: #ff1a2b;
    box-shadow: 0 10px 20px rgba(230, 0, 18, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    box-shadow: 0 10px 20px rgba(230, 0, 18, 0.3);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
    text-align: justify;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.stat-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Rental Section */
.rental-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.rental-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 25px;
    transition: var(--transition);
}

.rental-item:hover {
    border-left-width: 6px;
    background: linear-gradient(90deg, rgba(230,0,18,0.05) 0%, transparent 100%);
}

.rental-item h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.rental-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* FAQ Section (Accordion) */
.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 25px 0;
    color: var(--text-light);
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.accordion-header:hover {
    color: var(--primary-color);
}

.accordion-header::after {
    content: '+';
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: transform 0.4s ease;
}

.accordion-header.active::after {
    content: '−';
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content p {
    padding-top: 10px;
    padding-bottom: 30px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Careers Section */
.careers-content {
    max-width: 1000px;
    margin: 0 auto;
}

.careers-text h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.careers-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
    text-align: center;
}

.job-list {
    text-align: left;
    margin: 40px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.job-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-left: 4px solid transparent;
    color: var(--text-gray);
    transition: var(--transition);
}

.job-list li:hover {
    border-left-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
}

.job-list li strong {
    color: var(--text-light);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.careers-text .btn-outline {
    display: block;
    width: max-content;
    margin: 0 auto;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 70px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.form-group input:focus + label, .form-group textarea:focus + label {
    color: var(--primary-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(230,0,18,0.2);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(160, 160, 160, 0.4);
}

.contact-info h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.contact-info .address {
    margin-bottom: 25px;
    line-height: 1.8;
    color: var(--text-gray);
}

.contact-info .address strong {
    color: var(--text-light);
}

.global-branches-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 30px;
    transition: var(--transition);
}

.global-branches-box:hover {
    border-color: rgba(230,0,18,0.5);
    background: rgba(255, 255, 255, 0.05);
}

.global-branches {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.branch-list li {
    color: var(--text-gray);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.branch-list li strong {
    color: var(--text-light);
}

.contact-details p {
    margin-bottom: 12px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.contact-details strong {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: #000;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 35px;
    margin-bottom: 20px;
    opacity: 0.5;
    transition: var(--transition);
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer p {
    color: #555;
    font-size: 0.9rem;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-grid {
        display: flex;
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 16, 18, 0.98);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.active {
        display: flex;
        animation: dropDown 0.4s ease forwards;
    }

    @keyframes dropDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}