@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700&display=swap');

/* ── Reset & Base ─────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    background: #f7f7f5;
    color: #1a1a1a;
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    /* Added 3rem top padding */
}

/* ── Typography ───────────────────────────────── */
h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

h1 {
    font-size: 2.4rem;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 1.2rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e0e0e0;
}

a {
    color: #e06c00;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ── Header ───────────────────────────────────── */
header {
    padding: 2rem 0 1rem;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2.5rem;
}

.site-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #e06c00;
}

/* ── Bio Section ──────────────────────────────── */
#bio {
    margin-bottom: 3rem;
}

.tagline {
    font-size: 1rem;
    color: #e06c00;
    font-weight: 600;
    margin-bottom: 1rem;
}

.bio-text {
    color: #333;
    margin-bottom: 0.75rem;
    max-width: 680px;
}

.bio-meta {
    font-size: 0.9rem;
    color: #888;
}

/* ── Sections ─────────────────────────────────── */
section {
    margin-bottom: 3rem;
}

/* ── Item List (Experience & Projects) ────────── */
.item-list {
    list-style: none;
}

.item {
    padding: 1rem 0;
    border-bottom: 1px solid #ebebeb;
    transition: background 0.15s;
}

.item:last-child {
    border-bottom: none;
}

.item-title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 0.2rem;
    transition: color 0.15s;
}

.item-title:hover {
    color: #e06c00;
    text-decoration: none;
}

.item-summary {
    font-size: 0.9rem;
    color: #666;
}

/* ── Contact ──────────────────────────────────── */
#contact p {
    margin-bottom: 0.5rem;
    color: #333;
}

.links-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.divider {
    color: #bbb;
}

.cv-btn {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.55rem 1.4rem;
    background: #e06c00;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.cv-btn:hover {
    background: #c05800;
    text-decoration: none;
}

/* ── Footer ───────────────────────────────────── */
footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.85rem;
    color: #aaa;
    text-align: center;
}

/* ── Detail Pages (back button + content) ─────── */
.back-btn {
    display: inline-block;
    margin: 1.5rem 0 2rem;
    font-size: 0.9rem;
    color: #e06c00;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

.detail-header {
    margin-bottom: 2rem;
}

.detail-header h1 {
    font-size: 1.9rem;
    margin-bottom: 0.25rem;
}

.detail-header .date {
    font-size: 0.9rem;
    color: #888;
}

.detail-header .company {
    font-size: 1rem;
    color: #555;
    font-weight: 600;
}

.detail-body p {
    margin-bottom: 1.2rem;
    color: #333;
}

.detail-body img {
    width: 100%;
    border-radius: 6px;
    margin: 1.5rem 0;
    border: 1px solid #e0e0e0;
}

.detail-body .video-link {
    display: inline-block;
    margin: 0.5rem 0 1.5rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid #e06c00;
    border-radius: 4px;
    color: #e06c00;
    font-weight: 600;
    font-size: 0.9rem;
}

.detail-body .video-link:hover {
    background: #e06c00;
    color: #fff;
    text-decoration: none;
}

.ext-link {
    display: inline-block;
    margin-top: 1rem;
    margin-right: 0.75rem;
    padding: 0.45rem 1.1rem;
    background: #e06c00;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.ext-link:hover {
    background: #c05800;
    text-decoration: none;
}

/* ── Skills ───────────────────────────────────── */
.skills-group {
    margin-bottom: 1.5rem;
}

.skills-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin-bottom: 0.6rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
    transition: border-color 0.15s, color 0.15s;
}

.tag:hover {
    border-color: #e06c00;
    color: #e06c00;
}

/* ── Image Gallery Grid ──────────────────────── */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    margin: 0 !important;
    background: transparent;
    object-fit: contain;
}