:root {
    --bg-color: #0F172A;
    --text-color: #E2E8F0;
    --primary-color: #00E5FF;
    /* Cyan */
    --secondary-color: #7B2CBF;
    /* Purple */
    --accent-color: #3B82F6;
    /* Blue */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --border-radius: 12px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --section-spacing: 120px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

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

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
    transition: padding 0.3s ease;
}

.header.scrolled {
    padding: 12px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.logo .highlight {
    color: var(--primary-color);
}

.nav ul {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
}

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

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.btn-primary.large,
.btn-secondary.large {
    padding: 14px 36px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Abstract Background Shapes */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.2;
    animation: move 20s infinite alternate;
}

.hero::before {
    background: var(--primary-color);
    top: -10%;
    right: -10%;
}

.hero::after {
    background: var(--secondary-color);
    bottom: -10%;
    left: -10%;
    animation-direction: alternate-reverse;
}

@keyframes move {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

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

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.125rem;
    color: #94A3B8;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Sections */
.section {
    padding: var(--section-spacing) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.about-content p {
    color: #94A3B8;
    margin-bottom: 20px;
}

.about-visual {
    position: relative;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.stat-item {
    margin-bottom: 20px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-heading);
}

.stat-label {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.service-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    background: rgba(30, 41, 59, 0.6);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: white;
}

.service-card p {
    color: #94A3B8;
    font-size: 0.95rem;
}

/* Works Section */
.works-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.work-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.3), rgba(15, 23, 42, 0.5));
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px 16px 16px 4px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover {
    transform: translateX(8px);
    border-left-color: var(--primary-color);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.7));
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.05);
}

.work-content {
    padding: 28px 40px;
    display: grid;
    grid-template-areas:
        "category description"
        "title    description"
        "title    tags";
    grid-template-columns: 260px 1fr;
    gap: 8px 48px;
    align-items: start;
}

.work-category {
    grid-area: category;
    font-size: 0.8rem;
    color: #94A3B8;
    /* Muted color for category in this layout */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.work-card h3 {
    grid-area: title;
    font-size: 1.5rem;
    margin: 0;
    color: white;
    line-height: 1.3;
    background: linear-gradient(90deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.work-card p {
    grid-area: description;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.tech-stack {
    grid-area: tags;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    align-self: end;
}

.tech-tag {
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--primary-color);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

/* Responsive adjustments for Work Cards */
@media (max-width: 900px) {
    .work-content {
        grid-template-areas:
            "category"
            "title"
            "description"
            "tags";
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 30px;
    }

    .work-card h3 {
        margin-bottom: 8px;
    }

    .work-card:hover {
        transform: translateY(-4px);
        /* Vertical lift on mobile */
    }
}

/* Contact Section */
.contact-section {
    position: relative;
    padding-bottom: 160px;
}

.contact-box {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(123, 44, 191, 0.15), transparent 60%);
    pointer-events: none;
}

.contact-title {
    font-size: 3rem;
    margin-bottom: 16px;
}

.contact-box p {
    color: #94A3B8;
    margin-bottom: 40px;
}

.company-footer-info {
    margin-top: 40px;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    text-align: center;
    color: #64748B;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
        /* Mobile menu to be implemented if needed, simple hide for simplicity/MVP focus */
    }

    .section-spacing {
        padding: 80px 0;
    }

    .hero::before,
    .hero::after {
        width: 300px;
        height: 300px;
    }
}