@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@700;800&family=Inter:wght@300;400;500&display=swap');

:root {

    --color-darker-gray: #080C14;
    --color-medium-gray: #0F1D30;
    --color-light-gray: #C2C6D0;
    --color-light-teal: #5BA4F5;
    --color-teal: #1A5FAD;

    --color-black: #000000;
    --color-white: #D0D6E0;
}

/* ── Base Reset & Global Styles ────────────────────────────────────── */
*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html
{
    scroll-behavior: smooth;
}
body
{
    background-color: var(--color-darker-gray);
    color: var(--color-white);
    font-family: 'Inter', sans-serif;
}

h1, h2, h3,
.sub-title,
.title-container h2 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    letter-spacing: 0.02em;
}
h1
{
    text-decoration: none;
    text-align: left;
    color: var(--color-white);
}

/* ── Banner Image — hero image used on production.html ─────────────── */
.banner {
    width: 100%; /* Full width of the parent container */
    height: 70vh; /* Height set to 70% of the viewport height */
    overflow: hidden; /* Hide any overflowing content */
}

.banner img {
    width: 100%; /* Image will take full width of the container */
    height: 100%; /* Image will take full height of the container */
    object-fit: cover; /* Image will cover the area, maintaining aspect ratio */
    object-position: center bottom; /* Adjusts the vertical focus to crop the image */
}


/* ── Navbar — fixed top bar, shared across all pages ───────────────── */
.navbar {
    overflow: hidden;
    padding: 10px;
    position: fixed; 
    top: 0;
    width: 100%; 
    z-index: 9999; 
    background-color: var(--color-darker-gray); /* Add your background color here */

}

nav {
    display: flex;
    align-items: center; /* Vertically center items */
    justify-content: space-between; /* Space between title and menu */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

/* Title container — name and subtitle inside the navbar */
.title-container {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: flex-start; /* Aligns items to the left */
    margin-right: auto; /* Pushes the menu to the right */
}

.title-container h2,
.title-container p {
    margin: 0; /* Remove default margin */
}

/* Title sizing */
.title-container h2 {
    font-size: 1.5em; /* Adjust title size */
}

.title-container p {
    font-size: 0.9em; /* Adjust font size as needed */
    color: var(--color-light-gray); /* Adjust color if needed */
}

/* Navbar links — right-side menu items */
nav ul {
    display: flex; /* Make the list a flex container */
    margin-left: auto; /* Aligns menu items to the right */
}

nav ul li {
    list-style: none; /* Remove bullet points */
    margin-left: 8px; /* Adjust margin for spacing */
}

nav ul li a {
    color: var(--color-white);
    background-color: var(--color-medium-gray);
    text-decoration: none;
    font-size: 16px;
    position: relative;
    padding: 10px;
    border-radius: 10px;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--color-teal);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: width 0.5s; /* More specific transition property */
}

nav ul li a:hover::after {
    width: 100%; /* Expands underline on hover */
}


/* ── Layout Container — max-width wrapper used across all sections ──── */

.container
{
    padding: 0;
    max-width: 1200px;
    box-sizing: border-box;
    margin: 0 auto;

}

/* ── Greeting Section — hero text block on index.html ──────────────── */
.greeting {
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Horizontally center content */
    justify-content: center; /* Vertically center content */
    /*height: 40vh; /* Set height for the box */
    max-width: 800px; /* Set max width in pixels */
    width: 90%; /* Allow flexibility for smaller screens */
    margin: 70px auto 0; /* Center the box and set top margin */
    padding: 50px; /* Add padding to avoid text touching the edges */
    text-align: center; /* Center-align text within the element */
    color: var(--color-white); /* Use your theme's color */
    box-sizing: border-box; /* Include padding in the height/width calculation */
}

.greeting-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.greeting-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-image: url('images/site/headshot.jpg');
    background-size: cover;
    background-position: center 25%;
    border: 2px solid var(--color-light-teal);
    flex-shrink: 0;
}

.greeting h1 {
    font-size: clamp(24px, 4vw, 48px); /* Responsive font size with min, preferred, and max */
    margin-bottom: 15px; /* Add some spacing between the title and the subtitle */
    margin-top: 15px;
} 

.greeting p {
    font-size: clamp(14px, 2vw, 20px); /* Responsive font size with min, preferred, and max */
    margin-top: 30px;
}

.greeting i
{
    font-size: clamp(30px, 2vw, 50px)
    
}


/* ── Project Detail Page (project.html) — showcase card wrapper ─────── */
.portfolio-showcase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: var(--color-light-gray);
    background: var(--color-medium-gray);
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    border-top: 3px solid var(--color-teal);
}

/* Challenge box — difficulty/design callout block inside a project card */
.challenge-content {
    margin-left: auto;
    margin-right: auto;
    max-width: 500px;
    background: var(--color-teal);
    padding: 30px;
    font-size: 14px;
    font-weight: 400;
    border-radius: 0 10px 10px 0;
    border-left: 3px solid var(--color-light-teal);
    transition: background 0.5s, transform 0.5s;
    text-align: left;
}

.challenge-content:hover {
    transform: translateY(-10px);
}

.challenge-content h2 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 0.875rem;
}

.challenge-content h2 i {
    color: var(--color-light-teal);
    margin-right: 6px;
}

.challenge-content p {
    line-height: 1.7;
    color: var(--color-white);
}

.challenge-content p + p {
    margin-top: 0.75rem;
}

/* Right column — media layout variant (video + challenge box stacked) */
.portfolio-right {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.portfolio-right .portfolio-challenge {
    flex-shrink: 0;
}

/* Challenge box override when inside the right column layout */
.portfolio-right .challenge-content {
    max-width: 100%;
    margin: 0;
    padding: 1.25rem 1.5rem;
    text-align: left;
    transform: none !important;
}

/* Video block — grows to fill remaining height in the right column */
.portfolio-right .portfolio-video {
    flex: 1;
    min-height: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.portfolio-right .portfolio-video video,
.portfolio-right .portfolio-video iframe {
    width: 100%;
    flex-shrink: 0;
}


/* Two-column content layout — text left, media right */
.portfolio-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

.portfolio-text {
  flex: 1 40%;
}

/* Text-only variant — cap line length and center when no media column */
.portfolio-text:only-child {
    max-width: 720px;
    margin: 0 auto;
}

.portfolio-text a 
{
    color: var(--color-white)
}

.portfolio-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-light-gray);
}

.portfolio-text p {
  line-height: 1.75;
  color: var(--color-light-gray);
  text-align: left;
}

.portfolio-details ul {
  list-style-type: disc;       /* or circle/square */
  padding-left: 1.6rem;        /* space for bullets */
  margin: 1rem 0;
                /* space above/below list */
}

.portfolio-details ul li {
  text-indent: 0;
  line-height: 1.75;
  margin-bottom: 0;
  color: var(--color-light-gray);
}

/* Optional: styled bullet markers to match design */
.portfolio-details ul li::marker {
  color: var(--color-teal);           /* accent color */
  line-height: 1.6;
  font-size: 1.6rem;
}

.portfolio-details strong {
    color: var(--color-light-gray);
}

/* Video and image blocks */
.portfolio-video {
  margin: auto;
  flex: 1 1 40%;
  display: flex;
  align-items: flex-end;
}

.portfolio-video iframe {
    width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  display: block;
}

.portfolio-images-2 {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
}


.portfolio-video video {
  width: 100%;
}

.portfolio-images-2 img {
  width: 100%;
}

/* Image carousels — horizontal scroll strips inside project cards */
.portfolio-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  margin-top: 30px;

}

.carousel-track,
.carousel-track-2 {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar,
.carousel-track-2::-webkit-scrollbar {
  display: none;
}

/* Landscape track: items grow to fill space when few, scroll when many */
.carousel-track a {
  flex: 1 0 250px;
  max-width: 360px;
  scroll-snap-align: start;
}

/* Portrait track: fixed-width cards, never grow */
.carousel-track-2 a {
  flex-shrink: 0;
  scroll-snap-align: start;
}

.carousel-track img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s;
}

.carousel-track-2 img {
  width: 170px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.carousel-track-2 img:hover {
  transform: scale(1.05);
}




.carousel-track img:hover {
  transform: scale(1.05);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(102, 252, 241, 0.3);
  font-size: 2rem;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
  transition: background 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  border-color: var(--color-light-teal);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}



/* ── About Section — currently unused ──────────────────────────────── */
#about
{
    margin-top: 5%;
    padding: 0;
    color: var(--color-light-gray);
}
.row
{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.about-col-1
{
    flex-basis:20%;
    align-items: center;
}
.about-col-2
{
    flex-basis: 60%;
    align-items: center;
}
.about-col-3 img
{
    width: 100%;
    border-radius: 15px;
}
.about-col-4 img
{
    width: 100%;
    border-radius: 15px;
}
.about-col-3
{
    flex-basis: 25%;
    align-items: center;
}
.about-col-4
{
    flex-basis: 10%;
    align-items: center;
}
.sub-title
{
    font-size: 40px;
    font-weight: 600;
    color: var(--color-white);
    padding-bottom: 10px;
}
.section-desc {
    color: var(--color-light-gray);
    opacity: 0.65;
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
    line-height: 1.6;
}
.tab-titles
{
    display: flex;
    margin: 20px 0 40px;
}
.tab-links
{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}
.tab-links::after
{
    content: '';
    width: 0;
    height: 3px;
    background: var(--color-teal);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}
.tab-links.active-link::after
{
    width: 75%;
}
.tab-contents ul li
{
    list-style: none;
    margin: 10px 0;
}
.tab-contents ul li span
{
    color: var(--color-teal);
    font-size: 14px;
}
.tab-contents ul li p
{
    color: var(--color-light-gray);
    font-size: 14px;
}
.tab-contents
{
    display: none;
}
.tab-contents.active-tab
{
    display: block;
}
/* ── Design Pillars Section — #services grid on index.html ─────────── */
#services
{
    padding: 60px 0;
}
.services-list
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 10px;
}
.services-list div
{
    background: var(--color-medium-gray);
    padding: 30px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
    text-align: center;
}
.services-list i
{
    font-size: 30px;
    margin-bottom: 10px;
    
}
.services-list h2
{
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 10px;
    text-align: center;
}
.services-list a
{
    text-decoration: none;
    color:var(--color-teal);
    font-size: 18px;
    margin-top: 20px;
    display: inline-block;
}
.services-list div:hover
{
    background-color: var(--color-teal);
    transform: translateY(-10px);
}

/* ── Games Section — #portfolio grid on index.html ─────────────────── */
#portfolio,
#experiences
{
    padding: 60px 0;
}

/* ── Contact Section — footer CTA with social links ────────────────── */
#contact
{
    padding: 60px 0;
    background-color: var(--color-medium-gray);
}
.work-list
{
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
    overflow: hidden;
}
.work
{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.work img
{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.work h2
{
    text-align: center;
    margin-bottom: 15px;
}

.work h3
{
    text-align: center;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.88), rgba(18, 46, 44, 0.98));
    border-radius: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    padding: 20px 28px;
    text-align: left;
    transition: height 0.5s;
}

.layer h2 {
    font-size: 1rem;
    text-align: left;
    color: var(--color-white);
    margin-bottom: 4px;
}

.layer h3
{
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
    color: var(--color-light-teal);
    margin-bottom: 14px;
}

.layer li
{
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--color-white);
    line-height: 1.6;
    margin-bottom: 4px;
}

.layer a
{
    margin-top: 20px;
    color: var(--color-teal);
    text-decoration: none;
    font-size: 18px;
    line-height: 35px;
    background: var(--color-medium-gray);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
}


.work:hover img
{
    transform: scale(1.1);
}
.work:hover .layer
{
    height: 100%;
}
.btn
{
    display: block;
    margin: 1.5rem auto;
    width: fit-content;
    border: 1px solid var(--color-teal);
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--color-white);
    transition: background 0.5s ease;
}
.btn:hover
{
    background: var(--color-teal);
}
/* ── Social Icons — LinkedIn/email icons, now in greeting section ────── */

.social-icons p i
{
    color: var(--color-teal);
    margin-right: 15px;
    font-size: 60px;
}
.social-icons
{
    margin-top: 30px;
    text-align: center;
}
.social-icons a
{
    text-decoration: none;
    font-size: 50px;
    margin-right: 15px;
    color: var(--color-light-gray);
    display: inline-block;
    transition: transform 0.5s;
}
.social-icons a:hover
{
    color: var(--color-teal);
    transform: translateY(-5px);
}
.btn.btn2
{
    display: inline-block;
    background: var(--color-teal);
}

/* ── Footer — copyright bar ─────────────────────────────────────────── */
.copyright
{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: var(--color-medium-gray);
    font-weight: 300;
    margin-top: 20px;
}
#msg
{
    color: var(--color-light-teal);
    margin-top: -40px;
    display: block;
}






/* ── Analytics Dashboard — live metrics cards inside project.html ────── */

.project-dashboard {
    margin-top: 2rem;
    background: var(--color-darker-gray);
    border: 1px solid var(--color-teal);
    border-radius: 10px;
    padding: 1.5rem;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-teal);
}

.dashboard-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-light-teal);
}

.dashboard-title i {
    margin-right: 6px;
}

.dashboard-period {
    font-size: 0.75rem;
    color: rgba(197, 198, 199, 0.55);
}

/* Headline stat cards — top row of 4 KPI tiles */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.dash-stat {
    background: var(--color-medium-gray);
    border-radius: 8px;
    padding: 0.875rem 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dash-stat i {
    font-size: 1rem;
    color: var(--color-light-teal);
    margin-bottom: 2px;
}

.dash-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
}

.dash-stat-label {
    font-size: 0.68rem;
    color: rgba(197, 198, 199, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Chart cards — retention bars, difficulty bars, session highlight */
.dashboard-charts {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    align-items: stretch;
}

.dash-chart-card {
    background: var(--color-medium-gray);
    border-radius: 8px;
    padding: 1rem;
}

.dash-chart-card h4 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-light-teal);
    margin-bottom: 0.875rem;
}

/* Retention bar rows — before/after comparison bars */
.retention-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.retention-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-light-gray);
    width: 38px;
    flex-shrink: 0;
}

.retention-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.retention-bar {
    height: 12px;
    border-radius: 3px;
    min-width: 3px;
    transition: width 0.6s ease;
}

.retention-bar-before {
    background: rgba(47, 104, 101, 0.55);
}

.retention-bar-after {
    background: var(--color-light-teal);
}

.retention-values {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-light-teal);
    white-space: nowrap;
    width: 88px;
    text-align: right;
    flex-shrink: 0;
}

.retention-legend {
    display: flex;
    gap: 1rem;
    margin-top: 0.375rem;
}

.retention-legend span {
    font-size: 0.65rem;
    color: rgba(197, 198, 199, 0.6);
    display: flex;
    align-items: center;
    gap: 5px;
}

.retention-legend span::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-before::before { background: rgba(47, 104, 101, 0.55); }
.legend-after::before  { background: var(--color-light-teal); }

/* Difficulty perception bars — % feedback breakdown */
.diff-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.diff-label {
    font-size: 0.68rem;
    color: var(--color-light-gray);
    width: 68px;
    flex-shrink: 0;
}

.diff-bar-wrap {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.diff-bar {
    height: 100%;
    border-radius: 3px;
}

.diff-bar--teal    { background: var(--color-light-teal); }
.diff-bar--neutral { background: #d4a843; }
.diff-bar--dim     { background: #4b5563; }

.diff-pct {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-light-gray);
    width: 34px;
    text-align: right;
    flex-shrink: 0;
}

.satisfaction-note {
    font-size: 0.7rem;
    color: rgba(197, 198, 199, 0.7);
    margin-top: 0.75rem;
    line-height: 1.6;
}

.satisfaction-note strong {
    color: var(--color-light-teal);
}

/* Session highlight card — single large stat in the dashboard */
.dash-highlight-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 120px;
    padding: 1.25rem 1rem;
}

.dash-highlight-card i {
    font-size: 1.4rem;
    color: var(--color-light-teal);
    margin-bottom: 0.5rem;
}

.dash-highlight-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}

.dash-highlight-card p {
    font-size: 0.68rem;
    color: rgba(197, 198, 199, 0.7);
    line-height: 1.4;
}

/* ── Media Queries — responsive breakpoints ─────────────────────────── */
nav .fa-solid
{
    display: none;
}
@media only screen and (max-width: 700px)
{
    .open-icon {
        font-size: 20px;
        cursor: pointer;
        display: inline-block;
    }

    .close-icon {
        font-size: 20px;
        cursor: pointer;
        display: none;
        position: absolute;
        top: 15px;
        left: 15px;
        z-index: 3;
    }

    /* Hide the checkbox */
    #menu-toggle {
        display: none;
    }

    /* Style the menu */
    nav ul#sidemenu {
        background: var(--color-teal);
        position: fixed;
        top: 0;
        right: -150px; /* Hidden off-screen */
        width: 150px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav ul#sidemenu li {
        display: block;
        margin: 20px 0;
    }

    /* Toggle menu and icons based on checkbox state */
    #menu-toggle:checked ~ .open-icon {
        display: none;
    }

    #menu-toggle:checked ~ .close-icon {
        display: inline-block;
    }

    #menu-toggle:checked ~ #sidemenu {
        right: 0;
    }
    .sub-title
    {
        font-size: 40px;
    }
    .about-col-1, .about-col-2
    {
        flex-basis: 100%;
    }
    .about-col-1
    {
        margin-bottom: 30px;
    }
    .about-col-2
    {
        font-size: 14px;
    }
    .tab-links
    {
        font-size: 16px;
        margin-right: 20px;
    }
    .contact-left, .contact-right
    {
        flex-basis: 100%;
    }
    .copyright
    {
        font-size: 14px;
    }

  .portfolio-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-details,
  .portfolio-video {
    flex: 1 1 100%;
  }

  .portfolio-video {
    align-self: auto;
  }

  .portfolio-video video {
    width: 100%;
    height: auto;
  }

  /* Right column stacks full-width; video reverts to natural height */
  .portfolio-right {
    flex: 1 1 100%;
    width: 100%;
  }

  .portfolio-right .portfolio-video {
    flex: 0 0 auto;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-charts {
    grid-template-columns: 1fr;
  }

  .dash-highlight-card {
    min-width: unset;
  }

}

/* ── Lightbox Overrides — replaces missing PNG nav/close assets with CSS ── */
.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    background-image: none;
    opacity: 1;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}
.lb-nav a.lb-prev { justify-content: flex-start; padding-left: 12px; }
.lb-nav a.lb-next { justify-content: flex-end;   padding-right: 12px; }

.lb-nav a.lb-prev::after,
.lb-nav a.lb-next::after {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
    backdrop-filter: blur(4px);
    transition: background 0.2s, border-color 0.2s;
}
.lb-nav a.lb-prev::after { content: '‹'; }
.lb-nav a.lb-next::after { content: '›'; }
.lb-nav a.lb-prev:hover::after,
.lb-nav a.lb-next:hover::after {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
}

.lb-dataContainer {
    padding-top: 14px;
}

.lb-data .lb-close {
    background-image: none;
    opacity: 0.85;
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}
.lb-data .lb-close::after  { content: '✕'; }
.lb-data .lb-close:hover   { opacity: 1; }

/* ── Cards Grid — shared grid for both highlights and games sections ─── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--color-medium-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.project-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-darker-gray);
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.04);
}

.project-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-light-teal);
    opacity: 0.3;
}

.project-card-info {
    padding: 0.85rem 1rem 1rem;
}

.project-card-info h3 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: var(--color-white);
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    line-height: 1.3;
}

.project-card-info p {
    font-size: 0.78rem;
    color: var(--color-light-gray);
    opacity: 0.6;
}

/* ── Project Back Bar — back navigation bar on project.html (legacy) ─── */
.project-back-bar {
    padding: 1rem 2rem;
    margin-top: 60px;
}

.project-back-bar a {
    color: var(--color-light-teal);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: opacity 0.2s;
}

.project-back-bar a:hover {
    opacity: 0.75;
}

@media (max-width: 700px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

/* ── Highlights Grid — centering override for the career highlights cards */
#highlights-container .portfolio-grid {
    justify-content: center;
}

/* ── Highlight Card Tag — discipline label above the card title ───────── */
.highlight-card-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-light-teal);
    opacity: 1;
    margin-bottom: 0.2rem;
}

/* ── Coming Soon Card — dimmed, non-clickable variant for empty highlights */
.project-card--coming-soon {
    cursor: default;
    opacity: 0.5;
}
.project-card--coming-soon .project-card-image img {
    filter: grayscale(60%);
}
.coming-soon-badge {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-light-gray);
    border: 1px solid var(--color-light-gray);
    border-radius: 3px;
    padding: 0.15em 0.5em;
    opacity: 0.6;
}

/* ── Highlight Article Pages — layout for highlight-*.html blog pages ──── */
.highlight-hero {
    position: relative;
    width: 100%;
    max-height: 440px;
    overflow: hidden;
    margin-top: 60px;
}

.highlight-hero img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
}

.highlight-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 2.5rem;
    background: linear-gradient(transparent, rgba(8, 12, 20, 0.92));
}

.highlight-hero-overlay .highlight-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-light-teal);
    margin-bottom: 0.5rem;
}

.highlight-hero-overlay h1 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--color-white);
    line-height: 1.25;
    text-align: left;
}

.highlight-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
    color: var(--color-light-gray);
    line-height: 1.75;
}

.highlight-section {
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(91, 164, 245, 0.08);
}

.highlight-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.highlight-section-label {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-light-teal);
    margin-bottom: 0.6rem;
}

.highlight-section h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1rem;
    text-align: left;
}

.highlight-section p {
    margin-bottom: 1rem;
}

.highlight-section ul,
.highlight-section ol {
    padding-left: 1.75rem;
    margin: 1.25rem 0;
}

.highlight-section li {
    margin-bottom: 0.4rem;
    line-height: 1.75;
}

.highlight-section img {
    width: 100%;
    border-radius: 6px;
    margin: 1.25rem 0;
    display: block;
}

/* Formula block — monospace callout used in highlight-liveops.html */
.highlight-formula {
    background: var(--color-medium-gray);
    border-left: 3px solid var(--color-light-teal);
    border-radius: 0 6px 6px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 2;
    color: var(--color-light-gray);
}

.highlight-formula .formula-name {
    display: block;
    color: var(--color-light-teal);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.15rem;
}

/* Stat callout row — before/after retention figures */
.highlight-stats-row {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.highlight-stat-box {
    flex: 1;
    background: var(--color-medium-gray);
    border-radius: 8px;
    padding: 1.1rem 1rem;
    text-align: center;
}

.highlight-stat-box .stat-before {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-light-gray);
    opacity: 0.55;
    display: block;
}

.highlight-stat-box .stat-arrow {
    color: var(--color-light-teal);
    margin: 0 0.25rem;
    font-size: 0.9rem;
}

.highlight-stat-box .stat-after {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-light-teal);
    font-family: 'Exo 2', sans-serif;
    display: block;
}

.highlight-stat-box .stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-light-gray);
    opacity: 0.6;
    margin-top: 0.35rem;
    display: block;
}

/* Data table — room difficulty/formula tables in highlight pages */
.highlight-table-wrap {
    overflow-x: auto;
    margin: 1.25rem 0;
    border-radius: 6px;
}

.highlight-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    min-width: 480px;
}

.highlight-table thead th {
    background: var(--color-medium-gray);
    color: var(--color-light-teal);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(91, 164, 245, 0.15);
}

.highlight-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.highlight-table tbody tr:last-child {
    border-bottom: none;
}

.highlight-table tbody td {
    padding: 0.5rem 0.75rem;
    color: var(--color-light-gray);
}

.highlight-table tbody tr:nth-child(odd) td {
    background: rgba(255,255,255,0.02);
}

.highlight-table .dc-col {
    color: var(--color-light-teal);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.highlight-table-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-light-gray);
    opacity: 0.5;
    margin: 1.5rem 0 0.4rem;
}

.highlight-note {
    font-size: 0.8rem;
    color: var(--color-light-gray);
    opacity: 0.55;
    border-left: 2px solid rgba(91, 164, 245, 0.3);
    padding-left: 0.75rem;
    margin: 1rem 0;
}

/* ── Highlight page carousel ─────────────────────────────────────────── */
.hl-carousel {
    position: relative;
    margin: 1.5rem 0 0.5rem;
    overflow: hidden;
    border-radius: 6px;
}
.hl-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}
.hl-carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hl-carousel-slide--grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    align-items: center;
}
.hl-carousel-slide--grid-3 img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 4px;
    background: var(--color-darker-gray);
}
.hl-carousel-slide--grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    align-items: center;
}
.hl-carousel-slide--grid-2 img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
}
.hl-carousel-slide img {
    width: 100%;
    display: block;
    object-fit: contain;
    max-height: 480px;
    border-radius: 6px;
    background: var(--color-darker-gray);
}
.hl-carousel-slide video {
    width: 100%;
    display: block;
    max-height: 480px;
    border-radius: 6px;
    background: #000;
}
.hl-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8,12,20,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--color-light-gray);
    font-size: 1.8rem;
    line-height: 1;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.hl-carousel-btn:hover {
    background: rgba(91,164,245,0.25);
}
.hl-carousel-prev { left: 0.6rem; }
.hl-carousel-next { right: 0.6rem; }
.hl-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
}
.hl-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(197,198,199,0.3);
    cursor: pointer;
    transition: background 0.2s;
}
.hl-carousel-dot.active {
    background: var(--color-light-teal);
}

/* ── Highlight page video ────────────────────────────────────────────── */
.hl-video {
    margin: 1.5rem 0;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}
.hl-video video {
    width: 100%;
    display: block;
}

@media (max-width: 600px) {
    .highlight-stats-row {
        flex-direction: column;
    }
}

/* ── Other Highlights Section — mini grid at the bottom of highlight pages */
.highlight-other-section {
    background: var(--color-medium-gray);
    padding: 3rem 1.5rem 4rem;
}
.highlight-other-inner {
    max-width: 760px;
    margin: 0 auto;
}
.highlight-other-inner .sub-title {
    margin-bottom: 0.5rem;
}