/* ============================================
   MIKORAYUKI PORTFOLIO — style.css
   ============================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
    --clr-bg:         #020c0a;
    --clr-bg-mid:     #061410;
    --clr-bg-end:     #0a0615;

    --clr-primary:    #00ffa3;
    --clr-secondary:  #7b61ff;
    --clr-accent:     #ff6b6b;
    --clr-warm:       #ffb347;

    --clr-text:       #e8f5f0;
    --clr-text-muted: rgba(232, 245, 240, 0.5);
    --clr-border:     rgba(0, 255, 163, 0.12);

    --glass-bg:       rgba(4, 20, 16, 0.35);
    --glass-border:   rgba(0, 255, 163, 0.15);
    --glass-blur:     24px;

    --ff-display:     'Outfit', sans-serif;
    --ff-mono:        'JetBrains Mono', monospace;

    --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto !important;
}

/* Lenis compatibility */
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    font-family: var(--ff-display);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---------- CANVAS ---------- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---------- LOADER ---------- */
#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--clr-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(0, 255, 163, 0.1);
    border-top-color: var(--clr-primary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-family: var(--ff-mono);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--clr-primary);
    text-transform: uppercase;
    opacity: 0.7;
}

/* ---------- NAVIGATION ---------- */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 5%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(2, 12, 10, 0.6);
    border-bottom: 1px solid var(--clr-border);
    transition: background 0.4s ease;
}

.nav-logo {
    font-family: var(--ff-mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--clr-text);
    text-decoration: none;
    letter-spacing: 0.05em;
}

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

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--clr-text-muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--clr-primary);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover {
    color: var(--clr-primary);
}

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

/* ---------- PROGRESS BAR ---------- */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
    z-index: 999;
    transition: width 0.05s linear;
    box-shadow: 0 0 10px var(--clr-primary);
}

/* ---------- CONTENT WRAPPER ---------- */
#content-wrapper {
    position: relative;
    z-index: 1;
}

/* ---------- SECTIONS ---------- */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 80px;
    position: relative;
}

/* ---------- UTILITY: ACCENT GRADIENT ---------- */
.accent-gradient {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- UTILITY: PANEL LABEL ---------- */
.panel-label {
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--clr-primary);
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* ---------- UTILITY: GLASS PANEL ---------- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow:
        0 0 0 1px rgba(0,255,163,0.04),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-tag {
    font-family: var(--ff-mono);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-primary);
    background: rgba(0, 255, 163, 0.08);
    border: 1px solid rgba(0, 255, 163, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    /* Initially hidden for GSAP */
    opacity: 0;
    transform: translateY(20px);
}

.hero-title {
    font-family: var(--ff-display);
    font-weight: 900;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1em;
    font-size: clamp(3.5rem, 9vw, 8rem);
    letter-spacing: -0.03em;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(60px);
}

.hero-desc {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--clr-text-muted);
    max-width: 500px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
}

.hero-desc em {
    font-style: normal;
    color: var(--clr-warm);
    opacity: 0.8;
}

.hero-cta {
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.5rem;
    background: var(--clr-primary);
    color: var(--clr-bg);
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.3s var(--ease-spring);
    box-shadow: 0 0 30px rgba(0, 255, 163, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 50px rgba(0, 255, 163, 0.5);
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--clr-primary));
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

.scroll-hint span {
    font-family: var(--ff-mono);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--clr-primary);
    opacity: 0.6;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
#about {
    justify-content: flex-start;
    padding-left: 8%;
}

.about-layout {
    max-width: 680px;
}

.about-panel {
    padding: 3.5rem;
    opacity: 0;
    transform: translateX(-80px);
}

.about-panel h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.about-panel p {
    font-size: 1rem;
    color: var(--clr-text-muted);
    margin-bottom: 1rem;
}

.about-panel p strong {
    color: var(--clr-text);
    font-weight: 600;
}

.about-meta {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-border);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-val {
    font-weight: 700;
    font-size: 1rem;
    color: var(--clr-primary);
}

.meta-label {
    font-size: 0.75rem;
    font-family: var(--ff-mono);
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
#skills {
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
}

.skills-layout {
    width: 100%;
    max-width: 1100px;
}

.skills-header {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(40px);
}

.skills-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.skill-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    cursor: default;
    transition: all 0.3s var(--ease-spring);
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.skill-item:hover {
    border-color: var(--clr-primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 255, 163, 0.1);
    background: rgba(0, 255, 163, 0.06);
}

.skill-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.skill-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--clr-text);
}

.skill-cat {
    font-family: var(--ff-mono);
    font-size: 0.7rem;
    color: var(--clr-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

/* ============================================
   PROJECTS SECTION (HORIZONTAL PIN)
   ============================================ */
.pin-section {
    padding: 0;
    overflow: hidden;
}

.projects-track {
    display: flex;
    will-change: transform;
}

.project-slide {
    flex-shrink: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 8% 80px;
}

/* Project intro slide */
.proj-intro-text {
    text-align: left;
    max-width: 600px;
    opacity: 0;
    transform: translateY(40px);
}

.proj-intro-text h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.proj-intro-text p {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}

.proj-arrow {
    font-size: 3rem;
    color: var(--clr-primary);
    animation: arrowFloat 1.5s ease-in-out infinite;
}

@keyframes arrowFloat {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(12px); }
}

.project-card {
    max-width: 600px;
    width: 100%;
    padding: 3rem;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px) scale(1.01) !important;
}

.proj-num {
    font-family: var(--ff-mono);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(0, 255, 163, 0.12);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.project-card h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--clr-text);
}

.project-card p {
    font-size: 1rem;
    color: var(--clr-text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.proj-tags span {
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--clr-border);
    border-radius: 100px;
    color: var(--clr-primary);
    background: rgba(0, 255, 163, 0.05);
    letter-spacing: 0.05em;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
    flex-direction: column;
    text-align: center;
    gap: 0;
}

.contact-inner {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transform: translateY(60px);
}

.contact-title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.contact-sub {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    max-width: 520px;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.contact-card {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    transition: all 0.3s var(--ease-spring);
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--clr-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 255, 163, 0.15);
    background: rgba(0, 255, 163, 0.05);
}

.c-icon { font-size: 2.5rem; }

.c-label {
    font-family: var(--ff-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-primary);
    opacity: 0.8;
}

.c-val {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    font-weight: 600;
}

.interests {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.interest-label {
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.interest-tags span {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    background: rgba(123, 97, 255, 0.1);
    border: 1px solid rgba(123, 97, 255, 0.2);
    color: rgba(200, 180, 255, 0.85);
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 5%;
    border-top: 1px solid var(--clr-border);
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    background: rgba(2, 12, 10, 0.5);
}

#footer strong { color: var(--clr-primary); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-panel { padding: 2.5rem; }
    #about { padding-left: 5%; justify-content: center; }
}

@media (max-width: 600px) {
    .nav-links { display: none; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .about-meta { flex-direction: column; gap: 1rem; }
    .hero-title { font-size: clamp(2.5rem, 11vw, 5rem); }
    .contact-card { min-width: 150px; }
}
