:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-blue: #4aa0e6;
    --accent-purple: #a04ae6;
    --metal-gradient: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 50%, #2b2b2b 100%);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Noise Overlay (Optimized - Removed heavy SVG filter) */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.02;
    background-image: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.1) 0,
            rgba(255, 255, 255, 0.1) 1px,
            transparent 1px,
            transparent 4px);
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    z-index: 1000;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 100;
    background-color: rgba(5, 5, 5, 0.85);
    /* Changed from mix-blend-mode for performance */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.header-contact {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-contact:hover {
    color: var(--accent-blue);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
}

/* 
   === IMAGE PLACEHOLDERS ===
*/
.visual-exhaust {
    background-image: url('assets/images/exhaust.jpg');
}

.visual-airsus {
    background-image: url('assets/images/airsus.jpg');
}

.visual-frame {
    background-image: url('assets/images/frame.jpg');
}

.visual-welding {
    background-image: url('assets/images/welding.jpg');
}

.visual-fabrication {
    background-image: url('assets/images/fabrication.jpg');
}

.hero-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(74, 160, 230, 0.1) 0%, rgba(5, 5, 5, 0.9) 60%),
        linear-gradient(0deg, rgba(74, 160, 230, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 160, 230, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    background-position: center, 0 0, 0 0;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    background: linear-gradient(90deg, #fff, #888, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.tagline {
    font-size: 1rem;
    letter-spacing: 8px;
    color: #888;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-indicator span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #fff, transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Service Sections */
/* Service Sections - Split Layout */
.service-section {
    min-height: 80vh;
    display: flex;
    align-items: stretch;
    padding: 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--bg-color);
}

.service-content {
    flex: 1;
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    background: rgba(5, 5, 5, 0.85);
    /* Increased opacity to reduce blur dependency */
    backdrop-filter: blur(4px);
    /* Reduced blur for performance */
    -webkit-backdrop-filter: blur(4px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Align text based on layout - default left */
.service-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.1;
}

.service-content h3 {
    font-size: 1.2rem;
    color: var(--accent-blue);
    margin-bottom: 2.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.service-content p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 2;
    max-width: 500px;
}

.service-number {
    font-family: var(--font-heading);
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.02);
    position: absolute;
    top: 2rem;
    left: 2rem;
    pointer-events: none;
    z-index: -1;
    line-height: 1;
}

/* Image Side */
.service-visual {
    flex: 1;
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    /* Reset opacity */
    transform: none;
    /* Reset transform */
    width: auto;
    /* Reset width */
    height: auto;
    /* Reset height */
    top: auto;
    left: auto;
    /* Overlay to dim images slightly if needed, or keeping raw for now */
    filter: grayscale(30%) contrast(110%);
    transition: filter 0.5s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.8s ease;
}

.service-visual:hover {
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.02);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(74, 160, 230, 0.2);
    z-index: 5;
}




/* Alternating Layout */
.service-section:nth-of-type(even) {
    flex-direction: row-reverse;
}

.service-section:nth-of-type(even) .service-content {
    align-items: flex-end;
    /* Right align text content for variety */
    text-align: right;
}

.service-section:nth-of-type(even) .service-content h3 {
    color: var(--accent-purple);
}

.service-section:nth-of-type(even) .service-number {
    left: auto;
    right: 2rem;
}

/* Contact Footer */
.contact-footer {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to top, #0a0a0a, var(--bg-color));
}

.contact-inner h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 2rem;
}

.producer-name {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.instagram-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(74, 160, 230, 0.3);
}

.copyright {
    margin-top: 4rem;
    font-size: 0.8rem;
    color: #555;
}

/* Animations & Responsiveness */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .header {
        padding: 1.5rem 1rem;
    }

    .logo {
        font-size: 1rem;
    }

    .header-contact {
        font-size: 0.8rem;
    }

    h1 {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

    .hero {
        height: 100vh;
    }

    .service-section {
        flex-direction: column-reverse !important;
        height: auto;
        min-height: auto;
    }

    .service-visual {
        min-height: 250px;
        flex: none;
        width: 100%;
        height: 250px;
    }

    .service-content {
        padding: 4rem 1.5rem;
        text-align: left !important;
        align-items: flex-start !important;
    }

    .service-content h2 {
        font-size: 2rem;
    }

    .service-content h3 {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .service-content p {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .service-number {
        font-size: 5rem;
        top: 1rem;
        left: 1rem;
        opacity: 0.1;
    }

    .service-section:nth-of-type(even) .service-content {
        text-align: left;
        align-items: flex-start;
    }

    .service-section:nth-of-type(even) .service-number {
        right: auto;
        left: 1rem;
    }

    .contact-inner h2 {
        font-size: 2.2rem;
    }
}