/* ============================================================
   0xSponge — Bikini Bottom photo background + dark glass
   drop your image at  assets/bikini-bottom.jpg
   ============================================================ */

:root {
    --overlay-1: rgba(5, 16, 27, 0.62);
    --overlay-2: rgba(3, 11, 20, 0.86);
    --glass:     rgba(13, 19, 27, 0.68);
    --glass-2:   rgba(20, 28, 38, 0.72);
    --border:    rgba(255, 255, 255, 0.09);
    --border-2:  rgba(255, 255, 255, 0.18);
    --text:      #eef1f6;
    --muted:     #aeb6c4;
    --faint:     #7f8798;
    --accent:    #ffd23f;   /* sponge yellow */
    --accent-dim:#d9b23a;

    --radius: 14px;
    --maxw:   980px;
    --mono:   'JetBrains Mono', ui-monospace, 'Courier New', monospace;
    --sans:   'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;

    /* the real Bikini Bottom photo, darkened for readability */
    background:
        linear-gradient(180deg, var(--overlay-1), var(--overlay-2)),
        url('bikini-bottom.jpg') center center / cover no-repeat fixed,
        radial-gradient(120% 90% at 50% 0%, #10496b, #061421 70%);
    background-blend-mode: normal;
}
/* fallback tint when the image is missing shows the radial gradient above */

a { color: inherit; }
::selection { background: var(--accent); color: #0d0e11; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px clamp(16px, 5vw, 40px);
    background: rgba(4, 12, 20, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.brand {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.brand span { color: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav a {
    font-family: var(--mono);
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 7px 13px;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.nav a.active { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 100px;
}
.eyebrow {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--muted);
    padding: 7px 16px;
    border: 1px solid var(--border-2);
    border-radius: 100px;
    background: rgba(4, 12, 20, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-bottom: 28px;
}
.hero h1 {
    font-size: clamp(2.8rem, 9vw, 5rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 18px;
    text-shadow: 0 4px 26px rgba(0, 0, 0, 0.65);
}
.hero h1 .grad { color: var(--accent); }
.type-line {
    font-family: var(--mono);
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: #e6e9f0;
    min-height: 1.9rem;
    margin-bottom: 22px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}
.type-line .cursor {
    display: inline-block;
    width: 8px;
    height: 1.05em;
    background: var(--accent);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero .sub {
    color: #dfe4ee;
    max-width: 560px;
    font-size: 1.04rem;
    margin-bottom: 32px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-family: var(--mono);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--border-2);
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.btn-primary { background: var(--accent); color: #0d0e11; border-color: var(--accent); font-weight: 600; }
.btn-primary:hover { background: #ffdd63; border-color: #ffdd63; transform: translateY(-2px); }
.btn-ghost { background: rgba(4, 12, 20, 0.5); color: var(--text); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ============================================================
   LAYOUT / SECTIONS
   ============================================================ */
main {
    flex: 1;
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 56px clamp(16px, 5vw, 24px) 30px;
}
.section { margin-bottom: 58px; }
.section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}
.section-head .idx {
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--accent);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.section-head h2 {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}
.section-head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-2);
}

.page-intro { color: var(--muted); max-width: 640px; margin-bottom: 30px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }

/* ---- small mono sign ---- */
.sign {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--muted);
    border: 1px solid var(--border-2);
    border-radius: 8px;
    padding: 7px 14px;
    margin-bottom: 26px;
    background: rgba(4, 12, 20, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.sign .emoji { font-size: 1rem; }

/* ============================================================
   GLASS CARD
   ============================================================ */
.card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.7);
    transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--border-2); }
.card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.card p { color: var(--muted); }
.card p + p { margin-top: 12px; }
.card strong { color: var(--text); font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* ============================================================
   STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat {
    text-align: center;
    padding: 22px 12px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.7);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.stat:hover { border-color: var(--border-2); transform: translateY(-3px); }
.stat .num {
    font-family: var(--mono);
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.stat .lbl { color: var(--muted); font-size: 0.8rem; margin-top: 8px; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
    position: relative;
    padding: 26px 26px 26px 42px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.7);
}
.timeline::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: linear-gradient(var(--accent), rgba(255, 210, 63, 0.1));
}
.tl-item { position: relative; margin-bottom: 26px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item::before {
    content: "";
    position: absolute;
    left: -25px;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.18);
}
.tl-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.tl-role { font-weight: 600; font-size: 1.02rem; }
.tl-date { font-family: var(--mono); font-size: 0.78rem; color: var(--faint); }
.tl-co { color: var(--accent-dim); font-size: 0.88rem; margin-top: 2px; }
.tl-item ul { margin: 10px 0 0 16px; color: var(--muted); font-size: 0.92rem; }
.tl-item li { margin-bottom: 6px; }
.tl-item li strong { color: var(--text); }

/* ============================================================
   SKILLS / CHIPS
   ============================================================ */
.skill-group + .skill-group { margin-top: 20px; }
.skill-group h4 {
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-dim);
    margin-bottom: 11px;
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
    font-family: var(--mono);
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 100px;
    background: var(--glass-2);
    border: 1px solid var(--border);
    color: var(--muted);
    transition: color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { color: var(--accent); border-color: var(--border-2); }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.cert {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.7);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.cert:hover { border-color: var(--border-2); transform: translateY(-2px); }
.cert .ic {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.72rem;
    color: var(--accent);
    background: rgba(255, 210, 63, 0.1);
    border: 1px solid rgba(255, 210, 63, 0.25);
}
a.cert { text-decoration: none; color: inherit; }
.cert .t { font-weight: 600; font-size: 0.94rem; line-height: 1.35; }
.cert .m { color: var(--muted); font-size: 0.82rem; margin-top: 3px; }
.cert .v { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); margin-top: 6px; opacity: 0; transition: opacity 0.15s ease; }
a.cert:hover .v { opacity: 1; }
a.cert:hover .ic { background: rgba(255, 210, 63, 0.2); }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.blog-link { text-decoration: none; color: inherit; }
.blog-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.7);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.blog-link:hover .blog-card { border-color: var(--border-2); transform: translateY(-3px); }
.blog-card-thumbnail { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; margin-bottom: 14px; border: 1px solid var(--border); }
.blog-title { font-size: 1.02rem; font-weight: 600; margin-bottom: 9px; line-height: 1.4; }
.blog-description {
    color: var(--muted); font-size: 0.88rem; flex-grow: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border); gap: 10px; flex-wrap: wrap; }
.blog-date { font-family: var(--mono); color: var(--faint); font-size: 0.76rem; }
.blog-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.blog-tag { font-family: var(--mono); background: var(--glass-2); color: var(--accent-dim); padding: 2px 9px; border-radius: 100px; font-size: 0.7rem; border: 1px solid var(--border); }

/* skeleton */
.skeleton-card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.skeleton-thumb, .skeleton-line {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 8px;
}
.skeleton-thumb { width: 100%; height: 160px; margin-bottom: 14px; }
.skeleton-line { height: 12px; margin-bottom: 9px; border-radius: 100px; }
.skeleton-line.short { width: 55%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.full { width: 100%; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.error-state {
    grid-column: 1 / -1;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    color: var(--muted);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.error-state code { display: block; margin-top: 8px; font-family: var(--mono); font-size: 0.78rem; color: var(--faint); }
.error-state a { color: var(--accent); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.contact-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.7);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.contact-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.contact-card .ic { font-size: 1.7rem; margin-bottom: 10px; }
.contact-card h3 { font-size: 1.02rem; margin-bottom: 7px; }
.contact-card a { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); text-decoration: none; word-break: break-word; }
.contact-card a:hover { text-decoration: underline; }
.contact-card .note { color: var(--faint); font-size: 0.78rem; margin-top: 7px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 20px;
    text-align: center;
    color: var(--faint);
    font-size: 0.86rem;
    background: rgba(3, 11, 20, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.socials { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.socials a {
    font-family: var(--mono);
    font-size: 0.82rem;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--muted);
    text-decoration: none;
    background: rgba(4, 12, 20, 0.4);
    transition: color 0.15s ease, border-color 0.15s ease;
}
.socials a:hover { color: var(--accent); border-color: var(--border-2); }
.site-footer p { color: var(--faint); }

.badge-row { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; margin-top: 22px; }
.badge-row iframe { width: 330px; max-width: 100%; height: 96px; border: none; border-radius: 10px; overflow: hidden; }
.badge-row img { max-width: 100%; border-radius: 10px; display: block; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .site-header { padding: 12px 16px; }
    .tl-top { flex-direction: column; }
    body { background-attachment: scroll; }
}
