:root {
    /* Colors */
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray: #E6E6E6;
    --color-accent: #9200ED;
    --color-accent-rgb: 146, 0, 237;

    /* Fonts */
    --font-header: 'Jersey 10', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Theme Variables (Default Dark) */
    --bg-primary: var(--color-black);
    --text-primary: var(--color-white);
    --text-secondary: var(--color-gray);
    --card-bg: #1a1a1a;
    --card-border: #423751;
    --nav-bg: rgba(0, 0, 0, 0.7);
    --bg-project-alt: #11001C;
}

[data-theme="light"] {
    --bg-primary: var(--color-white);
    --text-primary: var(--color-black);
    --text-secondary: #333333;
    --card-bg: var(--color-gray);
    --card-border: var(--color-gray);
    --nav-bg: rgba(255, 255, 255, 0.7);
    --bg-project-alt: #F5F5F5;
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.year-label {
    font-family: var(--font-header);
    font-weight: 400;
}

.nav-link,
.cta-button {
    font-family: var(--font-body);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    padding-top: 1.7rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    background-color: var(--nav-bg);
    border-bottom: 2px solid rgba(81, 81, 81, 0.243);
    transition: background-color 0.3s ease;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin: 0 auto;
    align-items: center;
}

.nav-link {
    font-size: 1.1rem;
    position: relative;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-accent);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.theme-toggle:hover {
    transform: scale(1.1);
    color: var(--color-accent);
}

/* Hide mobile version by default */
#theme-toggle-mobile {
    display: none;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.hamburger-menu:hover {
    color: var(--color-accent);
}

/* ===== HOME PAGE ===== */

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.rgb-text {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
    animation: rgb-pulse 3s infinite alternate;
}

@keyframes rgb-pulse {
    0% {
        color: #9200ED;
    }

    33% {
        color: #ED0092;
    }

    66% {
        color: #00ED92;
    }

    100% {
        color: #9200ED;
    }
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    margin-top: -2rem;
}

.bio {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    max-width: 650px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.8rem;
    border: 2px solid var(--color-accent);
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.cta-button i {
    margin-right: 1rem;
}

.cta-button:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 0 15px var(--color-accent);
    transform: scale(1.1);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.pixel-globe-container {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe-sprite {
    width: 300px;
    height: 300px;
    background-image: url('assets/globe-sprite-dark.png');
    background-repeat: no-repeat;
    background-size: 300px 3600px;
    /* 5x scale: 48px -> 240px. Total height: 576*5 = 2880px */
    image-rendering: pixelated;
    animation: globe-rotate 2s steps(12) infinite;
}

[data-theme="light"] .globe-sprite {
    background-image: url('assets/globe-sprite-light.png');
}

@keyframes globe-rotate {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 -3600px;
    }
}

/* Scroll Arrow */
.scroll-arrow-container {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    background-image: url('assets/arrow-sprite.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    image-rendering: pixelated;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Experience Section */
.experience-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.experience-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.timeline-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    opacity: 0.7;
}

.timeline-item:hover,
.timeline-item.active {
    transform: scale(1.1);
    opacity: 1;
}

.year-label {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.folder-icon {
    width: 64px;
    height: 64px;
    background-image: url('assets/folder-sprite.png');
    background-repeat: no-repeat;
    background-size: 64px 128px;
    /* 2x scale: 32px -> 64px */
    image-rendering: pixelated;
}

.folder-icon.open {
    background-position: 0 0;
    /* Top sprite (Open) */
}

.folder-icon.closed {
    background-position: 0 -64px;
    /* Bottom sprite (Closed) */
}

/* Hide open folder by default */
.folder-icon.open {
    display: none;
}

.timeline-item.active .folder-icon.closed {
    display: none;
}

.timeline-item.active .folder-icon.open {
    display: block;
}

.timeline-line {
    width: 2px;
    height: 50px;
    background-color: var(--text-secondary);
    margin: 0.5rem 0;
}

.experience-content-display {
    flex: 1;
    background-color: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    min-height: 300px;
    transition: background-color 0.3s;
}

.content-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.content-card h4 {
    font-size: 2.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-family: var(--font-header);
}

.content-card ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-card li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.skills-tags {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag {
    background-color: rgba(146, 0, 237, 0.2);
    color: var(--color-accent);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Projects Section */
.projects-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-section h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    margin-bottom: 3rem;
    font-style: italic;
    color: var(--text-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    height: 250px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--color-accent);
}

.project-image {
    width: 100%;
    height: 100%;
    background-color: var(--card-bg);
    object-fit: cover;
}

.project-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.project-card:hover .project-info {
    opacity: 1;
    transform: translateY(0);
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-header);
    color: var(--color-white);
}

.project-info p {
    font-size: 1rem;
    color: var(--color-white);
    font-family: var(--font-body);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.case-study-btn {
    display: inline-block;
    padding: 0.5rem 1.8rem;
    border: 2px solid var(--color-white);
    border-radius: 50px;
    color: var(--color-white);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.case-study-btn:hover {
    background-color: var(--color-white);
    color: var(--color-accent);
}

/* Footer */
.footer {
    padding: 6rem 2rem 4rem;
    margin-top: 6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(to bottom, var(--bg-primary), var(--card-bg));
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-left {
    flex: 1;
    min-width: 300px;
}

.footer-cta {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 2rem;
    font-family: var(--font-header);
    background: linear-gradient(45deg, var(--text-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.footer-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.6;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-end;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background-color: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 220px;
    position: relative;
    overflow: hidden;
}

.social-button i {
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform 0.3s;
}

.social-button:hover {
    border-color: var(--color-accent);
    transform: translateX(-5px);
    box-shadow: 5px 5px 0px var(--color-accent);
}

.social-button:hover i {
    transform: scale(1.2);
}

.social-button span {
    z-index: 1;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 4rem 1.5rem;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 4rem;
    }

    .footer-right {
        align-items: center;
        width: 100%;
    }

    .social-button {
        width: 100%;
        justify-content: center;
    }

    .footer-cta {
        font-size: 2.8rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        justify-content: center;
        gap: 2rem;
    }

    .bio {
        margin: 0 auto 4rem auto;
    }

    /* Show mobile theme toggle */
    #theme-toggle-mobile {
        display: block;
    }

    /* Hide desktop theme toggle */
    #theme-toggle-desktop {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .nav-content {
        justify-content: space-between;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--nav-bg);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 2px solid rgba(81, 81, 81, 0.243);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav-links.active {
        display: flex;
    }

    .scroll-arrow-container {
        display: none;
    }

    .experience-container {
        flex-direction: column;
    }

    .timeline-nav {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .timeline-line {
        width: 50px;
        height: 2px;
        margin: 0 0.5rem;
    }

    /* About Page Mobile 
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }*/
}

/* ===== ABOUT PAGE ===== */
/*.about-section-page {
    padding: 8rem 2rem 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

.about-container h1 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--color-accent);
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: center;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image .pixel-globe-container {
    width: 300px;
    height: 300px;
}

.about-text {
    flex: 1;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-text h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}
*/

/* ===== CASE STUDIES ===== */

/* Banner */
.case-study-hero {
    padding: 6rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(to right, rgba(90, 0, 169, 0.8), rgba(146, 0, 237, 0.8), rgba(178, 0, 237, 0.8));
    color: var(--color-white);
    width: 100%;
}

.case-study-hero-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.case-study-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-header);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.case-study-hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin-bottom: 4rem;
    line-height: 1.6;
    font-family: var(--font-body);
}

.meta-cards-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
    margin-bottom: 3rem;
}

.meta-card {
    background-color: rgba(0, 0, 0, 0.13);
    border: 1px solid #A94CFF;
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
    min-width: 0;
    flex: 1;
    max-width: 250px;
    transition: transform 0.3s ease;
}

.meta-card h3 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-white);
}

.meta-card p {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    font-family: var(--font-body);
    color: var(--color-white);
}

.mockup-container {
    width: 100%;
    max-width: 1000px;
    min-height: 300px;
    background-color: #E0E0E0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.mockup-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.mockup-placeholder {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .case-study-hero h1 {
        font-size: 2.5rem;
    }

    .meta-cards-container {
        gap: 0.5rem;
    }

    .meta-card {
        padding: 0.75rem;
    }

    .meta-card h3 {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
}

/* Project Overview */
.project-overview {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-overview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    margin-top: 3rem;
    font-family: var(--font-header);
    color: var(--text-primary);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.overview-card,
.case-study-challenge-box {
    background-color: var(--card-bg);
    border-left: 5px solid var(--color-accent);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.takeaway-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
}

.takeaway-card ul {
    padding-left: 1rem;
}

.takeaway-card li {
    margin-bottom: 1rem;
}

.overview-card h3,
.case-study-challenge-box h3,
.takeaway-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.overview-card ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.overview-card li {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

/* Responsive Overview */
@media (max-width: 768px) {
    .project-overview {
        padding: 3rem 1.5rem;
    }

    .project-overview h2 {
        font-size: 2rem;
    }

    .overview-card {
        padding: 1.5rem;
    }

}

/* Learning Journey */
.learning-journey {
    padding: 2rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.learning-journey h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-header);
    color: var(--text-primary);
}

.learning-journey p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.learning-project-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7rem;
    margin-bottom: 2rem;
}

.learning-project-row p {
    margin-bottom: 0;
    flex: 1;
}

.arrow-link {
    display: block;
    width: 40px;
    height: 40px;
    background-image: url('assets/arrow-sprite-right.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    image-rendering: pixelated;
    transition: scale 0.3s ease;
}

.arrow-link:hover {
    animation: bounce-right 2s infinite;
    scale: 1.2;
    flex-shrink: 0;
    cursor: pointer;
    transition: filter 0.3s;
}

@keyframes bounce-right {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(0);
    }

    40% {
        transform: translateX(10px);
    }

    60% {
        transform: translateX(5px);
    }
}

/* Key Insight Card */
.key-insight-card {
    background-color: rgba(146, 0, 237, 0.2);
    border-left: 5px solid var(--color-accent);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
}

.key-insight-card h3 {
    color: var(--color-accent);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.key-insight-card p {
    color: var(--text-primary);
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* Case Study Projects */
.case-study-project {
    padding: 6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#project-1,
#project-3 {
    background-color: var(--bg-project-alt);
    border-bottom: none;
}

#project-1 {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.case-study-project:last-of-type {
    border-bottom: none;
}

/* Re-using .container logic but ensuring max-width */
.case-study-project .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.case-study-project-header {
    text-align: left;
    margin-bottom: 3rem;
}

.case-study-project-title {
    font-size: 2.5rem;
    font-family: var(--font-header);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.case-study-project-subtitle {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-secondary);
    font-family: var(--font-body);
}

.case-study-challenge-box {
    /* Shared styles with .overview-card */
    margin-bottom: 3rem;
}

.project-mockup-large {
    width: 100%;
    max-width: 1000px;
    min-height: 200px;
    background-color: #1E1E1E;
    border-radius: 20px;
    margin: 3rem auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);*/
    overflow: hidden;
}

.project-mockup-large img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.project-mockup-subtitle {
    text-align: center;
    font-size: 1rem;
    font-style: italic;
    color: var(--text-secondary);
    font-family: var(--font-body);
    margin-bottom: 4rem;
    display: block;
}

.case-study-project h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-study-challenge-box h3 {
    margin-top: 0;
}

.case-study-project h4 {
    font-size: 1.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    margin-top: 5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.case-study-project p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: left;
}

.case-study-project ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.case-study-project li {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.full-width-image-section {
    width: 100%;
    background-color: #FEEAE3;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.full-width-image-section img {
    width: 90%;
    max-width: 900px;
    height: auto;
    display: block;
}

.divider {
    height: 2px;
    background-color: var(--card-bg);
    margin: 40px 0;
}

/* Calorime Specific Overrides */
.calorime-case-study .case-study-project-header {
    margin-bottom: 1rem;
}

.calorime-case-study .case-study-project:nth-of-type(odd) {
    background-color: var(--bg-project-alt);
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.calorime-case-study .case-study-project:first-of-type {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.calorime-case-study .case-study-project h4:first-of-type {
    margin-top: 1rem;
}

/* Competitor Cards */
.competitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.competitor-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
}

.competitor-card h3 {
    margin-bottom: 0.5rem;
    /*font-size: 1rem !important;*/
    color: var(--text-primary);
}

.competitor-rating {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.competitor-rating i {
    font-size: 0.8rem;
    margin-right: 1px;
}

/* Override the specific margin-top 5rem from case-study-project h4 for these cards */
.calorime-case-study .competitor-card h4.card-subtitle {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.competitor-card ul {
    list-style-type: disc;
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.competitor-card li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}


.calorime-case-study h5 {
    font-size: 1.3rem;
    font-weight: 500;
}

/* Transparent Mockup Container */
.mockup-container.transparent-mockup {
    background-color: transparent;
    box-shadow: none;
    justify-content: center;
    margin: 2rem auto;
    min-height: auto;
    /* Allow container to shrink to image height */
}

.mockup-container.transparent-mockup img,
.mockup-container.transparent-mockup .project-image {
    background-color: transparent;
    object-fit: contain;
    /* Ensure image is fully visible */
}

/* Split Container Section */
.split-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.split-container-text {
    flex: 2;
    text-align: top;
}

.split-container-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.split-container-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Modifier for Wireframe section: less text, bigger image */
.wireframe-split .split-container-text {
    flex: 1;
}

.wireframe-split .split-container-image {
    flex: 1;
}

/* Prototype Link Styles */
.case-study-project .prototype-link {
    margin-top: 2rem;
    font-size: 1rem;
    text-align: center;
    color: var(--text-secondary);
}

.case-study-project .prototype-link a {
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.case-study-project .prototype-link a:hover {
    color: var(--color-accent);
}