* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }

:root {
    --win-gray: #2a2f3c;
    --win-dark-gray: #151923;
    --win-blue: #2d3f6e;
    --accent-blue: #8fc8ff;
    --accent-cyan: #00ffff;
    --accent-pink: #ff00ff;
    --accent-purple: #9d00ff;
    --desktop-bg: #130c16;
    --window-bg: rgba(28, 22, 36, 0.72);
    --window-text: #dbe8ff;
    --window-header-start: #678dcf;
    --window-header-end: #32172f;
    --taskbar-bg: rgba(18, 14, 24, 0.84);
    --button-bg: linear-gradient(180deg, #2e2f40 0%, #171827 100%);
    --button-text: #f3f7ff;
    --scrollbar-thumb: #5e274f;
    --desktop-icon-shadow: #000000;
    --app-font: "Segoe UI", Tahoma, sans-serif;
    --neon-glow: 0 0 10px var(--accent-blue), 0 0 20px var(--accent-blue), 0 0 30px var(--accent-blue);
    --neon-pink-glow: 0 0 10px #ff00aa, 0 0 20px #ff00aa, 0 0 30px #ff00aa;
}

body {
    font-family: var(--app-font);
    height: 100vh; overflow: hidden; position: relative; color: var(--window-text);
    background:
      radial-gradient(circle at 16% 14%, rgba(131, 186, 255, 0.28) 0%, rgba(131,186,255,0) 42%),
      radial-gradient(circle at 84% 82%, rgba(214, 63, 95, 0.28) 0%, rgba(214,63,95,0) 38%),
      linear-gradient(140deg, #0c111f 0%, #1b1322 46%, #180f18 100%);
    cursor: default;
}

/* ENHANCED BACKGROUND EFFECTS */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes auroraMove {
    0% { transform: translateX(0) translateY(0) rotate(0deg); opacity: 0.3; }
    25% { transform: translateX(30px) translateY(-20px) rotate(5deg); opacity: 0.5; }
    50% { transform: translateX(-20px) translateY(10px) rotate(-3deg); opacity: 0.4; }
    75% { transform: translateX(20px) translateY(25px) rotate(8deg); opacity: 0.6; }
    100% { transform: translateX(0) translateY(0) rotate(0deg); opacity: 0.3; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Aurora/Borealis Effect Layer */
.aurora-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 255, 180, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 30%, rgba(180, 0, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 70% 45% at 80% 35%, rgba(0, 200, 255, 0.14) 0%, transparent 50%);
    animation: auroraMove 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Starfield */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

/* Floating Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 15s linear infinite;
    box-shadow: 0 0 6px var(--accent-blue), 0 0 12px var(--accent-blue);
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100px) translateX(100px) rotate(360deg); opacity: 0; }
}

/* DYNAMIC BACKGROUND LAYER - Uzay/Yıldız Gifi Eklentisi (SpaceHey Vibe) */
#dynamic-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background:
      radial-gradient(circle at 16% 14%, rgba(131, 186, 255, 0.18) 0%, rgba(131,186,255,0) 42%),
      radial-gradient(circle at 84% 82%, rgba(214, 63, 95, 0.16) 0%, rgba(214,63,95,0) 38%),
      linear-gradient(140deg, #0c111f 0%, #1b1322 46%, #180f18 100%);
    z-index: 0;
    opacity: 0.75;
    transform: translate3d(0, 0, 0) scale(1.06);
    transition: transform 0.18s ease-out;
    will-change: transform;
}

#dynamic-bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: blur(5px) saturate(1.05) brightness(0.72);
    transform: scale(1.06);
    pointer-events: none;
}

/* OLD TERMINAL BOOT LOADER */
:root {
    --terminal-green: #33ff33;
    --terminal-dark-green: #00cc00;
    --terminal-bg: #0a0a0a;
}

.boot-loader {
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: var(--terminal-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}
.boot-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.boot-terminal {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 30px;
    font-family: 'VT323', monospace;
}

.terminal-screen {
    width: 100%;
    height: 100%;
    color: var(--terminal-green);
    font-size: 18px;
    line-height: 1.6;
    text-shadow: 0 0 8px var(--terminal-dark-green), 0 0 16px var(--terminal-dark-green);
    overflow: hidden;
}

.terminal-output {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-cursor {
    display: inline-block;
    animation: cursorBlink 0.8s step-end infinite;
    color: var(--terminal-green);
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* CRT Scanline Effect for Terminal Boot */
.terminal-crt-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 10;
}

/* Terminal Boot Text Animation - Typewriter Effect */
.terminal-message {
    display: block;
    opacity: 0;
    animation: messageFadeIn 0.1s ease forwards;
}

@keyframes messageFadeIn {
    to { opacity: 1; }
}

/* Old Monitor Glow Effect */
.terminal-glow {
    text-shadow: 
        0 0 5px var(--terminal-dark-green),
        0 0 10px var(--terminal-dark-green),
        0 0 20px var(--terminal-dark-green);
}

/* BOOT / LOGIN SCREEN */
#boot-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 999999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #0f0; /* Matrix Yeşili Terminal Rengi */
    text-align: center;
}
.login-box {
    border: 3px solid #0f0; padding: 30px; background: #000;
}
.login-input {
    background: #000; border: 2px solid #0f0; color: #0f0;
    font-family: 'VT323'; font-size: 20px; padding: 10px; width: 250px;
    text-align: center; outline: none; margin: 15px 0;
}
.login-btn {
    font-family: 'Press Start 2P'; font-size: 10px; background: #c0c0c0; color: #000;
    padding: 10px 20px; cursor: pointer; display: block; width: 100%; margin-bottom:10px;
    /* Win95 Button stili */
    border: 2px solid;
    border-top-color: #fff; border-left-color: #fff;
    border-bottom-color: #000; border-right-color: #000;
}
.login-btn:active {
    border-top-color: #000; border-left-color: #000;
    border-bottom-color: #fff; border-right-color: #fff;
}

.cursor-blink::after { content: '_'; animation: cursorBlinkEffect 0.8s infinite steps(2); }
@keyframes cursorBlinkEffect { 0% { opacity: 0; } 100% { opacity: 1; } }

/* WINDOWS 95/98 PENCERE SİSTEMİ */
.window {
    position: absolute; width: 550px;
    background: linear-gradient(180deg, rgba(235, 245, 255, 0.24) 0%, rgba(35, 53, 82, 0.22) 100%);
    border: 1px solid rgba(194, 220, 255, 0.52);
    border-radius: 11px;
    box-shadow:
      0 14px 30px rgba(2, 10, 22, 0.62),
      inset 0 1px 0 rgba(255, 255, 255, 0.45),
      inset 0 -1px 0 rgba(140, 175, 220, 0.2);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    display: none; flex-direction: column; z-index: 10;
    overflow: hidden;
}
.window.open-anim { animation: windowOpenEffect 0.2s linear forwards; }

@keyframes windowOpenEffect {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* BUBBLE POP CLOSE ANIMATION */
.window.close-anim {
    animation: bubblePop 0.25s ease-out forwards;
    transform-origin: center;
}

@keyframes bubblePop {
    0% { 
        transform: scale(1); 
        opacity: 1;
    }
    30% {
        transform: scale(1.08);
        opacity: 0.9;
    }
    50% {
        transform: scale(0.95);
        opacity: 0.7;
        box-shadow: 0 0 30px rgba(92, 206, 255, 0.5);
    }
    100% { 
        transform: scale(0.8) translateY(20px); 
        opacity: 0;
        box-shadow: 0 0 50px rgba(92, 206, 255, 0.8);
    }
}

/* Alternative ripple close effect */
.window.close-ripple {
    animation: closeRipple 0.3s ease-out forwards;
}

@keyframes closeRipple {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    25% {
        transform: scale(1.05);
        opacity: 0.8;
        border-color: rgba(92, 206, 255, 0.8);
    }
    100% { 
        transform: scale(0.9) translateY(-10px); 
        opacity: 0;
    }
}

/* SPLASH/POP PARTICLES on close */
.window-closing::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(92, 206, 255, 0.6) 0%, transparent 70%);
    animation: splashOut 0.3s ease-out forwards;
    pointer-events: none;
}

@keyframes splashOut {
    0% { 
        transform: scale(0.5); 
        opacity: 1;
    }
    100% { 
        transform: scale(2); 
        opacity: 0;
    }
}

.window-header {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(193, 220, 255, 0.22) 42%, rgba(88, 126, 180, 0.36) 100%),
      linear-gradient(90deg, #3a6ea8 0%, #5f8fc8 44%, #2f5b91 100%);
    padding: 7px 10px; display: flex; justify-content: space-between;
    align-items: center; cursor: move; font-family: "Segoe UI", Tahoma, sans-serif; font-size: 12px; color: #eef6ff;
    text-shadow: 0 1px 0 rgba(0,0,0,0.55);
    border-bottom: 1px solid rgba(255,255,255,0.3);
}
.window-controls { display: flex; gap: 4px; }
.control-btn {
    width: 16px; height: 16px; background: var(--win-gray);
    display: flex; align-items: center; justify-content: center; 
    font-size: 10px; cursor: pointer; color: #000; font-weight: bold;
    border: 2px solid;
    border-top-color: #fff; border-left-color: #fff;
    border-bottom-color: #000; border-right-color: #000;
}
.control-btn:active {
    border-top-color: #000; border-left-color: #000;
    border-bottom-color: #fff; border-right-color: #fff;
}
.window-body { padding: 15px; flex: 1; overflow-y: auto; max-height: 450px; font-size: 18px; line-height:1.4; color: var(--window-text); }

/* DESKTOP MASAÜSTÜ İKONLARI */
.desktop {
    width: 100%;
    height: calc(100vh - 42px);
    padding: 20px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 150px));
    grid-auto-rows: 130px;
    gap: 18px 22px;
    z-index: 10;
    align-content: center;
    justify-content: center;
}

.desktop-icon {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    cursor: pointer; text-align: center; gap: 6px;
    animation: iconFloat 2.8s ease-in-out infinite;
    transition: transform 0.24s ease, filter 0.24s ease;
}

.desktop-icon i { font-size: 35px; color: #fff; text-shadow: 2px 2px var(--desktop-icon-shadow); display: inline-block; }

.desktop-icon-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    image-rendering: auto;
    filter: drop-shadow(2px 2px 0 var(--desktop-icon-shadow));
    display: inline-block;
    transition: transform 0.24s ease, filter 0.24s ease;
}

.desktop-icon span {
    font-family: 'Press Start 2P', cursive; font-size: 9px; background: var(--win-blue); padding: 4px 6px;
    color: #fff; border: 1px dotted #fff;
}
.desktop-icon:hover {
    transform: translateY(-8px) scale(1.08);
    filter: drop-shadow(0 10px 16px rgba(143, 200, 255, 0.48));
}

/* CD ROTATE ANIMATION for Media icon */
@keyframes cdSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.desktop-icon.spinning .desktop-icon-img {
    animation: cdSpin 2s linear infinite;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(92, 206, 255, 0.6), 0 0 30px rgba(92, 206, 255, 0.3);
}

.desktop-icon:hover .desktop-icon-img {
    transform: scale(1.12) rotate(-3deg);
}

/* ENHANCED GLASSMORPHISM */
.window {
    position: absolute; width: 550px;
    background: linear-gradient(180deg, rgba(235, 245, 255, 0.18) 0%, rgba(35, 53, 82, 0.22) 100%);
    border: 1px solid rgba(194, 220, 255, 0.4);
    border-radius: 11px;
    box-shadow:
      0 14px 30px rgba(2, 10, 22, 0.62),
      0 0 20px rgba(92, 206, 255, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.45),
      inset 0 -1px 0 rgba(140, 175, 220, 0.2);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    display: none; flex-direction: column; z-index: 10;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Window focused state with neon glow */
.window.active-focus {
    border-color: rgba(92, 206, 255, 0.7);
    box-shadow:
      0 14px 30px rgba(2, 10, 22, 0.62),
      0 0 30px rgba(92, 206, 255, 0.35),
      0 0 60px rgba(92, 206, 255, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.45),
      inset 0 -1px 0 rgba(140, 175, 220, 0.2);
}

/* Animated border glow */
@keyframes borderGlow {
    0%, 100% { border-color: rgba(92, 206, 255, 0.3); }
    50% { border-color: rgba(92, 206, 255, 0.7); }
}

.window.active-focus {
    animation: borderGlow 2s ease-in-out infinite;
}

/* Enhanced button animations */
.custom-btn {
    display: inline-block;
    padding: 6px 11px;
    background: linear-gradient(180deg, #3a3f5d 0%, #1e2137 100%);
    color: #eff5ff;
    border: 1px solid rgba(162, 195, 255, 0.42);
    border-radius: 7px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.custom-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.4s ease;
}

.custom-btn:hover::before {
    left: 100%;
}

.custom-btn:hover {
    background: linear-gradient(180deg, #4a55a8 0%, #2e3277 100%);
    border-color: rgba(92, 206, 255, 0.6);
    box-shadow: 0 0 15px rgba(92, 206, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.custom-btn:active {
    transform: translateY(1px);
    box-shadow: 0 0 8px rgba(92, 206, 255, 0.3), inset 0 2px 4px rgba(0,0,0,0.3);
}

/* Enhanced icon hover effects */
.desktop-icon {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    cursor: pointer; text-align: center; gap: 6px;
    animation: iconFloat 2.8s ease-in-out infinite;
    transition: transform 0.24s ease, filter 0.24s ease, box-shadow 0.24s ease;
}

.desktop-icon:hover {
    transform: translateY(-8px) scale(1.08);
}

.desktop-icon:hover .desktop-icon-img {
    transform: scale(1.12) rotate(-3deg);
    filter: drop-shadow(0 0 12px rgba(92, 206, 255, 0.8));
}
@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* SPACEHEY / PANEL BLOCKS (Unified Dark Aero + Edgy) */
.spacehey-box {
    background: linear-gradient(180deg, rgba(32, 24, 40, 0.9) 0%, rgba(19, 15, 27, 0.92) 100%);
    border: 1px solid rgba(141, 181, 255, 0.28);
    box-shadow:
      inset 0 1px 0 rgba(214, 232, 255, 0.16),
      0 8px 20px rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    color: #e7f0ff;
}
.retro-marquee {
    font-family: 'VT323'; font-size: 20px; color: red; background: black; padding: 5px;
    border: 2px inset #808080; margin-bottom: 10px;
}

/* OS TASKBAR (GÖREV ÇUBUĞU) */
.taskbar {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 42px;
    background: linear-gradient(180deg, rgba(180, 212, 255, 0.28) 0%, rgba(60, 99, 156, 0.34) 55%, rgba(24, 47, 87, 0.45) 100%);
    border-top: 1px solid rgba(210, 230, 255, 0.5);
    box-shadow:
      0 -6px 18px rgba(0,0,0,0.45),
      inset 0 1px 0 rgba(255,255,255,0.36);
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    display: flex; align-items: center; padding: 0 8px; gap: 8px; z-index: 1000;
}
.start-button {
    display: flex; align-items: center; gap: 6px; cursor: pointer;
    font-family: 'Press Start 2P'; font-size: 10px; padding: 6px 10px;
    background: linear-gradient(180deg, rgba(73, 96, 145, 0.92) 0%, rgba(34, 27, 42, 0.95) 100%);
    color: #f4f8ff;
    border: 1px solid rgba(186, 213, 255, 0.45);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 8px rgba(0,0,0,0.28);
}
.start-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
.start-button:active {
    border-top-color: #000; border-left-color: #000;
    border-bottom-color: #fff; border-right-color: #fff;
}
.taskbar-time {
    margin-left: auto;
    font-family: 'VT323'; font-size: 20px; border: 1px solid rgba(190, 216, 255, 0.5);
    border-radius: 6px;
    padding: 2px 8px; background: rgba(16, 27, 46, 0.45); color: #f3f8ff;
}

.taskbar-apps {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: thin;
}
.taskbar-app-btn {
    border: 1px solid rgba(190, 216, 255, 0.4);
    border-radius: 6px;
    background: rgba(26, 45, 74, 0.55);
    color: #edf6ff;
    font-size: 11px;
    padding: 4px 8px;
    cursor: pointer;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.taskbar-app-btn.active {
    background: rgba(108, 158, 228, 0.55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

/* stylistic polish additions */
.window::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(140deg, rgba(255,255,255,0.16), rgba(255,255,255,0) 34%, rgba(88, 174, 255, 0.06) 75%, rgba(88,174,255,0));
}

.desktop-icon span {
    box-shadow: 0 2px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

.start-button {
    position: relative;
    overflow: hidden;
}
.start-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    transform: skewX(-25deg);
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
    transition: left 0.45s ease;
}
.start-button:hover::after {
    left: 150%;
}
.tab-bar { display: flex; background: #1a0808; border-bottom: 2px solid #7c2305; }
.tab-bar button { 
    background: transparent; color: #e4d3d3; border: none; padding: 5px 10px; 
    font-family: 'Press Start 2P'; font-size: 8px; cursor: pointer; 
}
.tab-bar button:hover { background: #7c2305; }

.profile-pic-neon { 
    width: 100px; border: 2px solid #7c2305; 
    box-shadow: 0 0 10px #7c2305; margin-bottom: 10px;
}

.cv-item { border-bottom: 1px solid #7c2305; padding: 5px 0; color: #e4d3d3; }
/* (merged into unified .spacehey-box above) */

/* Scrollbar'ı da retro yapalım */
.window-body::-webkit-scrollbar { width: 10px; }
.window-body::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border: 2px solid #000; }

/* Form Elements */
input[type="text"], input[type="password"], textarea, select {
    width: 100%;
    padding: 7px;
    margin-bottom: 10px;
    border: 1px solid rgba(148, 188, 255, 0.42);
    border-radius: 6px;
    background: rgba(16, 17, 29, 0.85);
    color: #e8f1ff;
    font-family: 'VT323', monospace;
    font-size: 18px;
}

/* Buttons */
.custom-btn {
    display: inline-block;
    padding: 6px 11px;
    background: linear-gradient(180deg, #3a3f5d 0%, #1e2137 100%);
    color: #eff5ff;
    border: 1px solid rgba(162, 195, 255, 0.42);
    border-radius: 7px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 6px rgba(0,0,0,0.3);
}

.custom-btn:active {
    border-top-color: #000; border-left-color: #000;
    border-bottom-color: #fff; border-right-color: #fff;
}

/* Media Player */
.media-player-box {
    text-align: center;
}
.media-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}
.media-btn {
    cursor: pointer;
    font-size: 24px;
}

.media-btn.active {
    color: #5cceff;
    text-shadow: 0 0 8px rgba(92, 206, 255, 0.8);
}

.media-progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    font-family: 'VT323', monospace;
    font-size: 16px;
}

.progress-bar {
    width: 60%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #1a2a3d, #2a3a4d);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #5cceff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(92, 206, 255, 0.8);
}

.progress-bar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #5cceff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.media-equalizer {
    margin-bottom: 12px;
}

.media-equalizer select {
    font-family: 'VT323', monospace;
    font-size: 16px;
    padding: 4px 8px;
    background: #0d1525;
    color: #e8f1ff;
    border: 1px solid #5cceff;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

#shuffle-btn, #repeat-btn {
    opacity: 0.5;
    transition: opacity 0.2s ease, color 0.2s ease;
}

#shuffle-btn:hover, #repeat-btn:hover {
    opacity: 0.8;
}

#shuffle-btn.active, #repeat-btn.active {
    opacity: 1;
    color: #5cceff;
}

.media-btn.active {
    color: #5cceff;
    text-shadow: 0 0 8px rgba(92, 206, 255, 0.8);
}

/* Progress Bar */
.media-progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.media-progress-container span {
    font-family: 'VT323', monospace;
    font-size: 14px;
    min-width: 40px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
    border: 1px solid #5cceff;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #5cceff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(92, 206, 255, 0.8);
}

.progress-bar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #5cceff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Equalizer */
.media-equalizer {
    margin-bottom: 10px;
}

.media-equalizer select {
    font-family: 'VT323', monospace;
    font-size: 16px;
    padding: 5px 8px;
    background: rgba(16, 17, 29, 0.85);
    color: #e8f1ff;
    border: 1px solid rgba(148, 188, 255, 0.42);
    border-radius: 6px;
}

/* Project Filters */
.project-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.project-filters select,
.project-filters input {
    flex: 1;
    min-width: 120px;
    font-family: 'VT323', monospace;
    font-size: 16px;
    padding: 6px 10px;
    background: rgba(16, 17, 29, 0.85);
    color: #e8f1ff;
    border: 1px solid rgba(148, 188, 255, 0.42);
    border-radius: 6px;
}

.project-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(92, 206, 255, 0.3);
}

.media-btn.active {
    color: #5cceff;
    text-shadow: 0 0 8px #5cceff;
}

.media-progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-family: 'VT323', monospace;
    font-size: 14px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #5cceff;
    border-radius: 4px;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #5cceff;
    border-radius: 50%;
    cursor: pointer;
}

.media-equalizer {
    margin-bottom: 10px;
}

.media-btn.active {
    color: var(--accent-blue);
    text-shadow: 0 0 8px var(--accent-blue);
}

.media-progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #1a2744, #2a3f66);
    border-radius: 4px;
    outline: none;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-blue);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px var(--accent-blue);
}

.media-equalizer {
    margin-bottom: 12px;
}

/* Media player progress bar and controls */
.media-progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
    font-family: 'VT323', monospace;
    font-size: 16px;
}

.progress-bar {
    width: 60%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #1a2a4a, #2a4a7a);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #5cceff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px #5cceff;
}

.media-equalizer {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.media-btn.active {
    color: #5cceff;
    text-shadow: 0 0 8px #5cceff;
}

/* Y2K MEDIA.SYS */
.y2k-media-shell {
    background: linear-gradient(180deg, rgba(12, 24, 50, 0.95), rgba(5, 12, 30, 0.95));
    border: 2px solid #89d4ff;
    box-shadow: inset 0 0 8px rgba(92, 206, 255, 0.45), 0 0 12px rgba(92, 206, 255, 0.35);
    padding: 10px;
}

.media-title-y2k {
    font-family: 'Press Start 2P';
    font-size: 9px;
    margin-bottom: 10px;
    color: #bff0ff;
    text-shadow: 0 0 5px rgba(92, 206, 255, 0.8);
}

.media-meta-layout {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    margin-bottom: 10px;
    align-items: center;
}

.media-cover-wrap {
    width: 110px;
    height: 110px;
    border: 2px inset #6fb8e8;
    background: radial-gradient(circle at 30% 30%, #2e4f82, #081126 70%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* CD Disc icon for media player */
.media-track-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cd-disc {
    width: 28px;
    height: 28px;
    object-fit: contain;
    image-rendering: auto;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* CD spinning animation */
.cd-disc.spinning {
    animation: cdIconSpin 2s linear infinite;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(92, 206, 255, 0.5), 0 0 15px rgba(92, 206, 255, 0.3);
}

@keyframes cdIconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Media player playing animation */
.media-cover-wrap.playing {
    animation: coverPulse 1s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(92, 206, 255, 0.6), 0 0 30px rgba(92, 206, 255, 0.3);
}

@keyframes coverPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.media-meta-layout.playing {
    transform: scale(1.02);
}

.media-meta-layout {
    transition: transform 0.3s ease;
}

#audio-cover-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-meta-text {
    text-align: left;
    color: #e8f7ff;
}

.media-track-title {
    font-size: 24px;
    font-weight: bold;
    min-height: 24px;
    line-height: 1.1;
    text-shadow: 0 0 6px rgba(92, 206, 255, 0.5);
}

.media-track-artist {
    font-size: 16px;
    opacity: 0.95;
    margin-top: 4px;
    min-height: 18px;
}

.media-track-album {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 2px;
    min-height: 16px;
}

#audio-visualizer {
    width: 100%;
    height: 120px;
    border: 2px inset #7ab8e0;
    background: linear-gradient(180deg, #041027, #020814);
    margin-bottom: 10px;
    image-rendering: pixelated;
    animation: visualizerPulse 0.8s ease-in-out infinite;
}

@keyframes visualizerPulse {
    0%, 100% { box-shadow: inset 0 0 8px rgba(92, 206, 255, 0.3); }
    50% { box-shadow: inset 0 0 15px rgba(92, 206, 255, 0.6); }
}

.media-cover-wrap.playing {
    animation: vinylSpin 3s linear infinite;
    border-color: rgba(92, 206, 255, 0.8);
    box-shadow: 0 0 20px rgba(92, 206, 255, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.6);
}

@keyframes vinylSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.media-meta-layout.playing {
    animation: metaGlow 1.5s ease-in-out infinite alternate;
}

@keyframes metaGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.15); }
}

/* Project Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

/* Project Filters */
.project-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.project-filters select,
.project-filters input {
    flex: 1;
    min-width: 100px;
}

/* Blog Filters */
.blog-filters {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.blog-filters select,
.blog-filters input {
    flex: 1;
    min-width: 80px;
}

/* Media Progress */
.media-progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(92, 206, 255, 0.2);
    border-radius: 4px;
    outline: none;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #5cceff;
    border-radius: 50%;
    cursor: pointer;
}

.media-equalizer {
    margin-top: 5px;
}

/* Active button states */
.media-btn.active {
    color: #5cceff;
    text-shadow: 0 0 8px rgba(92, 206, 255, 0.8);
}

/* Fruityger Aero Start Menu + Admin Prompt */
.start-menu {
    position: fixed;
    left: 10px;
    bottom: 46px;
    width: 300px;
    z-index: 1500;
    border-radius: 12px 12px 9px 9px;
    border: 1px solid rgba(173, 206, 255, 0.4);
    background: linear-gradient(180deg, rgba(47, 61, 97, 0.96) 0%, rgba(27, 16, 27, 0.96) 100%);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.16);
    padding: 10px;
}

.start-menu-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.16);
    color: #f2f9ff;
}

.start-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #e6f5ff 0%, #89c2ff 45%, #2c6ccc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #123b73;
}

.start-user-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
}

.start-user-sub {
    font-size: 11px;
    opacity: 0.9;
}

.start-menu-item {
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.12);
    color: #f5fbff;
    cursor: pointer;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 13px;
    transition: 0.16s ease;
}

.start-menu-item:hover {
    background: rgba(255,255,255,0.24);
    border-color: rgba(255,255,255,0.5);
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 1800;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 16, 38, 0.45);
}

.admin-modal-card {
    width: 320px;
    border-radius: 12px;
    border: 1px solid rgba(186, 221, 255, 0.8);
    background: linear-gradient(180deg, rgba(245, 252, 255, 0.95) 0%, rgba(214, 232, 252, 0.95) 100%);
    box-shadow: 0 18px 35px rgba(8, 24, 52, 0.45);
    padding: 16px;
    color: #13396e;
}

.admin-modal-card h3 {
    margin-bottom: 6px;
    font-size: 18px;
}

.admin-modal-card p {
    font-size: 13px;
    margin-bottom: 10px;
}

.admin-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

/* Sticky Notes (Blog-style app, not sticky-note visuals) */
.blog-notes-shell {
    display: block;
}
.blog-notes-form {
    background: rgba(18, 20, 30, 0.55);
    border: 1px solid rgba(160, 190, 255, 0.32);
    border-radius: 8px;
    padding: 10px;
}
.blog-note-item {
    border-left: 3px solid rgba(143, 200, 255, 0.8);
}

/* Mobile optimization */
@media (max-width: 768px) {
    .desktop {
        grid-template-columns: repeat(3, minmax(92px, 112px));
        grid-auto-rows: 116px;
        gap: 12px;
        padding: 10px;
        height: calc(100vh - 54px);
        align-content: center;
        justify-content: center;
    }

    .desktop-icon-img {
        width: 48px;
        height: 48px;
    }

    .desktop-icon span {
        font-size: 8px;
        padding: 3px 5px;
    }

.window {
        width: calc(100vw - 10px);
        max-width: calc(100vw - 10px);
        left: 5px;
        top: 8px;
        max-height: calc(100vh - 58px);
        border-radius: 8px;
        /* Allow dragging - no !important */
        touch-action: none;
    }

    .window-header {
        padding: 8px 10px;
        font-size: 12px;
        touch-action: none;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        cursor: move;
    }

    /* Larger window control buttons for touch */
    .window-controls {
        gap: 8px;
    }
    
    .control-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .window-body {
        max-height: calc(100vh - 122px);
        font-size: 16px;
        padding: 10px;
    }

    .taskbar {
        height: 50px;
        padding: 0 6px;
        gap: 6px;
    }

    .start-button {
        font-size: 9px;
        padding: 6px 8px;
        min-height: 36px;
    }

    .taskbar-app-btn {
        font-size: 11px;
        padding: 6px 8px;
        max-width: 140px;
        min-height: 34px;
    }

    .start-menu {
        width: calc(100vw - 10px);
        left: 5px;
        bottom: 56px;
    }

    #audio-visualizer {
        height: 92px;
    }

    .custom-btn,
    .start-menu-item {
        min-height: 36px;
        padding: 10px 14px;
        font-size: 10px;
    }
    
    /* Touch-friendly button feedback */
    .control-btn:active {
        transform: scale(0.95);
    }
    
    /* Disable hover effects that cause issues on mobile */
    .desktop-icon:hover {
        transform: none;
    }
    
    .desktop-icon:active {
        transform: scale(0.95);
    }
}

/* Screen Saver */
.screen-saver {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(circle at center, #001022 0%, #021b35 50%, #000010 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ===== BOOT COMPLETE NOTIFICATION POPUP ===== */
.boot-notification {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 1200;
    animation: notifSlideIn 0.5s ease-out forwards, notifPulse 2s ease-in-out 2s;
    min-width: 280px;
}

@keyframes notifSlideIn {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notifPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(92, 206, 255, 0.4), 0 0 20px rgba(92, 206, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(92, 206, 255, 0.6), 0 0 40px rgba(92, 206, 255, 0.3);
    }
}

.notification-content {
    background: linear-gradient(180deg, rgba(42, 47, 60, 0.98) 0%, rgba(21, 25, 35, 0.98) 100%);
    border: 2px solid rgba(92, 206, 255, 0.6);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
}

.notification-icon {
    display: flex;
    justify-content: center;
}

.notification-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(92, 206, 255, 0.6));
}

.notification-text {
    text-align: center;
}

.notification-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    color: #5cceff;
    text-shadow: 0 0 8px rgba(92, 206, 255, 0.6);
    margin-bottom: 4px;
}

.notification-body {
    font-family: 'VT323', monospace;
    font-size: 18px;
    color: #dbe8ff;
}

.notification-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.notification-btn-open {
    flex: 1;
    padding: 8px 16px;
    background: linear-gradient(180deg, #5cceff 0%, #2a7fc8 100%);
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    box-shadow: 0 0 12px rgba(92, 206, 255, 0.5);
    transition: all 0.2s ease;
}

.notification-btn-open:hover {
    background: linear-gradient(180deg, #7de0ff 0%, #5cceff 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(92, 206, 255, 0.7);
}

.notification-btn-close {
    flex: 1;
    padding: 8px 16px;
    background: transparent;
    color: #8fa8c8;
    border: 1px solid rgba(143, 168, 200, 0.4);
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    transition: all 0.2s ease;
}

.notification-btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(143, 168, 200, 0.6);
    color: #dbe8ff;
}

.screensaver-content {
    text-align: center;
}

.screensaver-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #5cceff 0%, #08305a 100%);
    border-radius: 8px;
    animation: saverPulse 2s ease-in-out infinite;
}

@keyframes saverPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Window close bubble animation */
@keyframes bubblePop {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
    100% { transform: translate(calc(-50% + var(--tx, 50px)), calc(-50% + var(--ty, 50px))) scale(0.3); opacity: 0; }
}

.close-bubble {
    animation: bubblePop 0.6s ease-out forwards;
}

/* ===== ALTERNATIVE STYLES - GLITCH EFFECTS ===== */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitchRGB {
    0% { text-shadow: -2px 0 #ff0000, 2px 0 #00ffff; }
    25% { text-shadow: 2px 0 #ff0000, -2px 0 #00ffff; transform: translateX(2px); }
    50% { text-shadow: -2px 0 #00ffff, 2px 0 #ff0000; transform: translateX(-2px); }
    75% { text-shadow: 2px 0 #00ffff, -2px 0 #ff0000; }
    100% { text-shadow: -2px 0 #ff0000, 2px 0 #00ffff; }
}

.text-glitch:hover {
    animation: glitchRGB 0.3s linear infinite;
    position: relative;
}

/* CRT Scanline Effect */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9998;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(2px); }
}

/* Chromatic Aberration on Images */
.chromatic-img {
    position: relative;
    transition: all 0.3s ease;
}

.chromatic-img::before,
.chromatic-img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    background-size: cover;
    mix-blend-mode: screen;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.chromatic-img::before {
    transform: translate(-3px, 0);
    filter: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='r'><feChannelR='1'/></filter></svg>#r");
    color: red;
}

.chromatic-img:hover::before {
    transform: translate(-4px, 0) skewX(-2deg);
}

.chromatic-img:hover::after {
    transform: translate(4px, 0) skewX(2deg);
}

/* Breathing/Pulsing Glow */
@keyframes breathe {
    0%, 100% { 
        box-shadow: 0 0 10px var(--accent-blue), 0 0 20px var(--accent-blue);
        opacity: 0.7;
    }
    50% { 
        box-shadow: 0 0 20px var(--accent-blue), 0 0 40px var(--accent-blue), 0 0 60px var(--accent-blue);
        opacity: 1;
    }
}

.breathe-glow {
    animation: breathe 3s ease-in-out infinite;
}

/* Rainbow Cycle Effects */
@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.rainbow-border {
    animation: rainbow 5s linear infinite;
    border: 2px solid;
    border-image: linear-gradient(45deg, red, yellow, lime, aqua, blue, magenta, red) 1;
}

/* Vaporwave Grid */
.vapor-grid {
    background: 
        linear-gradient(transparent 0%, rgba(255, 0, 255, 0.3) 2px, transparent 3px),
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.3) 2px, transparent 3px);
    background-size: 30px 30px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

/* Matrix Digital Rain */
.matrix-rain {
    position: relative;
    overflow: hidden;
    color: #0f0;
    font-family: 'VT323', monospace;
}

.matrix-rain::before {
    content: "01001010010101010100101010101001010010101001010101001010";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(0, 255, 0, 0.1);
    font-size: 10px;
    line-height: 12px;
    word-break: break-all;
    animation: matrixFalls 10s linear infinite;
}

@keyframes matrixFalls {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Neon Text Effect */
.neon-text {
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--accent-blue),
        0 0 40px var(--accent-blue);
}

.neon-text-pink {
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px #ff00ff,
        0 0 40px #ff00ff,
        0 0 80px #ff00ff;
}

/* Inverted Colors on Hover */
.invert-on-hover {
    transition: filter 0.3s ease;
}

.invert-on-hover:hover {
    filter: invert(1) hue-rotate(180deg);
}

/* Blur Reveal Animation */
.blur-reveal {
    filter: blur(10px);
    opacity: 0.5;
    transition: all 0.5s ease;
}

.blur-reveal:hover {
    filter: blur(0);
    opacity: 1;
}

/* Slide In from Sides */
@keyframes slideInLeft {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.slide-left { animation: slideInLeft 0.5s ease forwards; }
.slide-right { animation: slideInRight 0.5s ease forwards; }

/* Wobble Effect */
@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-5deg); }
    30% { transform: rotate(3deg); }
    45% { transform: rotate(-3deg); }
    60% { transform: rotate(1deg); }
    75% { transform: rotate(0deg); }
}

.wobble:hover {
    animation: wobble 0.5s ease;
}

/* Spotlight Highlight */
.spotlight {
    position: relative;
    overflow: hidden;
}

.spotlight::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 50%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.spotlight:hover::after {
    transform: scale(1);
}

/* Flip Card Effect */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Pulse Border */
@keyframes pulseBorder {
    0% { border-color: #ff00ff; box-shadow: 0 0 10px #ff00ff; }
    50% { border-color: #00ffff; box-shadow: 0 0 20px #00ffff; }
    100% { border-color: #ff00ff; box-shadow: 0 0 10px #ff00ff; }
}

.pulse-border {
    animation: pulseBorder 2s ease-in-out infinite;
}

/* Floating Animation - Different Easing */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(2deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.float-smooth {
    animation: float 6s ease-in-out infinite;
}

/* Bubble Pop Animation for window close */
@keyframes bubblePop {
    0% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 1;
    }
    100% { 
        transform: translate(calc(-50% + var(--tx, 50px)), calc(-50% + var(--ty, 50px))) scale(0.3); 
        opacity: 0;
    }
}

/* Pulse glow effect for playing media */
.media-cover-wrap.playing {
    animation: coverPulse 1.5s ease-in-out infinite;
}

@keyframes coverPulse {
    0%, 100% { box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6); }
    50% { box-shadow: inset 0 0 20px rgba(92, 206, 255, 0.5), 0 0 15px rgba(92, 206, 255, 0.3); }
}

/* Glow text effect for media titles */
.media-track-title {
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 6px rgba(92, 206, 255, 0.5); }
    100% { text-shadow: 0 0 12px rgba(92, 206, 255, 0.8), 0 0 20px rgba(92, 206, 255, 0.4); }
}

/* ENHANCED TYPOGRAPHY & TEXT EFFECTS */
.text-glow {
    text-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 20px currentColor;
}

.text-glow-blue {
    text-shadow: 0 0 5px #5cceff, 0 0 10px #5cceff, 0 0 20px #5cceff, 0 0 40px #5cceff;
}

.text-glow-pink {
    text-shadow: 0 0 5px #ff00aa, 0 0 10px #ff00aa, 0 0 20px #ff00aa, 0 0 40px #ff00aa;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(90deg, #5cceff, #ff00aa, #9d00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 3s linear infinite;
}

/* Chromatic aberration text effect */
.chromatic-text {
    position: relative;
    color: white;
}

.chromatic-text::before,
.chromatic-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.chromatic-text::before {
    color: #ff0000;
    z-index: -1;
    transform: translate(-2px, -2px);
    animation: chromaticMoveX 2s ease-in-out infinite;
}

.chromatic-text::after {
    color: #00ffff;
    z-index: -1;
    transform: translate(2px, 2px);
    animation: chromaticMoveY 2s ease-in-out infinite alternate;
}

@keyframes chromaticMoveX {
    0%, 100% { transform: translate(-2px, -2px); }
    50% { transform: translate(-3px, -3px); }
}

@keyframes chromaticMoveY {
    0%, 100% { transform: translate(2px, 2px); }
    50% { transform: translate(3px, 3px); }
}

/* Glitch effect for titles */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.glitch:hover {
    animation: glitch 0.3s ease-in-out infinite;
}

/* Rainbow border effect */
.rainbow-border {
    position: relative;
}

.rainbow-border::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, #ff0000, #ff7700, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
    background-size: 800% 100%;
    border-radius: inherit;
    z-index: -1;
    animation: rainbowMove 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rainbow-border:hover::before {
    opacity: 1;
}

@keyframes rainbowMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 800% 50%; }
}

/* PULSE GLOW EFFECT */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px var(--accent-blue), 0 0 10px var(--accent-blue); }
    50% { box-shadow: 0 0 20px var(--accent-blue), 0 0 30px var(--accent-blue), 0 0 40px var(--accent-blue); }
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* SPARKLE EFFECT */
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

.sparkle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: sparkle 1.5s ease-in-out infinite;
}

/* BETTER SCROLLBAR STYLING */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 15, 30, 0.8);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple));
    border-radius: 6px;
    border: 2px solid rgba(10, 15, 30, 0.8);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-pink));
}

::-webkit-scrollbar-corner {
    background: rgba(10, 15, 30, 0.8);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) rgba(10, 15, 30, 0.8);
}

/* SMOOTH PAGE TRANSITIONS */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.4s ease-out forwards;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.4s ease-out forwards;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ENHANCED INPUT STYLES */
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(92, 206, 255, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    outline: none;
    transition: all 0.2s ease;
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: rgba(200, 220, 255, 0.5);
    font-style: italic;
}

/* PROGRESSIVE IMAGE HOVER */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(92, 206, 255, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 12px 30px rgba(92, 206, 255, 0.4),
        0 0 40px rgba(92, 206, 255, 0.2);
}

/* FLOATING LABEL EFFECT */
.form-group {
    position: relative;
    margin-bottom: 15px;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 10px;
    color: rgba(200, 220, 255, 0.6);
    pointer-events: none;
    transition: all 0.2s ease;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    left: 0;
    font-size: 12px;
    color: var(--accent-blue);
}

/* RIPPLE EFFECT ON CLICK */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* ROTATING BORDER */
@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rotating-border {
    position: relative;
}

.rotating-border::after {
    content: "";
    position: absolute;
    inset: -3px;
    border: 2px solid transparent;
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: rotateBorder 2s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rotating-border:hover::after {
    opacity: 1;
}

/* BREATHING EFFECT */
@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
}

.breathe {
    animation: breathe 4s ease-in-out infinite;
}

/* MAGNETIC HOVER (for buttons) */
.magnetic-hover {
    transition: transform 0.3s ease;
}

.magnetic-hover:hover {
    transform: scale(1.05);
}

/* COLOR CYCLE BACKGROUND */
.color-cycle-bg {
    background: linear-gradient(45deg, 
        hsl(var(--hue, 200), 70%, 20%), 
        hsl(calc(var(--hue, 200) + 60), 70%, 30%),
        hsl(calc(var(--hue, 200) + 120), 70%, 20%)
    );
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    --hue: 200;
}

.color-cycle-bg:hover {
    --hue: 220;
}

/* NEON BORDER ANIMATION */
.neon-border {
    border: 2px solid transparent;
    background: linear-gradient(#0a0a15, #0a0a15) padding-box,
                linear-gradient(90deg, var(--accent-blue), var(--accent-pink), var(--accent-purple)) border-box;
    animation: neonBorderMove 3s linear infinite;
}

@keyframes neonBorderMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* CARD 3D HOVER EFFECT */
.card-3d {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d:hover {
    transform: rotateX(5deg) rotateY(-5deg) translateZ(10px);
    box-shadow: 
        20px 20px 30px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(92, 206, 255, 0.3);
}

/* TRAILING CURSOR EFFECT */
.cursor-trail {
    pointer-events: none;
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent-blue);
    border-radius: 50%;
    opacity: 0.5;
    z-index: 99999;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 10px var(--accent-blue);
}

/* SMOOTH FOCUS RING */
*:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* STAGGERED ANIMATION DELAYS */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* RESPONSIVE ENHANCEMENTS */
@media (max-width: 768px) {
    .desktop-icon:hover {
        transform: translateY(-4px) scale(1.04);
    }
    
    .desktop-icon:hover .desktop-icon-img {
        transform: scale(1.06) rotate(-2deg);
    }
    
    .custom-btn:hover {
        transform: translateY(-1px);
    }
}
