:root {
    --bg: #050816;
    --bg-alt: #070f26;
    --card: #0b1220;
    --accent: #4f8cff;
    --accent-soft: rgba(79, 140, 255, 0.16);
    --accent-secondary: #7da8ff;
    --text-main: #f9fafb;
    --text-muted: #a5b0c5;
    --border-subtle: #27324a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    background: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 16px 64px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: linear-gradient(to bottom,
            rgba(5, 8, 22, 0.96),
            rgba(5, 8, 22, 0.9),
            rgba(5, 8, 22, 0.85));
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    text-decoration: none;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: radial-gradient(circle at 20% 0,
            #ffffff,
            var(--accent),
            #0d1b36);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #050505;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.8);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text span:first-child {
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 15px;
}

.logo-text span:last-child {
    color: var(--text-muted);
    font-size: 12px;
}

nav {
    display: flex;
    gap: 18px;
    font-size: 14px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

nav a:hover {
    color: var(--text-main);
    border-bottom-color: var(--accent);
}

.pill {
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-alt);
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2ecc71;
    box-shadow: 0 0 6px rgba(46, 204, 113, 0.7);
}

main {
    padding-top: 32px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 32px;
}

@media (max-width: 840px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    main {
        grid-template-columns: minmax(0, 1fr);
    }
}

.hero-title {
    font-size: clamp(32px, 5vw, 40px);
    line-height: 1.1;
    margin: 8px 0 16px;
}

.hero-title span {
    color: #e1e1e7;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 460px;
    line-height: 1.6;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 24px;
}

.tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    background: var(--bg-alt);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.btn-primary,
.btn-ghost {
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        background 0.12s ease,
        border-color 0.12s ease,
        color 0.12s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    border-color: #3a5ba9;
    color: var(--text-main);
    box-shadow: 0 2px 6px rgba(79, 140, 255, 0.20);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: #5b9aff;
    border-color: var(--accent-secondary);
    box-shadow: 0 4px 10px rgba(79, 140, 255, 0.25);
}

.btn-ghost {
    background: var(--bg-alt);
    border-color: var(--border-subtle);
    color: var(--text-main);
}

.btn-ghost:hover {
    background: #0d152b;
    border-color: var(--accent);
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.meta-block span:first-child {
    color: var(--text-main);
    font-weight: 500;
    display: block;
}

.panel {
    background: var(--card);
    border-radius: 18px;
    border: 1px solid var(--border-subtle);
    padding: 18px 18px 16px;
    box-shadow: 0 18px 45px rgba(5, 8, 22, 0.8);
    margin: 0;
}

.panel-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.panel-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.panel-chip {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.skill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.skill-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.skill-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--text-main);
}

.metric-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

.metric {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-alt);
}

.section-row {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 28px;
}

.section-heading {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.card {
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    background: var(--card);
    padding: 14px 14px 12px;
    font-size: 13px;
    cursor: pointer;
    display: block;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 14px 35px rgba(5, 8, 22, 0.85);
    transition: border-color 0.15s ease, transform 0.15s ease,
        box-shadow 0.15s ease, background 0.15s ease;
}

.card:hover {
    border-color: var(--accent);
    background: #111827;
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(5, 8, 22, 0.95);
}

.card-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.card-title {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
}

.card-body {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.card-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

footer {
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    padding: 14px 16px 20px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    background: var(--bg);
}

a.text-link {
    color: #d6d6e4;
    text-decoration: none;
}

a.text-link:hover {
    text-decoration: underline;
}

/* === Dashboards overview page === */

.intro {
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 760px;
    font-size: 14px;
    line-height: 1.6;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 14px;
}

.meta {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 24px;
}

/* === Looker Studio detail page === */

.looker-notes {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    max-width: 760px;
}

.dashboard-frame {
    width: 100%;
    height: calc(100vh - 150px);
    /* adjust if header is taller/shorter */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 45px rgba(5, 8, 22, 0.7);
    background: var(--bg-alt);
    margin-top: 20px;
}

.dashboard-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* === Projects detail page === */

.cards-row-projects {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

