:root {
    --primary: #00f2ff;
    --secondary: #ff007a;
    --accent: #bd00ff;
    --bg-dark: #050507;
    --text-main: #e0e0e0;
    --text-dim: #888890;
    --glass: rgba(10, 10, 15, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

/* Background Video */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    will-change: transform;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(1.1) contrast(1.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 5, 7, 0.6) 0%, rgba(5, 5, 7, 0.9) 100%);
    backdrop-filter: blur(1px);
    z-index: -1;
}

/* Vertical Japanese Text */
.vertical-text {
    position: fixed;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 100;
    font-size: 0.75rem;
    letter-spacing: 0.5em;
    writing-mode: vertical-rl;
    color: var(--text-dim);
    opacity: 0.3;
    z-index: 10;
    pointer-events: none;
    text-transform: uppercase;
}

.side-text-left { left: 2rem; top: 50%; transform: translateY(-50%); }
.side-text-right { right: 2rem; top: 50%; transform: translateY(-50%); }

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(20px);
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
}

.logo-box {
    background: var(--secondary);
    color: #fff;
    padding: 0.2rem 0.5rem;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 2px;
    letter-spacing: 1px;
}

.logo span { color: var(--primary); }

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    transition: var(--transition);
    position: relative;
    font-family: 'Noto Sans JP', sans-serif;
}

.nav-links a span {
    font-size: 0.6rem;
    color: var(--primary);
    margin-right: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background: #fff;
    margin: 6px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.jp-tag {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid var(--secondary);
    padding: 2px 6px;
    letter-spacing: 0;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 7.5rem);
    line-height: 0.9;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.highlight {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    position: relative;
}

.hero-description {
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto 3rem;
    color: var(--text-dim);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Noto Sans JP', sans-serif;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
}

.scroll-indicator span {
    font-size: 0.6rem;
    letter-spacing: 4px;
}

.mouse {
    width: 20px;
    height: 35px;
    border: 1px solid #fff;
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: var(--primary);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Glass Cards */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 4rem;
    transition: var(--transition);
    will-change: transform;
}

/* Section Styling */
.section-padding { padding: 100px 0; }

.section-tag {
    display: block;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
}

.section-title span {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    color: var(--secondary);
    letter-spacing: 10px;
    margin-top: 0.5rem;
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.project-card { padding: 2rem; }

.project-img-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.jp-overlay {
    position: absolute;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.project-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-family: 'Noto Sans JP', sans-serif;
}

/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
    transform: translateY(-5px);
}

/* Contact */
.contact-form-card {
    max-width: 800px;
    margin: 0 auto;
}

input, textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    color: #fff;
    font-size: 0.8rem;
    border-radius: 0;
    margin-bottom: 1.5rem;
    font-family: inherit;
}

input:focus, textarea:focus {
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.03);
    outline: none;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    padding: 5rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.social-links { 
    display: flex;
    justify-content: center;
    gap: 2rem; 
    margin: 2.5rem 0; 
    flex-wrap: wrap;
}

.social-icon { 
    font-size: 0.65rem; 
    letter-spacing: 3px; 
    text-decoration: none;
    color: var(--text-dim);
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--primary);
}

.jp-small { font-family: 'Noto Sans JP', sans-serif; margin-left: 1rem; opacity: 0.5; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 5.5rem; }
    .side-text-left, .side-text-right { opacity: 0.15; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .hero-title { font-size: 3.5rem; }
    .vertical-text { display: none; }
    .nav-links { 
        display: none; 
        flex-direction: column;
        gap: 1.5rem;
    }
    .hamburger { display: block; }
    .hero-btns { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; }
    .btn { width: 100%; text-align: center; }
    .glass-card { padding: 3rem 1.5rem; }
    .section-padding { padding: 70px 0; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 0.8rem; letter-spacing: 4px; }
    .hero-description { font-size: 0.9rem; margin-bottom: 2rem; }
    .logo { font-size: 1.2rem; }
}

