﻿body.portfolio-home {
    font-family: "Play", "Segoe UI", sans-serif;
}

.portfolio-home nav {
    font-family: "Tektur", sans-serif;
}

.portfolio-home nav ul li a {
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.3) 34%, rgba(65, 161, 211, 0.16) 48%, rgba(35, 132, 190, 0.58) 100%),
        rgba(81, 174, 221, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        inset 0 -1px 0 rgba(31, 112, 158, 0.34),
        0 3px 8px rgba(27, 83, 114, 0.22);
    text-shadow: 0 1px 2px rgba(20, 74, 105, 0.7);
    -webkit-backdrop-filter: blur(6px) saturate(150%);
    backdrop-filter: blur(6px) saturate(150%);
}

.portfolio-home nav ul li a::after {
    height: 52%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.18) 72%, transparent);
}

.portfolio-home nav ul li a.active,
.portfolio-home nav ul li a:hover {
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.38) 32%, rgba(58, 169, 224, 0.2) 48%, rgba(20, 112, 176, 0.72) 100%),
        rgba(36, 150, 211, 0.54);
    box-shadow:
        inset 0 1px 0 #fff,
        inset 0 -1px 0 rgba(19, 91, 141, 0.4),
        0 4px 11px rgba(21, 83, 120, 0.28);
}

.portfolio-home header h1,
.portfolio-home .intro-section h2 {
    font-family: "Play", "Segoe UI", sans-serif;
}

.portfolio-home-main {
    box-sizing: border-box;
    background:
        linear-gradient(118deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.08) 28%, transparent 48%),
        linear-gradient(145deg, rgba(231, 248, 255, 0.4), rgba(156, 214, 242, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.92),
        inset 0 -1px 0 rgba(255, 255, 255, 0.34),
        3px 8px 24px rgba(37, 91, 122, 0.22);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* Keep the projects themselves as the page's visual focus. */
.project-portfolio .portfolio-home-main {
    background: transparent;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.project-portfolio .game-design {
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font-size: 1rem;
    text-shadow: none;
}

.project-portfolio .project-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0 auto 14px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(230, 244, 255, 0.94));
    box-shadow: 0 3px 8px rgba(35, 88, 126, 0.12);
    color: #244e70;
    font-family: "Play", "Segoe UI", sans-serif;
    text-align: left;
}

.project-filters-label {
    flex: 0 0 auto;
    color: #5587a9;
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.project-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.project-filter {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid #a9cfe9;
    border-radius: 999px;
    background: #fff;
    color: #28648f;
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: bold;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.project-filter:hover,
.project-filter:focus-visible {
    border-color: #247db9;
    box-shadow: 0 0 0 3px rgba(36, 125, 185, 0.16);
    outline: none;
}

.project-filter.is-active {
    border-color: #247db9;
    background: linear-gradient(180deg, #54afe5, #247db9);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 59, 100, 0.35);
}

.project-portfolio .game-project[hidden] {
    display: none !important;
}

.project-portfolio .game-project {
    position: relative;
    margin: 0 auto 28px;
    border: 2px solid rgba(255, 255, 255, 0.98);
    background: linear-gradient(145deg, #fff, #f2f9ff);
    box-shadow:
        0 12px 28px rgba(35, 88, 126, 0.24),
        0 3px 8px rgba(35, 88, 126, 0.12),
        inset 0 0 0 1px rgba(94, 153, 196, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-portfolio .game-project:hover {
    transform: translateY(-3px);
    box-shadow:
        0 17px 34px rgba(35, 88, 126, 0.28),
        0 5px 12px rgba(35, 88, 126, 0.16),
        inset 0 0 0 1px rgba(94, 153, 196, 0.3);
}

/* Compact Captured Echoes case study */
.echoes-project {
    overflow: hidden;
    padding: 0;
    background: linear-gradient(155deg, #fff, #edf7ff 65%, #e4f2ff);
    text-align: left;
}

.echoes-hero {
    position: relative;
    padding: 14px 20px 12px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(111, 194, 241, 0.32), transparent 42%),
        linear-gradient(120deg, #f8fcff, #dcedfc);
    border-bottom: 1px solid rgba(87, 151, 197, 0.25);
}

.echoes-hero-copy { display: grid; gap: 10px; }

.echoes-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.echoes-project .echoes-hero h3 {
    margin: 0;
    color: #1d5688;
    font-family: "Play", "Segoe UI", sans-serif;
    font-size: clamp(1.7rem, 3.5vw, 2.25rem);
    line-height: 1.1;
    text-shadow: 0 1px 0 #fff, 0 3px 8px rgba(39, 111, 164, 0.15);
}

.echoes-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.echoes-meta div {
    position: relative;
    min-width: 0;
    padding: 6px 10px 7px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(231, 244, 253, 0.88));
    box-shadow: 0 2px 6px rgba(50, 108, 150, 0.1), inset 0 0 0 1px rgba(113, 164, 198, 0.14);
}

.echoes-meta dt {
    color: #5587a9;
    font-size: 0.64rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.echoes-meta dd {
    overflow: hidden;
    margin: 2px 0 0;
    color: #244e70;
    font-size: 0.88rem;
    font-weight: bold;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.echoes-actions { flex: 0 0 auto; }
.echoes-actions a {
    color: #2877b5;
    font-size: 0.84rem;
    font-weight: bold;
    text-decoration: none;
}

.echoes-actions .echoes-play-link {
    display: inline-block;
    padding: 7px 13px;
    border: 1px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(180deg, #54afe5, #247db9);
    box-shadow: 0 2px 6px rgba(36, 125, 185, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 2px rgba(0, 59, 100, 0.4);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.echoes-actions .echoes-play-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 9px rgba(36, 125, 185, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.echoes-copy { padding: 12px 20px 0; }

.echoes-copy-block { margin-bottom: 10px; }

.echoes-project .echoes-copy-block h4 {
    margin: 0 0 2px;
    color: #2877b5;
    font-family: "Play", "Segoe UI", sans-serif;
    font-size: 0.95rem;
}

.echoes-project .echoes-copy-block p {
    margin: 0;
    color: #354b5d;
    font-size: 0.88rem;
    line-height: 1.55;
    text-align: left;
}

.echoes-copy-block a { color: #2877b5; }

.echoes-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 12px;
}

.project-portfolio .game-project .project-gallery-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
}

.project-portfolio .game-project .project-gallery-single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 440px;
    margin-right: auto;
    margin-left: auto;
}

.echoes-gallery figure {
    min-width: 0;
    margin: 0;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    background: linear-gradient(155deg, #fff, #e9f4fc);
    box-shadow: 0 3px 9px rgba(54, 108, 148, 0.15), inset 0 0 0 1px rgba(118, 162, 194, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.echoes-gallery figure:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(54, 108, 148, 0.2), inset 0 0 0 1px rgba(118, 162, 194, 0.16);
}

.echoes-project .echoes-gallery img {
    width: 100%;
    aspect-ratio: 1.55;
    border-radius: 5px;
    object-fit: cover;
    image-rendering: pixelated;
    box-shadow: 0 1px 4px rgba(37, 83, 116, 0.14);
}

.music-project .echoes-gallery img.album-cover {
    aspect-ratio: 1.55;
    object-fit: contain;
}

.echoes-project.music-project .echoes-gallery img,
.echoes-project.finalsite-project .echoes-gallery img {
    image-rendering: auto;
}

.echoes-project .echoes-gallery figcaption {
    margin: 4px 2px 1px;
    color: #2b4a6b;
    font-size: 0.78rem;
    font-weight: bold;
}

.echoes-project .echoes-skills {
    margin: 0 20px 14px;
    border-color: #fff;
    text-align: left;
}

.echoes-project .echoes-skills .skill-panel-title {
    padding: 4px 12px;
    font-family: "Play", "Segoe UI", sans-serif;
    font-size: 0.92rem;
}

.echoes-project .echoes-skills .skill-panel-body { padding: 8px 10px; }
.echoes-project .echoes-skills .badge-list { gap: 4px; }
.echoes-project .echoes-skills .skill-badge { text-align: left; }

@media (max-width: 600px) {
    .echoes-hero { padding: 12px 14px; }
    .echoes-title-row { align-items: flex-start; flex-wrap: wrap; }
    .echoes-project .echoes-hero h3 { font-size: 1.55rem; }
    .echoes-actions .echoes-play-link { padding: 6px 9px; font-size: 0.75rem; }
    .echoes-meta { grid-template-columns: 1fr; gap: 5px; }
    .echoes-meta div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 9px; }
    .echoes-meta dd { font-size: 0.82rem; }
    .website-project .echoes-meta div { align-items: flex-start; flex-direction: column; gap: 2px; }
    .echoes-copy { padding: 10px 14px 0; }
    .echoes-gallery { gap: 5px; }
    .project-portfolio .game-project .project-gallery-two { grid-template-columns: minmax(0, 1fr); }
    .echoes-gallery figure { padding: 3px; }
    .echoes-project .echoes-skills { margin: 0 14px 12px; }
}

@media (max-width: 768px) {
    .project-portfolio .game-design { background: transparent !important; }
}

/* Gently compact front page so the contact prompt fits above the fold */
.portfolio-front header h1 { margin-bottom: 0.5rem; font-size: 2.4rem; }
.portfolio-front .slogan-wrapper { margin: 0.4rem auto 0.9rem; }
.portfolio-front .slogan { margin-bottom: 0.7rem; }
.portfolio-front main { padding: 18px; margin-top: 16px; }
.portfolio-front .intro-section { padding: 14px 18px; }
.portfolio-front .intro-section h2 { font-size: 2.1rem; margin: 0 0 0.6rem; }
.portfolio-front .typing-effect { font-size: 1.4rem; margin-bottom: 0.7rem; }
.portfolio-front .intro-section p { font-size: 1.15rem; line-height: 1.55; margin: 0.8rem 0; }
.portfolio-front .intro-section h3 { font-size: 1.15rem; margin: 0.8rem 0 0; }
.portfolio-front .features-grid { padding: 16px 0; gap: 18px; }
.portfolio-front .feature-card { padding: 14px; }
.portfolio-front .feature-card h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.portfolio-front .feature-card p { font-size: 0.92rem; line-height: 1.4; margin: 0; }

/* ==========================================================================
   Skills showcase (Wii U channel-style panels with static badges)
   ========================================================================== */
.skills-showcase { margin-top: 6px; }
.skills-showcase h2 { margin-bottom: 0.4rem; }

.skills-grid-showcase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
    text-align: left;
}

.skill-wide { grid-column: 1 / -1; }

.skill-panel {
    --accent: #3b9ae1;
    --accent-dark: #2273b8;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(232, 244, 253, 0.85));
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(60, 110, 160, 0.25), inset 0 0 0 1px rgba(120, 170, 215, 0.35);
    overflow: hidden;
}

.skill-blue { --accent: #3b9ae1; --accent-dark: #2273b8; }
.skill-cyan { --accent: #19b5d8; --accent-dark: #0e8aa8; }
.skill-green { --accent: #4cb86b; --accent-dark: #2f8e4c; }
.skill-orange { --accent: #f5a02e; --accent-dark: #cc7a0f; }
.skill-pink { --accent: #ec6a8d; --accent-dark: #c3456a; }

.skill-panel-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 5px 14px;
    font-size: 1.05rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
    overflow: hidden;
}

.skill-panel-title::after {
    content: "";
    position: absolute;
    inset: 0 0 50% 0;
    background: rgba(255, 255, 255, 0.28);
    pointer-events: none;
}

.skill-icon { font-size: 1.05rem; position: relative; z-index: 1; }

.skill-panel-body { padding: 8px 12px 10px; }

.badge-list {
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.badge-list:last-child { margin-bottom: 0; }

.skill-badge {
    position: relative;
    margin: 0;
    padding: 1px 10px 1px 20px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #2b4a6b;
    background: linear-gradient(180deg, #fff, #e3f1fc);
    border: 1px solid rgba(110, 165, 210, 0.6);
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(60, 110, 160, 0.2), inset 0 1px 0 #fff;
}

.skill-badge::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, var(--accent) 60%);
    box-shadow: 0 0 0 1px var(--accent-dark);
}

.badge-list-featured .skill-badge {
    padding: 3px 14px 3px 24px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
    border-color: var(--accent-dark);
    overflow: hidden;
}

.badge-list-featured .skill-badge::after {
    content: "";
    position: absolute;
    inset: 0 0 50% 0;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px 999px 0 0;
    pointer-events: none;
}

.badge-list-featured .skill-badge::before { left: 10px; background: #fff; box-shadow: none; z-index: 1; }

@media (max-width: 900px) {
    .skills-grid-showcase { grid-template-columns: 1fr; }
}
/* Download section: just the button, no boxed wrapper */
.portfolio-home #downloads {
    padding: 0;
    margin: 20px auto 10px;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
}

/* ==========================================================================
   Education & achievements tiles
   ========================================================================== */
#achievements h2 { margin-bottom: 0.4rem; }

.achievements-grid {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    text-align: left;
}

.achievement-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(232, 244, 253, 0.85));
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(60, 110, 160, 0.25), inset 0 0 0 1px rgba(120, 170, 215, 0.35);
}

.achievement-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #bfe0fa 70%);
    box-shadow: 0 2px 4px rgba(60, 110, 160, 0.3), inset 0 0 0 1px rgba(110, 165, 210, 0.6);
}

.achievement-text {
    font-size: 0.95rem;
    line-height: 1.3;
    color: #2b4a6b;
    font-weight: bold;
}

.achievement-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3b82f6;
}

@media (max-width: 900px) {
    .achievements-grid { grid-template-columns: 1fr; }
}
