:root {
    /* Colors */
    --sky-top: #0072bc;
    --sky-bottom: #8ed6fb;
    --win-blue: #005A9C;
    --win-light-blue: #00AEEF;
    --win-bg-glass: rgba(220, 240, 255, 0.4);
    --text-main: #000;
    --text-dark: #222;
    --text-light: #fff;
    --text-muted: #555;

    /* Aero Glass */
    --glass-bg-dark: rgba(10, 40, 80, 0.85);
    --glass-highlight: rgba(255, 255, 255, 0.3);
    --glass-shadow: rgba(0, 0, 0, 0.5);

    /* Gradients */
    --gradient-task: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 51%, rgba(0, 0, 0, 0.3) 100%);
    --gradient-hero: linear-gradient(to bottom, var(--sky-top) 0%, var(--sky-bottom) 80%, #fff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--sky-bottom);
    color: var(--text-main);
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
    width: 100%;
    padding-bottom: 48px;
    /* Taskbar padding */
}

.bio-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.glass-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    color: var(--win-blue);
    font-family: 'Outfit', sans-serif;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 174, 239, 0.2);
    color: #0056b3;
}

.glass-btn i {
    width: 20px;
    height: 20px;
}

/* Utilities */
.hidden {
    display: none !important;
}

img,
video,
svg {
    max-width: 100%;
    height: auto;
}

/* Cleanup Utilities */
.full-size {
    width: 100%;
    height: 100%;
}

.icon-sm {
    width: 16px;
}

.icon-yellow {
    color: #EBCB8B;
}

.icon-gold {
    color: #FFD700;
}

.icon-blue {
    color: #4285F4;
}

.icon-dark {
    color: #333;
}

.icon-orange {
    color: #F2994A;
}

.icon-purple {
    color: #9b59b6;
}

.window-hero {
    width: 600px;
    max-width: 90%;
}

.hero-actions {
    margin-top: 1rem;
    text-align: center;
}

.project-cover {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
}

.passions-container {
    text-align: center;
    width: 100%;
    max-width: 1000px;
}

.contact-container {
    text-align: center;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.contact-title {
    margin-bottom: 0;
}

.msn-window-size {
    width: 900px !important;
    max-width: 95%;
}

.avatar-full {
    width: 100%;
    height: auto;
    display: block;
}

.progress-fill {
    width: 100%;
}

.loading-window {
    width: 400px;
    max-width: 90%;
}

.loading-body {
    padding: 20px;
}

.loading-text {
    margin-bottom: 10px;
    font-family: 'Segoe UI', sans-serif;
}

/* 7.css Helpers */
.window-body.has-space {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- COMPONENTS --- */

/* Scroll Arrows (Merged from arrow.css) */
.scroll-arrow {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    color: #444;
    animation: bounce 2s infinite;
    opacity: 0.8;
    transition: opacity 0.3s;
    z-index: 900;
}

.scroll-arrow:hover {
    opacity: 1;
    color: #000;
}

.scroll-arrow.arrow-white {
    color: var(--text-light);
}

.scroll-arrow-up {
    top: 100px;
    bottom: auto;
}

.scroll-arrow-up svg {
    transform: rotate(180deg);
}

/* Optim: rotate icon instead of container logic */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Taskbar */
.taskbar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-highlight);
    box-shadow: 0 -2px 10px var(--glass-shadow);
    z-index: 10000;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.start-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-task);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px !important;
    /* Force pill shape over 7.css */
    padding: 2px 15px 2px 5px;
    cursor: pointer;
    transition: all 0.2s;
    height: 38px;
    outline: none;
    overflow: hidden;
    /* Ensure hover background doesn't bleed */
}

.start-btn:hover {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(0, 174, 239, 0.4) 100%);
    box-shadow: 0 0 15px rgba(0, 174, 239, 0.6);
}

.start-orb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
}

.start-label {
    color: var(--text-light);
    font-weight: bold;
    font-family: 'Segoe UI', sans-serif;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
    font-size: 1rem;
}

.taskbar-separator {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 10px;
}

.taskbar-apps {
    display: flex;
    gap: 5px;
    flex-grow: 1;
}

.taskbar-app {
    width: 44px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}

.taskbar-app:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.taskbar-app.active {
    background: rgba(255, 255, 255, 0.15);
    border-bottom: 3px solid var(--win-light-blue);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 0 10px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tray-icon {
    color: white;
    opacity: 0.9;
    cursor: pointer;
}

.tray-clock {
    color: white;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    text-shadow: 0 1px 1px #000;
    margin-left: 5px;
}

.show-desktop {
    width: 15px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    margin-left: 10px;
    margin-right: -10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.show-desktop:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Start Menu */
.start-menu-container {
    position: fixed;
    bottom: 52px;
    left: 5px;
    z-index: 10001;
    width: 400px;
    animation: slideUp 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.start-menu-glass {
    background: rgba(240, 240, 240, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.start-header {
    background: linear-gradient(to right, var(--sky-top), var(--win-light-blue));
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.user-avatar-start {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.user-name-start {
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.start-body {
    display: flex;
    min-height: 350px;
}

.start-col-left {
    flex: 2;
    background: white;
    padding: 10px;
    border-right: 1px solid #ccc;
}

.start-col-right {
    flex: 1.5;
    background: #f0f0f0;
    padding: 10px;
    color: #444;
}

.start-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.start-item:hover {
    background: rgba(0, 174, 239, 0.1);
    box-shadow: 0 0 0 1px var(--win-light-blue);
}

.start-text {
    display: flex;
    flex-direction: column;
}

.start-title {
    font-weight: bold;
    font-size: 0.95rem;
}

.start-desc {
    font-size: 0.75rem;
    color: #777;
}

.start-divider {
    height: 1px;
    background: #eee;
    margin: 5px 10px;
}

.start-group-title {
    font-weight: bold;
    color: var(--win-blue);
    margin: 10px 0 5px 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.start-link {
    display: block;
    padding: 5px 10px;
    color: #444;
    text-decoration: none;
    border-radius: 3px;
    margin-bottom: 2px;
}

.start-link:hover {
    background: #dceefc;
    color: #000;
}

.start-footer {
    background: linear-gradient(to top, #d0d0d0 0%, #f0f0f0 100%);
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #ccc;
}

.shutdown-btn {
    background: linear-gradient(to bottom, #ffc766 0%, #ff9900 100%);
    border: 1px solid #cc7a00;
    color: white;
    padding: 5px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.shutdown-btn:hover {
    background: linear-gradient(to bottom, #ffd688 0%, #ffaa33 100%);
    box-shadow: 0 0 5px rgba(255, 165, 0, 0.5);
}

/* --- SECTIONS --- */

/* Hero */
.frutiger-hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 60px;
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    background-blend-mode: normal;
    overflow: hidden;
}

.butterfly {
    position: absolute;
    width: 50px;
    height: auto;
    pointer-events: none;
    z-index: 10;
    opacity: 0.9;
}

.b1 {
    top: 20%;
    left: 20%;
    animation: float1 15s infinite linear;
}

.b2 {
    bottom: 30%;
    right: 25%;
    animation: float2 20s infinite linear;
    transform: scaleX(-1);
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(100px, -50px) rotate(10deg);
    }

    50% {
        transform: translate(200px, 0) rotate(0deg);
    }

    75% {
        transform: translate(100px, 50px) rotate(-10deg);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0) scaleX(-1) rotate(0deg);
    }

    33% {
        transform: translate(-150px, -80px) scaleX(-1) rotate(-15deg);
    }

    66% {
        transform: translate(-80px, 40px) scaleX(-1) rotate(10deg);
    }
}

.main-title {
    font-size: 5rem;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    background: linear-gradient(180deg, #444 0%, #222 50%, #000 51%, #333 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.2));
    animation: popIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.student-subtitle {
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    border-right: .15em solid orange;
    white-space: nowrap;
    margin: 0 auto;
    max-width: fit-content;
    animation: typing 3.5s steps(30, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: orange;
    }
}

/* Projects & Sections Shared */
.projects-section,
.bio-section,
.gadgets-section,
.passions-section-dark {
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.projects-section {
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
    color: white;
}

.bio-section,
.gadgets-section {
    background-color: var(--sky-bottom);
}

.passions-section-dark {
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
    color: white;
}

/* Background Images */
.bio-section {
    background-image: url('assets/bio-bg.jpg');
}

.gadgets-section {
    background-image: url('assets/skills-bg.png');
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--sky-top);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.projects-section .section-title,
.passions-section-dark .section-title {
    color: white;
}

.bio-section .section-title,
.gadgets-section .section-title {
    color: #004a80;
}

/* --- Global Project Details Grid (Shared by Demos, Xuizz, JavaTCG) --- */
.project-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin-top: 1.5rem;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
}

.detail-card {
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.detail-card h3 {
    color: #333;
    /* Default dark, specific pages can override */
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.detail-card p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #555;
    margin: 0;
}

/* Jewel Case (CD) */
.cd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.cd-case {
    position: relative;
    width: 200px;
    height: 180px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.cd-case:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
    filter: brightness(1.1);
    z-index: 10;
}

.empty-project {
    cursor: default;
    pointer-events: none;
    opacity: 0.7;
}

.empty-project:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.1);
}

.empty-project .disc-label {
    display: none;
}

.cd-spine-left {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 15px;
    background: linear-gradient(to right, #444, #111);
    border-right: 1px solid #666;
    z-index: 2;
}

.cd-disc-shiny {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, #bcd 10%, #777 20%, #999 21%, #666 25%, #444 30%, #888 60%, #555 70%);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-left: 10px;
}

.disc-hole {
    width: 25px;
    height: 25px;
    background: #000;
    border: 1px solid #999;
    border-radius: 50%;
}

.cd-plastic-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 40%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    border-radius: 4px;
    z-index: 5;
}

/* Bio Content */
.bio-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1200px;
}

.bio-text-area {
    position: relative;
    max-width: 600px;
    text-align: left;
    font-family: 'Segoe UI', sans-serif;
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bio-text-area h2 {
    font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--win-blue);
    border-bottom: 1px solid rgba(0, 90, 156, 0.3);
    padding-bottom: 0.5rem;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.gnark-img {
    position: absolute;
    bottom: -20px;
    right: -25px;
    width: 100px;
    z-index: 20;
    transform: rotate(10deg);
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

.avatar-window {
    width: 300px !important;
}

/* Timeline */
.academic-timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 2rem;
    border-left: 3px solid rgba(0, 174, 239, 0.3);
    max-width: 800px;
    width: 100%;
    margin: 2rem auto 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -38.5px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    border: 3px solid var(--win-light-blue);
    box-shadow: 0 0 5px rgba(0, 174, 239, 0.5);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker,
.timeline-item.active .timeline-marker {
    background: var(--win-light-blue);
    transform: scale(1.2);
}

.timeline-item.active .timeline-marker {
    box-shadow: 0 0 10px var(--win-light-blue), 0 0 20px var(--win-light-blue);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 174, 239, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px transparent;
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

.timeline-content {
    background: rgba(240, 250, 255, 0.65);
    backdrop-filter: blur(12px);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.5);
    transition: transform 0.2s;
}

.timeline-item:hover .timeline-content {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--win-light-blue);
}

.timeline-content h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #004a80;
    font-weight: 700;
}

.timeline-content .date {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.timeline-content p {
    margin: 0;
    font-size: 1rem;
    color: #222;
}

/* Gadgets */
.gadget-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    max-width: 1200px;
}

.gadget-card {
    width: 250px;
    background: rgba(240, 250, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2), inset 1px 1px 0 rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    position: relative;
    padding: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.gadget-card:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3), inset 1px 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.gadget-handle {
    position: absolute;
    top: 10px;
    right: 5px;
    width: 20px;
    height: 40px;
    opacity: 0.5;
    background-image: radial-gradient(circle, #333 1px, transparent 1px);
    background-size: 4px 4px;
}

.gadget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
}

.gadget-icon-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fff, #ddd);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid #aaa;
}

.gadget-title {
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    color: #222;
    font-size: 1.1rem;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.skill-list {
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
    color: #111;
}

.skill-list li {
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.skill-list li::before {
    content: "•";
    color: var(--win-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Passions */
.passions-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem;
}

.passion-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 2rem;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), inset 0 0 20px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: default;
}

.passion-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 20px rgba(0, 174, 239, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.8);
    border-color: #fff;
}

.passion-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    color: var(--sky-top);
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.3));
    transform: translateZ(0);
}

/* Fix: Ensure SVG fills the container container */
.passion-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.passion-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.passions-section-dark .passion-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.passions-section-dark .passion-name {
    color: white;
}

/* MSN Contact */
#contact {
    /* Fix: center items again, removing flex-start override */
    align-items: center !important;
    padding-top: 160px;
    padding-bottom: 2rem;
    height: auto;
    min-height: 100vh;
}

.msn-window {
    /* Removed custom border/shadow to match Hero window */
    animation: popIn 0.5s ease-out;
}



.msn-body {
    background: #EBF4FC;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 550px;
}

.msn-header {
    background: linear-gradient(to bottom, #dbeefa 0%, #bdeefa 100%);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #99CCE5;
}

.msn-avatar img {
    width: 50px;
    height: 50px;
    border: 2px solid white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.msn-info {
    display: flex;
    flex-direction: column;
}

.msn-name {
    font-weight: bold;
    color: #444;
}

.msn-status {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.msn-chat-history {
    flex-grow: 1;
    background: white;
    margin: 10px;
    border: 1px solid #99CCE5;
    padding: 10px;
    overflow-y: auto;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.9rem;
}

.msn-message {
    margin-bottom: 5px;
}

.msn-sender {
    color: #888;
    font-size: 0.8rem;
}

.msn-input-area {
    background: #EBF4FC;
    padding: 10px;
    border-top: 1px solid #99CCE5;
}

.msn-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    color: #555;
    align-items: center;
}

#contact-message {
    width: 100%;
    height: 60px;
    border: 1px solid #99CCE5;
    border-radius: 2px;
    font-family: 'Segoe UI', sans-serif;
    resize: none;
    margin-bottom: 5px;
}

.msn-footer {
    display: flex;
    justify-content: flex-end;
}

.msn-send-btn {
    background: linear-gradient(to bottom, #F4F4F4 0%, #E0E0E0 100%);
    border: 1px solid #888;
    padding: 3px 15px;
    border-radius: 3px;
    cursor: pointer;
}

.msn-send-btn:hover {
    border-color: var(--win-blue);
    background: #FFF;
}

/* Music Player & Modals */
.music-player-window {
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 300px;
    z-index: 9999;
}

.music-player-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px;
}

.player-info {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #aaa;
    border-radius: 3px;
    padding: 5px 10px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    color: #333;
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.player-controls button {
    min-width: 40px;
}

.volume-control {
    display: flex;
    align-items: center;
    padding: 0 5px;
    margin-top: 5px;
    color: #444;
}

#volume-slider {
    width: 100%;
    cursor: pointer;
    accent-color: var(--sky-top);
    height: 4px;
}

#song-title {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    display: inline-block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.site-footer {
    text-align: center;
    padding: 1rem 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    background: transparent;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE DESIGN (Combined) --- */
@media (max-width: 768px) {
    .taskbar-container {
        height: 48px;
        padding: 0 5px;
    }

    .start-btn {
        width: 38px;
        padding: 0;
        justify-content: center;
    }

    .start-label {
        display: none;
    }

    .taskbar-separator {
        display: none;
    }

    .tray-icon {
        display: none;
    }

    .start-menu-container {
        width: calc(100% - 20px);
        left: 10px;
        bottom: 55px;
    }

    .start-body {
        flex-direction: column;
        min-height: 0;
    }

    .start-col-left {
        border-right: none;
        border-bottom: 1px solid #ccc;
    }

    .frutiger-hero {
        padding-top: 80px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .main-title {
        font-size: 10vw;
        margin-bottom: 1rem;
    }

    .student-subtitle {
        font-size: 1rem;
        white-space: normal;
        border-right: none;
        animation: none;
        width: auto;
    }

    .projects-section,
    .bio-section {
        padding: 2rem 1rem;
    }

    .bio-content-wrapper {
        flex-direction: column;
        padding: 0;
        gap: 2rem;
        width: 100%;
    }

    .cd-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2.5rem;
        justify-items: center;
    }

    .empty-project,
    .scroll-arrow,
    .butterfly {
        display: none;
    }

    .window {
        width: 95% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }

    .avatar-wrapper {
        display: none;
    }

    .avatar-window {
        width: 100px !important;
    }

    .gnark-img {
        width: 50px;
        bottom: -10px;
        right: -10px;
    }

    .bio-text-area {
        padding-right: 1rem;
        padding-top: 30px;
        width: 100%;
    }

    .bio-text-area h2 {
        font-size: 2rem;
    }

    .passions-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .passion-card {
        width: 100%;
        max-width: 160px;
        aspect-ratio: 1/1;
        height: auto;
        padding: 1rem;
        margin: 0 auto;
    }

    .passion-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }

    .passion-name {
        font-size: 0.9rem;
    }

    .msn-window {
        width: 95% !important;
        height: auto !important;
        min-height: 400px;
    }

    .section-title {
        font-size: 2rem;
        /* Reduced from default 3rem */
        padding-bottom: 0.2rem;
        margin-bottom: 2rem;
        border-width: 1px;
    }

    .msn-body {
        height: auto !important;
        min-height: 300px;
    }

    .msn-toolbar {
        display: none;
    }
}

/* Back to Desktop Button */
.back-to-desktop-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

/* --- Global Screenshot Gallery --- */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
}


.screenshot-frame {
    background: transparent;
    /* Changed from white to transparent to handle diff aspect ratios better */
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    /* Removed aspect-ratio to let image define height, or keep it? 
       Use aspect-ratio 16/9 but allow contain */
    aspect-ratio: 16/9;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
    /* Light grey background for letterboxing */
}

.screenshot-frame:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
    cursor: pointer;
}

/* --- Global Lightbox --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border: 2px solid white;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    transform: scale(1);
    transition: transform 0.3s ease;
    object-fit: contain;
    cursor: zoom-in;
    /* Ensure high quality rendering */
    image-rendering: -webkit-optimize-contrast;
}

/* Zoom State */
/* Zoom State */
.lightbox-overlay.active .lightbox-img.zoomed {
    transform: scale(1.5);
    /* Reasonable zoom */
    cursor: zoom-out;
    z-index: 20002;
    /* Remove max constraints to allow full expansion? 
       No, transform scale is easier for centering. */
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 20001;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--win-light-blue);
}

.back-to-desktop-btn:hover {
    transform: scale(1.05);
    background: white;
    box-shadow: 0 6px 12px rgba(0, 174, 239, 0.3);
    color: var(--win-blue);
}