:root {
    --color-bg: #0a0f1d;
    --color-surface: #141b2d;
    --color-surface-accent: #1e263d;
    --neon-cyan: #3b82f6;
    --neon-magenta: #60a5fa;
    --neon-gold: #93c5fd;
    --text-main: #ffffff;
    --text-sub: #94a3b8;
    --font-display: 'Impact', 'Arial Black', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--text-main);
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
    overflow-x: hidden;
}

.bg-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        linear-gradient(rgba(59, 130, 246, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
}

.bg-glows {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 80% 10%, rgba(96, 165, 251, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 10% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
    z-index: -1;
}

#loader {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-bg);
    z-index: 9999;
    font-size: 2.2rem;
    font-family: var(--font-display);
    font-style: italic;
    letter-spacing: 8px;
    color: #fff;
    text-shadow: 0 0 20px var(--neon-cyan);
}

header.hero nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    background: rgba(10, 15, 29, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-cyan);
    z-index: 1000;
    box-shadow: 0 5px 30px rgba(59, 130, 246, 0.1);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav .links a {
    color: var(--text-sub);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    padding: 5px 12px;
    border-radius: 4px;
    display: inline-block;
}

nav .links a:hover {
    color: #fff;
    background: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    transform: skewX(-10deg);
}

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,15,29,0.4), rgba(10,15,29,0.95));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1300px;
    margin: auto;
    padding: 40px;
}

.hero h1 {
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    font-weight: 900;
    line-height: 0.95;
    font-style: italic;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero h1 span {
    background: linear-gradient(to right, var(--neon-cyan), var(--neon-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tag {
    font-size: 1.1rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: var(--neon-magenta);
    font-weight: 800;
}

.lead {
    margin-top: 20px;
    font-size: 1.2rem;
    max-width: 700px;
    color: var(--text-sub);
    line-height: 1.8;
}

.section {
    max-width: 1300px;
    margin: auto;
    padding: 120px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.section h2 {
    font-size: 2.2rem;
    font-style: italic;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
    padding: 12px 35px;
    transform: skewX(-15deg);
    display: inline-block;
    margin-bottom: 50px;
}

.section h2 span {
    display: inline-block;
    transform: skewX(15deg);
}

.about-card-box {
    background: var(--color-surface); 
    padding: 40px; 
    border-radius: 16px; 
    border-left: 5px solid var(--neon-cyan);
}
.about-card-box p {
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: var(--text-main);
}

.grid, .works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card, .work {
    background: var(--color-surface);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-left: 5px solid var(--neon-cyan);
    padding: 35px;
    border-radius: 0 16px 16px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card:hover, .work:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--neon-magenta);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
}

.card h3, .work h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
    font-style: italic;
}

.card p, .work p {
    color: var(--text-sub);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-align-center {
    text-align: center;
}
.card-cyan-border {
    border-left: 5px solid var(--neon-cyan);
}
.card-magenta-border {
    border-left: 5px solid var(--neon-magenta);
}
.margin-bottom-20 {
    margin-bottom: 20px;
}

.badge-index {
    position: absolute;
    top: 10px; right: 15px;
    font-family: var(--font-display);
    font-size: 2rem;
    font-style: italic;
    color: rgba(255,255,255,0.03);
}

.timeline {
    border-left: 3px solid var(--neon-cyan);
    padding-left: 35px;
    display: grid;
    gap: 40px;
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -42px; top: 5px;
    width: 11px; height: 11px;
    background: var(--neon-magenta);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-magenta);
}

.timeline-item span {
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--neon-gold);
    display: block;
    margin-bottom: 8px;
}

.timeline-item p {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.7;
}

.btn-vs {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, #1e40af 100%);
    color: #fff;
    padding: 12px 35px;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.2);
    transform: skewX(-15deg);
    transition: all 0.3s;
    text-decoration: none;
}

.btn-vs:hover {
    transform: skewX(-15deg) translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn-vs span {
    display: inline-block;
    transform: skewX(15deg);
}

.contact-center {
    text-align: center;
}
        
.contact-center h2 {
    background: linear-gradient(90deg, transparent, var(--neon-cyan) 50%, transparent);
    padding: 12px 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.contact-btn {
    background: var(--color-surface);
    color: #fff;
    padding: 18px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    border-radius: 8px;
    transform: skewX(-10deg);
    transition: all 0.3s;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-btn span {
    display: inline-block;
    transform: skewX(10deg);
}

.border-github { border-left: 4px solid #6e5494; }
.border-x { border-left: 4px solid #fff; }
.border-youtube { border-left: 4px solid #ff0000; }
.border-fab { border-left: 4px solid var(--neon-cyan); }

.contact-btn:hover {
    transform: skewX(-10deg) translateY(-5px);
    background: var(--color-surface-accent);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.email-selector-box {
    background: var(--color-surface);
    border: 1px dashed rgba(255,255,255,0.1);
    border-top: 3px solid var(--neon-gold);
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 0 0 12px 12px;
}

.email-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-style: italic;
    color: var(--neon-gold);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.email-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.email-btn {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    background: rgba(255,255,255,0.03);
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.email-btn:hover {
    background: linear-gradient(135deg, #1e263d 0%, #1e40af 100%);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.arena-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 15, 29, 0.98);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.arena-modal-container {
    background: var(--color-surface);
    border: 3px solid var(--neon-cyan);
    max-width: 900px; width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.2);
}

.arena-inner-padding {
    padding: 40px;
}

.close-arena {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 10;
}

.close-arena:hover { color: var(--neon-magenta); }

footer {
    color: var(--text-sub);
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

.reveal {
    transform: translateY(50px);
}

@media (max-width: 968px) {
    nav .links { display: none; }
    header.hero nav { padding: 20px; }
    .section { padding: 80px 20px; }
}
