:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #00ff41;
    /* Matrix Green */
    --accent-secondary: #008f11;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Noto Sans JP', sans-serif;
    --font-tech: 'Orbitron', sans-serif;
}

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

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

/* Background Effect */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    pointer-events: none;
}

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

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

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

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-tech);
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.cta-button {
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    color: var(--accent-color);
    transition: all 0.3s;
}

.cta-button:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--accent-color);
}

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

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 2rem;
    font-family: var(--font-tech);
    letter-spacing: 1px;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    20% {
        clip: rect(80px, 9999px, 100px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    60% {
        clip: rect(60px, 9999px, 80px, 0);
    }

    80% {
        clip: rect(30px, 9999px, 40px, 0);
    }

    100% {
        clip: rect(90px, 9999px, 95px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(60px, 9999px, 80px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 20px, 0);
    }

    40% {
        clip: rect(90px, 9999px, 100px, 0);
    }

    60% {
        clip: rect(30px, 9999px, 50px, 0);
    }

    80% {
        clip: rect(50px, 9999px, 70px, 0);
    }

    100% {
        clip: rect(20px, 9999px, 40px, 0);
    }
}

/* Ticker */
.ticker-tape {
    background: rgba(0, 255, 65, 0.1);
    border-top: 1px solid var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    padding: 0.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    margin-top: 2rem;
}

.ticker-content {
    display: inline-block;
    font-family: var(--font-tech);
    color: var(--accent-color);
    animation: ticker 20s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Hero Image */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 255, 65, 0.1) 51%);
    background-size: 100% 4px;
    pointer-events: none;
}

/* Profile Section */
.profile-section {
    padding: 5rem 10%;
    background: #0a0a0a;
}

.section-title {
    font-family: var(--font-tech);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

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

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

.profile-card h3 {
    font-family: var(--font-tech);
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.dream-box {
    background: linear-gradient(45deg, #000, #111);
    border: 1px solid var(--accent-color);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.dream-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Philosophy Section */
.philosophy-section {
    padding: 5rem 10%;
    text-align: center;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
}

.philosophy-content p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Contact Section */
.contact-section {
    padding: 5rem 10%;
    text-align: center;
    background: #000;
}

.x-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    border: 1px solid #333;
    margin-top: 2rem;
    transition: all 0.3s;
}

.x-button:hover {
    background: #111;
    border-color: var(--accent-color);
    transform: scale(1.05);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #222;
    color: #666;
    font-family: var(--font-tech);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column-reverse;
        padding-top: 100px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
        margin-bottom: 2rem;
    }
}

/* Story Page Styles */
.story-hero {
    padding: 8rem 10% 4rem;
    text-align: center;
}

.story-subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-top: 1rem;
    font-family: var(--font-tech);
}

.character-sheet-section {
    padding: 2rem 10%;
    display: flex;
    justify-content: center;
}

.sheet-wrapper {
    position: relative;
    max-width: 800px;
    width: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
}

.char-sheet-img {
    width: 100%;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.sheet-wrapper:hover .char-sheet-img {
    opacity: 1;
}

.sheet-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem;
    pointer-events: none;
}

.sheet-info h3 {
    font-family: var(--font-tech);
    color: var(--accent-color);
    font-size: 1.5rem;
}

.story-content {
    padding: 4rem 10%;
    max-width: 800px;
    margin: 0 auto;
}

.story-article h2 {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.story-article p {
    font-size: 1.1rem;
}

.section-title {
    font-family: var(--font-tech);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

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

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

.profile-card h3 {
    font-family: var(--font-tech);
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.dream-box {
    background: linear-gradient(45deg, #000, #111);
    border: 1px solid var(--accent-color);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.dream-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Philosophy Section */
.philosophy-section {
    padding: 5rem 10%;
    text-align: center;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
}

.philosophy-content p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Contact Section */
.contact-section {
    padding: 5rem 10%;
    text-align: center;
    background: #000;
}

.x-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    border: 1px solid #333;
    margin-top: 2rem;
    transition: all 0.3s;
}

.x-button:hover {
    background: #111;
    border-color: var(--accent-color);
    transform: scale(1.05);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #222;
    color: #666;
    font-family: var(--font-tech);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column-reverse;
        padding-top: 100px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
        margin-bottom: 2rem;
    }
}

/* Story Page Styles */
.story-hero {
    padding: 8rem 10% 4rem;
    text-align: center;
}

.story-subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-top: 1rem;
    font-family: var(--font-tech);
}

.character-sheet-section {
    padding: 2rem 10%;
    display: flex;
    justify-content: center;
}

.sheet-wrapper {
    position: relative;
    max-width: 800px;
    width: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
}

.char-sheet-img {
    width: 100%;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.sheet-wrapper:hover .char-sheet-img {
    opacity: 1;
}

.sheet-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem;
    pointer-events: none;
}

.sheet-info h3 {
    font-family: var(--font-tech);
    color: var(--accent-color);
    font-size: 1.5rem;
}

.story-content {
    padding: 4rem 10%;
    max-width: 800px;
    margin: 0 auto;
}

.story-article h2 {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.story-article p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.back-link {
    margin-top: 4rem;
    text-align: center;
}

.text-link {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
    transition: all 0.3s;
}

.text-link:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}