/* Shared styling for the home page and the portfolio. */
:root {
    --bg: #0b0f1c; --bg-2: #11172a; --card: #141a2e; --fg: #e7eafd; --muted: #a7adcf; --accent: #8ea6ff;
    --accent-2: #c58bff; --ring: #ffffff1c; --shadow: 0 18px 50px #00000040;
}
@media (prefers-color-scheme: light) {
    :root { --bg: #f7f8fc; --bg-2: #eef1fa; --card: #ffffff; --fg: #0b0f1c; --muted: #596180; --accent: #3d5bd9; --accent-2: #8a3fd9; --ring: #0b0f1c14; --shadow: 0 18px 50px #2a356e1a; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
    margin: 0; color: var(--fg); background: var(--bg);
    font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background-image:
        radial-gradient(1000px 600px at 80% -15%, color-mix(in oklab, var(--accent), transparent 82%), transparent),
        radial-gradient(800px 600px at -10% 20%, color-mix(in oklab, var(--accent-2), transparent 88%), transparent);
    background-attachment: fixed;
}
a { color: var(--accent); }
.wrap { width: min(1080px, 92vw); margin: 0 auto; }

nav.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.navlinks { display: flex; gap: 4px; }
.navlinks a { color: var(--muted); text-decoration: none; font-weight: 650; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.navlinks a:hover, .navlinks a[aria-current] { color: var(--fg); background: var(--ring); }

.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px; font-weight: 700; line-height: 1;
    text-decoration: none; color: #0b0f1c; background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 26px color-mix(in oklab, var(--accent), transparent 70%); transition: transform .18s ease;
}
@media (prefers-color-scheme: light) { .btn { color: #fff; } }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: none; border: 1px solid var(--ring); }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700;
    color: var(--accent); background: color-mix(in oklab, var(--accent), transparent 86%);
}
.eyebrow .live { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px #3ddc8433; }
h1 { font-size: clamp(38px, 6.5vw, 66px); line-height: 1.03; letter-spacing: -0.035em; margin: 16px 0 14px; font-weight: 850; }
.grad { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; margin: 0 0 6px; font-weight: 800; }
.sub { color: var(--muted); margin: 0 0 26px; font-size: 17px; }
section { padding: 52px 0; }

/* Home hero */
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px; align-items: center; padding: 30px 0 40px; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.portrait { position: relative; justify-self: center; }
.portrait img { width: min(300px, 70vw); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 36px; border: 1px solid var(--ring); box-shadow: var(--shadow); display: block; }
.portrait::before { content: ""; position: absolute; inset: -14px; border-radius: 44px; z-index: -1; background: linear-gradient(135deg, var(--accent), var(--accent-2)); opacity: .35; filter: blur(28px); }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.skill { background: var(--card); border: 1px solid var(--ring); border-radius: 20px; padding: 20px; }
.skill .em { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; margin-bottom: 10px; background: color-mix(in oklab, var(--accent), transparent 85%); }
.skill.ai { border-color: color-mix(in oklab, var(--accent-2), transparent 55%); background: linear-gradient(160deg, color-mix(in oklab, var(--accent-2), transparent 88%), var(--card) 60%); }
.skill.ai .em { background: color-mix(in oklab, var(--accent-2), transparent 80%); }
.skill h3 { margin: 0 0 4px; font-size: 18px; }
.skill p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills span { font-size: 13px; font-weight: 650; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--ring); color: var(--muted); }

/* App and project cards */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.apps.four { grid-template-columns: repeat(4, 1fr); }
.app {
    display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--ring);
    text-decoration: none; color: var(--fg); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.app:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--accent), transparent 55%); box-shadow: var(--shadow); }
.app-head { display: flex; align-items: center; gap: 14px; }
.app-head img { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: 0 6px 16px #00000030; }
.app .name { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.app .desc { margin: 0; color: var(--muted); font-size: 15px; }
.app .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; padding-top: 6px; }
.app .actions .btn { padding: 10px 14px; font-size: 15px; }
.store img { display: block; height: 40px; width: auto; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--ring); color: var(--muted); font-size: 12.5px; font-weight: 650; }
.tag i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.status { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: color-mix(in oklab, #3ddc84, transparent 82%); color: #2fb36d; }
.status.soon { background: color-mix(in oklab, var(--accent-2), transparent 84%); color: var(--accent-2); }
.mini { padding: 16px; gap: 8px; }
.mini .app-head img { width: 48px; height: 48px; }
.mini .name { font-size: 17px; }

.contact-band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 30px; border-radius: 26px;
    border: 1px solid var(--ring); background: linear-gradient(135deg, color-mix(in oklab, var(--accent), transparent 86%), color-mix(in oklab, var(--accent-2), transparent 88%));
}
.contact-band h2 { margin: 0; }
.contact-band p { margin: 4px 0 0; color: var(--muted); }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 28px 0 44px; margin-top: 20px; border-top: 1px solid var(--ring); color: var(--muted); font-size: 15px; }
footer a { color: var(--muted); }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .portrait { order: -1; justify-self: start; }
    .portrait img { width: 120px; border-radius: 26px; }
    .skills { grid-template-columns: 1fr 1fr; }
    .apps.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .skills, .apps, .apps.four { grid-template-columns: 1fr; }
    .navlinks a { padding: 8px 8px; }
    .navlinks .hide-sm { display: none; }
}
@media (max-width: 430px) {
    .brand span { display: none; }
    .navlinks a { padding: 8px 7px; }
}
