/* PLVictor portfolio design system
   Shared by the home page and every project page.
   Light, editorial, rounded. Brand: navy + orange + blue. */

:root {
    /* brand (legacy names kept: project pages still reference them) */
    --primary-blue: #113459;
    --accent-orange: #FF8A32;
    --accent-orange-hover: #FF9F53;
    --link-blue: #1E5FAE;
    --bg-light: #F5F7FA;
    --bg-white: #FFFFFF;
    --text-primary: #113459;
    --text-secondary: #5B6772;
    --text-white: #FFFFFF;
    --border-light: rgba(17, 52, 89, 0.10);
    --shadow-soft: 0 1px 2px rgba(17, 52, 89, 0.04), 0 8px 24px rgba(17, 52, 89, 0.06);
    --shadow-medium: 0 2px 4px rgba(17, 52, 89, 0.05), 0 18px 44px rgba(17, 52, 89, 0.11);
    --gradient-hero: linear-gradient(135deg, #113459 0%, #1E5FAE 100%);

    /* new tokens */
    --ink: #0E2A4A;
    --orange-soft: #FFF0E3;
    --blue-soft: #E7F0FB;
    --green: #15803D;
    --green-soft: #E4F6EA;
    --amber: #C2570C;
    --amber-soft: #FFEBD6;
    --grey: #6B7480;
    --grey-soft: #ECEFF3;
    --radius-s: 14px;
    --radius-m: 22px;
    --radius-l: 32px;
    --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--bg-light);
    color: var(--ink);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--link-blue); }

:focus-visible { outline: 3px solid rgba(255, 138, 50, 0.55); outline-offset: 3px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- shared pieces ---------- */

.container { max-width: 1080px; margin: 0 auto; }

.back-button {
    position: fixed; top: 1.1rem; left: 1.1rem; z-index: 1000;
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .65rem 1.2rem;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    color: var(--ink); text-decoration: none;
    font-weight: 600; font-size: .9rem;
    box-shadow: var(--shadow-soft);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.back-button:hover { transform: translateX(-4px); box-shadow: var(--shadow-medium); }

/* status pills (home + project pages) */
.project-status {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .45rem 1rem;
    background: var(--grey-soft); color: var(--grey);
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600; font-size: .78rem;
    text-transform: uppercase; letter-spacing: .08em;
}
.project-status i { font-size: .5rem; }
.project-status.is-live { background: var(--green-soft); color: var(--green); }
.project-status.is-dev { background: var(--amber-soft); color: var(--amber); }
.project-status.is-retired { background: var(--grey-soft); color: var(--grey); }
.project-status.is-live i { animation: statusPulse 2.2s ease-in-out infinite; }
@keyframes statusPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* extra badges (hero) */
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-start; }
.project-status.status-open { background: var(--green-soft); color: var(--green); }
.project-status.status-milestone { background: #FFF4CC; color: #8A6100; }
.cta-button.cta-primary { background: var(--accent-orange); color: #fff; }

/* ---------- project page: hero ---------- */

.hero {
    position: relative; overflow: hidden;
    padding: 7.5rem 1.5rem 3.5rem;
    background:
        radial-gradient(60% 80% at 12% 0%, rgba(255, 138, 50, .16), transparent 60%),
        radial-gradient(55% 80% at 95% 10%, rgba(30, 95, 174, .14), transparent 60%),
        var(--bg-light);
}
.hero-bg-pattern {
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(17, 52, 89, .09) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-content {
    position: relative; z-index: 2;
    max-width: 1080px; margin: 0 auto;
    display: grid; grid-template-columns: auto 1fr;
    column-gap: 3rem; align-items: center;
    text-align: left;
}
.project-emote {
    grid-row: 1 / span 3;
    width: clamp(150px, 22vw, 240px); aspect-ratio: 1; object-fit: cover; object-position: center 28%;
    background: linear-gradient(145deg, #fff, var(--blue-soft));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-medium);
    transform: rotate(-3deg);
    transition: transform .4s var(--ease);
}
.project-emote:hover { transform: rotate(0deg) scale(1.03); }
.project-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6.5vw, 4.6rem);
    font-weight: 800; line-height: 1.02; letter-spacing: -.035em;
    color: var(--ink);
    background: none; -webkit-text-fill-color: currentColor;
    margin-bottom: 1rem; text-wrap: balance;
}
.project-tagline {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: var(--text-secondary); max-width: 34rem;
    margin-bottom: 1.5rem;
}
.hero-content > .project-status { justify-self: start; align-self: start; }

/* ---------- project page: sections ---------- */

.section { padding: 4.5rem 1.5rem; position: relative; }
.section-header { text-align: left; margin-bottom: 2.5rem; max-width: 40rem; }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
    color: var(--ink); margin-bottom: .6rem;
}
.section-subtitle { font-size: 1.05rem; color: var(--text-secondary); }
.separator {
    width: 56px; height: 5px; margin: 1rem 0 0;
    background: linear-gradient(90deg, var(--accent-orange), var(--link-blue));
    border-radius: 99px;
}

.overview-content {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-l);
    padding: clamp(1.6rem, 4vw, 3rem);
    box-shadow: var(--shadow-soft);
}
.overview-text { font-size: 1.06rem; line-height: 1.85; color: var(--text-secondary); max-width: 46rem; }
.overview-text p { margin-bottom: 1.3rem; }
.overview-text p:last-child { margin-bottom: 0; }
.overview-text strong { color: var(--ink); font-weight: 650; }
.overview-text a { font-weight: 600; text-underline-offset: 3px; }

/* stats */
.stats-section { padding-top: 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat-card {
    background: var(--bg-white); border: 1px solid var(--border-light);
    border-radius: var(--radius-m); padding: 1.6rem 1.4rem;
    box-shadow: var(--shadow-soft);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-medium); }
.stat-number {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 2.7rem); line-height: 1; letter-spacing: -.03em;
    color: var(--ink); margin-bottom: .45rem;
}
.stat-label { font-size: .9rem; color: var(--text-secondary); font-weight: 500; }

/* feature cards */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.1rem; }
.feature-card {
    background: var(--bg-white); border: 1px solid var(--border-light);
    border-radius: var(--radius-m); padding: 1.8rem;
    box-shadow: var(--shadow-soft);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); border-color: rgba(255, 138, 50, .5); }
.feature-icon {
    width: 52px; height: 52px; margin-bottom: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--orange-soft); border-radius: 16px;
}
.feature-icon i { font-size: 1.35rem; color: var(--accent-orange); }
.feature-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); margin-bottom: .5rem; }
.feature-description { color: var(--text-secondary); font-size: .97rem; line-height: 1.7; }

/* tech */
.tech-stack { background: var(--bg-white); border-block: 1px solid var(--border-light); }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .9rem; }
.tech-item {
    background: var(--bg-light); border: 1px solid var(--border-light);
    border-radius: var(--radius-m); padding: 1.4rem 1rem; text-align: center;
    transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.tech-item:hover { transform: translateY(-3px); border-color: var(--accent-orange); background: #fff; }
.tech-item i { font-size: 2rem; color: var(--link-blue); margin-bottom: .8rem; display: block; }
.tech-name { font-weight: 600; font-size: .9rem; color: var(--ink); }

/* screenshots gallery (add <section class="section shots"> when images exist) */
.shots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.shot {
    background: var(--bg-white); border: 1px solid var(--border-light);
    border-radius: var(--radius-m); padding: .6rem; box-shadow: var(--shadow-soft);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-medium); }
.shot img { display: block; width: 100%; height: auto; border-radius: calc(var(--radius-m) - 8px); }
.shot figcaption { padding: .7rem .5rem .3rem; font-size: .9rem; color: var(--text-secondary); }
.shot.wide { grid-column: span 2; }

/* call to action */
.cta-section { padding: 1rem 1.5rem 5rem; text-align: center; }
.cta-content {
    max-width: 1080px; margin: 0 auto;
    padding: clamp(2.2rem, 6vw, 4rem) clamp(1.4rem, 4vw, 3rem);
    background:
        radial-gradient(70% 120% at 0% 0%, rgba(255, 138, 50, .22), transparent 60%),
        radial-gradient(70% 120% at 100% 100%, rgba(30, 95, 174, .2), transparent 60%),
        #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-medium);
}
.cta-content h2 {
    font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
    font-size: clamp(1.9rem, 4.5vw, 3rem); color: var(--ink); margin-bottom: .8rem;
}
.cta-content p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.cta-button {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: .95rem 1.8rem;
    background: var(--accent-orange); color: #fff; text-decoration: none;
    border: 1px solid transparent; border-radius: 999px;
    font-weight: 650; font-size: 1rem;
    box-shadow: 0 10px 26px rgba(255, 138, 50, .35);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.cta-button:hover { transform: translateY(-3px); background: var(--accent-orange-hover); box-shadow: 0 16px 34px rgba(255, 138, 50, .42); }
.cta-button.secondary, .cta-button.cta-secondary {
    background: #fff; color: var(--ink);
    border-color: var(--border-light); box-shadow: var(--shadow-soft);
}
.cta-button.secondary:hover, .cta-button.cta-secondary:hover { background: #fff; border-color: var(--accent-orange); box-shadow: var(--shadow-medium); }
.cta-content > .cta-button + .cta-button { margin-left: .4rem; }

/* footer */
.footer { padding: 2rem 1.5rem 3rem; text-align: center; background: transparent; }
.footer p { color: var(--text-secondary); font-size: .9rem; }

/* ---------- responsive ---------- */

@media (max-width: 768px) {
    .back-button { top: .8rem; left: .8rem; padding: .55rem 1rem; font-size: .82rem; }
    .hero { padding: 6rem 1.25rem 2.5rem; }
    .hero-content { grid-template-columns: 1fr; row-gap: 0; justify-items: start; }
    .project-emote { grid-row: auto; width: 150px; margin-bottom: 1.6rem; }
    .section { padding: 3rem 1.25rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .shot.wide { grid-column: auto; }
    .cta-section { padding: .5rem 1.25rem 3.5rem; }
    .cta-button { width: 100%; }
}
