/* =========================================================
   KELLIE HUCKER TECH ART PORTFOLIO
   UNITY PAGE STYLES
   November 2026
   ========================================================= */

/* =========================================================
   UNITY PAGE LAYOUT
   ========================================================= */
.unity-projects-page {
    width: min(1400px, 100%); /* Allows Unity project page to use more horizontal space */
}

/* =========================================================
   UNITY PROJECT CATEGORY OVERRIDES
   ========================================================= */
.unity-page .specialties {
    align-items: stretch; /* Makes Unity cards stretch to a consistent height within row */
}

.unity-page .specialty-card {
    width: 320px; /* Sets Unity card width */
    height: 480px; /* Gives Unity cards extra vertical space for more content */
    flex: 0 1 320px; /* Uses 320px as base width while allowing cards to shrink if needed */
    display: flex; /* Uses Flexbox inside each Unity card */
    flex-direction: column; /* Stacks image and text content vertically */
}

.unity-page .card-image {
    width: 100%; /* Allows logo area to use full card width */
    height: 270px; /* Gives all Unity logos a consistent display area */
    object-fit: contain; /* Fits entire logo inside area without cropping */
    display: block; /* Removes inline-image baseline spacing */
    padding: 28px 38px 12px; /* Adds breathing room around logo */
    background: transparent; /* Keeps logo area transparent */
}

.unity-page .card-content {
    flex: 1; /* Allows text area to fill remaining vertical card space */
    display: flex; /* Uses Flexbox for content layout */
    flex-direction: column; /* Stacks title and description vertically */
    align-items: stretch; /* Lets child content use full available width */
    justify-content: flex-start; /* Keeps content aligned toward top */
    padding: 8px 26px 24px; /* Adds spacing around Unity card text */
}

.unity-page .card-content h3 {
    width: 100%; /* Allows title to use full content width */
    margin: 0 0 16px; /* Removes top/side margin and adds 16px below title */
    color: var(--text); /* Uses shared site text color */
    text-align: center; /* Centers Unity card title */
    font-size: 1.5rem; /* Sets Unity card title size */
    line-height: 1.25; /* Controls multi-line title spacing */
}

.unity-page .card-content p {
    width: 100%; /* Allows description to use full content width */
    margin: 0; /* Removes browser default paragraph margin */
    color: var(--text); /* Uses shared site text color */
    font-size: 1rem; /* Uses base readable text size */
    line-height: 1.55; /* Adds comfortable spacing between text lines */
}

.unity-page .card-content ul {
    width: 100%; /* Allows list to use full content width */
    margin: 0; /* Removes browser default list margin */
    padding-left: 1.35rem; /* Creates space for bullet markers */
    color: var(--text); /* Uses shared site text color */
    font-size: 1rem; /* Uses base readable text size */
    line-height: 1.5; /* Adds comfortable spacing between list lines */
}

.unity-page .card-content li {
    margin-bottom: 0.55rem; /* Adds spacing between bullet-list items */
}

.unity-page .card-content li:last-child {
    margin-bottom: 0; /* Removes extra spacing after final bullet */
}

/* =========================================================
   UNITY PROJECT SECTIONS
   ========================================================= */
.unity-project-section {
    margin-bottom: 0; /* Adds space between project categories */
}

/* =========================================================
   UNITY PROJECT CAROUSEL CATEGORY SPACING
   ========================================================= */
.unity-project-carousel-shell {
    margin-bottom: 40px; /* Adds consistent spacing between Unity project categories */
}

/* Removes unnecessary spacing after final carousel category */
.unity-project-carousel-shell:last-of-type {
    margin-bottom: 0; /* Keeps final Unity category from creating extra page space */
}

/* =========================================================
   UNITY PROJECT SECTION HEADER
   ========================================================= */
.unity-project-section-header {
    margin-top: 10px; /* Keeps title comfortably below top border */
    margin-bottom: 20px; /* Preserves breathing room below title */
    text-align: center; /* Centers section title */
}

.unity-project-section-header h2 {
    margin: 0; /* Removes default heading margin */
    color: var(--text); /* Uses shared site text color */
    text-shadow: 2px 2px 0 rgba(13, 113, 200, 0.85);
    font-size: clamp(1.5rem, 3vw, 2rem); /* Uses responsive section-title size */
    text-align: center; /* Centers Shaders title */
}
/* =========================================================
   UNITY PROJECT CAROUSEL CONTAINER
   ========================================================= */
.unity-project-carousel-shell {
    position: relative; /* Creates positioning reference for edge fade overlays */
    width: 100%; /* Uses full available project-section width */
    padding: 28px 18px 8px; /* Adds spacing around carousel content */
    background: rgba(8, 14, 28, 0.55); /* Restores translucent dark container */
    border: 1.5px solid var(--accent-blue-light); /* Restores outer blue outline */
    border-radius: 14px; /* Rounds outer carousel edges */
    overflow: hidden; /* Keeps content and edge fades inside shell */
}

/* =========================================================
   UNITY PROJECT CAROUSEL TRACK
   ========================================================= */
.unity-project-carousel {
    display: flex; /* Places project cards in one horizontal row */
    gap: 22px; /* Adds spacing between cards */
    overflow-x: auto; /* Enables horizontal scrolling */
    overflow-y: hidden; /* Prevents vertical scrolling */
    padding: 24px 32px 24px; /* Gives cards breathing room */
    scroll-behavior: smooth; /* Smooths carousel movement */
    scroll-snap-type: x proximity; /* Gently aligns nearby cards */
    scroll-padding-inline: 32px 48px; /* Keeps snapped cards away from viewport edges */
    scrollbar-width: none; /* Hides native scrollbar in Firefox */
    -ms-overflow-style: none; /* Hides native scrollbar in legacy Microsoft browsers */
}

/* =========================================================
   CAROUSEL DRAG STATE
   ========================================================= */
.unity-project-carousel.is-dragging {
    scroll-behavior: auto; /* Makes scrollbar dragging respond immediately */
    scroll-snap-type: none; /* Prevents cards from fighting the drag position */
}

/* =========================================================
   UNITY PROJECT CAROUSEL EDGE FALLOFF
   ========================================================= */
/* Soft fade on left edge */
.unity-project-carousel-shell::before {
    content: ""; /* Required for pseudo-element to render */
    position: absolute; /* Places fade above carousel content */
    top: 0;
    bottom: 0;
    left: 0;
    width: 48px; /* Controls fade width */
    z-index: 5; /* Keeps fade above cards */
    pointer-events: none; /* Allows clicks and scrolling through overlay */
    background: linear-gradient(
        to right,
        rgba(3, 9, 22, 1),
        rgba(3, 9, 22, 0)
    ); /* Fades from solid background to transparent */
}

/* Soft fade on right edge */
.unity-project-carousel-shell::after {
    content: ""; /* Required for pseudo-element to render */
    position: absolute; /* Places fade above carousel content */
    top: 0;
    bottom: 0;
    right: 0;
    width: 90px; /* Gives right edge a wider falloff */
    z-index: 5; /* Keeps fade above cards */
    pointer-events: none; /* Allows clicks and scrolling through overlay */
    background: linear-gradient(
        to left,
        rgba(3, 9, 22, 1),
        rgba(3, 9, 22, 0)
    ); /* Fades clipped cards softly into background */
}

/* =========================================================
   UNITY CAROUSEL CONTENT GROUP
   ========================================================= */
.unity-carousel-content {
    position: relative; /* Allows carousel content group to be visually adjusted */
    top: -18px; /* Moves cards, scrollbar, and controls upward together */
}

/* =========================================================
   UNITY PROJECT CARDS
   ========================================================= */
.unity-project-card {
    flex: 0 0 280px; /* Creates consistent carousel card width */
    height: 320px; /* Gives project cards consistent height */
    display: flex; /* Uses Flexbox inside card */
    flex-direction: column; /* Stacks image and title vertically */
    align-items: center; /* Centers card content */
    padding: 22px; /* Adds internal card spacing */
    background: rgb(8, 14, 28); /* Matches shared card background */
    border: 2px solid var(--accent-blue-light); /* Adds blue card border */
    border-radius: 12px; /* Rounds card corners */
    cursor: pointer; /* Shows card is interactive */
    scroll-snap-align: start; /* Aligns card when carousel snaps */
    scroll-margin-inline: 32px; /* Keeps snapped cards away from clipped carousel edges */
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease; /* Smoothly animates card interaction effects */
}

.unity-project-card-image {
    width: 100%; /* Uses available card width */
    height: 185px; /* Gives project previews consistent height */
    display: block; /* Removes inline-image baseline spacing */
    object-fit: contain; /* Displays complete image without cropping */
    margin-bottom: 14px; /* Adds spacing below image */
}

/* =========================================================
   UNITY PROJECT CARD TITLE
   ========================================================= */
.unity-project-card h3 {
    width: 100%; /* Allows title to use full available card width */
    min-height: 0; /* Removes reserved title height so type can sit closer */
    display: block; /* Lets title use its natural text height */
    margin: 0 0 6px; /* Adds a small consistent gap below title */
    color: var(--text); /* Uses shared site text color */
    text-align: center; /* Centers single-line and wrapped titles */
    font-size: 1.2rem; /* Keeps longer project titles manageable */
    line-height: 1.25; /* Controls spacing between wrapped title lines */
}

/* =========================================================
   UNITY PROJECT TYPE
   ========================================================= */
.unity-project-type {
    width: 100%; /* Keeps project type inside available card width */
    margin: 0; /* Removes extra space above project type */
    color: var(--accent-blue-light); /* Uses electric-blue accent */
    font-size: 0.85rem; /* Keeps project type secondary */
    font-weight: 600; /* Gives project type visual presence */
    line-height: 1.2; /* Keeps project type compact */
    text-align: center; /* Centers project type */
    overflow-wrap: anywhere; /* Prevents long project types from overflowing card */
}
.unity-project-card:hover,
.unity-project-card:focus-visible {
    border-color: var(--accent-strong); /* Brightens border during interaction */
    box-shadow:
        0 0 4px var(--accent-strong),
        0 0 12px var(--accent),
        0 0 24px var(--accent-blue-glow),
        0 0 38px var(--accent-violet-glow),
        0 0 48px var(--accent-magenta-glow); /* Adds shared card glow */
    transform: scale(1.035); /* Slightly enlarges card */
    outline: none; /* Uses custom focus treatment */
}

.unity-project-card:active {
    transform: scale(0.985); /* Slightly shrinks card while pressed */
}

/* =========================================================
   UNITY CAROUSEL CONTROLS
   ========================================================= */
.unity-carousel-controls {
    display: flex; /* Places previous and next buttons in one row */
    justify-content: center; /* Centers controls horizontally */
    align-items: center; /* Vertically aligns buttons */
    gap: 24px; /* Keeps space between previous and next buttons */
    margin-top: 14px; /* Pulls controls upward closer to scrollbar */
    margin-bottom: 0; /* Removes extra space below controls */
}

/* =========================================================
   UNITY CUSTOM CAROUSEL SCROLLBAR
   ========================================================= */
.unity-carousel-scrollbar {
    position: relative; /* Creates positioning reference for slider thumb */
    width: 100%; /* Uses full carousel width */
    height: 34px; /* Makes the complete scrollbar system thicker */
    margin-top: 10px; /* Adds spacing below carousel */
    padding: 5px; /* Creates breathing room around thicker thumb */
    background: var(--bg); /* Keeps scrollbar track dark */
    border: 2px solid var(--accent-blue-light); /* Matches card outline blue */
    border-radius: 17px; /* Rounds thicker scrollbar track */
    cursor: pointer; /* Shows track is interactive */
}

/* =========================================================
   UNITY CUSTOM CAROUSEL SCROLLBAR THUMB
   ========================================================= */
.unity-carousel-scrollbar-thumb {
    position: absolute; /* Allows JavaScript to move thumb horizontally */
    top: 2px; /* Centers thumb vertically inside thicker track */
    left: 3px; /* Starts thumb inside track padding */
    height: calc(100% - 4px); /* Fits thumb inside thicker scrollbar */
    min-width: 60px; /* Prevents thumb from becoming too small */
    background-color: var(--accent-blue-midnight); /* Uses dark blue slider fill */
    border: 2px solid var(--accent-blue-light); /* Matches card outline blue */
    border-radius: 14px; /* Rounds thicker slider thumb */
    cursor: grab; /* Shows thumb can be dragged */
    box-shadow: none; /* Keeps default state clean */
    transition:
        box-shadow 0.2s ease,
        border-color 0.2s ease; /* Smoothly animates active glow */
}

/* Active / dragged scrollbar thumb */
.unity-carousel-scrollbar-thumb:active {
    border-color: var(--accent-strong); /* Brightens outline while dragging */
    cursor: grabbing; /* Shows active dragging state */
    box-shadow:
        0 0 4px var(--accent-strong),
        0 0 12px var(--accent),
        0 0 24px var(--accent-blue-glow),
        0 0 38px var(--accent-violet-glow),
        0 0 48px var(--accent-magenta-glow); /* Matches shared card glow FX */
}

/* =========================================================
   UNITY CUSTOM CAROUSEL BUTTONS
   ========================================================= */
.unity-carousel-button {
    width: 42px; /* Sets button width */
    height: 42px; /* Sets button height */
    display: flex; /* Allows arrow centering */
    align-items: center; /* Centers arrow vertically */
    justify-content: center; /* Centers arrow horizontally */
    padding: 0; /* Removes default button padding */
    background: rgb(8, 14, 28); /* Matches card background */
    border: 2px solid var(--accent-blue-light); /* Adds blue border */
    border-radius: 10px; /* Rounds button corners */
    color: var(--text); /* Uses white arrow color */
    font-size: 1.25rem; /* Sets arrow size */
    cursor: pointer; /* Shows button is interactive */
    transition:
        transform 0.1s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease; /* Smoothly animates button interaction effects */
}

.unity-carousel-button:hover,
.unity-carousel-button:focus-visible {
    border-color: var(--accent-strong); /* Brightens border during interaction */
    box-shadow:
        0 0 4px var(--accent-strong),
        0 0 10px var(--accent),
        0 0 18px var(--accent-blue-glow); /* Adds compact shared glow */
    outline: none; /* Removes default focus outline */
}

.unity-carousel-button:active {
    transform: scale(0.98); /* Creates pressed-button feedback */
}

/* =========================================================
   UNITY PROJECT MODAL
   ========================================================= */
.project-modal {
    position: fixed; /* Anchors modal to viewport */
    inset: 0; /* Covers entire viewport */
    z-index: 1000; /* Places modal above page content */
    display: none; /* Hides modal until opened */
    align-items: center; /* Centers modal vertically */
    justify-content: center; /* Centers modal horizontally */
    padding: 20px; /* Adds breathing room around modal */
    background: rgba(0, 0, 0, 0.96); /* Darkens page behind modal */
}

.project-modal.is-open {
    display: flex; /* Displays modal when opened */
}

.project-modal-content {
    position: relative; /* Creates positioning reference for close button */
    width: min(1700px, 98vw); /* Allows large modal on desktop */
    max-height: 96vh; /* Keeps modal inside viewport */
    padding: 28px 36px 36px; /* Adds internal modal spacing */
    overflow-y: auto; /* Adds modal scrollbar if content is too tall */
    background: rgb(8, 14, 28); /* Matches project card background */
    border: 1.5px solid var(--accent); /* Adds cyan border */
    border-radius: 12px; /* Rounds modal corners */
    box-shadow:
        0 0 4px var(--accent-strong),
        0 0 12px var(--accent),
        0 0 24px var(--accent-blue-glow),
        0 0 38px var(--accent-violet-glow),
        0 0 48px var(--accent-magenta-glow); /* Adds shared modal glow */
}

.project-modal-content h2 {
    margin: 0 50px 18px; /* Leaves room for close button */
    color: var(--text); /* Uses shared site text color */
    text-align: center; /* Centers project title */
}

.project-modal-type {
    margin: -8px 0 18px; /* Pulls type closer to project title */
    color: var(--accent-blue-light); /* Uses blue category accent */
    text-align: center; /* Centers project type */
    font-size: 0.95rem; /* Keeps project type secondary */
    font-weight: 600; /* Gives label subtle emphasis */
}

/* =========================================================
   PROJECT MODAL VIDEO
   ========================================================= */
.project-modal-video-wrap {
    position: relative; /* Creates positioning reference for loader */
    width: 100%; /* Allows video area to use full modal width */
    min-width: 0; /* Prevents video from forcing modal wider */
    min-height: 220px; /* Gives loader visible area before video is ready */
}

.project-modal-video-wrap video {
    display: block; /* Removes inline-video spacing */
    width: 100%; /* Fills available modal width */
    height: auto; /* Preserves video aspect ratio */
    object-fit: contain; /* Displays full video without cropping */
    background: #000000; /* Adds black video background */
    border-radius: 8px; /* Rounds video corners */
}

.project-modal-video-wrap.is-loading {
    min-height: 420px; /* Gives custom loader room while video is hidden */
}

.project-modal-video-wrap.is-loading video {
    display: none; /* Completely hides native browser video spinner while loading */
}

/* =========================================================
   PROJECT VIDEO LOADING RING
   ========================================================= */
.project-video-loader {
    position: absolute; /* Places loader over video area */
    inset: 0; /* Fills complete video wrapper */
    z-index: 10; /* Keeps custom loader above video */
    display: flex; /* Allows loader centering */
    align-items: center; /* Centers loader vertically */
    justify-content: center; /* Centers loader horizontally */
    pointer-events: none; /* Prevents loader from intercepting clicks */
}

.loading-ring {
    width: 80px; /* Sets loader display width */
    height: 80px; /* Keeps loader square */
    display: block; /* Removes inline-image baseline spacing */
    object-fit: contain; /* Preserves transparent PNG */
    animation: loading-ring-spin 0.9s linear infinite; /* Continuously rotates loading ring */
    pointer-events: none; /* Prevents loader from intercepting clicks */
}

.project-video-loader.is-hidden {
    display: none; /* Hides custom loader when media is ready */
}

@keyframes loading-ring-spin {
    from {
        transform: rotate(0deg); /* Begins loader rotation */
    }

    to {
        transform: rotate(360deg); /* Completes one full rotation */
    }
}

/* =========================================================
   PROJECT MODAL DETAILS
   ========================================================= */
.project-modal-details-grid {
    display: grid; /* Creates description and gallery columns */
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* Divides lower modal into equal halves */
    gap: 12px; /* Adds space between description and gallery */
    align-items: start; /* Aligns both columns to top */
    margin-top: 24px; /* Adds space below video */
}
Í
.project-modal-details-grid.is-description-only {
    grid-template-columns: 1fr; /* Uses full modal width when no gallery exists */
}

.project-modal-description-box {
    min-width: 0; /* Allows description column to shrink correctly */
}

.project-modal-description-box h3 {
    margin: 0 0 12px; /* Adds spacing below heading */
}

.project-modal-description-box p {
    margin-top: 0; /* Removes default top paragraph margin */
}

.project-modal-description-box ul {
    margin: 8px 0 16px 22px; /* Adds spacing around bullet lists */
}

/* =========================================================
   PROJECT IMAGE CAROUSEL
   ========================================================= */
.project-gallery {
    min-width: 0; /* Allows gallery to shrink inside grid */
}

.project-gallery-frame {
    position: relative; /* Creates positioning reference for gallery content */
    width: 100%; /* Uses full gallery-column width */
    overflow: hidden; /* Keeps content inside rounded frame */
    background: rgb(8, 14, 28); /* Matches modal background */
    border: 1.5px solid var(--accent-blue-light); /* Adds blue frame border */
    border-radius: 8px; /* Rounds gallery corners */
}

.project-gallery-scroll {
    width: 100%; /* Uses full gallery width */
    height: 420px; /* Sets visible image window */
    overflow-x: hidden; /* Prevents horizontal scrollbar */
    overflow-y: auto; /* Adds vertical scrollbar for tall images */
}

.project-gallery-scroll img {
    width: 100%; /* Fits image to gallery width */
    height: auto; /* Preserves image aspect ratio */
    display: block; /* Removes inline-image spacing */
    object-fit: contain; /* Prevents image distortion */
    padding: 8px; /* Adds breathing room around image */
}

/* =========================================================
   PROJECT GALLERY CONTROLS
   ========================================================= */
.project-gallery-controls {
    display: flex; /* Places previous, counter, and next in one row */
    align-items: center; /* Vertically aligns controls */
    justify-content: center; /* Centers controls beneath image */
    gap: 32px; /* Adds spacing between controls */
    margin-top: 12px; /* Adds space below image frame */
}

.project-gallery-prev,
.project-gallery-next {
    width: 42px; /* Sets button width */
    height: 42px; /* Sets button height */
    display: flex; /* Allows arrow centering */
    align-items: center; /* Centers arrow vertically */
    justify-content: center; /* Centers arrow horizontally */
    padding: 0; /* Removes default button padding */
    background: rgb(8, 14, 28); /* Matches cards/modal */
    border: 1px solid var(--accent-blue-light); /* Matches card outline */
    border-radius: 8px; /* Rounds button corners */
    color: var(--text); /* Uses shared site text color */
    font-size: 1.4rem; /* Sets gallery arrow size */
    cursor: pointer; /* ShÍows arrows are interactive */
    transition:
        transform 0.1s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease; /* Smoothly animates gallery controls */
}

.project-gallery-prev:hover,
.project-gallery-next:hover,
.project-gallery-prev:focus-visible,
.project-gallery-next:focus-visible {
    border-color: var(--accent-strong); /* Brightens border during interaction */
    box-shadow:
        0 0 4px var(--accent-strong),
        0 0 10px var(--accent),
        0 0 18px var(--accent-blue-glow); /* Adds compact shared glow */
    outline: none; /* Removes default focus outline */
}

.project-gallery-prev:active,
.project-gallery-next:active {
    transform: scale(0.94); /* Creates pressed-button feedback */
}

.project-gallery-count {
    min-width: 60px; /* Keeps counter width stable */
    margin: 0; /* Removes default paragraph margin */
    color: var(--subtle); /* Uses secondary text color */
    text-align: center; /* Centers image counter */
    font-size: 0.9rem; /* Keeps counter subtle */
}

/* =========================================================
   PROJECT MODAL CLOSE BUTTON
   ========================================================= */
.project-modal-close {
    position: absolute; /* Positions close button inside modal */
    top: 14px; /* Adds breathing room from top edge */
    right: 18px; /* Adds breathing room from right edge */
    width: 44px; /* Creates consistent circular button size */
    height: 44px; /* Matches width for perfect circle */
    display: flex; /* Allows X to be centered */
    align-items: center; /* Centers X vertically */
    justify-content: center; /* Centers X horizontally */
    padding: 0; /* Removes browser default button padding */
    background: rgb(8, 14, 28); /* Matches card/modal background */
    border: 2px solid var(--accent-blue-light); /* Matches card outline */
    border-radius: 50%; /* Creates circular ring */
    color: var(--text); /* Keeps X white */
    font-size: 2rem; /* Makes X easy to see */
    line-height: 1; /* Keeps X vertically balanced */
    cursor: pointer; /* Shows button is interactive */
    transition:
        transform 0.15s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease; /* Smoothly animates close-button interaction */
}

.project-modal-close:hover,
.project-modal-close:focus-visible {
    color: var(--accent-strong); /* Brightens X */
    border-color: var(--accent-strong); /* Brightens circular outline */
    box-shadow:
        0 0 4px var(--accent-strong),
        0 0 12px var(--accent),
        0 0 24px var(--accent-blue-glow),
        0 0 38px var(--accent-violet-glow),
        0 0 48px var(--accent-magenta-glow); /* Matches shared card glow */
    transform: scale(1.08); /* Slightly enlarges close button */
    outline: none; /* Removes default focus outline */
}

.project-modal-close:active {
    transform: scale(0.92); /* Gives button a pressed feeling */
    box-shadow:
        0 0 3px var(--accent-strong),
        0 0 8px var(--accent),
        0 0 16px var(--accent-blue-glow); /* Uses compact active glow */
}
/* =========================================================
   PORTFOLIO MIGRATION NOTICE
   TEMPORARY - REMOVE WHEN MIGRATION IS COMPLETE
   ========================================================= */
.migration-box {
    max-width: 850px; /* Limits notice width so text stays easy to read */
    margin: 0 auto; /* Centers notice horizontally */
    padding: 24px; /* Adds space between content and box edges */
    background: rgba(8, 12, 22, 0.72); /* Adds dark semi-transparent background */
    border-left: 4px solid var(--accent-blue-light); /* Adds blue accent bar on left side */
    border-radius: 8px; /* Rounds box corners */
    line-height: 1.6; /* Adds comfortable spacing between text lines */
}

.migration-box h2 {
    margin-top: 0; /* Removes default top margin from heading */
}

/* =========================================================
   PORTFOLIO MIGRATION NOTICE
   TEMPORARY - REMOVE WHEN MIGRATION IS COMPLETE
   ========================================================= */
.migration-box {
    max-width: 850px; /* Limits notice width so text stays easy to read */
    margin: 0 auto; /* Centers notice horizontally */
    padding: 24px; /* Adds space between content and box edges */
    background: rgba(8, 12, 22, 0.72); /* Adds dark semi-transparent background */
    border-left: 4px solid var(--accent-blue-light); /* Adds blue accent bar on left side */
    border-radius: 8px; /* Rounds box corners */
    line-height: 1.6; /* Adds comfortable spacing between text lines */
}

.migration-box h2 {
    margin-top: 0; /* Removes default top margin from heading */
}

/* =========================================================
   UNITY PROJECT RESPONSIVE
   ========================================================= */
/* Tablets / smaller screens */
@media (max-width: 1000px) {
    .project-modal-details-grid {
        grid-template-columns: 1fr; /* Stacks description and gallery vertically */
    }

    .project-gallery-scroll {
        height: 340px; /* Reduces gallery height */
    }
}

/* =========================================================
   UNITY PROJECT CARDS / PHONES
   ========================================================= */
@media (max-width: 700px) {
    .unity-project-card {
        flex-basis: 230px; /* Keeps mobile carousel cards narrower */
        height: auto; /* Allows card to grow when title wraps */
        min-height: 280px; /* Preserves a consistent minimum card size */
        padding: 18px; /* Slightly reduces mobile internal spacing */
    }

    .unity-project-card-image {
        height: 185px; /* Reduces project preview area on mobile */
        margin-bottom: 12px; /* Keeps title reasonably close to image */
    }

    .unity-project-card h3 {
        font-size: 1.05rem; /* Reduces long project titles on mobile */
        line-height: 1.2; /* Keeps wrapped title lines compact */
    }

    .unity-project-type {
        margin-top: 2px; /* Keeps type close to project title */
        font-size: 0.8rem; /* Keeps project type safely inside mobile card */
    }
}