/* ===================== */
/*  KOSUKE-STYLE THEME   */
/* ===================== */

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

:root {
    --bg-hero: #d7cec6;          /* light beige */
    --bg-page: #111111;          /* behind sections */
    --bg-section: #111111;
    --bg-card: #181818;
    --bg-chip: #e0d4c8;

    --text-main: #0c0c0c;
    --text-muted: #5f5a55;
    --text-on-dark: #f3f4f6;
    --text-on-dark-muted: #a1a1aa;

    --accent-dark: #111111;
    --accent-light: #f3f4f6;

    --border-soft: rgba(0,0,0,0.08);
    --border-dark: rgba(255,255,255,0.06);

    --radius-hero-img: 32px;
    --radius-card: 24px;
    --radius-pill: 999px;

    --shadow-soft: 0 28px 60px rgba(0,0,0,0.35);

    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
}

/* ===== Base ===== */

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    background: var(--bg-hero);
    color: var(--text-main);
}

/* Main content sections wrapper (dark cards) */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto 60px;
    padding: 40px 40px 60px;
}

/* ===================== */
/*       HERO HEADER     */
/* ===================== */

header {
    background: var(--bg-hero);
    color: var(--text-main);
    padding-top: 12px;
    padding-bottom: 60px;
}

/* inner wrapper so hero is centered like the Kosuke layout */
.hero-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 40px 40px 60px;
}

/* two-column hero like screenshot */
.intro {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1.2fr);
    gap: 40px;
    align-items: center;
}

/* left column: text */
.intro-text {
    max-width: 560px;
}

/* right column: image */
.intro-image {
    justify-self: end;
}

/* hero image */
.intro-image img,
header img {
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: var(--radius-hero-img);
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: var(--shadow-soft);
}

header h1 {
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 0.95rem;
    max-width: 380px;
    color: var(--text-muted);
}

/* Hero description paragraph */
.hero-description {
    margin-top: 24px;
    font-size: 0.9rem;
    max-width: 460px;
    color: var(--text-muted);
}

/* Hero primary button (e.g. “View resume”) */
.hero-actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #111111;
    color: #f9fafb;
    border-radius: 999px;
    padding: 12px 26px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 22px 40px rgba(0,0,0,0.35);
    text-decoration: none;
}

.btn-primary span.arrow {
    font-size: 1rem;
    transform: translateY(1px);
}

.btn-primary:hover {
    opacity: 0.92;
}

/* Little location text under hero button if you want it */
.hero-meta {
    margin-top: 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* file input under photo (if used) */
#photo-upload {
    display: block;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Social bar under name (LinkedIn / GitHub / Paper) */
.social-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    font-size: 0.86rem;
}

.social-bar a {
    text-decoration: none;
    color: #111111;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    background: #f4ece3;
    border: 1px solid rgba(0,0,0,0.06);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.social-bar a::before {
    content: "↗";
    font-size: 0.7rem;
    opacity: 0.7;
}

.social-bar a:hover {
    background: #111111;
    color: #f9fafb;
}

/* ============= */
/*  DARK SECTIONS */
/* ============= */

/* Everything below hero sits on a dark background */
body::after {
    content: "";
    position: fixed;
    inset: 60vh 0 0 0;
    background: var(--bg-page);
    z-index: -1;
}

/* Wrap each group (Experience / Education / Projects / Skills) */
section {
    margin-top: 40px;
    padding: 32px 32px 30px;
    background: var(--bg-section);
    border-radius: 32px;
    color: var(--text-on-dark);
    box-shadow: var(--shadow-soft);
}

/* section headings */
h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text-on-dark);
}

/* ====== Cards (experience / education / projects) ====== */

.experience,
.education,
.project {
    margin-bottom: 22px;
    padding: 18px 18px 14px;
    border-radius: var(--radius-card);
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
}

/* Titles inside cards */
.experience h3,
.education h3,
.project h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-on-dark);
}

.institution {
    display: block;
    font-size: 0.88rem;
    color: var(--text-on-dark-muted);
    margin-bottom: 2px;
}

.duration-location {
    display: block;
    font-size: 0.8rem;
    color: #71717a;
    margin-bottom: 8px;
}

.technologies {
    font-size: 0.84rem;
    color: #e5e7eb;
    margin-bottom: 8px;
}

/* Bullet lists */
.highlights,
.details {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #e5e7eb;
}

/* Teaching assistant highlight (if you decide to use pill style) */
.ta-highlight {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(250, 250, 249, 0.06);
    font-size: 0.85rem;
    color: #e5e7eb;
}

.ta-highlight::before {
    content: "●";
    font-size: 0.7rem;
    color: #a3e635;
}

/* ===== Skills grid on dark background ===== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 10px;
}

.skill-category {
    background: #18181b;
    border-radius: 18px;
    border: 1px solid var(--border-dark);
    padding: 14px 14px 10px;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.skill-category h4 {
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== Footer ===== */

footer {
    padding: 24px 0 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: #a1a1aa;
    background: transparent;
}

/* ============== */
/*  RESPONSIVE    */
/* ============== */

@media (max-width: 900px) {
    .container {
        padding: 28px 20px 48px;
    }

    .hero-inner {
        padding: 28px 20px 40px;
    }

    .intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .intro-image {
        justify-self: center;
    }

    .intro-text {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2.2rem;
    }

    section {
        padding: 24px 18px 22px;
        border-radius: 26px;
    }
}

.project-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #0f0f0f, #141414);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

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

.project-title a {
    font-size: 1.6rem;
    font-weight: 600;
    color: #a855f7; /* subtle purple accent */
    text-decoration: none;
}

.project-title a:hover {
    text-decoration: underline;
}

.project-description {
    margin: 1rem 0 1.5rem;
    color: #cfcfcf;
    line-height: 1.6;
    max-width: 520px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.project-tags span {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.15);
    color: #e9d5ff;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.project-media {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

.project-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}
