@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=VT323&display=swap');

:root {
    /* Fallout / Retro-Futurist 60s Palette */
    /* Warm dark bakground (Vacuum tube init) */
    --bg-dark: #12100e;
    --bg-light: #24201b;

    /* Pip-Boy Amber & Teal (softer than green) */
    --amber: #ffb642;
    --green-phosphor: #5ec9a5;
    /* Softer teal instead of bright green */

    /* Secondary accents */
    --off-white: #e6e1cf;
    --muted-brown: #5d4e3e;

    /* Mapping to functional vars */
    --fg: var(--off-white);
    --primary: var(--amber);
    --highlight: var(--green-phosphor);

    /* Keeping some variety but focused */
    --red: #ff4433;
    --blue: #4488ff;

    /* Map old variables to new palette */
    --yellow: var(--amber);
    --orange: #ff8833;
    --aqua: var(--green-phosphor);
    --green: var(--green-phosphor);
    --purple: #d88fd8;

    --glass: rgba(255, 182, 66, 0.05);
    /* Amber glass */
    --scanline-color: rgba(20, 15, 10, 0.5);

    --border-radius: 12px;
    /* Tech card subtle border color used across cards */
    --tech-card-border: var(--bg-light);
    /* Diagram container background (outer) — use tech card gray */
    --diagram-container-bg: var(--tech-card-border);
}

/* Global Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(94, 201, 165, 0.2);
    border: 1px solid var(--aqua);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(94, 201, 165, 0.5);
    box-shadow: 0 0 10px var(--aqua);
}

* {
    box-sizing: border-box;
    /* Soften edges slightly for retro feel */
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Space Mono', monospace;
    background: var(--bg-dark);
    color: var(--fg);
    overflow-x: hidden;
    height: 100%;
    scroll-padding-top: 100px;
    /* Prevent fixed header overlap on anchor scroll */
    scroll-behavior: smooth;
}

/* CRT & Scanline Effects */
.crt-container {
    position: relative;
    min-height: 100vh;
}

@keyframes textShadow {
    0% {
        text-shadow: 0.4389924193300864px 0 1px rgba(255, 182, 66, 0.5), -0.4389924193300864px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }

    5% {
        text-shadow: 2.7928974010788217px 0 1px rgba(255, 182, 66, 0.5), -2.7928974010788217px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }

    10% {
        text-shadow: 0.02956275843481219px 0 1px rgba(255, 182, 66, 0.5), -0.02956275843481219px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }

    15% {
        text-shadow: 0.40218538552878136px 0 1px rgba(255, 182, 66, 0.5), -0.40218538552878136px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }

    20% {
        text-shadow: 3.4794037899852017px 0 1px rgba(255, 182, 66, 0.5), -3.4794037899852017px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }

    25% {
        text-shadow: 1.6125630401149584px 0 1px rgba(255, 182, 66, 0.5), -1.6125630401149584px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }

    30% {
        text-shadow: 0.7015590085143956px 0 1px rgba(255, 182, 66, 0.5), -0.7015590085143956px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }

    35% {
        text-shadow: 3.896914047650351px 0 1px rgba(255, 182, 66, 0.5), -3.896914047650351px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }

    40% {
        text-shadow: 3.870905614848819px 0 1px rgba(255, 182, 66, 0.5), -3.870905614848819px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }

    45% {
        text-shadow: 2.231056963361899px 0 1px rgba(255, 182, 66, 0.5), -2.231056963361899px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }

    50% {
        text-shadow: 0.08084290417898504px 0 1px rgba(255, 182, 66, 0.5), -0.08084290417898504px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }

    55% {
        text-shadow: 2.3758461067427543px 0 1px rgba(255, 182, 66, 0.5), -2.3758461067427543px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }

    60% {
        text-shadow: 2.202193051050636px 0 1px rgba(255, 182, 66, 0.5), -2.202193051050636px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }

    65% {
        text-shadow: 2.8638780614874975px 0 1px rgba(255, 182, 66, 0.5), -2.8638780614874975px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }

    70% {
        text-shadow: 0.48874025155497314px 0 1px rgba(255, 182, 66, 0.5), -0.48874025155497314px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }

    75% {
        text-shadow: 1.8948491305757957px 0 1px rgba(255, 182, 66, 0.5), -1.8948491305757957px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }

    80% {
        text-shadow: 0.0833037308038857px 0 1px rgba(255, 182, 66, 0.5), -0.0833037308038857px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }

    85% {
        text-shadow: 0.09769827255241735px 0 1px rgba(255, 182, 66, 0.5), -0.09769827255241735px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }

    90% {
        text-shadow: 3.443339761481782px 0 1px rgba(255, 182, 66, 0.5), -3.443339761481782px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }

    95% {
        text-shadow: 2.1841838852799786px 0 1px rgba(255, 182, 66, 0.5), -2.1841838852799786px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }

    100% {
        text-shadow: 2.6208764473832513px 0 1px rgba(255, 182, 66, 0.5), -2.6208764473832513px 0 1px rgba(94, 201, 165, 0.3), 0 0 3px;
    }
}

@keyframes buttonPulse {

    0%,
    100% {
        box-shadow: 6px 6px 0 var(--fg), 0 0 0 rgba(255, 182, 66, 0);
    }

    50% {
        box-shadow: 6px 6px 0 var(--fg), 0 0 20px rgba(255, 182, 66, 0.6);
    }
}

@keyframes buttonSlide {

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

    50% {
        transform: translateX(4px);
    }
}

@keyframes flicker {
    0% {
        opacity: 0.27861;
    }

    5% {
        opacity: 0.34769;
    }

    10% {
        opacity: 0.23604;
    }

    15% {
        opacity: 0.90626;
    }

    20% {
        opacity: 0.18128;
    }

    25% {
        opacity: 0.83891;
    }

    30% {
        opacity: 0.65583;
    }

    35% {
        opacity: 0.67807;
    }

    40% {
        opacity: 0.26559;
    }

    45% {
        opacity: 0.84693;
    }

    50% {
        opacity: 0.96019;
    }

    55% {
        opacity: 0.08594;
    }

    60% {
        opacity: 0.20313;
    }

    65% {
        opacity: 0.71988;
    }

    70% {
        opacity: 0.53455;
    }

    75% {
        opacity: 0.37288;
    }

    80% {
        opacity: 0.71428;
    }

    85% {
        opacity: 0.70419;
    }

    90% {
        opacity: 0.7003;
    }

    95% {
        opacity: 0.36108;
    }

    100% {
        opacity: 0.24387;
    }
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom,
            var(--scanline-color) 50%,
            transparent 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 999;
    opacity: 0.15;
}

/* Scanline flicker animation could go here but keeping it simpler for perf */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    padding: 15px 5%;
    background: rgba(40, 40, 40, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 182, 66, 0.2);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav>a {
    text-decoration: none;
}

.brand {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo {
    height: 36px;
    width: auto;
    image-rendering: pixelated;
    border-radius: 4px;
    filter: drop-shadow(0 0 5px rgba(255, 182, 66, 0.3));
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--fg);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    background: var(--yellow);
    color: var(--bg-dark);
    border-color: var(--yellow);
    box-shadow: 4px 4px 0 var(--orange);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
    padding: 0;
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background: var(--amber);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
    position: relative;
    transform-origin: center;
    /* Rotate around center */
}

/* 
   Math for alignment:
   Height 25px. 3 bars.
   With space-around, bars are roughly at top, middle, bottom.
   To make an X, we need them to meet in the exact middle.
   Since absolute positioning isn't used, we translate Y to overlap.
   Rough estimate: 
   Top bar moves down ~8px
   Bottom bar moves up ~8px
   Then rotate.
*/

.burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.burger-menu.active span:nth-child(3) {
    /* Translate UP to meet the top bar */
    transform: translateY(-8px) rotate(-45deg);
}




.window-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.window-btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

/* Hover on container reveals buttons */
.hero-content:hover .window-btn,
.card:hover .window-btn {
    opacity: 1;
    transform: scale(1);
}

/* Close button - Red */
.window-btn.close {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.window-btn.close::before,
.window-btn.close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 2px;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.window-btn.close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.window-btn.close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.window-btn.close:hover::before,
.window-btn.close:hover::after {
    opacity: 1;
}

.window-btn.close:hover {
    background: linear-gradient(135deg, #ff5252, #d84545);
}

/* Minimize button - Amber */
.window-btn.minimize {
    background: linear-gradient(135deg, var(--amber), #e6a82e);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.window-btn.minimize::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 2px;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.window-btn.minimize:hover::before {
    opacity: 1;
}

.window-btn.minimize:hover {
    background: linear-gradient(135deg, #e6a82e, #d49620);
}

/* Maximize button - Teal */
.window-btn.maximize {
    background: linear-gradient(135deg, var(--aqua), #4db896);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.window-btn.maximize::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 7px;
    height: 7px;
    border: 2px solid rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.window-btn.maximize:hover::before {
    opacity: 1;
}

.window-btn.maximize:hover {
    background: linear-gradient(135deg, #4db896, #3da07d);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    filter: sepia(0.3) hue-rotate(10deg);
    z-index: 0;
}

.hero-left {
    display: none;
    /* Hide the separate image box */
}

.hero-art {
    display: none;
}

.hero-right {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
}

.hero-content {
    background: rgba(18, 16, 14, 0.85);
    backdrop-filter: blur(10px);
    padding: 60px;
    position: relative;
    max-width: 800px;
    width: 100%;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--amber), var(--green-phosphor), var(--amber));
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
}

h1 {
    font-family: 'VT323', monospace;
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 0.9;
    margin: 0 0 20px;
    color: var(--amber);
    text-shadow:
        0 0 10px rgba(255, 182, 66, 0.8),
        0 0 20px rgba(255, 182, 66, 0.6),
        0 0 30px rgba(255, 182, 66, 0.4),
        2px 2px 0 rgba(0, 0, 0, 0.5);
}

.lead {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    color: var(--fg);
}

/* Update CTA Row to be chunky */
.cta-row {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

.btn {
    display: inline-block;
    padding: 14px 24px;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    background: var(--aqua);
    color: var(--bg-dark);
    border: none;
    box-shadow: inset 0 0 0 2px rgba(230, 225, 207, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 var(--fg), 0 0 20px rgba(94, 201, 165, 0.5);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0 var(--fg);
}

.cta-row {
    display: flex;
    gap: 20px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn.ghost {
    background: transparent;
    color: var(--aqua);
    box-shadow: inset 0 0 0 2px var(--aqua);
    border: none;
}

.btn.ghost:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 var(--aqua), 0 0 20px rgba(94, 201, 165, 0.4);
    background: rgba(94, 201, 165, 0.1);
}

.tags {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding: 0;
    list-style: none;
}

.tags li {
    font-size: 0.9rem;
    background: var(--bg-light);
    border: none;
    box-shadow: inset 0 0 0 1px rgba(230, 225, 207, 0.2);
    padding: 6px 12px;
    color: var(--orange);
}

/* About Section */
.about,
.projects,
.contact {
    padding: 100px 10%;
    position: relative;
}

.about {
    background: var(--bg-dark);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    border: 1px solid var(--amber);
    opacity: 0.5;
}

.about-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
    /* Reverted to center as requested */
    max-width: 1200px;
    margin: 0 auto;
}

.about-photo {
    position: relative;
    /* Reverted sticky */
}

.about-photo img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 3px solid var(--amber);
    filter: sepia(0.1) contrast(1.05);
}

.about-content h2 {
    font-family: 'VT323', monospace;
    font-size: 3rem;
    color: var(--amber);
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 10px;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--amber),
            var(--aqua),
            var(--amber));
    box-shadow: 0 0 10px var(--amber);
}

/* Roadmap Timeline */
.roadmap-container {
    padding: 100px 2rem 60px;
    max-width: 1200px;
    margin: 0 auto;
    scroll-margin-top: 80px;
    position: relative;
    padding-bottom: 50px;
}

.roadmap-title {
    text-align: center;
    font-family: 'VT323', monospace;
    font-size: 2.8rem;
    color: var(--amber);
    margin-bottom: 60px;
    text-shadow: 0 0 12px rgba(255, 182, 66, 0.5);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.roadmap-container .timeline {
    position: relative;
    padding: 0;
}

.roadmap-container .timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
            transparent 0%,
            var(--amber) 5%,
            var(--aqua) 95%,
            transparent 100%);
    transform: translateX(-50%);
    opacity: 0.6;
}

.roadmap-container .timeline-item {
    width: 100%;
    margin-bottom: 60px;
    position: relative;
    display: flex;
}

.roadmap-container .timeline-dot {
    position: absolute;
    left: 50%;
    top: 5px;
    /* Width 14px (border-box) means total width is 14px. Center is 7px. */
    transform: none;
    margin-left: -7px;
    width: 14px;
    height: 14px;
    background: var(--bg-dark);
    border: 2px solid var(--amber);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 15px var(--amber);
}

.roadmap-container .timeline-content {
    width: 42%;
    padding: 25px;
    background: rgba(30, 25, 20, 0.7);
    border: 1px solid rgba(255, 182, 66, 0.2);
    border-radius: var(--border-radius);
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
    position: relative;
}

.roadmap-container .timeline-content:hover {
    border-color: var(--amber);
    box-shadow: 0 0 20px rgba(255, 182, 66, 0.2);
    transform: scale(1.02);
}

.roadmap-container .timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.roadmap-container .timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.roadmap-container .timeline-content h4 {
    margin: 5px 0 10px;
    color: var(--amber);
    font-size: 1.4rem;
    font-family: 'VT323', monospace;
    letter-spacing: 1px;
}

.roadmap-container .timeline-content .date {
    display: block;
    font-size: 0.85rem;
    color: var(--aqua);
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Space Mono', monospace;
}

.roadmap-container .timeline-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--off-white);
    opacity: 0.9;
}

/* Animations for Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specific item animation offsets */
.roadmap-container .timeline-item:nth-child(odd).reveal {
    transform: translateX(-30px);
}

.roadmap-container .timeline-item:nth-child(even).reveal {
    transform: translateX(30px);
}

.roadmap-container .timeline-item.visible {
    transform: translateX(0);
}

/* Responsive adjustment for roadmap */
@media (max-width: 992px) {
    .roadmap-container .timeline-content {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .roadmap-container .timeline::before {
        left: 20px;
        transform: none;
    }

    .roadmap-container .timeline-item {
        justify-content: flex-start !important;
        padding-left: 45px;
    }

    .roadmap-container .timeline-dot {
        left: 20px;
        transform: translateX(-50%);
    }

    .roadmap-container .timeline-content {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .roadmap-container .timeline-item:nth-child(odd).reveal,
    .roadmap-container .timeline-item:nth-child(even).reveal {
        transform: translateY(30px);
    }
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--fg);
}

.about-content strong {
    color: var(--amber);
}

.about-content .btn {
    margin-top: 20px;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            var(--amber) 20%,
            var(--aqua) 50%,
            var(--amber) 80%,
            transparent);
    opacity: 0.5;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    font-family: 'VT323', monospace;
    font-size: 3rem;
    color: var(--aqua);
    margin: 0 0 40px;
    text-align: center;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    width: 100%;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg,
            var(--aqua),
            var(--amber),
            var(--aqua));
    box-shadow: 0 0 10px var(--aqua);
}

.contact-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--fg);
    text-align: center;
}

.contact-info {
    background: var(--bg-dark);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow:
        inset 0 0 0 2px rgba(94, 201, 165, 0.3),
        0 0 30px rgba(94, 201, 165, 0.2);
    position: relative;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--aqua), var(--amber), var(--aqua));
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.2;
    filter: blur(8px);
}

.contact-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(230, 225, 207, 0.1);
    transition: all 0.3s ease;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    padding-left: 10px;
    background: rgba(94, 201, 165, 0.05);
}

.contact-label {
    display: block;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    color: var(--amber);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.contact-label i {
    margin-right: 10px;
    color: var(--amber);
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: var(--fg);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    display: inline-block;
}

.contact-item a:hover {
    color: var(--aqua);
    transform: translateX(5px);
}

/* Projects Section */
.projects {
    background: var(--bg-light);
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            var(--amber) 20%,
            var(--aqua) 50%,
            var(--amber) 80%,
            transparent);
    opacity: 0.5;
}

.projects h2 {
    font-family: 'VT323', monospace;
    font-size: 3rem;
    color: var(--green);
    display: inline-block;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.projects h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--green),
            var(--aqua),
            var(--green));
    box-shadow: 0 0 10px var(--green);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: var(--bg-dark);
    min-height: 200px;
    border: none;
    box-shadow: inset 0 0 0 2px rgba(230, 225, 207, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--blue);
    position: relative;
    transition: all 0.2s;
}

.card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 var(--purple), inset 0 0 0 2px var(--aqua);
}

.site-footer {
    padding: 40px 120px;
    background: var(--bg-dark);
    position: relative;
    color: var(--bg-light);
    /* faint text */
    text-align: center;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--amber) 30%,
            var(--aqua) 50%,
            var(--amber) 70%,
            transparent);
    opacity: 0.4;
}

.site-footer p {
    color: var(--fg);
    opacity: 0.5;
}

/* Break earlier for clearer reading flow */
@media (max-width: 1150px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-photo {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-content h2::after {
        left: 50%;
        transform: translateX(-50%);
        width: 150px;
    }
}

/* Responsive */
@media (max-width: 920px) {
    .hero {
        padding: 120px 5% 60px;
    }

    .hero-content {
        padding: 40px 30px;
    }

    .about,
    .projects,
    .contact {
        padding: 80px 5%;
    }

    .about-photo {
        max-width: 200px;
    }

    .site-footer {
        padding: 40px 5%;
    }
}

@media (max-width: 768px) {
    .cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    .tags {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cta-row {
        justify-content: center;

    }
}

/* Lush Cave Menu Styles (Mobile) */
@media (max-width: 768px) {

    /* Pixel Art Decorations - Lush Cave Theme */
    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 180px;
        background-image: url('../images/lush_cave_header-removebg-preview.png');
        background-size: 100% auto;
        background-position: bottom center;
        background-repeat: no-repeat;
        opacity: 1;
        pointer-events: none;
        z-index: 1550;
        filter: drop-shadow(0 0 10px rgba(94, 201, 165, 0.4));
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.4s ease;
        margin-bottom: 20px;
        position: relative;
        z-index: 1600;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links a {
        display: block;
        padding: 10px 0;
        font-family: 'VT323', monospace;
        font-size: 2.2rem;
        color: var(--amber);
        /* Keeping amber text as requested */
        background: transparent;
        transition: all 0.3s;
        text-shadow: 0 0 5px rgba(255, 182, 66, 0.3);
        position: relative;
        border: none;
        clip-path: none;
    }

    .nav-links a:hover {
        color: var(--aqua);
        transform: scale(1.1) rotate(2deg);
        text-shadow: 0 0 15px var(--aqua);
        background: transparent;
        box-shadow: none;
    }
}

@media (max-width: 520px) {
    h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    .hero {
        padding-top: 130px;
    }

    .hero-content {
        padding: 40px 20px 25px;
    }

    .window-controls {
        top: 10px;
        right: 10px;
        gap: 5px;
    }

    .window-btn {
        width: 12px;
        height: 12px;
        opacity: 0.6;
    }

    .about-content h2,
    .projects h2,
    .contact h2 {
        font-size: 2rem;
    }

    .contact-info {
        padding: 30px 15px;
    }

    .modal-close,
    .summary-close {
        top: 8px;
        right: 12px;
        font-size: 30px;
    }

    .taskbar {
        padding: 5px 15px;
        height: 50px;
        gap: 10px;
    }

    .taskbar-tab {
        padding: 0 12px;
        font-size: 0.8rem;
        max-width: 120px;
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 1.8rem;
    }
}

/* Project Page Styles */
.project-page {
    padding: 120px 60px 60px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.project-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid rgba(230, 225, 207, 0.1);
}

.project-header h1 {
    font-family: 'VT323', monospace;
    font-size: 4rem;
    color: var(--amber);
    margin: 0 0 10px;
    text-shadow: 0 0 20px rgba(255, 182, 66, 0.5);
}

.project-subtitle {
    font-size: 1.5rem;
    color: var(--aqua);
    margin: 0 0 30px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.meta-item {
    background: var(--bg-light);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(230, 225, 207, 0.2);
    font-size: 0.95rem;
}

.meta-item a {
    color: var(--aqua);
    text-decoration: none;
    border-bottom: 1px solid rgba(94, 201, 165, 0.3);
    transition: all 0.2s ease;
}

.meta-item a:hover {
    color: var(--amber);
    border-bottom-color: var(--amber);
    text-shadow: 0 0 8px var(--amber);
}

.project-section {
    margin-bottom: 60px;
}

.project-section h2 {
    font-family: 'VT323', monospace;
    font-size: 2.5rem;
    color: var(--aqua);
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 10px;
}

.project-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--aqua), transparent);
}

.project-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--fg);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    padding: 8px 0 8px 25px !important;
    position: relative;
    line-height: 1.6;
}

.feature-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--amber);
    font-size: 1.1rem;
    top: 8px;
    /* Aligné sur le haut de la première ligne */
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--amber), var(--aqua));
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: 12px;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 10px var(--amber);
    border: 3px solid var(--bg-dark);
}

.timeline-content {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: inset 0 0 0 2px rgba(94, 201, 165, 0.2);
    transition: all 0.3s ease;
    margin-top: 30px;
}

.timeline-content:hover {
    box-shadow: inset 0 0 0 2px var(--aqua), 0 0 20px rgba(94, 201, 165, 0.2);
    transform: translateX(5px);
}

.timeline-content h3 {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    color: var(--amber);
    margin: 0 0 10px;
}

.timeline-date {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--aqua);
    margin-bottom: 15px;
    padding: 4px 12px;
    background: rgba(94, 201, 165, 0.1);
    border-radius: 4px;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.timeline-content li {
    padding: 8px 0 8px 20px;
    position: relative;
    line-height: 1.6;
}

.timeline-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--aqua);
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Centered small-grid for 2-3 cards with fixed min width similar to project cards */
.tech-grid.centered-cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

/* Force three columns on wide screens for pages that want three tech cards in a row */
.tech-grid.three-cols {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 900px) {
    .tech-grid.three-cols {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.tech-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: inset 0 0 0 2px rgba(94, 201, 165, 0.2);
    transition: all 0.3s ease;
}

.tech-card:hover {
    box-shadow: inset 0 0 0 2px var(--amber), 0 0 20px rgba(255, 182, 66, 0.2);
    transform: translateY(-5px);
}

.tech-card h3 {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    color: var(--amber);
    margin: 0 0 15px;
}

.tech-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-card li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(230, 225, 207, 0.05);
    line-height: 1.6;
}

.tech-card li:last-child {
    border-bottom: none;
}

.highlight {
    background: rgba(94, 201, 165, 0.1);
    padding: 20px;
    border-left: 4px solid var(--aqua);
    border-radius: 4px;
    margin: 20px 0;
    font-style: italic;
}

.project-footer {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(230, 225, 207, 0.1);
}

/* Responsive Project Page */
@media (max-width: 920px) {
    .project-page {
        padding: 130px 40px 40px;
    }

    .project-header h1 {
        font-size: 3rem;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-marker {
        left: 2px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .project-page {
        padding: 120px 20px 40px;
    }

    .project-header h1 {
        font-size: 2.5rem;
    }

    .project-subtitle {
        font-size: 1.2rem;
    }

    .project-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .project-footer {
        flex-direction: column;
    }

    .project-footer .btn {
        width: 100%;
        text-align: center;
    }
}

/* Project Image Containers and Special Crops */
.project-image-container {
    margin: 30px 0;
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: inset 0 0 0 2px rgba(94, 201, 165, 0.2);
}

/* Diagram-specific container: white background and full-width */
.diagram-container {
    /* Outer container: use light background and tech-card inset border */
    background: var(--bg-light);
    /* Use retro monospace heading font & amber accent for container text */
    font-family: 'VT323', monospace;
    color: var(--amber);
    padding: 18px;
    /* Use the same subtle inset border as tech cards */
    box-shadow: inset 0 0 0 2px var(--tech-card-border), 0 6px 18px rgba(0, 0, 0, 0.12);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.diagram-container:hover {
    box-shadow: inset 0 0 0 2px var(--aqua), 0 0 20px rgba(94, 201, 165, 0.2);
    transform: translateY(-5px);
}

.tech-card.diagram {
    grid-column: 1 / -1;
}

/* Make the mermaid diagram element centered and constrained like project images */
.diagram-container {
    text-align: center;
}

.mermaid-wrapper {
    /* Center any inner SVG horizontally; let SVG keep its intrinsic width up to container width */
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.mermaid-wrapper svg {
    /* Use intrinsic SVG width but prevent overflow; center with margin auto if narrower */
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    display: block;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--tech-card-border);
    border-radius: var(--border-radius);
}

.mermaid-wrapper svg text {
    fill: #111 !important;
}

.diagram-container .img-caption {
    color: #666;
}

.diagram-container .img-caption {
    text-align: center;
    margin-top: 10px;
}

/* Match project-image-container inner padding so diagrams have same margins as images */
.diagram-container {
    padding: 15px;
}

/* Prevent any aqua/teal glow on hover inside diagram containers */
.diagram-container *:hover {
    /* Remove hover box-shadows that may add aqua glow (overrides more specific rules) */
    box-shadow: none !important;
}

/* Ensure inner SVGs do not gain unexpected glows */
.diagram-container .mermaid-wrapper svg {
    box-shadow: none !important;
}

.project-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.img-caption {
    font-size: 0.9rem;
    color: var(--aqua);
    margin-top: 10px;
    text-align: center;
    font-style: italic;
}

.code-snippet-img {
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(230, 225, 207, 0.1);
}

/* Specific crop for Preview system using object-fit/position */
.preview-crop {
    height: 450px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.preview-crop .project-img {
    width: 180%;
    /* Balanced zoom to see full card */
    max-width: none;
    position: absolute;
    bottom: -8%;
    /* Position to see the card at the bottom right */
    right: -2%;
}

.preview-crop .img-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 15px;
    border-radius: 4px;
    z-index: 2;
    margin: 0;
}

@media (max-width: 768px) {
    .preview-crop {
        height: 250px;
    }

    .preview-crop .project-img {
        width: 450%;
    }
}

/* Lightbox Modal */
.modal {
    display: none;
    /* JavaScript will set this to flex */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: zoom-out;
    /* Flexbox for centering */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 85vh;
    box-shadow: 0 0 40px rgba(94, 201, 165, 0.4);
    border: 1px solid var(--aqua);
    border-radius: var(--border-radius);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-caption {
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--amber);
    padding: 15px 0 0 0;
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--fg);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2100;
    line-height: 1;
}

.modal-close:hover {
    color: var(--amber);
}

.project-img {
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-img:hover {
    box-shadow: 0 0 15px rgba(94, 201, 165, 0.3);
}

.code-snippet-img {
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(230, 225, 207, 0.1);
    background: #000;
}

.code-snippet-img .project-img {
    width: 100%;
    height: auto;
}

/* Pokemon TCG Red Card Redesign */
.pokemon-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a0000 100%) !important;
    border: 1px solid #b22222 !important;
    overflow: hidden;
    /* Masking by default */
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
    /* Match base card transition */
}

.pokemon-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 #b22222, 0 0 25px rgba(255, 77, 77, 0.6);
    border-color: #ff4d4d !important;
}

.pokemon-card .card-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    margin-top: auto;
}

.pokemon-card h3 {
    color: #ff4d4d !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 77, 77, 0.4);
    margin-bottom: 10px;
}

.pokemon-card p {
    color: #e6e1cf;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.card-image-wrap {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.card-decor-img {
    position: absolute;
    top: 0;
    right: -10%;
    width: 90%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
    opacity: 0.8;
    z-index: 2;
    transform: rotate(-10deg);
}

.pokemon-card .btn {
    background: #b22222 !important;
    border-color: #ff4d4d !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(178, 34, 34, 0.3);
}

.pokemon-card .btn:hover {
    background: #ff4d4d !important;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.6) !important;
}

@media (max-width: 768px) {
    .card-decor-img {
        width: 70%;
        right: -5%;
    }
}

/* Blue (Royal) theme for RS Manager project card */
.rs-manager-card {
    background: linear-gradient(135deg, #0d1b2b 0%, #002a66 100%) !important;
    border: 1px solid #224f9a !important;
    overflow: hidden;
    /* Masking by default */
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.rs-manager-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 #224f9a, 0 0 25px rgba(68, 136, 255, 0.6);
    border-color: #79a9ff !important;
}

.rs-manager-card .card-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    margin-top: auto;
}

.rs-manager-card h3 {
    color: #79a9ff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9), 0 0 10px rgba(68, 136, 255, 0.4);
    margin-bottom: 10px;
}

.rs-manager-card p {
    color: #e6e1cf;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.rs-manager-card .btn {
    background: #224f9a !important;
    border-color: #79a9ff !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(34, 79, 154, 0.3);
}

.rs-manager-card .btn:hover {
    background: #79a9ff !important;
    box-shadow: 0 0 20px rgba(68, 136, 255, 0.6) !important;
}

/* Cyan theme for Privalis project card */
.privalis-card {
    background: linear-gradient(135deg, #0d2b2b 0%, #004a4a 100%) !important;
    border: 1px solid #229a9a !important;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.privalis-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 #229a9a, 0 0 25px rgba(68, 255, 255, 0.6);
    border-color: #79ffff !important;
}

.privalis-card .card-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    margin-top: auto;
}

.privalis-card h3 {
    color: #79ffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9), 0 0 10px rgba(68, 255, 255, 0.4);
    margin-bottom: 10px;
}

.privalis-card p {
    color: #e6e1cf;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.privalis-card .btn {
    background: #229a9a !important;
    border-color: #79ffff !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(34, 154, 154, 0.3);
}

.privalis-card .btn:hover {
    background: #79ffff !important;
    box-shadow: 0 0 20px rgba(68, 255, 255, 0.6) !important;
}

/* White theme for C2 Project Card */
.c2-card {
    background: linear-gradient(135deg, #121212 0%, #333 100%) !important;
    border: 1px solid #eee !important;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.c2-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 #eee, 0 0 25px rgba(255, 255, 255, 0.4);
    border-color: #fff !important;
}

.c2-card .card-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    margin-top: auto;
}

.c2-card h3 {
    color: #fff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

.c2-card p {
    color: #e6e1cf;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.c2-card .btn {
    background: #fff !important;
    border-color: #eee !important;
    color: #121212 !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.c2-card .btn:hover {
    background: #eee !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5) !important;
}

/* Responsive Mermaid & Diagrams */
.mermaid-wrapper {
    width: 100%;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin: 15px 0;
    -webkit-overflow-scrolling: touch;
}

.mermaid {
    min-width: 500px;
    /* Force minimum width to keep text readable on mobile */
    display: flex;
    justify-content: center;
}

@media (max-width: 600px) {
    .mermaid {
        min-width: 450px;
    }
}

/* Summary Modal Styles */
.summary-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.summary-container {
    background: #121212;
    width: 90%;
    max-width: 800px;
    border: 1px solid #ffb642;
    border-radius: 4px;
    overflow-y: auto;
    max-height: 90vh;
    animation: modalSlide 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes modalSlide {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.summary-banner {
    width: 100%;
    height: 250px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #000;
}

.summary-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    /* Capture Dracofeu's head */
}

.summary-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
}

.summary-content {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
}

.summary-content h2 {
    font-family: 'VT323', monospace;
    font-size: 2.5rem;
    color: var(--amber);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 182, 66, 0.5);
}

.summary-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--fg);
    margin-bottom: 30px;
}

.summary-footer {
    display: flex;
    justify-content: flex-end;
}

.summary-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--aqua);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2100;
    transition: all 0.2s;
}

.summary-close:hover {
    color: var(--amber);
    transform: scale(1.1);
}

/* CV/PDF Modal Specifics */
.cv-container,
.pdf-viewer-container {
    background: var(--bg-dark);
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    border: 2px solid var(--amber);
    box-shadow: 0 0 30px rgba(255, 182, 66, 0.2);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlide 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.cv-header,
.pdf-viewer-header {
    padding: 15px 25px;
    background: rgba(255, 182, 66, 0.1);
    border-bottom: 1px solid var(--amber);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .cv-header {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        position: relative;
    }

    .cv-header h2,
    .pdf-viewer-header h2 {
        text-align: center;
        width: 100%;
    }

    .cv-controls,
    .pdf-viewer-controls {
        width: 100%;
        justify-content: center;
    }

    .cv-close,
    .pdf-viewer-close {
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .cv-body,
    .pdf-viewer-body {
        padding: 10px;
    }
}

.cv-header h2,
.pdf-viewer-header h2 {
    margin: 0;
    font-size: 2rem;
    font-family: 'VT323', monospace;
    color: var(--amber);
}

.cv-controls,
.pdf-viewer-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cv-close,
.pdf-viewer-close {
    color: var(--amber);
    font-size: 35px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s;
}

.cv-close:hover,
.pdf-viewer-close:hover {
    transform: scale(1.1);
    color: var(--fg);
}



.btn.small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Custom Amber Scrollbar for CV */
.cv-body::-webkit-scrollbar,
.pdf-viewer-body::-webkit-scrollbar {
    width: 10px;
}

.cv-body::-webkit-scrollbar-track,
.pdf-viewer-body::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.cv-body::-webkit-scrollbar-thumb,
.pdf-viewer-body::-webkit-scrollbar-thumb {
    background: rgba(255, 182, 66, 0.2);
    border: 1px solid var(--amber);
    border-radius: 4px;
}

.cv-body::-webkit-scrollbar-thumb:hover,
.pdf-viewer-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 182, 66, 0.5);
    box-shadow: 0 0 10px var(--amber);
}

.cv-body,
.pdf-viewer-body {
    flex-grow: 1;
    background: #222;
    overflow: auto;
    /* Allow both scrolls */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cv-page,
.pdf-page {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .summary-container {
        width: 95%;
    }

    .summary-banner {
        height: 180px;
    }

    .summary-content {
        padding: 20px;
    }

    .summary-content h2 {
        font-size: 2rem;
    }
}

/* Red Theme for Summary Modal */
.summary-container.theme-red {
    border-color: #ff4d4d;
    box-shadow: 0 0 35px rgba(178, 34, 34, 0.4);
}

.summary-container.theme-red .summary-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a0000 100%);
}

.summary-container.theme-red h2 {
    color: #ff4d4d;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.4);
}

.summary-container.theme-red .summary-close {
    color: #ff4d4d;
}

.summary-container.theme-red .btn {
    background: #b22222 !important;
    border-color: #ff4d4d !important;
}

.summary-container.theme-red .btn:hover {
    background: #ff4d4d !important;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.6) !important;
}

/* Red Theme Scrollbar */
.summary-container.theme-red ::-webkit-scrollbar-thumb {
    background: rgba(178, 34, 34, 0.3);
    border-color: #ff4d4d;
}

.summary-container.theme-red ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 77, 77, 0.5);
    box-shadow: 0 0 10px #ff4d4d;
}

/* Blue (Royal) theme for Summary Modal (RS Manager) */
.summary-container.theme-blue {
    border-color: #224f9a;
    box-shadow: 0 0 35px rgba(34, 79, 154, 0.4);
}

.summary-container.theme-blue .summary-banner {
    background: linear-gradient(135deg, #0d1b2b 0%, #002a66 100%);
}

.summary-container.theme-blue h2 {
    color: #79a9ff;
    text-shadow: 0 0 10px rgba(68, 136, 255, 0.4);
}

.summary-container.theme-blue .summary-close {
    color: #79a9ff;
}

.summary-container.theme-blue .btn {
    background: #224f9a !important;
    border-color: #79a9ff !important;
}

.summary-container.theme-blue .btn:hover {
    background: #79a9ff !important;
    box-shadow: 0 0 20px rgba(68, 136, 255, 0.6) !important;
}

.summary-container.theme-blue ::-webkit-scrollbar-thumb {
    background: rgba(34, 79, 154, 0.3);
    border-color: #224f9a;
}

.summary-container.theme-blue ::-webkit-scrollbar-thumb:hover {
    background: rgba(121, 169, 255, 0.5);
    box-shadow: 0 0 10px #79a9ff;
}

/* Cyan Theme for Summary Modal (Privalis) */
.summary-container.theme-cyan {
    border-color: #229a9a;
    box-shadow: 0 0 35px rgba(34, 154, 154, 0.4);
}

/* Vertical Tech Stack for detailed pages */
.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.tech-stack .tech-card {
    width: 100%;
    max-width: none;
    background: rgba(10, 17, 17, 0.6);
    border-left: 4px solid var(--amber);
    /* Changed from aqua to amber to reduce blue */
    padding: 30px;
    transition: all 0.3s;
}

.tech-stack .tech-card:hover {
    background: rgba(10, 17, 17, 0.8);
    transform: translateX(10px);
}

/* Document-style image wrappers */
.doc-img-wrapper {
    background: transparent;
    padding: 10px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: zoom-in;
    transition: transform 0.3s;
}

.doc-img-wrapper:hover {
    transform: scale(1.01);
}

.doc-img-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #ccc;
    background: #fff;
    /* Internal white background */
}

/* Prism Overrides */
pre[class*="language-"] {
    margin: 20px 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.summary-container.theme-cyan .summary-banner {
    background: linear-gradient(135deg, #0d2b2b 0%, #004a4a 100%);
}

.summary-container.theme-cyan h2 {
    color: #79ffff;
    text-shadow: 0 0 10px rgba(68, 255, 255, 0.4);
}

.summary-container.theme-cyan .summary-close {
    color: #79ffff;
}

.summary-container.theme-cyan .btn {
    background: #229a9a !important;
    border-color: #79ffff !important;
}

.summary-container.theme-cyan .btn:hover {
    background: #79ffff !important;
    box-shadow: 0 0 20px rgba(68, 255, 255, 0.6) !important;
}

/* Cyan Theme Scrollbar */
.summary-container.theme-cyan ::-webkit-scrollbar-thumb {
    background: rgba(34, 154, 154, 0.3);
    border-color: #229a9a;
}

.summary-container.theme-cyan ::-webkit-scrollbar-thumb:hover {
    background: rgba(121, 255, 255, 0.5);
    box-shadow: 0 0 10px #79ffff;
}

/* White Theme for Summary Modal (C2 Network) */
.summary-container.theme-white {
    background: #121212 !important;
    /* Keep container dark for contrast, but borders/accents white */
    border-color: #fff !important;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.2);
}

.summary-container.theme-white .summary-banner {
    background: linear-gradient(135deg, #222 0%, #444 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-container.theme-white h2 {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.summary-container.theme-white .summary-close {
    color: #fff;
}

.summary-container.theme-white .btn {
    background: #fff !important;
    border-color: #eee !important;
    color: #121212 !important;
}

.summary-container.theme-white .btn:hover {
    background: #eee !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5) !important;
}

.summary-container.theme-white ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-color: #eee;
}

.summary-container.theme-white ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px #fff;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: rgba(18, 16, 14, 0.98);
        backdrop-filter: blur(10px);
        padding-top: 80px;
        z-index: 100;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        border-left: 2px solid var(--amber);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 20px 0;
        border-bottom: 1px solid rgba(230, 225, 207, 0.1);
    }

    /* Fix mobile timeline dot alignment specifically */
    .roadmap-container .timeline-dot {
        left: 20px;
        margin-left: -7px;
        /* Keep consistent centering offset relative to left:20px */
        transform: none;
    }

    /* Ensure bar is exactly at 20px center */
    .roadmap-container .timeline::before {
        left: 20px;
        transform: none;
    }

    .roadmap-container .timeline-dot {
        left: 21px;
        /* Center alignment adjustment for mobile */
    }
}

/* Taskbar Styles */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(18, 16, 14, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--amber);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--amber) transparent;
}

.taskbar::-webkit-scrollbar {
    height: 4px;
}

.taskbar::-webkit-scrollbar-track {
    background: transparent;
}

.taskbar::-webkit-scrollbar-thumb {
    background: var(--amber);
    border-radius: 2px;
}

.taskbar-tab {
    flex-shrink: 0;
    background: var(--bg-light);
    border: 1px solid var(--amber);
    color: var(--amber);
    padding: 0 20px;
    height: 35px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    animation: tabSlideIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    position: relative;
    overflow: hidden;
}

.taskbar-tab::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--aqua);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.taskbar-tab:hover {
    background: rgba(255, 182, 66, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 182, 66, 0.2);
}

.taskbar-tab:hover::before {
    transform: scaleX(1);
}

@keyframes tabSlideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Cleaner Project Card Close/Restore Animations */
.card.closing {
    pointer-events: none;
    animation: cardCloseSimple 0.4s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.card.minimizing {
    pointer-events: none;
    animation: cardMinimizeSimple 0.4s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.card.restoring {
    display: flex !important;
    animation: cardRestoreSimple 0.4s forwards cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes cardCloseSimple {
    to {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
}

@keyframes cardMinimizeSimple {
    to {
        transform: scale(0.5) translateY(100px);
        opacity: 0;
    }
}

@keyframes cardRestoreSimple {
    from {
        transform: scale(0.5) translateY(100px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Green Theme for SAE 2.03 Project Card */
.sae203-card {
    background: linear-gradient(135deg, #0d2b12 0%, #004a1c 100%) !important;
    border: 1px solid #2e7d32 !important;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.sae203-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 #2e7d32, 0 0 25px rgba(76, 175, 80, 0.6);
    border-color: #4caf50 !important;
}

.sae203-card .card-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    margin-top: auto;
}

.sae203-card h3 {
    color: #4caf50 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9), 0 0 10px rgba(76, 175, 80, 0.4);
    margin-bottom: 10px;
}

.sae203-card p {
    color: #e6e1cf;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.sae203-card .btn {
    background: #1b5e20 !important;
    border-color: #4caf50 !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(27, 94, 32, 0.3);
}

.sae203-card .btn:hover {
    background: #4caf50 !important;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6) !important;
}

/* Green Theme for Summary Modal */
.summary-container.theme-green {
    border-color: #2e7d32;
    box-shadow: 0 0 35px rgba(46, 125, 50, 0.4);
}

.summary-container.theme-green .summary-banner {
    background: linear-gradient(135deg, #0d2b12 0%, #004a1c 100%);
}

.summary-container.theme-green h2 {
    color: #4caf50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
}

.summary-container.theme-green .summary-close {
    color: #4caf50;
}

.summary-container.theme-green .btn {
    background: #1b5e20 !important;
    border-color: #4caf50 !important;
}

.summary-container.theme-green .btn:hover {
    background: #4caf50 !important;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6) !important;
}

.summary-container.theme-green ::-webkit-scrollbar-thumb {
    background: rgba(27, 94, 32, 0.3);
    border-color: #2e7d32;
}

.summary-container.theme-green ::-webkit-scrollbar-thumb:hover {
    background: rgba(76, 175, 80, 0.5);
    box-shadow: 0 0 10px #4caf50;
}


/* Integrated PDF Viewer Styling */
.tech-pdf-viewer {
    width: 100%;
    height: 600px;
    border: 2px solid var(--aqua);
    /* Default theme */
    border-radius: var(--border-radius);
    background: #1a1a1a;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    margin: 20px 0;
    overflow: scroll;
}

.sae203-pdf {
    border-color: #4caf50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.tech-pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
    /* Custom Scrollbar for iframe content if supported, 
       otherwise rely on container styling */
    /* Custom Scrollbar for iframe content if supported */
    scrollbar-width: thin;
    scrollbar-color: var(--green-phosphor) var(--bg-dark);
}

/* Code Block Styling for Project Pages */
.code-block-wrapper {
    margin: 20px 0;
    border: 1px solid var(--muted-brown);
    border-radius: 6px;
    background: #1d1f21;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.code-block-wrapper pre {
    margin: 0 !important;
    padding: 15px !important;
    overflow-x: auto;
}

/* Code block scrollbar match global */
.code-block-wrapper pre::-webkit-scrollbar {
    height: 8px;
}

.code-block-wrapper pre::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.code-block-wrapper pre::-webkit-scrollbar-thumb {
    background: rgba(94, 201, 165, 0.2);
    border: 1px solid var(--green-phosphor);
    border-radius: 4px;
}

.code-block-wrapper pre::-webkit-scrollbar-thumb:hover {
    background: rgba(94, 201, 165, 0.5);
}

.code-block-wrapper code {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
}


.tech-card .code-block-wrapper {
    margin-top: 15px;
    border-color: var(--tech-card-border);
}

/* Tech Table Styling for Reports */
.tech-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    border: 1px solid rgba(230, 225, 207, 0.1);
    background: rgba(18, 16, 14, 0.5);
    border-radius: 6px;
    overflow: hidden;
}

.tech-table th {
    background: rgba(255, 182, 66, 0.1);
    color: var(--amber);
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid var(--amber);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(230, 225, 207, 0.05);
    color: var(--fg);
}

.tech-table tr:nth-child(even) {
    background: rgba(230, 225, 207, 0.02);
}

.tech-table tr:hover {
    background: rgba(94, 201, 165, 0.05);
}

/* AC Tags & Details */
.ac-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.ac-tag {
    background: rgba(255, 182, 66, 0.1);
    color: var(--amber);
    padding: 4px 10px;
    border: 1px solid var(--amber);
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: bold;
}

.ac-details {
    margin: 20px 0;
    padding: 15px;
    background: rgba(230, 225, 207, 0.02);
    border-radius: 6px;
    border-left: 2px solid var(--aqua);
}

.ac-details h4 {
    font-size: 1rem;
    color: var(--aqua);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ac-details .feature-list li {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

/* --- Skills Page Enrichment (AC/CE Reference) --- */
.pa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 80px;
}

.pa-section-title {
    font-family: 'VT323', monospace;
    font-size: 2.2rem;
    color: var(--amber);
    margin: 60px 0 25px;
    border-bottom: 2px solid var(--amber);
    padding-bottom: 10px;
}

.pa-intro {
    background: rgba(40, 40, 40, 0.4);
    padding: 25px;
    border-left: 4px solid var(--highlight);
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.7;
    border-radius: 4px;
}

/* Accordions */
.pa-ref-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
}

.pa-ref-item {
    background: rgba(18, 16, 14, 0.6);
    border: 1px solid var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pa-ref-item[open] {
    border-color: var(--amber);
    box-shadow: 0 0 15px rgba(255, 182, 66, 0.15);
}

.pa-ref-summary {
    padding: 18px 25px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: bold;
}

.pa-ref-summary::-webkit-details-marker {
    display: none;
}

.pa-ref-badge {
    background: var(--amber);
    color: var(--bg-dark);
    padding: 2px 10px;
    border-radius: 4px;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
}

.pa-ref-title {
    flex-grow: 1;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    color: var(--fg);
}

.pa-ref-chevron {
    color: var(--amber);
    transition: transform 0.3s ease;
}

.pa-ref-item[open] .pa-ref-chevron {
    transform: rotate(180deg);
}

.pa-ref-body {
    padding: 0 25px 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border-top: 1px solid rgba(255, 182, 66, 0.1);
    margin-top: 5px;
    padding-top: 25px;
}

.pa-ref-col-title {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    color: var(--highlight);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pa-ref-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pa-ref-body li {
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    padding-left: 25px;
    color: var(--fg);
}

.pa-ref-body li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--amber);
    font-weight: bold;
}

/* Detailed Project Cards */
.pa-projects-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.pa-project-card {
    background: rgba(30, 30, 30, 0.4);
    border: 1px solid var(--bg-light);
    border-radius: 12px;
    padding: 35px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.pa-project-card:hover {
    border-color: var(--amber);
    background: rgba(40, 40, 40, 0.5);
    box-shadow: 0 0 25px rgba(255, 182, 66, 0.08);
}

.pa-project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 20px;
}

.pa-project-header h2 {
    font-family: 'VT323', monospace;
    font-size: 2.4rem;
    color: var(--amber);
    margin: 0 0 8px;
    text-shadow: 0 0 10px rgba(255, 182, 66, 0.3);
}

.pa-project-context {
    font-style: italic;
    color: var(--fg);
    opacity: 0.85;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(230, 225, 207, 0.15);
    line-height: 1.7;
}

/* AC List in Cards */
.pa-ac-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    color: var(--highlight);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

.pa-ac-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pa-ac-item {
    background: rgba(0, 0, 0, 0.25);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--amber);
    transition: transform 0.2s ease;
}

.pa-ac-item:hover {
    transform: translateX(5px);
    background: rgba(0, 0, 0, 0.35);
}

.pa-ac-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px;
}

.pa-ac-code {
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--amber);
}

.pa-ac-check {
    font-size: 1.1rem;
    color: var(--highlight);
}

.pa-ac-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: var(--fg);
}

/* CE Badges */
.pa-ce-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px dotted rgba(255, 182, 66, 0.4);
}

.pa-ce-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--fg);
    opacity: 0.7;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pa-ce-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pa-ce-badge {
    background: rgba(94, 201, 165, 0.05);
    border: 1px solid rgba(94, 201, 165, 0.4);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.pa-ce-badge:hover {
    background: rgba(94, 201, 165, 0.15);
    border-color: var(--highlight);
    transform: translateY(-2px);
}

.pa-ce-code {
    font-weight: bold;
    color: var(--highlight);
    font-family: 'Space Mono', monospace;
}

.pa-ce-text {
    color: var(--fg);
}

/* Responsive Skills Page */
@media (max-width: 950px) {
    .pa-ref-body {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 650px) {
    .pa-container {
        padding: 20px 20px 60px;
    }

    .pa-project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .pa-project-header .btn {
        width: 100%;
        text-align: center;
    }

    .pa-project-card {
        padding: 20px;
    }
}