:root {
    --primary-color: #ffffff;
    --accent-color: #4b6cb7;
    /* Royal blue */
    --text-color: #eeeeee;
    --bg-color: #121212;
    /* Matte Charcoal */
    --light-bg: #1a1a1a;
    /* Subtle depth */
    --dark-bg: #0a0a0a;
    --font-heading: 'Libre Baskerville', serif;
    --font-body: 'Noto Sans JP',
        sans-serif;
    --container-width: 1200px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    margin-left: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Layout Utilities */
.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--dark-bg);
    color: white;
}

/* Header */
.header {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
    /* Align items vertically */
}

.nav-list a {
    font-weight: 500;
    color: var(--primary-color);
}

.nav-list a:hover {
    color: var(--accent-color);
}

/* Language Switcher */
.lang-switch {
    margin-left: 1.5rem;
}

.btn-lang {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: all 0.3s;
}

.btn-lang:hover {
    background-color: var(--primary-color);
    color: black;
}


/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #ccc;
    max-width: 600px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #111;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.02);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Works Grid */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.work-item {
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.02);
    transition: transform 0.3s;
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-image-container {
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
    /* Fallback */
}

.work-image-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.work-item:hover .work-image-real {
    transform: scale(1.05);
}

.work-info {
    padding: 1.5rem;
}

.work-info h4 {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    background-color: #0a0a0a;
    color: white;
    border-radius: 4px;
    font-family: inherit;
}

/* Footer */
.footer {
    background-color: #000;
    color: white;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #222;
}

/* Consulting Banner */
.consulting-banner {
    position: relative;
    padding: 8rem 0;
    background-color: #222;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: white;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.consulting-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    transition: background 0.3s;
}

.consulting-banner:hover::before {
    background: rgba(0, 0, 0, 0.4);
}

.consulting-banner .container {
    position: relative;
    z-index: 2;
}

.banner-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.banner-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header .container {
        position: relative;
        /* Context for absolute positioning if needed */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
        /* Ensure toggle is above nav */
    }

    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        margin: 5px 0;
        transition: 0.3s;
    }

    .nav {
        display: flex;
        align-items: center;
    }

    .lang-switch {
        margin-right: 15px;
        /* Space between lang switch and hamburger */
    }

    .nav-list {
        position: fixed;
        top: 60px;
        /* Header height layout dependent */
        left: 0;
        width: 100%;
        background-color: #000;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 4px 6px rgba(255, 255, 255, 0.05);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-list.active {
        transform: translateY(0);
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}