:root {
    --bg-color: #f8fafc;
    /* Bright, clean slate background */
    --text-primary: #0f172a;
    /* Dark slate for main text (accessible on light bg) */
    --text-secondary: #475569;
    /* Softer slate for secondary text */
    --accent-color: #0284c7;
    /* Sky Blue for fresh energetic feel */
    --glass-bg: rgba(255, 255, 255, 0.65);
    /* Frosted white glass */
    --glass-border: rgba(2, 132, 199, 0.15);
    /* Subtle Blue border */
    --glass-blur: 16px;
    --font-en: 'Inter', sans-serif;
    --font-jp: 'Zen Kaku Gothic New', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-en), var(--font-jp);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Physics Background Canvas */
#physics-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #e0f2fe 0%, #f1f5f9 100%);
    /* Light sky-like gradient */
}

/* Background Effect */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(147, 51, 234, 0.08), transparent 25%);
    pointer-events: none;
    display: none;
    /* Replaced by canvas */
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.glass-header.scrolled {
    padding: 1rem 3rem;
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

/* Typography & Layout */
section {
    padding: 6rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

h1,
h2,
h3 {
    font-family: var(--font-en);
    line-height: 1.1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #000, #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    letter-spacing: -0.03em;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 0;
}

.greeting {
    display: block;
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0284c7 0%, #0f172a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .role {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn.primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.25);
}

.btn.secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn.secondary:hover {
    border-color: var(--text-primary);
}

/* Cards & Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 24px;
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(2, 132, 199, 0.3);
}

/* About Section */
.about-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    list-style: none;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* YouTube Section */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Works Grid */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.work-card {
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    cursor: pointer;
    background: linear-gradient(to bottom right, var(--glass-bg), transparent);
    position: relative;
    overflow: hidden;
}

.work-card:hover {
    transform: translateY(-5px);
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.work-card:hover::before {
    opacity: 0.4;
}

.work-content {
    position: relative;
    z-index: 1;
}

.work-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.work-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tags span {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    background: rgba(2, 132, 199, 0.1);
    color: var(--text-primary);
    margin-right: 0.5rem;
}

/* Contact */
.contact-wrapper {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-top: 1px solid var(--glass-border);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .glass-header {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
        /* Simple hide for now, could add hamburger */
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Blog Specific Styles */
.blog-card {
    justify-content: flex-start;
    aspect-ratio: auto;
    min-height: 320px;
    padding-top: 3rem;
}

/* Article Detail Styles */
.article-header {
    margin-bottom: 4rem;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-content {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.9;
}

.article-content p {
    margin-bottom: 2rem;
}

.article-content h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--text-primary);
}