:root {
    --space-1: .5rem;
    --space-2: .75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;

    /* Primary color */
    --accent: #001234;
    --accent-04: rgba(0, 18, 52, 0.04);
    --accent-08: rgba(0, 18, 52, 0.08);
    --accent-12: rgba(0, 18, 52, 0.12);
    --accent-16: rgba(0, 18, 52, 0.16);
    --accent-18: rgba(0, 18, 52, 0.18);
    --accent-25: rgba(0, 18, 52, 0.25);
    --accent-50: rgba(0, 18, 52, 0.50);
    --accent-75: rgba(0, 18, 52, 0.75);

    /* Secondary blue accent color */
    --accent-blue: #2563eb;
    --accent-blue-04: rgba(37, 99, 235, 0.04);
    --accent-blue-08: rgba(37, 99, 235, 0.08);
    --accent-blue-12: rgba(37, 99, 235, 0.12);
    --accent-blue-16: rgba(37, 99, 235, 0.16);
    --accent-blue-18: rgba(37, 99, 235, 0.18);
    --accent-blue-25: rgba(37, 99, 235, 0.25);
    --accent-blue-50: rgba(37, 99, 235, 0.50);
    --accent-blue-75: rgba(37, 99, 235, 0.75);
}

html {
    scroll-behavior: smooth;
}

.section {
    padding: var(--space-6) 0;
}

.container {
    width: min(1150px, 90%);
    margin: 0 auto;
    scroll-margin-top: 0rem;
}

body {
    font-family: "Google+Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
}

/* Analytics Panel */
.analytics-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border: 1px solid var(--accent-08);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0;
    z-index: 9999;
    max-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.analytics-panel.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    border-bottom: 1px solid var(--accent-08);
}

.analytics-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
}

.analytics-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent-50);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.analytics-close:hover {
    color: var(--accent);
}

.analytics-body {
    padding: var(--space-4);
}

.analytics-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
    font-size: 0.9rem;
}

.stat-label {
    color: var(--accent-75);
    font-weight: 500;
}

.stat-value {
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
}

.analytics-reset {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    background: var(--accent-04);
    border: 1px solid var(--accent-12);
    border-radius: 4px;
    color: var(--accent);
    font-weight: 500;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    margin-top: var(--space-3);
}

.analytics-reset:hover {
    background: var(--accent-08);
    border-color: var(--accent-16);
}

/* ===== HERO ===== */
.hero {
    display: grid;
    grid-template-columns: 70% 30%;
    /* 70 / 30 content / visual */
    align-items: center;
    padding: 10rem 0 2.5rem;
}

/* ensure content column doesn't get too wide */
.hero-content {
    max-width: 95%;
}

/* keep visual aligned to the right on larger screens */
.hero-visual {
    display: grid;
    gap: 1rem;
    justify-items: end;
    align-items: center;
}

.hero-kicker,
.skillsTools .hero-kicker {
    font-size: 1rem;
    margin: 0 0 0.25rem;
    color: var(--accent-blue);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.hero-title,
.work-title {
    margin: 0 0 1.5rem;
    font-size: clamp(2.1rem, 4.8vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    margin: 0 0 1.5rem;
    color: var(--accent-50);
    font-size: 1.15rem;
}

.underline {
    position: relative;
    display: inline-block;
}

.underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.05em;
    width: 100%;
    height: 0.28em;
    background: var(--accent-blue-18);
    z-index: -1;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 0 1.25rem;
}

.tag {
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--accent-04);
    padding: 0.5rem 1rem;
    color: var(--accent-75);
    font-size: 0.9rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin: 0 0 1.25rem;
}

.btn.ghost {
    background: #fff;
    border: 1px solid var(--border);
    color: #0f172a;
}

.btn.linklike {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-weight: 700;
}

.hero-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--text-muted);
    display: grid;
    gap: 0.35rem;
}

.portrait {
    width: min(340px, 100%);
    border-radius: 999px;
    /* box-shadow: 0 14px 45px rgba(15, 23, 42, 0.10); */
    aspect-ratio: 0.75 / 1;
    object-fit: cover;
    object-position: top;
    filter: grayscale(1) brightness(1.35);
}

.hero-card {
    width: min(360px, 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1rem;
    background: var(--bg-muted);
}

.hero-card-title {
    margin: 0 0 0.35rem;
    font-weight: 800;
}

.hero-card-text {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.hero,
.about-container,
.experience-container {
    opacity: 0;
    transform: translateY(30px);
    transition: 1000ms ease;
}

.hero.hero-show,
.about-container.about-container-show,
.experience-container.experience-container-show {
    opacity: 1;
    transform: translateY(0);
}

.experience,
.about {
    margin-top: 5rem;
}

.about-bio,
.experience {
    display: grid;
    grid-template-columns: 50% 50%;
}

.about-bio h1,
.experience h1 {
    margin: 0;
    font-size: 2rem;
    color: var(--accent);
}

/* Accessible skip link */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.5rem 0.75rem;
    background: #111;
    color: #fff;
    z-index: 9999;
    border-radius: 4px;
}

/* Header: fixed translucent capsule */
.site-header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(980px, 90%);
    border-radius: 9999px;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
    z-index: 9999;

    /* use primary color for header text/links instead of default black */
    color: var(--accent);
}

/* keep layout compact inside capsule */
.header-inner {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.6rem;
}

/* smaller logo for capsule */
.logo img {
    height: 28px;
    display: block;
}

/* Brand: logo + name */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.site-name {
    font-weight: 500;
    color: var(--accent);
    font-size: 1.2rem;
    line-height: 1;
    white-space: nowrap;
}

.site-nav .nav-list {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.site-nav a {
    text-decoration: none;
    color: var(--accent);
    font-weight: 400;
    padding: 0.45rem 0.65rem;
    border-radius: 9999px;
    transition: background .12s ease, color .12s ease;
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--accent-blue);
    outline: none;
}

/* Resume "like" button */
.btn-like {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.45rem 0.8rem;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    border-radius: 9999px;
    border: 1px solid var(--accent-16);
    box-shadow: 0 6px 20px var(--accent-12);
}

/* Ensure content isn't hidden beneath fixed header */
body {
    padding-top: 4.5rem;
}

/* Resume button smaller */
.btn-like {
    padding: 0.35rem 0.6rem;
    font-size: 0.9rem;
}

.footer-top h2 {
    font-size: 4rem;
}

/* Utility: visually hidden (screen-reader only) */
.sr-only {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Centered, slightly wider container for the hero (a bit longer than the header) */
.container--wide {
    display: grid;
    grid-template-columns: 70% 30%;
    /* 70 / 30 content / visual */
    gap: 2rem;
    align-items: center;
    padding: 4rem 0 2.5rem;
}

/* Rotating words used in headings */
.rotating {
    display: inline-block;
    position: relative;
    min-width: 12rem;
    /* avoid layout jump when words change */
    height: 1em;
    vertical-align: baseline;
    overflow: visible;
}

.rotating-item {
    position: absolute;
    left: 0;
    top: 1px;
    opacity: 0;
    transform: translateY(0.25rem);
    transition: opacity .45s ease, transform .45s ease;
    white-space: nowrap;
}

.rotating-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .rotating-item {
        transition: none;
    }
}

.right p,
.company-right .description {
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 300;
    color: var(--accent-75);
}

.description {
    margin-top: 0;
}

.about-profile .portrait {
    width: 180px;
    border-radius: 120px;
    box-shadow: 0 14px 45px rgba(15, 23, 42, 0.10);
}

.right .hightlight p span {
    font-weight: 500;
}

.float-right {
    float: right;
}

.company {
    margin-bottom: 4rem;
}

.company-logo {
    margin: 0.5rem 0rem;
}

/* Footer */
.site-footer {
    background: #fff;
    color: var(--accent);
    margin-top: 5rem;
    padding: 4rem 0;
}

.footer-top {
    display: flex;
    gap: 1rem;
    align-items: baseline;
}

.footer-top h2 {
    font-size: 8rem;
    margin: 0;
    color: var(--accent-08);
    line-height: 0.8;
}

.footer-link,
.footer-top p,
.footer-right p {
    font-size: 1.1rem;
    color: var(--accent-50);
    text-decoration: none;
    font-weight: 400;
}

.footer-top p {
    font-weight: 300;
    color: var(--accent-75);
}

.footer-link:hover,
.footer-link:focus {
    color: var(--accent-blue);
    outline: none;
}

.footer-bottom {
    margin-top: 1rem;
    font-weight: 600;
    display: flex;
    gap: 5rem;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    gap: 5rem;
}

.skillsTools {
    margin-top: 5rem;
}

.skillsTools h2 {
    font-size: 1.25rem;
    margin: 0rem 0 0.5rem;
}

.skillsTools p {
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 300;
    color: var(--accent-75);
    margin: 0;
}

.skillsTools .skills,
.skillsTools .development,
.skillsTools .education {
    margin-top: 2rem;
}

.work {
    margin-top: 15rem;
    scroll-margin-top: 10rem;
}

.work .dap-thumbnail {
    width: 100%;
}

.ri-menu-5-line:before {
    font-size: 20px;
}

/* Keep capsule compact on very small screens */
@media (max-width: 425px) {

    .container {
        width: min(100%, calc(100% - 2rem)) !important;
    }

    .site-name {
        display: none;
    }

    .hero-content {
        max-width: 100%;
    }

    .work {
        margin-top: 4rem !important;
    }

    .company .hero-kicker {
        display: grid
    }

    .skillTools-container {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .footer-top {
        display: block !important;
    }

    .footer-bottom {
        margin-top: 3rem;
        display: grid;
    }
}

/* Mobile adjustments: capsule stays, show toggle */
@media (max-width: 768px) {

    /* Hero section stack */
    .hero {
        grid-template-columns: 1fr;
        padding-top: 3rem;
        align-items: start;
    }

    .hero-visual {
        justify-items: start;
        margin-top: 2rem;
    }

    /* Container adjustments */
    .container {
        width: min(100%, calc(100% - 4rem));
    }

    /* Header stays fixed but adjusts */
    .site-header {
        width: min(95vw, calc(100% - 1rem));
        padding: 0.25rem;
    }

    .header-inner {
        gap: 0.5rem;
    }

    .site-name {
        font-size: 1rem;
    }

    /* Navigation mobile menu */
    .site-nav {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 1rem;
        left: 1rem;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 12px;
        display: none;
        padding: 0.75rem 1rem;
    }

    .site-nav.open {
        display: block;
    }

    .site-nav .nav-list {
        flex-direction: column;
        gap: 0.6rem;
    }

    /* Show toggle on mobile */
    .nav-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 0;
    }

    .footer-top h2 {
        font-size: 5rem !important;
    }

    .footer-left {
        gap: 2rem !important;
    }

    .footer-bottom {
        gap: 1rem !important;
    }

    .about-bio,
    .experience {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skillTools-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .skillsTools .skills,
    .skillsTools .development,
    .skillsTools .education {
        margin-top: 0rem;
    }

    .company-right {
        margin-top: 5rem;
    }

    .work {
        margin-top: 5rem;
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 3rem;
    }

    .hero-visual {
        justify-items: start;
    }
}

/* ===== PROJECT PAGE STYLES ===== */
.project-header {
    max-width: 900px;
}

.project-title {
    font-size: 2rem;
    color: var(--accent);
    margin: 0;
}

.project-subtitle {
    font-size: 1.15rem;
    color: var(--accent-75);
    line-height: 1.6;
    margin-bottom: 0;
    margin-top: var(--space-1);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin: 6rem 0;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-50);
    letter-spacing: 0.05em;
}

.meta-value {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 500;
}

.project-section {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-2);
}

.project-section img{
    width: 80%;
    margin: var(--space-4) 0;
}

.project-section:first-of-type {
    border-top: none;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-1);
    color: var(--accent);
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin: var(--space-4) 0 var(--space-2) 0;
    color: var(--accent);
}

.section-content {
    color: var(--accent-75);
    line-height: 1.8;
    font-size: 1.15rem;
    margin-top: 0;
    margin-bottom: var(--space-3);
}

.section-list {
    list-style: none;
    padding: 0;
    margin: var(--space-3) 0;
}

.section-list li {
    color: var(--accent-75);
    line-height: 1.8;
    margin-bottom: var(--space-2);
    padding-left: var(--space-3);
    position: relative;
}

.section-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.ux-principle {
    margin-bottom: var(--space-3);
}

.ux-principle strong {
    color: var(--accent);
}

.highlight-box {
    background: var(--accent-04);
    border-left: 4px solid var(--accent-blue);
    padding: var(--space-4);
    margin: var(--space-4) 0;
    border-radius: 4px;
}

.highlight-box p {
    margin: 0;
    color: var(--accent-75);
    line-height: 1.8;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    margin: var(--space-4) 0;
}

.image-placeholder {
    background: var(--accent-08);
    border: 2px dashed var(--accent-16);
    border-radius: 8px;
    padding: var(--space-6);
    text-align: center;
    color: var(--accent-50);
    margin: var(--space-4) 0;
    font-size: 0.95rem;
}

.competitor-card {
    background: var(--accent-04);
    border: 1px solid var(--accent-12);
    padding: var(--space-4);
    border-radius: 6px;
    margin-bottom: var(--space-3);
}

.competitor-card h3 {
    color: var(--accent);
    display: block;
    margin-bottom: var(--space-1);
}

.competitor-content{
    color: var(--accent-75);
    line-height: 1.8;
    font-size: 1.15rem;
    margin-top: 0;
    margin-bottom: var(--space-2);
}

.competitor-card.highlight {
    border-color: var(--accent-blue-50);
    background: var(--accent-blue-04);
}

.outcome-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    padding: var(--space-3);
    background: var(--accent-04);
    border-radius: 6px;
}

.outcome-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    min-width: 60px;
}

.outcome-text {
    color: var(--accent-75);
    line-height: 1.6;
}

.project {
    width: min(80%, 1150px) !important;
    margin: 5rem auto;
}

@media (max-width: 768px) {
    .project {
        width: min(1150px, 90%) !important;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .project-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
