:root {
    --accent-purple: #c084fc;
}

@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../Project Files/Fonts/Plus_Jakarta_Sans/static/PlusJakartaSans-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../Project Files/Fonts/Plus_Jakarta_Sans/static/PlusJakartaSans-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../Project Files/Fonts/Plus_Jakarta_Sans/static/PlusJakartaSans-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

body {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #2A2A2A;
}

/* Blog page: offset content to match scrollbar spacing on other pages */
.blog-page {
    padding-right: 12px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    color: var(--accent-purple);
}

h3, h4, h5, h6 {
    font-weight: 600;
}

code {
    font-family: 'JetBrains Mono', monospace;
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.btn-pastel-purple {
    background-color: var(--accent-purple);
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-pastel-purple:hover {
    background-color: rgba(192, 132, 252, 0.85);
}

.nav-tab {
    background-color: #ddd6fe;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.nav-link {
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.floating-nav .nav-link {
    transform: translateY(1px);
}

.nav-link:hover, .nav-link.active {
    background-color: #454545;
}

.btn-dark-purple {
    background-color: #7c46af;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.floating-nav {
    background-color: #323232;
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(100%, calc(100% - 2rem));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: 0.01em;
}

.nav-brand {
    white-space: nowrap;
}

.floating-nav.shrunk {
    transform: scale(0.95);
}

.nav-desktop {
    display: flex;
}

.nav-mobile {
    display: none;
}

.mobile-primary-links {
    min-height: 2.5rem;
}

.mobile-more-trigger {
    display: none;
}

.mobile-more-link {
    display: none;
}

@media (max-width: 920px) {
    .nav-desktop {
        display: none;
    }

    .nav-mobile {
        display: flex;
        flex-wrap: nowrap;
    }
}

.icon-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.icon-btn img {
    width: 24px;
    height: 24px;
}

.project-pane, .project-card, .hero-container, .blog-card {
    background-color: #1F1F1F; /* Uniform dark charcoal for all containers */
    border-radius: 0.5rem; /* Consistent radius */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Subtle elevation */
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-pane:hover, .project-card:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.project-pane:hover h3,
.project-pane:hover p,
.project-card:hover h3,
.project-card:hover p {
    opacity: 0.95;
}

.project-pane, .project-card {
    cursor: pointer;
}

.project-pane:focus-visible,
.project-card:focus-visible {
    outline: 2px solid rgba(192, 132, 252, 0.6);
    outline-offset: 2px;
}

.hero-image {
    margin-top: -60px;
}

.wave-emoji {
    display: inline-block;
    transform-origin: 70% 70%;
    animation: wave-emoji 1.6s ease-in-out infinite;
}

@keyframes wave-emoji {
    0% {
        transform: rotate(0deg);
    }
    20% {
        transform: rotate(-25deg);
    }
    40% {
        transform: rotate(25deg);
    }
    60% {
        transform: rotate(-20deg);
    }
    80% {
        transform: rotate(20deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.blog-card {
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.blog-card:hover h3,
.blog-card:hover p {
    opacity: 0.95;
}

/* Subtle neighboring card effect */
.grid:hover .project-pane:not(:hover),
.undergrad-work-grid:hover .project-pane:not(:hover) {
    transform: scale(0.98);
    opacity: 0.9;
}

/* Carousel */
.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.carousel-track-outer {
    flex: 1;
    min-width: 0;
    /* Gentle edge fade — transitions over 12% of the track width on each side */
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* vertical padding gives shadow + hover-lift room;
       horizontal padding allows first/last card to snap to center */
    padding: 4px 0 6px;
    padding-inline: calc(50% - 140px);
    cursor: grab;
    user-select: none;
}

.carousel-track.is-dragging {
    cursor: grabbing;
}

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

.carousel-track .project-pane {
    min-width: 280px;
    flex: 0 0 280px;
    transition: opacity 0.3s ease, transform 0.3s ease,
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Side cards are dimmed — softer than before so it doesn't feel too harsh */
.carousel-track .project-pane.carousel-dimmed {
    opacity: 0.62;
    transform: scale(0.97);
}

.carousel-track .project-pane.carousel-dimmed:hover {
    opacity: 0.78;
    transform: translateY(-2px) scale(0.99);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Center card — full brightness, normal hover */
.carousel-track .project-pane.carousel-focused {
    opacity: 1;
}

.carousel-track .project-pane.carousel-focused:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Arrow buttons — grey circle, bigger chevron; hover fills grey + purple icon (mirrors nav-link) */
.carousel-arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: rgba(210, 210, 210, 0.8);  /* light-grey chevron at rest */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.15s ease, color 0.15s ease, opacity 0.2s ease;
}

.carousel-arrow:hover {
    background-color: #454545;  /* same grey fill as nav-link hover */
    color: #c084fc;              /* purple chevron on hover */
}

.carousel-arrow:active {
    background-color: #383838;
    transform: scale(0.92);
}

/* Card counter — bottom-right of row */
.carousel-counter {
    text-align: right;
    font-size: 0.72rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
    margin-bottom: -14px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
    user-select: none;
    transition: color 0.2s ease;
}

.carousel-counter.counter-active {
    color: rgba(192, 132, 252, 0.7);
}

.footer-bg {
    background-color: #2A2A2A;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.footer-divider {
    height: 1px;
    background-color: #6b6b6b;
    border: none;
    margin: 2rem 0 2.5rem 0;
}

.footer-inner {
    max-width: 56rem; /* 896px to match max-w-4xl */
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 0.8fr;
    column-gap: 24px;
    align-items: start;
}

.footer-inner .footer-section:first-child {
    justify-self: start;
    text-align: left;
}

.footer-inner > *:nth-child(2) {
    justify-self: end;
    text-align: left;
    transform: translateX(40px);
    margin-top: 7px;
}

.footer-inner .footer-section:nth-child(3) {
    justify-self: end;
    text-align: left;
    margin-top: 7px;
}

.footer-bg .footer-section h4 {
    color: #d4d4d4;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.footer-bg .footer-section a {
    color: #d4d4d4;
    font-weight: 400;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-bg .footer-section a:hover {
    color: var(--accent-purple);
}

.footer-bg .identity-section h3 {
    color: var(--accent-purple);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-bg .identity-section p {
    color: #d4d4d4;
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-description {
    text-wrap: balance;
    hyphens: auto;
    overflow-wrap: normal;
    word-break: normal;
}

.footer-description span {
    display: block;
}

.footer-bg .social-icons {
    display: flex;
    gap: 1rem;
}

.footer-bg .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin-bottom: 0;
}

.footer-bg .social-icons img {
    width: 22px;
    height: 22px;
}

.footer-bg .social-icons a:hover {
    color: var(--accent-purple);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Content text color overrides */
/* Default utility gray text should render white sitewide */
.text-gray-200,
.text-gray-300,
.text-gray-400,
.text-gray-500 {
    color: #ffffff;
}

/* Secondary accent text (non-vital) */
.text-accent-muted {
    color: #d4d4d4;
}

/* Footer responsive grid adjustments */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        row-gap: 1.5rem;
    }

    .identity-section {
        grid-column: 1 / -1;
    }

    .footer-inner > *:nth-child(2),
    .footer-inner .footer-section:nth-child(3) {
        justify-self: start;
        transform: none;
        margin-top: 0;
    }

}

/* Mobile footer layout overrides (homepage) */
@media (max-width: 768px) {
    .footer-bg {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .footer-bg > .max-w-4xl {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .footer-inner {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding-left: 1.4375rem;
        padding-right: 2.1875rem;
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        column-gap: 0.75rem;
        row-gap: 1.5rem;
        align-items: start;
    }

    .footer-inner .footer-section {
        order: initial;
    }

    .footer-inner > *:nth-child(2),
    .footer-inner .footer-section:nth-child(3) {
        grid-column: 2;
        justify-self: end;
        text-align: right;
        transform: none;
        margin-top: 5px;
    }

    .identity-section {
        display: block;
        grid-column: 1;
    }

    .footer-bg .identity-section p {
        max-width: 28rem;
        width: 100%;
        word-break: normal;
        overflow-wrap: break-word;
        hyphens: none;
    }

    .footer-description {
        text-wrap: normal;
    }

    .footer-description span {
        display: inline;
    }

    .footer-bg .social-icons {
        justify-content: flex-start;
    }
}

.accent-purple {
    color: var(--accent-purple);
}

/* Projects page section headers - neutral color */
#projects-page h2 {
    color: #ffffff;
}

/* Graduate modal container */
.graduate-modal {
    position: fixed;
    z-index: 999;
    pointer-events: auto;
}

/* Graduate focused overlay canvas */
.graduate-focus-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.graduate-focus-overlay.active {
    opacity: 1;
}

.graduate-focus-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 80vh;
    margin: auto;
    background: #141414;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    padding-left: 0;
    padding-right: 24px;
}

.graduate-scroll-inner {
    flex: 1;
    min-height: 0;
    padding: 0 2.5rem 2.5rem 4rem;
    margin-top: 0;
    direction: ltr;
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0px,
        black 24px,
        black 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0px,
        black 24px,
        black 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.graduate-scroll-inner .simplebar-track.simplebar-vertical {
    background: transparent;
    left: 0 !important;
    right: auto !important;
    margin-top: 24px;
    margin-bottom: 24px;
}

.graduate-scroll-inner .simplebar-scrollbar:before {
    background: #767676;
}

.graduate-scroll-inner {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.graduate-scroll-inner::-webkit-scrollbar {
    display: none;
}

.graduate-focus-header {
    position: relative;
    margin-bottom: 20px;
    margin-top: 0;
    border-bottom: 1px solid rgba(192, 132, 252, 0.2);
    padding-bottom: 20px;
    padding-top: 70px;
    direction: ltr;
}

.graduate-focus-article {
    color: #e5e5e5;
}

.graduate-close-btn {
    position: absolute;
    top: 12.5px;
    right: 12.5px;
    background: none;
    border: none;
    color: rgba(229, 229, 229, 0.6);
    font-size: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, opacity 0.15s ease;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    z-index: 50;
    border-radius: 0 24px 0 0;
}

.graduate-close-btn:hover {
    color: #c084fc;
    text-shadow: none;
}

.graduate-close-btn:focus {
    outline: 2px solid rgba(192, 132, 252, 0.5);
    outline-offset: 2px;
}

.graduate-close-btn:active {
    transform: none;
}

.graduate-card {
    cursor: pointer;
}

.graduate-card.graduate-open {
    background-color: #2A2A2A;
}

/* PDF popup overlay */
.pdf-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pdf-popup-overlay.active {
    opacity: 1;
}

.pdf-popup-content {
    position: relative;
    width: 90vw;
    max-width: 860px;
    height: 85vh;
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

.pdf-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(229, 229, 229, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.pdf-popup-close:hover {
    background: rgba(60, 60, 60, 0.95);
    color: #c084fc;
}

.pdf-popup-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Proposal button */
.proposal-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid rgba(192, 132, 252, 0.35);
    background: rgba(192, 132, 252, 0.07);
    color: #c084fc;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.proposal-btn:hover {
    background: rgba(192, 132, 252, 0.15);
    border-color: rgba(192, 132, 252, 0.6);
}

/* Phase tracker */
.phase-tracker {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.phase-item {
    display: grid;
    grid-template-columns: 28px 1px 1fr;
    gap: 0 14px;
    position: relative;
}

/* Last item has no connector */
.phase-item:last-child .phase-connector {
    display: none;
}

.phase-node {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    margin-top: 2px;
}

.phase-connector {
    width: 2px;
    margin: 0 auto;
    grid-column: 2;
    align-self: stretch;
}

.phase-body {
    padding-bottom: 1.75rem;
    grid-column: 3;
    grid-row: 1;
}

/* Complete */
.phase-complete .phase-node {
    background: rgba(74, 222, 128, 0.15);
    border: 2px solid #4ade80;
    color: #4ade80;
}

.phase-complete .phase-connector {
    background: rgba(74, 222, 128, 0.3);
}

/* Active */
.phase-active .phase-node {
    background: rgba(192, 132, 252, 0.12);
    border: 2px solid #c084fc;
}

.phase-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c084fc;
    animation: phase-pulse 1.8s ease-in-out infinite;
}

@keyframes phase-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.45; transform: scale(0.65); }
}

.phase-active .phase-connector {
    background: linear-gradient(to bottom, rgba(192, 132, 252, 0.3), rgba(255,255,255,0.06));
}

/* Upcoming */
.phase-upcoming .phase-node {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.phase-upcoming .phase-connector {
    background: rgba(255, 255, 255, 0.08);
}

/* Labels */
.phase-label-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    margin-top: 4px;
}

.phase-number {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.phase-badge {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
}

.phase-badge-done {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.phase-badge-active {
    background: rgba(192, 132, 252, 0.12);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.35);
}

.phase-badge-upcoming {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.phase-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e5e5e5;
    margin-bottom: 4px;
}

.phase-upcoming .phase-title {
    color: rgba(255, 255, 255, 0.4);
}

.phase-desc {
    font-size: 0.85rem;
    line-height: 1.55;
    color: rgba(209, 213, 219, 0.7);
}

.phase-upcoming .phase-desc {
    color: rgba(209, 213, 219, 0.35);
}

/* Modal backdrop */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 998;
}

/* Capstone modal container */
.capstone-modal {
    position: fixed;
    z-index: 999;
    pointer-events: auto;
}

/* Capstone focused overlay canvas */
.capstone-focus-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.capstone-focus-overlay.active {
    opacity: 1;
}

.capstone-focus-content {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 85vh;
    margin: auto;
    background: #141414;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    padding-left: 0;
    padding-right: 24px;
}

.capstone-scroll-inner {
    flex: 1;
    min-height: 0;
    padding: 0 2.5rem 2.5rem 4rem;
    margin-top: 0;
    direction: ltr;
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0px,
        black 24px,
        black 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0px,
        black 24px,
        black 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.capstone-scroll-inner .simplebar-track.simplebar-vertical {
    background: transparent;
    left: 0 !important;
    right: auto !important;
    margin-top: 24px;
    margin-bottom: 24px;
}

.capstone-scroll-inner .simplebar-scrollbar:before {
    background: #767676;
}

.capstone-scroll-inner {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.capstone-scroll-inner::-webkit-scrollbar {
    display: none;
}

.capstone-focus-overlay.active .capstone-focus-content {
    /* transform: scale(1); */
}

.capstone-focus-header {
    position: relative;
    margin-bottom: 20px;
    margin-top: 0;
    border-bottom: 1px solid rgba(192, 132, 252, 0.2);
    padding-bottom: 20px;
    padding-top: 70px;
    direction: ltr;
}

.capstone-focus-header + * {
    border-top: none !important;
    margin-top: 0;
}

.capstone-focus-header + *::before {
    content: none !important;
    display: none !important;
}

.capstone-focus-header + hr {
    display: none !important;
}

.capstone-focus-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
    border-top: none;
    margin-top: 0;
    direction: ltr;
}

.capstone-focus-article {
    color: #e5e5e5;
    border-top: none;
    margin-top: 0;
}

.capstone-focus-media {
    position: sticky;
    top: 2rem;
}

.capstone-media-grid {
    display: grid;
    gap: 1rem;
}

.capstone-media-item img {
    transition: transform 0.2s ease;
}

.capstone-media-item img:hover {
    transform: scale(1.02);
}

.capstone-close-btn {
    position: absolute;
    top: 12.5px;
    right: 12.5px;
    background: none;
    border: none;
    color: rgba(229, 229, 229, 0.6);
    font-size: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, opacity 0.15s ease;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    z-index: 50;
    border-radius: 0 24px 0 0;
}

.capstone-close-btn:hover {
    color: #c084fc;
    text-shadow: none;
}

.capstone-close-btn:focus {
    outline: 2px solid rgba(192, 132, 252, 0.5);
    outline-offset: 2px;
}

.capstone-close-btn:active {
    transform: none;
}

/* Capstone tile background when modal is open */
.capstone-card.capstone-open {
    background-color: #2A2A2A;
}

/* Ensure capstone card has same hover as others */
.capstone-card:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.capstone-card:hover h3,
.capstone-card:hover p {
    opacity: 0.95;
}

/* Blog modal container */
.blog-modal {
    position: fixed;
    z-index: 999;
    pointer-events: auto;
}

/* Blog focused overlay canvas */
.blog-focus-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-focus-overlay.active {
    opacity: 1;
}

.blog-focus-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 70vh;
    margin: auto;
    background: #141414;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    padding-left: 0;
    padding-right: 24px;
}

.blog-scroll-inner {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0 2.5rem 2.5rem 4rem;
    margin-top: 0;
    direction: ltr;
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0px,
        black 24px,
        black 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0px,
        black 24px,
        black 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.blog-scroll-inner .simplebar-track.simplebar-vertical {
    background: transparent;
    left: 0 !important;
    right: auto !important;
    margin-top: 24px;
    margin-bottom: 24px;
}

.blog-scroll-inner .simplebar-track.simplebar-horizontal {
    display: none;
}

.blog-scroll-inner .simplebar-scrollbar:before {
    background: #767676;
}

.blog-scroll-inner {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.blog-scroll-inner::-webkit-scrollbar {
    display: none;
}

.blog-focus-overlay.active .blog-focus-content {
    /* transform: scale(1); */
}

.blog-focus-header {
    position: relative;
    margin-bottom: 20px;
    margin-top: 0;
    border-bottom: 1px solid rgba(192, 132, 252, 0.2);
    padding-bottom: 20px;
    padding-top: 70px;
    direction: ltr;
}

.blog-focus-header + * {
    border-top: none !important;
    margin-top: 0;
}

.blog-focus-header + *::before {
    content: none !important;
    display: none !important;
}

.blog-focus-header + hr {
    display: none !important;
}

.blog-focus-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-top: none;
    margin-top: 0;
    direction: ltr;
}

.blog-focus-article {
    color: #e5e5e5;
    border-top: none;
    margin-top: 0;
}

.blog-course-heading {
    display: inline-block;
    color: #f5f5f5;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.blog-close-btn {
    position: absolute;
    top: 12.5px;
    right: 12.5px;
    background: none;
    border: none;
    color: rgba(229, 229, 229, 0.6);
    font-size: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, opacity 0.15s ease;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    z-index: 50;
    border-radius: 0 24px 0 0;
}

.blog-close-btn:hover {
    color: #c084fc;
    text-shadow: none;
}

.blog-close-btn:focus {
    outline: 2px solid rgba(192, 132, 252, 0.5);
    outline-offset: 2px;
}

.blog-close-btn:active {
    transform: none;
}

/* Blog tile background when modal is open */
.blog-card.blog-open {
    background-color: #2A2A2A;
}

/* Responsive adjustments for blog modal */
@media (max-width: 768px) {
    .blog-focus-content {
        margin: 1rem;
        padding: 1.5rem;
        max-height: 90vh;
    }
}



/* Image lightbox overlay */
.image-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-lightbox-overlay.active {
    opacity: 1;
}

.image-lightbox-content {
    position: relative;
    background-color: #1F1F1F;
    border-radius: 0.5rem;
    padding: 4.5rem 1rem 2rem 1rem;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.image-lightbox-caption {
    color: #FFFFFF;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 1rem;
    max-width: 100%;
}

.image-lightbox-content img {
    max-width: 100%;
    max-height: calc(90vh - 7.5rem);
    object-fit: contain;
    border-radius: 0.25rem;
}

.image-lightbox-close-btn {
    position: absolute;
    top: 12.5px;
    right: 12.5px;
    background: none;
    border: none;
    color: rgba(229, 229, 229, 0.6);
    font-size: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, opacity 0.15s ease;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    z-index: 1101;
}

.image-lightbox-close-btn:hover {
    color: #c084fc;
    text-shadow: none;
}

.image-lightbox-close-btn:focus {
    outline: 2px solid rgba(192, 132, 252, 0.5);
    outline-offset: 2px;
}

.image-lightbox-close-btn:active {
    transform: none;
}

/* Inactive lightbox should not capture events */
.image-lightbox-overlay:not(.active) {
    pointer-events: none;
}

/* Undergrad Work custom grid for title spacing */
.undergrad-work-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr 0.9fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .undergrad-work-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Persona modal container */
.persona-modal {
    position: fixed;
    z-index: 999;
    pointer-events: auto;
}

/* Persona focused overlay canvas */
.persona-focus-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.persona-focus-overlay.active {
    opacity: 1;
}

.persona-focus-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    max-height: 85vh;
    margin: auto;
    background: #141414;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    padding-left: 0;
    padding-right: 24px;
}

.persona-scroll-inner {
    flex: 1;
    min-height: 0;
    padding: 0 2.5rem 2.5rem 4rem;
    margin-top: 0;
    direction: ltr;
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0px,
        black 24px,
        black 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0px,
        black 24px,
        black 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.persona-scroll-inner .simplebar-track.simplebar-vertical {
    background: transparent;
    left: 0 !important;
    right: auto !important;
    margin-top: 24px;

.capstone-scroll-inner .simplebar-track.simplebar-horizontal {
    display: none;
}
    margin-bottom: 24px;
}

.persona-scroll-inner .simplebar-scrollbar:before {
    background: #767676;
}

.persona-scroll-inner {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.persona-scroll-inner::-webkit-scrollbar {
    display: none;
}

.persona-focus-overlay.active .persona-focus-content {
    /* transform: scale(1); */
}

.persona-focus-header {
    position: relative;
    margin-bottom: 20px;
    margin-top: 0;
    border-bottom: 1px solid rgba(192, 132, 252, 0.2);
    padding-bottom: 20px;
    padding-top: 70px;
    direction: ltr;
}

.persona-close-btn {
    position: absolute;
    top: 12.5px;
    right: 12.5px;
    background: none;
    border: none;
    color: rgba(229, 229, 229, 0.6);
    font-size: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, opacity 0.15s ease;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    z-index: 50;
    border-radius: 0 24px 0 0;
}

.persona-close-btn:hover {
    color: #c084fc;
    text-shadow: none;
}

.persona-close-btn:focus {
    outline: 2px solid rgba(192, 132, 252, 0.5);
    outline-offset: 2px;
}

.persona-close-btn:active {
    transform: none;
}

/* Persona tile background when modal is open */
.persona-card.persona-open {
    background-color: #2A2A2A;
}

/* Persona inline figure styling */
.persona-inline-figure {
    float: right;
    max-width: 320px;
    width: 30%;
    margin-left: 24px;
    margin-bottom: 16px;
    margin-top: 8px;
    clear: right;
}

.persona-inline-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.persona-inline-figure img:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* Mobile: remove float and make full width */
@media (max-width: 768px) {
    .persona-inline-figure {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-bottom: 16px;
        margin-top: 8px;
    }
}

/* Case Competition modal container */
.case-comp-modal {
    position: fixed;
    z-index: 999;
    pointer-events: auto;
}

/* Case Competition focused overlay canvas */
.case-comp-focus-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-comp-focus-overlay.active {
    opacity: 1;
}

.case-comp-focus-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    max-height: 85vh;
    margin: auto;
    background: #141414;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    padding-left: 0;
    padding-right: 24px;
}

.case-comp-scroll-inner {
    flex: 1;
    min-height: 0;
    padding: 0 2.5rem 2.5rem 4rem;
    margin-top: 0;
    direction: ltr;
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0px,
        black 24px,
        black 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0px,
        black 24px,
        black 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.case-comp-scroll-inner .simplebar-track.simplebar-vertical {
    background: transparent;
    left: 0 !important;
    right: auto !important;
    margin-top: 24px;

.persona-scroll-inner .simplebar-track.simplebar-horizontal {
    display: none;
}
    margin-bottom: 24px;
}

.case-comp-scroll-inner .simplebar-scrollbar:before {
    background: #767676;
}

.case-comp-scroll-inner {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.case-comp-scroll-inner::-webkit-scrollbar {
    display: none;
}

.case-comp-focus-overlay.active .case-comp-focus-content {
    /* transform: scale(1); */
}

.case-comp-focus-header {
    position: relative;
    margin-bottom: 20px;
    margin-top: 0;
    border-bottom: 1px solid rgba(192, 132, 252, 0.2);
    padding-bottom: 20px;
    padding-top: 70px;
    direction: ltr;
}

.case-comp-close-btn {
    position: absolute;
    top: 12.5px;
    right: 12.5px;
    background: none;
    border: none;
    color: rgba(229, 229, 229, 0.6);
    font-size: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, opacity 0.15s ease;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    z-index: 50;
    border-radius: 0 24px 0 0;
}

.case-comp-close-btn:hover {
    color: #c084fc;
    text-shadow: none;
}

.case-comp-close-btn:focus {
    outline: 2px solid rgba(192, 132, 252, 0.5);
    outline-offset: 2px;
}

.case-comp-close-btn:active {
    transform: none;
}

/* Case Competition tile background when modal is open */
.case-comp-card.case-comp-open {
    background-color: #2A2A2A;
}

/* Case study modal container */
.case-study-modal {
    position: fixed;
    z-index: 999;
    pointer-events: auto;
}

.case-study-focus-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-study-focus-overlay.active {
    opacity: 1;
}

.case-study-focus-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    max-height: 85vh;
    margin: auto;
    background: #141414;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    padding-left: 0;
    padding-right: 24px;
}

.case-study-scroll-inner {
    flex: 1;
    min-height: 0;
    padding: 0 2.5rem 2.5rem 4rem;
    margin-top: 0;
    direction: ltr;
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0px,
        black 24px,
        black 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0px,
        black 24px,
        black 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.case-study-scroll-inner .simplebar-track.simplebar-vertical {
    background: transparent;
    left: 0 !important;
    right: auto !important;
    margin-top: 24px;
    margin-bottom: 24px;
}

.case-study-scroll-inner .simplebar-scrollbar:before {
    background: #767676;
}

.case-study-scroll-inner {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.case-study-scroll-inner::-webkit-scrollbar {
    display: none;
}

.case-study-focus-header {
    position: relative;
    margin-bottom: 20px;
    margin-top: 0;
    border-bottom: 1px solid rgba(192, 132, 252, 0.2);
    padding-bottom: 20px;
    padding-top: 70px;
    direction: ltr;
    text-align: center;
}

.case-study-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    background: rgba(192, 132, 252, 0.15);
    color: #c084fc;
    margin-bottom: 1rem;
}

.case-study-focus-article {
    color: #e5e5e5;
}

.reflection-block {
    border-left: 4px solid #a855f7;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.case-study-section {
    margin-bottom: 2rem;
}

.case-study-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.case-study-artifacts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.case-study-artifact {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem;
}

.case-study-artifact-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-study-artifact-image:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.case-study-artifact-file {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: rgba(124, 70, 175, 0.12);
    border-radius: 12px;
    border: 1px solid rgba(192, 132, 252, 0.2);
    width: 100%;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.case-study-artifact-file:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    border-color: rgba(192, 132, 252, 0.45);
}

.case-study-artifact-meta {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.case-study-artifact-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(192, 132, 252, 0.7);
    font-weight: 600;
}

.case-study-artifact-name {
    font-size: 0.85rem;
    color: #e5e5e5;
    font-weight: 500;
}

.case-study-chart {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    min-height: 520px;
    height: 520px;
    border-radius: 16px;
    background: #141414;
    border: 1px solid rgba(192, 132, 252, 0.2);
    padding: 0.5rem;
    box-sizing: border-box;
    overflow: hidden;
    display: block;
}

.case-study-chart > div,
.case-study-chart .plotly,
.case-study-chart .plotly .svg-container {
    width: 100% !important;
    display: block;
}

.case-study-visualization-desc {
    margin-bottom: 1.25rem;
    letter-spacing: 0.01em;
}

.case-study-interaction {
    margin-top: 0.85rem;
    opacity: 0.75;
}

.case-study-key-insights {
    margin-top: 3rem;
}

.case-study-footer {
    border-top: 1px solid rgba(192, 132, 252, 0.2);
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.case-study-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.case-study-secondary-btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #f5f5f5;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.case-study-secondary-btn:hover {
    border-color: rgba(192, 132, 252, 0.8);
    color: #c084fc;
}

.case-study-close-btn {
    position: absolute;
    top: 12.5px;
    right: 12.5px;
    background: none;
    border: none;
    color: rgba(229, 229, 229, 0.6);
    font-size: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, opacity 0.15s ease;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    z-index: 50;
    border-radius: 0 24px 0 0;
}

.case-study-close-btn:hover {
    color: #c084fc;
    text-shadow: none;
}

.case-study-close-btn:focus {
    outline: 2px solid rgba(192, 132, 252, 0.5);
    outline-offset: 2px;
}

.case-study-close-btn:active {
    transform: none;
}

.case-study-card.case-study-open {
    background-color: #2A2A2A;
}

/* CSV preview modal */
.csv-preview-modal {
    position: fixed;
    z-index: 1100;
    pointer-events: auto;
}

.csv-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.csv-preview-overlay.active {
    opacity: 1;
}

.csv-preview-content {
    position: relative;
    width: min(90vw, 720px);
    max-height: 80vh;
    background: #141414;
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.csv-preview-header {
    text-align: center;
}

.csv-preview-table-wrap {
    overflow: auto;
    max-height: 45vh;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 20, 20, 0.6);
}

.csv-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    color: #e5e5e5;
}

.csv-preview-table thead {
    background: rgba(192, 132, 252, 0.12);
    position: sticky;
    top: 0;
    z-index: 1;
}

.csv-preview-table th,
.csv-preview-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.csv-preview-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.csv-preview-close-btn {
    position: absolute;
    top: 12.5px;
    right: 12.5px;
    background: none;
    border: none;
    color: rgba(229, 229, 229, 0.6);
    font-size: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, opacity 0.15s ease;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    z-index: 1101;
}

.csv-preview-close-btn:hover {
    color: #c084fc;
    text-shadow: none;
}

.csv-preview-close-btn:focus {
    outline: 2px solid rgba(192, 132, 252, 0.5);
    outline-offset: 2px;
}

.csv-preview-close-btn:active {
    transform: none;
}

@media (max-width: 640px) {
    .csv-preview-content {
        padding: 2.25rem 1.5rem 1.5rem;
        max-height: 85vh;
    }

    .csv-preview-table-wrap {
        max-height: 50vh;
    }
}

/* Presentation highlights table */
.presentation-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem; /* mt-8 - slightly increased */
    margin-bottom: 1.5rem; /* mb-6 */
    background-color: #141414;
    color: #e5e5e5;
}

.presentation-table th {
    color: var(--accent-purple);
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.presentation-table th:last-child {
    border-right: none;
}

.presentation-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e5e5;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.presentation-table td:last-child {
    border-right: none;
}

.presentation-table th:nth-child(2),
.presentation-table td:nth-child(2) {
    min-width: 120px;
    text-align: center;
}

/* Mobile responsive table stacking */
@media (max-width: 768px) {
    .presentation-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.5rem;
        padding: 0.5rem;
        background-color: #1a1a1a;
    }

    .presentation-table th {
        display: none;
    }

    .presentation-table td {
        display: block;
        padding: 0.25rem 0.5rem;
        border: none;
        border-right: none;
    }

    .presentation-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--accent-purple);
    }

    .presentation-table tbody {
        display: block;
    }

    .presentation-table thead {
        display: none;
    }
}

/* Capstone badge container */
.capstone-badge {
    position: absolute;
    top: -23px;
    left: -16px;
}

/* Capstone heading text */
.capstone-heading-text {
    flex: 1;
}

.bsg-logo {
    width: 275px;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.bsg-logo:hover {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.4));
    transform: scale(1.04);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .capstone-focus-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .capstone-focus-media {
        position: static;
    }

    .capstone-media-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .capstone-focus-content {
        margin: 1rem;
        padding: 1.5rem;
        max-height: 95vh;
    }
}

.carousel-images {
    scrollbar-width: thin;
    scrollbar-color: #666 #333;
}

.carousel-images::-webkit-scrollbar {
    height: 6px;
}

.carousel-images::-webkit-scrollbar-track {
    background: #333;
    border-radius: 3px;
}

.carousel-images::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 3px;
}

.carousel-images::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Projects heading scroll emphasis */
.page-title-wrap {
    /* centered by justify-content, but now scoped */
}

.projects-heading {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f5f5f5;
    text-align: center;
    white-space: nowrap;
    --heading-fit: 0.35;
}

.about-section .projects-heading {
    width: 100%;
    text-align: center;
}

.about-subheading {
    margin-bottom: 0.75rem;
}


.about-profile-image {
    width: min(35%, clamp(130px, 24vw, 260px));
    max-width: 100%;
    height: auto;
    float: right;
    margin-left: clamp(10px, 2vw, 20px);
    margin-bottom: 16px;
    margin-top: 0;
    clear: right;
    object-fit: cover;
}

.about-section .about-profile-image {
    margin-top: 0;
}

.about-text-wrap {
    display: flow-root;
    max-width: 100%;
}

.about-page .about-text-wrap p {
    margin-bottom: 0.75rem;
}

.about-page .about-text-wrap p:last-child {
    margin-bottom: 0;
}

.about-section {
    max-width: 100%;
    min-width: 0;
}

.faq-section {
    max-width: 100%;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #1F1F1F;
    border-radius: 0.75rem;
    border: 1px solid rgba(192, 132, 252, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(192, 132, 252, 0.35);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.32);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: left;
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-question:focus-visible {
    outline: 2px solid rgba(192, 132, 252, 0.4);
    outline-offset: -2px;
}

.faq-question-text {
    flex: 1;
}

.faq-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(192, 132, 252, 0.7);
    font-size: 1rem;
    transition: transform 0.25s ease, color 0.2s ease;
}

.faq-question:hover .faq-icon {
    color: #c084fc;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer-content {
    padding: 0 1.5rem 1.25rem;
    color: #d4d4d4;
    line-height: 1.7;
    font-size: 0.98rem;
}

.faq-item.open .faq-icon {
    transform: rotate(90deg);
}

@media (max-width: 640px) {
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .faq-answer-content {
        padding: 0 1.25rem 1rem;
    }
}

@media (max-width: 740px) {
    .mobile-primary-links a:nth-child(5) {
        display: none;
    }

    .more-uses {
        display: block;
    }

    .mobile-more-trigger {
        display: block;
    }
}

@media (max-width: 660px) {
    .mobile-primary-links a:nth-child(4) {
        display: none;
    }

    .more-blog {
        display: block;
    }
}

@media (max-width: 580px) {
    .mobile-primary-links a:nth-child(3) {
        display: none;
    }

    .more-projects {
        display: block;
    }
}

@media (max-width: 520px) {
    .mobile-primary-links a:nth-child(2) {
        display: none;
    }

    .more-about {
        display: block;
    }
}

@media (max-width: 340px) {
    .about-profile-image {
        float: none;
        display: block;
        max-width: 100%;
        width: min(180px, 74vw);
        margin: 0 auto 16px auto;
    }
}

@media (max-width: 380px) {
    .mobile-primary-links a:nth-child(1) {
        display: none;
    }

    .more-home {
        display: block;
    }
}

@media (max-width: 320px) {
    .about-profile-image {
        width: min(200px, 80vw);
        margin-left: auto;
        margin-right: auto;
    }
}

.projects-heading.auto-fit {
    font-size: var(--heading-size, 72px);
}

/* Mobile navbar starts shrunk */
@media (max-width: 768px) {
    .floating-nav.mobile-shrunk {
        transform: scale(0.9);
    }
}

/* Mobile dropdown button and menu styles - dark gray theme */
@media (max-width: 768px) {
    .more-btn:hover {
        background-color: rgba(255, 255, 255, 0.12) !important;
    }

    .more-btn:focus {
        background-color: rgba(255, 255, 255, 0.08);
        outline: none;
    }

    .more-btn:active {
        background-color: rgba(255, 255, 255, 0.18);
        transform: scale(0.98);
    }

    .more-btn:focus-visible {
        outline: none;
        background-color: rgba(255, 255, 255, 0.08);
    }

    /* Dropdown menu background - match navbar dark gray */
    .more-dropdown {
        background-color: #323232 !important; /* Same as navbar */
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Dropdown menu items hover/active states */
    .more-dropdown a:hover {
        background-color: rgba(255, 255, 255, 0.08) !important;
    }

    .more-dropdown a:active {
        background-color: rgba(255, 255, 255, 0.12) !important;
    }
}

/* Desktop hero layout - original spacing */
@media (min-width: 769px) {
    .hero-container .flex.flex-wrap {
        gap: 1rem;
    }

    .hero-container .flex.flex-wrap .btn-dark-purple {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Mobile hero layout - center-aligned action row */
@media (max-width: 768px) {
    .hero-container .flex.flex-wrap {
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
    }

    .hero-container .flex.flex-wrap > * {
        flex-shrink: 0;
    }

    .hero-container .flex.flex-wrap .btn-dark-purple {
        flex-shrink: 1;
        min-width: 0;
        white-space: nowrap;
        justify-content: center;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-container .flex.flex-wrap .flex {
        gap: 0.625rem;
    }
}

/* Mobile responsive styles */
@media (max-width: 640px) {
    .hero-container {
        padding: 1rem;
    }

    .hero-container .flex {
        gap: 3rem;
    }

    .hero-container .flex-1 {
        text-align: center;
    }

    .footer-inner {
        padding-left: 1.4375rem;
        padding-right: 2.1875rem;
    }

    .footer-section {
        text-align: left;
    }

    .identity-section {
        display: block;
    }

    .identity-section h3,
    .identity-section p {
        order: 1;
    }

    .identity-section .social-icons {
        order: 2;
        justify-content: flex-start;
    }

    .footer-inner > .footer-section:nth-child(2) {
        order: 3;
    }

    .footer-inner > .footer-section:nth-child(3) {
        order: 4;
    }

    .capstone-focus-content,
    .blog-focus-content {
        margin: 1rem;
        padding: 1rem;
        max-height: 90vh;
    }

    .capstone-scroll-inner,
    .blog-scroll-inner {
        padding: 1rem 1rem 1rem 2rem;
    }

    .capstone-focus-header,
    .blog-focus-header {
        padding-top: 50px;
    }

    .capstone-focus-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .capstone-media-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .persona-focus-content {
        margin: 1rem;
        padding: 1rem;
        max-height: 90vh;
    }

    .persona-scroll-inner {
        padding: 1rem 1rem 1rem 2rem;
    }

    .persona-focus-header {
        padding-top: 50px;
    }

    .case-comp-focus-content {
        margin: 1rem;
        padding: 1rem;
        max-height: 90vh;
    }

    .case-comp-scroll-inner {
        padding: 1rem 1rem 1rem 2rem;
    }

    .case-comp-focus-header {
        padding-top: 50px;
    }

    .case-study-focus-content {
        margin: 1rem;
        padding: 1rem;
        max-height: 90vh;
    }

    .case-study-scroll-inner {
        padding: 1rem 1rem 1rem 2rem;
    }

    .case-study-focus-header {
        padding-top: 50px;
    }

    .case-study-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .case-study-artifacts {
        grid-template-columns: 1fr;
    }

    .case-study-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .icon-btn {
        padding: 0.25rem;
    }

    .icon-btn img {
        width: 20px;
        height: 20px;
    }
}
