:root {
    /* Corporate Dark (Slate 900 base) */
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    /* Blue 500 */
    --accent-glow: rgba(59, 130, 246, 0.3);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(148, 163, 184, 0.1);
    --header-scrolled-bg: rgba(10, 10, 10, 0.8);
    --font-main: 'Outfit', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
}

[data-theme="light"] {
    /* Corporate Light (Slate 50 base) */
    --bg-color: #f8fafc;
    --text-color: #334155;
    --text-secondary: #64748b;
    --accent-color: #2563eb;
    /* Blue 600 */
    --accent-glow: rgba(37, 99, 235, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(51, 65, 85, 0.1);
    --header-scrolled-bg: rgba(248, 250, 252, 0.9);
}

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

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Background Canvas */
.background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-color);
    transition: background 0.3s ease;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: background 0.3s ease, padding 0.3s ease;
    backdrop-filter: blur(10px);
}

.header.scrolled {
    background: var(--header-scrolled-bg);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo .dot {
    color: var(--accent-color);
}

.nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--accent-color);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    /* Ensure click passes to button */
}

.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.btn-contact {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-color) !important;
}

.btn-contact:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
    color: white !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-title {
    font-size: 5rem;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.reveal-text:nth-child(1) {
    animation-delay: 0.2s;
}

.reveal-text:nth-child(2) {
    animation-delay: 0.4s;
}

.reveal-text:nth-child(3) {
    animation-delay: 0.6s;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-color);
}

.hero-subtitle {
    font-family: var(--font-jp);
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.reveal-text-delay {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.8s;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-color), transparent);
}

/* Section Styles */
.section {
    padding: 8rem 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

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

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.icon-box {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-family: var(--font-jp);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* About */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.info-row {
    display: flex;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row dt {
    width: 150px;
    font-weight: 700;
    color: var(--text-secondary);
    font-family: var(--font-jp);
}

.info-row dd {
    font-family: var(--font-jp);
    font-weight: 500;
}

/* Contact */
.contact-text {
    font-family: var(--font-jp);
    margin-bottom: 3rem;
    color: var(--text-secondary);
}

.big-btn {
    font-size: 1.2rem;
    padding: 1.2rem 4rem;
}

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

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations Classes */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

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

    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .nav ul {
        gap: 1.5rem;
    }

    .info-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}
