* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

body {
    font-family: 'Handlee', cursive;
    overflow: hidden;
    cursor: none;
    margin: 0;
    padding: 0;
}

/* Shared sizing to keep the left TV frame and right intro aligned across screens */
:root {
    /* Left panel is fixed: top 100px, bottom 40px */
    --panel-height: calc(100vh - 140px);
    /* Left panel is 50% width with 20px padding on both sides */
    --left-panel-content-width: calc(50vw - 40px);
    /* TV frame wrapper sizing */
    --tv-width: min(clamp(320px, 48vw, 760px), var(--left-panel-content-width));
    --tv-height: calc(var(--tv-width) * 2 / 3); /* aspect-ratio 3/2 */
    --tv-top-offset: max(0px, calc((var(--panel-height) - var(--tv-height)) / 2));
}

/* Custom Elastic Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.1s ease, height 0.1s ease;
    mix-blend-mode: difference;
}

/* Simple Halo Effect */
.cursor-halo {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    opacity: 0.3;
}

/* Scroll Container */
.scroll-container {
    height: 100vh;
    overflow: hidden;
    background: #0a0a0a;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        );
}

.section {
    height: 100vh;
    position: relative;
}

.blackboard {
    min-height: 100vh;
    height: 100%;
    position: relative;
    padding: 100px 20px 40px 20px;
    display: flex;
    align-items: center;
}

/* Header Navigation */
.header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    flex: 1;
}

.nav-resume {
    margin-left: auto;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .header {
        padding: 20px 20px;
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-resume {
        margin-left: 0;
    }
}

.nav-item {
    font-family: 'Handlee', cursive;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    position: relative;
    padding: 8px 12px;
    transition: all 0.3s ease;
    cursor: none;
}

.nav-item:hover {
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

/* Chalk underline effect for active item - hand-drawn style */
.nav-item.active {
    color: rgba(255, 255, 255, 0.95);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 10%;
    width: 80%;
    height: 2px;
    background-image: 
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.85) 3%,
            rgba(255, 255, 255, 0.75) 8%,
            rgba(255, 255, 255, 0.9) 15%,
            rgba(255, 255, 255, 0.7) 22%,
            rgba(255, 255, 255, 0.85) 30%,
            rgba(255, 255, 255, 0.8) 40%,
            rgba(255, 255, 255, 0.9) 50%,
            rgba(255, 255, 255, 0.75) 60%,
            rgba(255, 255, 255, 0.85) 70%,
            rgba(255, 255, 255, 0.8) 80%,
            rgba(255, 255, 255, 0.9) 88%,
            rgba(255, 255, 255, 0.7) 95%,
            transparent 100%
        );
    filter: blur(0.3px);
    border-radius: 50% / 100%;
    box-shadow: 
        0 0.5px 0 rgba(255, 255, 255, 0.3),
        0 -0.5px 0 rgba(255, 255, 255, 0.2),
        1px 0 0 rgba(255, 255, 255, 0.2),
        -1px 0 0 rgba(255, 255, 255, 0.2);
    transform-origin: left;
    animation: chalkDraw 0.5s ease-out;
}

/* Add slight irregularity with a second layer */
.nav-item.active::before {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 12%;
    width: 76%;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50% / 100%;
    filter: blur(0.5px);
    transform-origin: left;
    animation: chalkDraw 0.5s ease-out;
}

@keyframes chalkDraw {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}


/* Blackboard texture effect */
.blackboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Left Section: Hero Image - FIXED */
.left-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 0;
    top: 100px;
    bottom: 40px;
    width: 50%;
    max-width: 50%;
    /* Keep a little breathing room on the sides only */
    padding: 0 20px;
    z-index: 1;
    box-sizing: border-box;
    overflow: hidden;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}

.left-section * {
    pointer-events: auto;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    /* Scales with viewport but stays within a sensible range */
    max-width: var(--tv-width);
    aspect-ratio: 3/2; /* tvframe.png is 1536x1024 */
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: none;
    background: transparent;
}

.tv-frame-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    pointer-events: none;
    position: relative;
    z-index: 2;
}

/* "Screen" area inside the TV frame (clips hero images) */
.tv-screen {
    position: absolute;
    /* Responsive cutout area inside the TV frame */
    top: 28px;
    left: 10%;
    right: 23%;
    bottom: 22%;
    overflow: hidden;
    border-radius: 60px;
    background: transparent;
    box-shadow:
        inset 0 0 0 3px rgba(0, 0, 0, 0.35),
        inset 0 0 35px rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-image.active {
    opacity: 1;
    transform: translateX(0);
}

/* Trophy image is a tall portrait; avoid cropping inside the TV "screen" */
#heroImage2 {
    object-fit: contain;
    object-position: center;
    width: 100%;
    height: 100%;
    top: -7px;
}

/* Photo hero can get its head cropped with object-fit: cover; bias toward top */
#heroImage1 {
    /* Hero is now a video sized to the TV screen; keep it centered and un-cropped */
    object-fit: contain;
    object-position: center;
    width: 100%;
    height: 100%;
    left: 0px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 24px;
    text-align: center;
    padding: 20px;
}

.placeholder-hint {
    font-size: 16px;
    margin-top: 10px;
    opacity: 0.6;
}

/* Right Content Container - Sliding */
.right-content-container {
    position: fixed;
    left: 50%;
    width: 50%;
    top: 100px;
    bottom: 40px;
    padding: 0 40px 0 40px;
    overflow: hidden;
    z-index: 10;
    box-sizing: border-box;
    background: transparent;
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1), width 0.8s cubic-bezier(0.4, 0, 0.2, 1), padding 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.right-content-container * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Design Process: full-width content + TV frame scrolls up out of view */
body.design-process-mode .left-section {
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
}

body.design-process-mode .right-content-container {
    left: 0;
    width: 100%;
    padding: 0 80px;
}

@media (max-width: 768px) {
    body.design-process-mode .right-content-container {
        padding: 0 20px;
    }
}

.content-slide {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease, visibility 0.8s ease;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    pointer-events: none;
    max-width: 100%;
}

.content-slide.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 10;
}

.content-slide.skills-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.content-slide.skills-slide.active .right-section,
.content-slide.skills-slide.active .skills-grid,
.content-slide.skills-slide.active .skill-category,
.content-slide.skills-slide.active .skill-category-title,
.content-slide.skills-slide.active .skill-text {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.content-slide.prev {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.content-slide.next {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* Right Section: Content Display */
.right-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 100%;
    gap: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    padding: 60px 12px;
    position: relative;
}

.right-section * {
    box-sizing: border-box;
    max-width: 100%;
}

/* Trophies Container */
.trophies-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.trophy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: transparent;
    border-radius: 15px;
    border: none;
    transition: all 0.3s ease;
    min-width: 120px;
}

.trophy:hover {
    transform: translateY(-5px);
}

.trophy-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    }
}

.trophy-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    text-align: center;
    font-family: 'Handlee', cursive;
}

/* Introduction Section */
.intro-section {
    color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    padding-top: 0px;
    background: transparent;
    border-radius: 15px;
    border: none;
    box-shadow: none;
}

/* Intro slide spacing */
.content-slide.intro-slide .right-section {
    padding-top: 0;
    padding-bottom: 0;
}

.content-slide.intro-slide .intro-section {
    margin-top: 0px;
}

/* Align Achievements section start with the TV frame's top edge on the left (all screens) */
.content-slide.achievements-slide {
    align-items: flex-start;
}

.content-slide.achievements-slide .right-section {
    /* remove generic vertical padding so the section can align deterministically */
    padding-top: 32px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 0;
    justify-content: center;
}

.content-slide.design-process-slide {
    align-items: flex-start;
}

.content-slide.design-process-slide .right-section {
    align-items: center;
    justify-content: flex-start; /* Start content at top instead of centering */
    /* Smaller bottom runway; gesture-aware boundary logic prevents accidental slide advance */
    padding: 40px 100px 120px 100px;
    gap: 14px;
}

/* Tools Used section (Design Process slide) */
.tools-used-section {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 10px auto;
}

.tools-used-title {
    font-family: 'Handlee', cursive;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
    text-align: center;
    margin: 18px 0 6px 0;
}

.tools-used-subtitle {
    font-family: 'Handlee', cursive;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.72);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
    text-align: center;
    margin: 0 0 18px 0;
}

.tools-used-card {
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    border: 2.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0.5px 0.5px 0 0 rgba(255, 255, 255, 0.55),
        -0.5px -0.5px 0 0 rgba(255, 255, 255, 0.55),
        0 0 10px rgba(255, 255, 255, 0.10),
        inset 0 0 10px rgba(255, 255, 255, 0.04),
        0 10px 26px rgba(0, 0, 0, 0.55);
}

.tools-used-card-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.tools-used-card-heading {
    font-family: 'Handlee', cursive;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.tools-used-card-body {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    min-height: 360px;
}

.tools-used-divider {
    background: rgba(255, 255, 255, 0.18);
}

.tools-used-logos {
    position: relative;
    min-height: 360px;
    padding: 18px;
    /* JS collision-avoidance can reduce this on small screens to guarantee non-overlap */
    --tool-scale: 1;
}

.tool-logo-btn {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(var(--tool-scale, 1));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    cursor: none;
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
    will-change: transform, box-shadow, filter;
    z-index: 1;
}

.tool-logo-btn::before {
    /* Stronger glow halo behind the white logo pill (visible even on bright logos) */
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 50%,
            rgba(255, 215, 0, 0.34) 0%,
            rgba(132, 206, 255, 0.20) 35%,
            rgba(255, 255, 255, 0.10) 55%,
            transparent 72%);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
    z-index: -1;
}

.tool-logo-btn:hover,
.tool-logo-btn:focus-visible,
.tool-logo-btn.is-active {
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(calc(var(--tool-scale, 1) * 1.04));
    filter:
        drop-shadow(0 0 18px rgba(255, 215, 0, 0.22))
        drop-shadow(0 0 34px rgba(255, 255, 255, 0.14));
}

.tool-logo-btn:hover::before,
.tool-logo-btn:focus-visible::before,
.tool-logo-btn.is-active::before {
    opacity: 1;
}

.tool-logo-btn:focus-visible {
    outline: none;
}

.tool-logo-img {
    display: block;
    height: 67px;
    width: 117px;
    max-width: 170px;
    transition: transform 220ms ease, filter 220ms ease, opacity 220ms ease;
    will-change: transform, filter;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
    opacity: 0.95;
    object-fit: contain;
}

.tool-logo-btn:hover .tool-logo-img,
.tool-logo-btn:focus-visible .tool-logo-img,
.tool-logo-btn.is-active .tool-logo-img {
    transform: scale(1.06);
    filter:
        drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45))
        drop-shadow(0 0 16px rgba(255, 215, 0, 0.18))
        drop-shadow(0 0 28px rgba(255, 255, 255, 0.12));
    opacity: 1;
}

.tools-used-wordcloud {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wordcloud-cloud {
    width: 100%;
    max-width: 520px;
    height: 320px;
    position: relative;
    overflow: hidden;
    --cloud-scale: 1;
    /* subtle “cloud” feel */
    background:
        radial-gradient(circle at 25% 35%, rgba(255, 255, 255, 0.03), transparent 60%),
        radial-gradient(circle at 75% 65%, rgba(255, 255, 255, 0.03), transparent 60%);
    border-radius: 18px;
}

.tools-word {
    font-family: 'Handlee', cursive;
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    /* include scale so we can animate hover/active without changing the layout math */
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(var(--ws, 1));
    font-size: calc(18px * var(--s, 1) * var(--cloud-scale, 1));
    /* Use body text color by default; only change color when highlighted */
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
    line-height: 1.1;
    user-select: none;
    pointer-events: auto; /* enable reverse mapping hover/focus */
    cursor: none;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
    transition: color 220ms ease, text-shadow 220ms ease, transform 220ms ease, opacity 220ms ease;
    opacity: 0.92;
}

.tools-word:hover,
.tools-word:focus-visible,
.tools-word.is-active-word {
    --ws: 1.10;
    opacity: 1;
}

.tools-word:focus-visible {
    outline: none;
}

.tools-word.is-highlighted {
    /* When a tool is hovered, make mapped outcome words slightly bigger too */
    --ws: 1.07;
    color: rgba(255, 215, 0, 0.97);
    text-shadow:
        0 0 10px rgba(255, 215, 0, 0.35),
        0 0 22px rgba(255, 215, 0, 0.18),
        0 0 34px rgba(255, 255, 255, 0.10);
    opacity: 1;
}

@media (max-width: 1024px) {
    .tools-used-card-body {
        min-height: 320px;
    }
    .tools-used-logos {
        min-height: 320px;
    }
    .tool-logo-img {
        height: 67px;
        width: 117px;
        max-width: 150px;
    }
    .wordcloud-cloud {
        height: 300px;
        max-width: 520px;
    }
}

@media (max-width: 768px) {
    .tools-used-card-body {
        grid-template-columns: 1fr;
        min-height: unset;
    }
    .tools-used-divider {
        height: 1px;
        width: 100%;
    }
    .tools-used-logos {
        min-height: 320px;
    }
    .tools-used-wordcloud {
        padding: 18px;
    }
    .wordcloud-cloud {
        height: 320px;
        max-width: 520px;
    }
}

/* Projects: full-width + normal scroll (same layout behavior as Design Process) */
.content-slide.projects-slide {
    align-items: flex-start;
}

.content-slide.projects-slide .right-section {
    /* Left-align Projects block like Achievements/Experience */
    align-items: flex-start;
    justify-content: flex-start;
    /* More breathing room like Achievements/Experience (less cramped on the right panel) */
    padding-top: 32px;
    padding-left: 60px;
    padding-right: 60px;
    padding-bottom: 120px;
    gap: 18px;
}

/* Projects layout (header + tabs + 2-column body) */
.projects-wrap {
    width: 100%;
    /* Fill available width inside the slide padding */
    max-width: 100%;
    margin: 0;
}

.projects-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 8px 4px 16px 4px;
    /* Match other sections: no heavy overlay panel */
    background: transparent;
    backdrop-filter: none;
}

.projects-heading {
    font-family: 'Handlee', cursive;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.10);
}

.projects-tabs {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.projects-tab {
    font-family: 'Handlee', cursive;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.05);
    cursor: none;
    position: relative;
    transition: all 180ms ease;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.projects-tab:hover,
.projects-tab:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
}

.projects-tab.is-active,
.projects-tab[aria-selected="true"] {
    border-color: rgba(255, 215, 0, 0.7);
    background: rgba(255, 215, 0, 0.15);
    color: rgba(255, 235, 100, 0.98);
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0),
        0 0 40px rgba(255, 215, 0, 0.2),
        inset 0 0 15px rgba(255, 215, 0, 0.1);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Projects description: full-width paragraph row */
.projects-description {
    width: 100%;
    margin-top: 24px;
    margin-bottom: 32px;
}

.projects-description [data-company] {
    display: none;
}

.projects-wrap[data-active-company="sensehq"] .projects-description [data-company="sensehq"],
.projects-wrap[data-active-company="betterplace"] .projects-description [data-company="betterplace"],
.projects-wrap[data-active-company="unisys"] .projects-description [data-company="unisys"],
.projects-wrap[data-active-company="personal"] .projects-description [data-company="personal"] {
    display: block;
}

.projects-main {
    width: 100%;
    display: block;
}

.projects-main__sense {
    width: 100%;
}

.projects-frame {
    border-radius: 18px;
    border: 1.5px dashed rgba(255, 255, 255, 0.25);
    padding: 34px;
    background: rgba(255, 255, 255, 0.04);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 22px;
    align-items: start;
}

.projects-main__thumbs {
    width: 100%;
    display: none;
}

.projects-main__arvr {
    width: 100%;
    display: none;
}

.projects-main[data-active-company="betterplace"] .projects-main__sense,
.projects-main[data-active-company="unisys"] .projects-main__sense,
.projects-main[data-active-company="personal"] .projects-main__sense {
    display: none;
}

.projects-main[data-active-company="betterplace"] .projects-main__thumbs,
.projects-main[data-active-company="unisys"] .projects-main__thumbs {
    display: block;
}

.projects-main[data-active-company="personal"] .projects-main__arvr {
    display: block;
}

.projects-thumbs-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.projects-thumbs-grid[data-company] {
    display: none;
}

.projects-main[data-active-company="betterplace"] .projects-thumbs-grid[data-company="betterplace"],
.projects-main[data-active-company="unisys"] .projects-thumbs-grid[data-company="unisys"] {
    display: grid;
}

.arvr-layout {
    width: 100%;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 22px;
    align-items: start;
}

.arvr-media {
    width: 100%;
}

.arvr-player-wrap {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
}

.arvr-player {
    width: 100%;
    height: 520px;
    border: 0;
    display: block;
}

.arvr-media-note {
    margin-top: 10px;
    font-family: 'Handlee', cursive;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.72);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
}

.arvr-details {
    width: 100%;
}

.project-thumb-card {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 16px 18px 16px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.project-thumb-card[data-project="bg-verification"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

.project-thumb-card[data-project="bg-verification"]::before {
    content: "Coming soon";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Handlee', cursive;
    font-size: 22px;
    letter-spacing: 0.3px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.16);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
    z-index: 2;
}

.project-thumb-card[data-project="bg-verification"]:hover::after,
.project-thumb-card[data-project="bg-verification"]:hover::before,
.project-thumb-card[data-project="bg-verification"]:focus-visible::after,
.project-thumb-card[data-project="bg-verification"]:focus-visible::before {
    opacity: 1;
}

/* Unisys thumbnails: show "Coming soon" overlay on hover for all cards */
.projects-thumbs-grid[data-company="unisys"] .project-thumb-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

.projects-thumbs-grid[data-company="unisys"] .project-thumb-card::before {
    content: "Coming soon";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Handlee', cursive;
    font-size: 22px;
    letter-spacing: 0.3px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.16);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
    z-index: 2;
}

.projects-thumbs-grid[data-company="unisys"] .project-thumb-card:hover::after,
.projects-thumbs-grid[data-company="unisys"] .project-thumb-card:hover::before,
.projects-thumbs-grid[data-company="unisys"] .project-thumb-card:focus-visible::after,
.projects-thumbs-grid[data-company="unisys"] .project-thumb-card:focus-visible::before {
    opacity: 1;
}

.project-thumb-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.project-thumb-title {
    margin-top: 10px;
    font-family: 'Handlee', cursive;
    font-size: 20px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.86);
}

.project-thumb-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.38);
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.10);
}

.project-thumb-card:focus-visible {
    outline: none;
    border-color: rgba(255, 215, 0, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.16), 0 0 22px rgba(255, 215, 0, 0.14);
}

.projects-frame .projects-media,
.projects-frame .projects-details {
    /* Within frame: no additional backgrounds/borders */
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.projects-media {
    padding: 0;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-image {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 14px;
    filter:
        drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55))
        drop-shadow(0 0 18px rgba(255, 255, 255, 0.03))
        drop-shadow(0 0 30px rgba(255, 255, 255, 0.075))
        drop-shadow(0 0 50px rgba(255, 255, 255, 0.04));
}

.projects-details {
    padding: 0;
}

@media (max-width: 1024px) {
    .content-slide.projects-slide .right-section {
        padding: 40px 30px 120px 20px;
    }
    .content-slide.experience-slide .right-section {
        padding: 40px 30px 120px 20px;
    }
    .projects-frame { 
        grid-template-columns: 1fr;
        padding: 24px;
    }
    .projects-media {
        min-height: 320px;
    }
    .projects-thumbs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .arvr-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .content-slide.projects-slide .right-section {
        padding: 30px 20px 120px 20px;
    }
    .content-slide.experience-slide .right-section {
        padding: 30px 20px 120px 20px;
    }
    .projects-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .projects-frame {
        padding: 20px;
    }
    .projects-thumbs-grid { grid-template-columns: 1fr; }
    .arvr-layout { grid-template-columns: 1fr; }
}

.design-process-graph {
    width: 100%;
    margin: 10px 0 6px 0;
    padding: 8px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    min-height: 280px; /* Ensure container has space for SVG */
}

.dp-svg {
    width: 100%;
    /* Some browsers collapse inline SVGs when height is auto; enforce a visible box */
    aspect-ratio: 1400 / 360;
    height: 280px; /* Explicit height to prevent collapse */
    min-height: 280px;
    max-height: 380px;
    display: block;
    min-width: 980px; /* keep labels readable; container allows horizontal scroll on small screens */
}

/* Chalk styling */
.dp-path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dp-arrow {
    stroke: rgba(255, 215, 0, 0.85);
    stroke-width: 4;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.12));
}

.dp-arrowhead {
    fill: rgba(255, 215, 0, 0.85);
}

.dp-circle {
    fill: rgba(0, 0, 0, 0.22);
    stroke: rgba(255, 255, 255, 0.72);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.08));
}

.dp-circle-soft {
    stroke: rgba(255, 255, 255, 0.25);
    stroke-width: 7;
    filter: blur(0.6px);
}

.dp-text {
    font-family: 'Handlee', cursive;
    font-size: 28px;
    fill: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.2px;
    user-select: none;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
}

/* Entry animation: chalk draw + gentle node fade-in
   IMPORTANT: keep the diagram visible even if animations don't run. */
.dp-draw {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
}

.dp-node {
    opacity: 0;
    transform: scale(0);
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 220ms ease, filter 220ms ease;
    cursor: none;
}

/* Animate only when the Design Process slide is active */
.content-slide.design-process-slide.active .dp-draw {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: dpChalkDraw 1.25s ease forwards;
    animation-delay: var(--dp-delay, 0s);
}

.content-slide.design-process-slide.active .dp-node {
    animation: dpNodeIn 600ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: var(--dp-delay, 0s);
}

@keyframes dpChalkDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes dpNodeIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .content-slide.design-process-slide.active .dp-draw,
    .content-slide.design-process-slide.active .dp-node {
        animation: none !important;
        stroke-dasharray: none !important;
        stroke-dashoffset: 0 !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Hover + focus interactions */
.dp-node:hover,
.dp-node:focus-visible {
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.10));
    transform: scale(1.03);
}

.dp-node:hover .dp-circle,
.dp-node:focus-visible .dp-circle {
    stroke: rgba(255, 255, 255, 0.92);
}

.dp-node:hover .dp-text,
.dp-node:focus-visible .dp-text {
    fill: rgba(255, 215, 0, 0.95);
}

.dp-node:focus-visible {
    outline: none;
}

/* Make nodes visible in case study page (not dependent on active slide) */
.case-study-section .design-process-graph .dp-node {
    opacity: 1;
    transform: scale(1);
    animation: none;
}

.case-study-section .design-process-graph .dp-draw {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none;
}

.principles-heading {
    font-family: 'Handlee', cursive;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 40px;
    margin-bottom: 32px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    width: 100%;
    text-align: center;
}

/* Principles Card Stack Container */
.principles-card-stack-container {
    width: 100%;
    max-width: 1200px; /* allow 4 cards to fit on one row on desktop */
    /* spacing between header and cards is controlled by .principles-heading margin-bottom */
    margin: 0 auto;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    perspective: none;
    overflow: visible; /* avoid clipping rotated cards/glow */
}

/* Principles Cards Row */
.principles-card-stack {
    width: 100%;
    display: flex;
    flex-wrap: nowrap; /* keep 4 cards on a single row */
    gap: 24px;
    align-items: stretch;
    justify-content: center;
    overflow: visible; /* keep rotated corners + glow visible */
    padding: 22px 6px 14px 6px; /* room for rotated corners/glow */
}

.principle-item {
    flex: 1 1 0;
    min-width: 0;
    padding: 25px 30px;
    border: 2.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    position: relative;
    transform-origin: center center;
    /* Chalk glow and hand-drawn effect */
    box-shadow: 
        /* Main border with slight offset for hand-drawn look */
        0.5px 0.5px 0 0 rgba(255, 255, 255, 0.6),
        -0.5px -0.5px 0 0 rgba(255, 255, 255, 0.6),
        1px 1px 0 0 rgba(255, 255, 255, 0.4),
        -1px -1px 0 0 rgba(255, 255, 255, 0.4),
        /* Chalk glow effect */
        0 0 8px rgba(255, 255, 255, 0.15),
        0 0 16px rgba(255, 255, 255, 0.08),
        /* Inner subtle glow */
        inset 0 0 10px rgba(255, 255, 255, 0.05),
        /* Card shadow for depth */
        0 4px 20px rgba(0, 0, 0, 0.5);
    /* Chalk texture blur */
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.12));
    /* Base transform uses per-card rotation var so we can animate/hover cleanly */
    transform: translateY(0) rotate(var(--card-rot, 0deg)) scale(1);
    opacity: 1;
    transition: transform 420ms ease-in-out,
                box-shadow 420ms ease-in-out,
                filter 420ms ease-in-out;
    cursor: none;
    will-change: transform, box-shadow, filter;
    overflow: hidden;
    /* Enter animation (staggered via nth-child delays below)
       Use `backwards` so the animation doesn't keep overriding hover styles after it finishes. */
    animation: principlesCardEnter 720ms ease-in-out backwards;
}

@keyframes principlesCardEnter {
    from {
        opacity: 0;
        transform: translateY(28px) rotate(0deg) scale(0.96);
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(var(--card-rot, 0deg)) scale(1);
        filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.12));
    }
}

/* Card angles (in order): 20, -10, 30, -20) + staggered enter delays */
.principles-card-stack .principle-item:nth-child(1) { --card-rot: 20deg;  animation-delay: 0ms; }
.principles-card-stack .principle-item:nth-child(2) { --card-rot: -10deg; animation-delay: 120ms; }
.principles-card-stack .principle-item:nth-child(3) { --card-rot: 30deg;  animation-delay: 240ms; }
.principles-card-stack .principle-item:nth-child(4) { --card-rot: -20deg; animation-delay: 360ms; }

/* Hover: glow behind + straighten to 0deg */
.principles-card-stack .principle-item:hover {
    transform: translateY(-2px) rotate(0deg) scale(1.02);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.18))
            drop-shadow(0 0 22px rgba(255, 215, 0, 0.14));
    box-shadow:
        0.5px 0.5px 0 0 rgba(255, 255, 255, 0.7),
        -0.5px -0.5px 0 0 rgba(255, 255, 255, 0.7),
        1px 1px 0 0 rgba(255, 255, 255, 0.5),
        -1px -1px 0 0 rgba(255, 255, 255, 0.5),
        0 0 18px rgba(255, 255, 255, 0.22),
        0 0 34px rgba(255, 215, 0, 0.12),
        inset 0 0 10px rgba(255, 255, 255, 0.06),
        0 10px 28px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
    .principle-item {
        transition: none !important;
        animation: none !important;
    }
}

/* Hand-drawn outer border layer with slight blur */
.principle-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    pointer-events: none;
    filter: blur(1px);
    opacity: 0.7;
    /* Slight offset for hand-drawn irregularity */
    transform: translate(0.4px, -0.3px);
}

/* Inner chalk highlight */
.principle-item::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    pointer-events: none;
    opacity: 0.5;
}

.principle-item:last-child {
    border-bottom: 2.5px solid rgba(255, 255, 255, 0.8);
}

.principle-title {
    font-family: 'Handlee', cursive;
    font-size: 26px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.16);
}

.principle-text {
    font-family: 'Handlee', cursive;
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
    max-width: 100%;
}

.intro-title {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    font-family: 'Handlee', cursive;
}

.intro-name {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 10px;
    font-family: 'Handlee', cursive;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.intro-subtitle {
    font-size: 28px;
    color: rgba(255, 215, 0, 0.9);
    margin-bottom: 30px;
    font-family: 'Handlee', cursive;
    font-weight: normal;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.intro-text {
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-family: 'Handlee', cursive;
}

/* Subtle glow highlight for key phrases in intro */
.glow-highlight {
    color: rgba(255, 215, 0, 0.95);
    text-shadow:
        0 0 3px rgba(255, 215, 0, 0.175),
        0 0 7px rgba(255, 215, 0, 0.11),
        0 0 13px rgba(255, 215, 0, 0.06);
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Highlight color without glow (used for separators like '|') */
.pipe-highlight {
    color: rgba(255, 215, 0, 0.95);
    text-shadow: none !important;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .left-section {
        order: 1;
    }

    .right-section {
        order: 2;
    }

    .hero-image-wrapper {
        max-width: 400px;
    }

    .nav-menu {
        gap: 30px;
    }

    .nav-item {
        font-size: 20px;
    }

    .principles-card-stack-container {
        max-width: 100%;
        height: auto;
    }

    /* On narrower screens, keep single row but allow horizontal scroll (no clipping vertically) */
    .principles-card-stack {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 18px; /* room for scrollbar */
    }

    .principle-item {
        flex: 0 0 260px;
        min-width: 260px;
    }
}

@media (max-width: 768px) {
    .blackboard {
        padding: 15px 15px 20px 15px;
    }

    .header {
        margin-bottom: 30px;
    }

    .nav-menu {
        gap: 20px;
    }

    .nav-item {
        font-size: 18px;
        padding: 6px 8px;
    }

    .container {
        gap: 30px;
    }

    .trophies-container {
        gap: 20px;
    }

    .trophy {
        min-width: 100px;
        padding: 15px;
    }

    .trophy-icon {
        font-size: 50px;
    }

    .trophy-label {
        font-size: 16px;
    }

    .intro-title {
        font-size: 28px;
    }

    .intro-name {
        font-size: 36px;
    }

    .intro-text {
        font-size: 18px;
    }

    .principles-card-stack-container {
        max-width: 100%;
        height: auto;
        margin-top: 0;
    }

    .principle-item {
        padding: 20px 25px;
        max-width: 100%;
    }

    .principles-heading {
        font-size: 28px;
        margin-top: 30px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 15px;
    }

    .nav-item {
        font-size: 16px;
        padding: 5px 6px;
    }

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

    .trophy {
        width: 100%;
        max-width: 200px;
    }
}

/* Achievements Section Styles */
.achievements-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-right: 0;
    width: 100%;
}

/* Experience: stack title + subtitle like Achievements layout (no carousel) */
.content-slide.experience-slide {
    align-items: flex-start;
}

.content-slide.experience-slide .right-section {
    /* Align with TV frame's top edge like Achievements section */
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 32px;
    padding-left: 60px;
    padding-right: 60px;
    padding-bottom: 120px;
    gap: 18px;
}

.content-slide.experience-slide .achievements-header {
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 22px;
}

.content-slide.experience-slide .section-title {
    margin-bottom: 0;
    justify-content: flex-start;
    text-align: left;
}

.content-slide.experience-slide .section-subtitle {
    margin: 0;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    text-align: left;
    width: 100%;
}

.experience-body {
    margin: 0 0 18px 0;
    font-family: 'Handlee', cursive;
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
    width: 100%;
    text-align: left;
}

/* Achievements slide: subtitle in header (match intro-name glow, compact height) */
.content-slide.achievements-slide .achievements-header > .section-subtitle {
    height: 32px;
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.section-title {
    font-family: 'Handlee', cursive;
    font-size: 42px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.section-subtitle {
    font-family: 'Handlee', cursive;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0px;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
}

/* Achievements subtitle: align left with accordion + match intro-name glow (no font-size change) */
.content-slide.achievements-slide .section-subtitle {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    text-align: left;
    width: 100%;
    display: block;
}

.carousel-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 170px;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    font-family: 'Handlee', cursive;
    cursor: none;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 1);
}

.carousel-counter {
    font-family: 'Handlee', cursive;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    width: 100%;
}

/* Achievements Carousel */
.achievements-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.achievement-card {
    min-width: 100%;
    width: 100%;
    padding: 0;
}

.card-inner {
    background: transparent;
    padding: 40px 0;
    border-radius: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.achievement-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
}

.achievement-title {
    font-family: 'Handlee', cursive;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.achievement-description {
    font-family: 'Handlee', cursive;
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

/* Achievements Accordion (chalk style, no fills) */
.accordion {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding-bottom: 14px;
}

.accordion-trigger {
    width: 100%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Handlee', cursive;
    font-size: 24px;
    line-height: 1.35;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-align: left;
    cursor: none;
}

.accordion-trigger:hover {
    color: rgba(255, 215, 0, 0.95);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.18);
}

.accordion-title {
    flex: 1 1 auto;
}

/* Make accordion titles match section subtitle styling */
.accordion-trigger .accordion-title {
    font-family: 'Handlee', cursive;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
}

/* Projects accordion: add numbering (scoped so other accordions remain unchanged) */
#projectsAccordion {
    counter-reset: projects-acc;
}

#projectsAccordion .accordion-item {
    counter-increment: projects-acc;
}

#projectsAccordion .accordion-trigger .accordion-title {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
}

#projectsAccordion .accordion-trigger .accordion-title::before {
    content: counter(projects-acc) ".";
    color: rgba(255, 215, 0, 0.95);
    text-shadow:
        0 0 6px rgba(255, 215, 0, 0.25),
        0 0 14px rgba(255, 215, 0, 0.14);
    font-weight: 700;
    flex: 0 0 auto;
}

/* Achievements accordion: trophy icon to the left of each title */
.content-slide.achievements-slide .accordion-trigger .accordion-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0; /* allow text to wrap */
}

.content-slide.achievements-slide .accordion-trigger .accordion-title::before {
    content: "";
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    background: url("Icons/trophy.png") no-repeat center / contain;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.25));
    opacity: 0.95;
}

.accordion-trigger:hover .accordion-title {
    color: rgba(255, 215, 0, 0.95);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.18);
}

/* Open state: keep the active accordion header highlighted (site-wide) */
.accordion-trigger[aria-expanded="true"],
.accordion-item.is-open .accordion-trigger {
    color: rgba(255, 215, 0, 0.95);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.18);
}

.accordion-trigger[aria-expanded="true"] .accordion-title,
.accordion-item.is-open .accordion-trigger .accordion-title {
    color: rgba(255, 215, 0, 0.95);
    text-shadow:
        0 0 6px rgba(255, 215, 0, 0.35),
        0 0 14px rgba(255, 215, 0, 0.22),
        0 0 26px rgba(255, 215, 0, 0.12);
    font-weight: 600;
}

.accordion-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.75);
    transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg);
    border-color: rgba(255, 215, 0, 0.35);
    color: rgba(255, 215, 0, 0.9);
}

.accordion-panel {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.4s ease, opacity 0.25s ease, transform 0.25s ease;
    will-change: max-height;
}

.accordion-item.is-open .accordion-panel {
    padding: 4px 0 0 0;
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .accordion-panel {
        transition: none;
    }
}

.accordion-text {
    margin-top: 10px;
    font-family: 'Handlee', cursive;
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
}

.accordion-text strong {
    color: rgba(255, 255, 255, 0.92);
}

/* Projects: "View Project" button */
.view-project-btn {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Handlee', cursive;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.view-project-btn .view-project-arrow {
    font-size: 18px;
    line-height: 1;
    transform: translateY(-1px);
}

.view-project-btn:hover {
    border-color: rgba(255, 215, 0, 0.55);
    background: rgba(255, 215, 0, 0.07);
    color: rgba(255, 235, 100, 0.95);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.14);
}

.view-project-btn:active {
    transform: translateY(1px);
}

.view-project-btn:focus-visible {
    outline: none;
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.18), 0 0 18px rgba(255, 215, 0, 0.18);
}

.view-project-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.view-project-btn:disabled:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88);
    box-shadow: none;
    transform: none;
}

/* Coming soon wrapper for disabled project buttons */
.view-project-btn-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.view-project-btn-coming-soon {
    font-family: 'Handlee', cursive;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Achievements: "View details" button */
.view-details-btn {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Handlee', cursive;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.view-details-btn .view-details-arrow {
    font-size: 18px;
    line-height: 1;
    transform: translateY(-1px);
}

.view-details-btn:hover {
    border-color: rgba(255, 215, 0, 0.55);
    background: rgba(255, 215, 0, 0.07);
    color: rgba(255, 235, 100, 0.95);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.14);
    transform: translateY(-1px);
}

.view-details-btn:active {
    transform: translateY(1px);
}

.view-details-btn:focus-visible {
    outline: none;
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.18), 0 0 18px rgba(255, 215, 0, 0.18);
}

/* Body text below achievements accordion */
.achievements-body {
    margin-top: 18px;
    font-family: 'Handlee', cursive;
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
}

/* Experience Section */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/* Projects Section */
.projects-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 10px;
}

.project-card {
    min-height: 92px;
    padding: 18px 18px;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Handlee', cursive;
    font-size: 20px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.06),
        inset 0 0 12px rgba(255, 255, 255, 0.04);
    transition: transform 260ms ease-in-out, box-shadow 260ms ease-in-out, border-color 260ms ease-in-out;
    cursor: none;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.35);
    box-shadow:
        0 0 16px rgba(255, 255, 255, 0.10),
        0 0 28px rgba(255, 215, 0, 0.12),
        inset 0 0 14px rgba(255, 255, 255, 0.05);
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.experience-item {
    padding: 0;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.experience-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.exp-role {
    font-family: 'Handlee', cursive;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 10px;
    line-height: 1.4;
}

.exp-company {
    font-family: 'Handlee', cursive;
    font-size: 22px;
    color: rgba(255, 215, 0, 0.9);
    margin-bottom: 8px;
    line-height: 1.4;
}

.exp-domain {
    font-family: 'Handlee', cursive;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.4;
}

.exp-projects {
    font-family: 'Handlee', cursive;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    list-style: none;
    padding-left: 0;
}

.exp-projects li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
}

.exp-projects li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255, 215, 0, 0.8);
}

/* Skills Section */
.skills-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    max-width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
}

.skill-category {
    padding: 20px;
    width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.skill-category-title {
    font-family: 'Handlee', cursive;
    font-size: 24px;
    color: rgba(255, 215, 0, 0.9) !important;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.skill-text {
    font-family: 'Handlee', cursive;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 10px;
    line-height: 1.6;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Values Section */
.values-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: 100%;
}

.value-item {
    padding: 15px 0;
    width: 100%;
}

.value-title {
    font-family: 'Handlee', cursive;
    font-size: 26px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 10px;
}

.value-desc {
    font-family: 'Handlee', cursive;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

/* Contact Section */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

/* Contact Slide - Completely self-contained layout (no reuse of left-section/right-content-container) */
.content-slide.contact-slide {
    align-items: flex-start;
    justify-content: flex-start;
}

.content-slide.contact-slide .contact-section-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 80px 60px 80px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    box-sizing: border-box;
    min-height: fit-content;
}

/* Main content: Hero image (left) + Values grid (right) */
.contact-main-content {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-left-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 653px;
    position: relative;
}

.contact-hero-image {
    width: 391px;
    max-width: 100%;
    height: 517px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: none;
    transform-origin: center;
    will-change: transform;
    animation: contactHeroBreathe 7.5s ease-in-out infinite;
}

/* Compact contact card overlay (matches the red-highlighted area) */
.contact-mini-card {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    transform: none;
    width: auto;
    background: rgba(0, 0, 0, 1);
    border: 2.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
    row-gap: 10px;
    align-items: center;
    box-shadow:
        0.5px 0.5px 0 0 rgba(255, 255, 255, 0.55),
        -0.5px -0.5px 0 0 rgba(255, 255, 255, 0.55),
        0 0 10px rgba(255, 255, 255, 0.10),
        inset 0 0 10px rgba(255, 255, 255, 0.04),
        0 10px 26px rgba(0, 0, 0, 0.55);
}

.contact-mini-text {
    font-family: 'Handlee', cursive;
    font-size: 18px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.contact-mini-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: rgba(255, 255, 255, 0.88);
}

.contact-mini-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.contact-mini-value {
    min-width: 0;
}

/* Align the right column item nicely within the 2-col grid */
.contact-mini-card .contact-mini-text:nth-of-type(2) {
    justify-self: end;
}

.contact-mini-card .linkedin-btn {
    justify-self: end;
}

@keyframes contactHeroBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
    .contact-hero-image {
        animation: none !important;
    }
}

.contact-right-values {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.contact-kicker {
    font-family: 'Handlee', cursive;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.75);
    text-align: left;
    margin-bottom: 10px;
}

.contact-title {
    font-family: 'Handlee', cursive;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
    margin: 0 0 30px 0;
    text-align: left;
}

/* Values Grid (2x2) */
.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

.value-card {
    position: relative;
    padding: 28px 24px;
    background: rgba(0, 0, 0, 0.85);
    border: 2.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    overflow: hidden;
    cursor: none;
    transition: transform 0.35s ease-in-out, box-shadow 0.35s ease-in-out;
    /* Chalk-style effects */
    box-shadow: 
        0.5px 0.5px 0 0 rgba(255, 255, 255, 0.6),
        -0.5px -0.5px 0 0 rgba(255, 255, 255, 0.6),
        0 0 8px rgba(255, 255, 255, 0.15),
        0 0 16px rgba(255, 255, 255, 0.08),
        inset 0 0 10px rgba(255, 255, 255, 0.05),
        0 4px 20px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.12));
}

.value-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0.5px 0.5px 0 0 rgba(255, 255, 255, 0.7),
        -0.5px -0.5px 0 0 rgba(255, 255, 255, 0.7),
        0 0 18px rgba(255, 255, 255, 0.22),
        0 0 34px rgba(255, 215, 0, 0.12),
        inset 0 0 10px rgba(255, 255, 255, 0.06),
        0 10px 28px rgba(0, 0, 0, 0.55);
}

/* Values card background layer: hanging stars (generated via JS) */
.value-card-bg-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden; /* keep falling stars clipped to the card */
    border-radius: inherit;
    z-index: 0;
}

.value-card-bg-pattern .hanging-star {
    position: absolute;
    top: 0;
    height: 100%;
    width: 40px; /* give the star real space to render */
    transform: translateX(-50%);
    pointer-events: none;
}

.value-card-bg-pattern .thread {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 12px; /* JS overrides */
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.55),
        rgba(255, 255, 255, 0.12)
    );
    opacity: 0.2;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.value-card-bg-pattern .star {
    position: absolute;
    left: 50%;
    top: 12px; /* JS overrides */
    width: 14px; /* JS overrides */
    height: 14px; /* JS overrides */
    transform: translateX(-50%);
    opacity: 0.2;
    filter:
        drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35))
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.16));
    display: block;
    z-index: 2;
    transform-origin: 50% 0%;
}

.value-card-bg-pattern .star svg {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.value-card-bg-pattern .star svg path {
    fill: white !important;
    stroke: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .value-card-bg-pattern .thread,
    .value-card-bg-pattern .star {
        transition: none !important;
    }
}

.value-card .value-title {
    font-family: 'Handlee', cursive;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.16);
    position: relative;
    z-index: 2;
}

.value-card .value-emoji {
    display: inline-block;
    margin-right: 8px;
    transform: translateY(1px);
}

.value-card .value-desc {
    font-family: 'Handlee', cursive;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

/* Full-width Contact Info Card */
.contact-info-card {
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    border: 2.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 40px 50px;
    display: flex;
    gap: 96px;
    box-shadow: 
        0.5px 0.5px 0 0 rgba(255, 255, 255, 0.6),
        -0.5px -0.5px 0 0 rgba(255, 255, 255, 0.6),
        0 0 8px rgba(255, 255, 255, 0.15),
        0 0 16px rgba(255, 255, 255, 0.08),
        inset 0 0 10px rgba(255, 255, 255, 0.05),
        0 4px 20px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.12));
}

.contact-details {
    display: flex;
    flex-direction: row;
    gap: 69px;
    margin: 8px 0 22px 0;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-label {
    font-family: 'Handlee', cursive;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.65);
}

.contact-value {
    font-family: 'Handlee', cursive;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.92);
    word-break: break-word;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: fit-content;
    height: 44px;
    padding: 10px 18px; /* keep pill feel even without label */
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    text-decoration: none;
    font-family: 'Handlee', cursive;
    font-size: 20px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    transition: transform 260ms ease-in-out, box-shadow 260ms ease-in-out, background 260ms ease-in-out;
    cursor: none;
}

.linkedin-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: #111111;
}

.linkedin-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.linkedin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 1024px) {
    .content-slide.contact-slide .contact-section-wrapper {
        padding: 80px 30px 50px 30px;
    }

    .contact-main-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-hero-image {
        max-width: 100%;
    }

    /* On single-column layout, place the contact card below the hero image */
    .contact-mini-card {
        position: static;
        transform: none;
        width: 100%;
        max-width: 520px;
        margin: 16px auto 0 auto;
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-info-card {
        padding: 30px 35px;
    }
}

@media (max-width: 768px) {
    .content-slide.contact-slide .contact-section-wrapper {
        padding: 60px 20px 40px 20px;
    }

    .contact-info-card {
        padding: 25px 20px;
    }

    .contact-title {
        font-size: 32px;
    }

    .value-card {
        padding: 22px 20px;
    }

    .value-card .value-title {
        font-size: 22px;
    }

    .value-card .value-desc {
        font-size: 16px;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    left: 0;
    margin-left: 0;
    padding: 0;
}

.contact-icon {
    font-size: 28px;
    min-width: 40px;
    text-align: center;
}

.contact-link {
    font-family: 'Handlee', cursive;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: rgba(255, 215, 0, 0.9);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.contact-cta {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-text {
    font-family: 'Handlee', cursive;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    text-align: center;
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-arrow {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Handlee', cursive;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.scroll-text {
    font-family: 'Handlee', cursive;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    text-transform: lowercase;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Case Study Page */
body.case-study-page {
    font-family: 'Handlee', cursive;
    overflow-y: auto;
    background: #0a0a0a;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        );
    color: rgba(255, 255, 255, 0.9);
}

.case-study {
    max-width: 1200px;
    margin: 0 auto;
    padding: 170px 60px 120px;
}

.case-study-hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 60px;
}

.case-study-kicker {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    color: rgba(255, 215, 0, 0.85);
}

.case-study-title {
    font-size: clamp(38px, 5vw, 60px);
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}

.case-study-subtitle {
    font-size: 22px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    max-width: 760px;
}

.case-study-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.case-study-meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.case-study-meta-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
}

.case-study-meta-value {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.92);
}

.case-study-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.case-study-stepper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    padding: 20px 40px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 40px;
}

.stepper-back-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 18px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.stepper-back-link:hover {
    color: rgba(255, 235, 120, 0.95);
}

.stepper-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 0;
}

.case-study-clock {
    font-family: 'Handlee', cursive;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    flex-shrink: 0;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.stepper-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.stepper-item.active .stepper-circle {
    background: rgba(255, 215, 0, 0.18);
    border-color: rgba(255, 215, 0, 0.8);
    color: rgba(255, 235, 120, 0.98);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
}

.stepper-item:hover .stepper-circle {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}

.stepper-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    max-width: 120px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.stepper-item.active .stepper-label {
    color: rgba(255, 235, 120, 0.95);
}

.stepper-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.15) 100%
    );
    margin: 0 -10px;
    position: relative;
    top: -18px;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}






.case-study-section {
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.case-study-heading {
    font-size: clamp(26px, 3vw, 36px);
    color: rgba(255, 255, 255, 0.95);
}

.case-study-subheading {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.case-study-inline-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.case-study-body {
    font-size: 19px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
}

.case-study-inline-heading {
    color: rgba(255, 215, 0, 0.95);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.18);
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.case-study-nodes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 32px;
}

@media (max-width: 768px) {
    .case-study-nodes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.case-study-card {
    padding: 20px 22px;
    border-radius: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

.case-study-card-icon {
    width: 215px;
    height: 121px;
    margin-bottom: 16px;
    object-fit: contain;
}

.case-study-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.95);
}

.case-study-card p {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.case-study-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.case-study-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.case-study-list li {
    position: relative;
    padding-left: 18px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.case-study-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(255, 215, 0, 0.8);
}

.case-study-ordered-list {
    list-style-type: decimal;
    padding-left: 24px;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.case-study-ordered-list li {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    padding-left: 8px;
}

.case-study-ordered-list li::marker {
    color: rgba(255, 215, 0, 0.8);
    font-weight: 600;
}

.case-study-nested-list {
    margin-top: 8px;
    margin-left: 20px;
    padding-left: 0;
}

.case-study-list ol {
    list-style-type: decimal;
    padding-left: 20px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.case-study-list ol li {
    padding-left: 8px;
}

.case-study-list ol li::before {
    content: none;
}

.case-study-media {
    border-radius: 18px;
    border: 1.5px dashed rgba(255, 255, 255, 0.25);
    padding: 34px;
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.case-study-media img {
    width: 100%;
    height: auto;
    display: block;
}

.case-study-scrollable-frame {
    width: 100%;
    max-width: 1000px;
    height: 660px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    padding: 0;
    background: rgba(255, 255, 255, 0.04);
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.case-study-scrollable-frame img {
    height: 100%;
    width: auto;
    max-width: none;
    display: block;
    object-fit: contain;
}

.case-study-video-frame {
    width: 100%;
    max-width: 1000px;
    height: 660px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    padding: 0;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.case-study-video-player {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.case-study-pannable-frame {
    width: 100%;
    max-width: 1000px;
    height: 660px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    padding: 0;
    background: rgba(255, 255, 255, 0.04);
    overflow: auto;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    transition: none;
    animation: none;
}

.case-study-pannable-frame:active {
    cursor: grabbing;
}

.case-study-pannable-frame img {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    transition: none;
    animation: none;
}

/* Limitations Layout */
.case-study-limitation-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 20px;
}

.case-study-limitation-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.case-study-limitation-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-limitation-media img {
    width: 240px;
    height: auto;
    display: block;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .case-study-limitation-item {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .case-study-limitation-media {
        order: -1;
    }
}

/* User Flows Section */
.user-flows-hint {
    margin-top: 24px;
    margin-bottom: 16px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.user-flows-buttons-horizontal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0px;
    row-gap: 8px;
    margin-top: 0px;
    margin-bottom: 32px;
    justify-content: flex-start;
}

.user-flows-video-full {
    width: 100%;
}

.flow-button {
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.flow-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateX(4px);
}

.flow-button.active {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.6);
    color: rgba(255, 235, 120, 0.98);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.flow-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
}

.flow-button:disabled:hover {
    transform: none;
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.flow-arrow {
    text-align: center;
    color: rgba(255, 215, 0, 0.6);
    font-size: 20px;
    font-weight: bold;
    padding: 4px 0;
    margin: 0 auto;
}

.flow-arrow-horizontal {
    color: rgba(255, 215, 0, 0.6);
    font-size: 20px;
    font-weight: bold;
    padding: 0 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.user-flows-video {
    width: 100%;
}

.case-study-video-frame-large {
    width: 100%;
    max-width: 100%;
    height: 720px;
}

.user-flow-description {
    margin-top: 24px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-flow-description p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 968px) {
    .user-flows-buttons-horizontal {
        gap: 6px;
    }
    
    .flow-button {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .flow-arrow-horizontal {
        font-size: 16px;
        padding: 0 2px;
    }
    
    .case-study-video-frame-large {
        height: 500px;
    }
}

/* Hero Use Case Layout */
.hero-usecase-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 20px;
}

.hero-usecase-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero-usecase-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-usecase-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-usecase-image {
    width: 256px;
    height: 100%;
    border-radius: 18px;
    box-shadow: none;
}

@media (max-width: 900px) {
    .hero-usecase-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Key Personas Table */
.personas-table {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 20px;
}

.persona-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    padding: 24px;
    border-radius: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
    align-items: start;
}

.persona-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.avatar-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.persona-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.persona-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.persona-title-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.persona-title-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.persona-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 215, 0, 0.8);
    font-weight: 600;
}

.persona-value {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
    .persona-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .avatar-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .persona-title-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.case-study-media.case-study-video {
    padding: 48px 34px;
}

.case-study-callout {
    padding: 24px 28px;
    border-radius: 18px;
    background: rgba(255, 215, 0, 0.08);
    border: 1.5px solid rgba(255, 215, 0, 0.25);
}

.case-study-callout-text {
    font-size: 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

.case-study-callout-caption {
    margin-top: 10px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.case-study-step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 10px;
}

.case-study-step-nav__spacer {
    flex: 1;
}

.case-study-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.case-study-metric {
    padding: 18px 20px;
    border-radius: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 28px;
    color: rgba(255, 235, 100, 0.95);
}

.metric-label {
    display: block;
    margin-top: 8px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
    .case-study {
        padding: 180px 24px 90px;
    

    
    

    .case-study-stepper {
        padding: 16px 20px;
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .stepper-container {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }
    
    .case-study-clock {
        align-self: flex-end;
        font-size: 16px;
        padding: 6px 12px;
    }

    .stepper-item {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
    }

    .stepper-circle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .stepper-label {
        text-align: left;
        max-width: none;
        flex: 1;
    }

    .stepper-line {
        display: none;
    }
}

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