:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #00f2ff;
    --secondary-color: #7000ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

* {
    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.6;
    overflow-x: hidden;
}

/* Background Effects */
.glass-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, #1a0b36 0%, #000000 100%);
    z-index: -1;
}

.circle-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    opacity: 0.4;
    filter: blur(80px);
    animation: float 10s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

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

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(45deg, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav a {
    margin-left: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

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

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

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.cta-button:hover::before {
    opacity: 0.2;
}

/* Sections */
.section {
    padding: 8rem 10%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

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

.card,
.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

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

.card p,
.project-card p {
    font-size: 0.95rem;
    opacity: 0.7;
}

.project-tags span {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Contact */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-btn {
    padding: 0.8rem 2rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}

.social-btn:hover {
    background: var(--glass-bg);
    border-color: var(--accent-color);
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
    border-top: 1px solid var(--glass-border);
}

/* CTA Section */
.cta {
    padding: 100px 0;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-box p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.6;
}

.big-btn {
    font-size: 1.2rem;
    padding: 15px 40px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    transition: all 0.3s ease;
}

.big-btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Article Specific (Important for Markdown) */
.article-container {
    padding-top: 150px;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.article-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.article-content h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.article-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #ddd;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: #ddd;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content pre {
    background: #111;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 2rem;
    border: 1px solid #333;
}

.article-content code {
    font-family: 'Consolas', monospace;
    color: #ff7b72;
}

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

    .section {
        padding: 4rem 5%;
    }
}