@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600&family=Space+Grotesk:wght@500;700&family=Space+Mono:wght@400;700&family=Tsukimi+Rounded:wght@400;700&display=swap');

:root {
    /* Color Palette */
    --bg-color: #FFFFFF;
    --text-main: #1E293B;
    --accent-red: #FF3B3B;
    --accent-purple: #9333EA;
    --accent-blue: #2563EB;

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-button: 'Space Mono', monospace;
    --font-japanese: 'Tsukimi Rounded', sans-serif;

    /* Layout */
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease, text-shadow var(--transition-speed) ease;
}

ul {
    list-style: none;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-purple), var(--accent-blue));
    border-radius: 2px;
}

/* --- Sticky Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    z-index: 1000;
    border-bottom: 1px solid rgba(30, 41, 59, 0.1);
}

.nav-brand .nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.japanese-name {
    font-family: var(--font-japanese);
    color: #64748B;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: #64748B;
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-content .subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 1rem;
}

.hero-content .tagline {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(30, 41, 59, 0.1);
}

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

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- About Section --- */
.about-section {
    padding-top: 2rem;
    padding-bottom: 4rem;
    text-align: center;
}

.about-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

.about-text .highlight {
    color: var(--accent-purple);
    font-weight: 700;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-button);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 8px;
    background-color: var(--text-main);
    color: white;
    transition: all var(--transition-speed);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 41, 59, 0.15);
}

.btn-red:hover {
    background-color: var(--accent-red);
    box-shadow: 0 10px 20px rgba(255, 59, 59, 0.3), 0 0 15px rgba(255, 59, 59, 0.6);
}

.btn-purple:hover {
    background-color: var(--accent-purple);
    box-shadow: 0 10px 20px rgba(147, 51, 234, 0.3), 0 0 15px rgba(147, 51, 234, 0.6);
}

.btn-blue:hover {
    background-color: var(--accent-blue);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3), 0 0 15px rgba(37, 99, 235, 0.6);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid rgba(30, 41, 59, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background-color: transparent;
    box-shadow: 0 10px 20px rgba(30, 41, 59, 0.1), 0 0 15px rgba(30, 41, 59, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* --- Timeline General --- */
.timeline {
    position: relative;
    border-left: 2px solid rgba(30, 41, 59, 0.1);
    padding-left: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    background-color: white;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px white;
}

.timeline-content {
    background: #F8FAFC;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(30, 41, 59, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(30, 41, 59, 0.05), 0 0 25px rgba(37, 99, 235, 0.25);
    border-color: rgba(37, 99, 235, 0.3);
}

.timeline-content h3 {
    font-size: 1.75rem;
    color: var(--text-main);
}

.role-location {
    font-size: 1rem;
    color: #64748B;
    margin-bottom: 1.25rem;
    font-family: var(--font-button);
}

.role-location strong {
    color: var(--accent-purple);
}

.details {
    margin-bottom: 1.5rem;
    color: #334155;
}

.timeline-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    object-fit: cover;
    max-height: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.split-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.uncropped-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.video-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.video-container.one-video {
    grid-template-columns: 1fr;
    max-width: 800px;
}

.video-container iframe,
.video-container video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #0F172A;
    border-radius: 8px;
    border: none;
    object-fit: cover;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-top: 1rem;
}

.link-btn:hover {
    text-decoration: underline;
}

/* --- Projects Section --- */
.bg-light {
    background-color: #F8FAFC;
    padding: 6rem 0;
}

.project-gallery {
    display: grid;
    gap: 4rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(30, 41, 59, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(30, 41, 59, 0.1), 0 0 25px rgba(147, 51, 234, 0.25);
    border-color: rgba(147, 51, 234, 0.3);
}

.winner-card {
    border: 2px solid var(--accent-purple);
}

.winner-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
    color: white;
    font-family: var(--font-button);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
    z-index: 10;
    letter-spacing: 1px;
}

.project-video {
    width: 100%;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #0F172A;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.project-info {
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 2rem;
    margin-bottom: 0;
}

.project-date {
    font-family: var(--font-button);
    color: #64748B;
    font-size: 0.875rem;
}

.project-awards {
    font-size: 0.95rem;
    color: #0F172A;
    background: linear-gradient(to right, rgba(245, 158, 11, 0.1), transparent);
    padding: 0.75rem 1rem;
    border-left: 3px solid #F59E0B;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-badge {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-button);
}

.project-summary {
    color: #334155;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* --- Highlight Section --- */
.highlight-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(147, 51, 234, 0.05));
    border: 1px solid rgba(147, 51, 234, 0.1);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.pixl-glow {
    box-shadow: 0 0 40px rgba(147, 51, 234, 0.2);
    border: 2px solid rgba(147, 51, 234, 0.3);
}

.highlight-content h3 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.highlight-content .details {
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.milestones-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 2rem auto;
}

.milestone-badge {
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.bg-mint {
    background-color: rgba(37, 99, 235, 0.08);
    /* Soft Mint/Blue */
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.bg-pink {
    background-color: rgba(255, 59, 59, 0.05);
    /* Soft Pink/Red */
    border: 1px solid rgba(255, 59, 59, 0.2);
}

.milestone-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.milestone-desc {
    font-size: 1rem;
    color: #475569;
}

.pixl-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 12px;
    margin: 1rem auto 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--bg-color);
    border-top: 1px solid rgba(30, 41, 59, 0.1);
    color: #64748B;
}

.site-footer p {
    font-size: 0.875rem;
    font-family: var(--font-button);
}

/* --- Responsive Utility --- */
@media screen and (max-width: 1024px) {
    .project-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .milestones-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-links {
        justify-content: center;
    }

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

    .video-container {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid rgba(30, 41, 59, 0.1);
        padding: 2rem;
        text-align: center;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item::before {
        left: -1.5rem;
    }
}

/* --- Marquee --- */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: rgba(147, 51, 234, 0.05);
    /* very light purple */
    padding: 1rem 0;
    border-top: 1px solid rgba(147, 51, 234, 0.1);
    border-bottom: 1px solid rgba(147, 51, 234, 0.1);
    display: flex;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    animation: scroll 25s linear infinite;
}

.marquee-content span {
    font-family: var(--font-button);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-purple);
    padding: 0 1rem;
    letter-spacing: 1px;
}

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

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