/* Preloader Styles */
#preloader {
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    background: rgba(0, 0, 0, 0.8);
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Windows XP Dialog Styling */
.xp-dialog {
    box-shadow:
        0 0 0 1px #000,
        0 0 0 2px #fff,
        0 0 0 3px #000,
        0 8px 16px rgba(0, 0, 0, 0.5);
    animation: dialog-glitch 4s ease-in-out infinite;
}

@keyframes dialog-glitch {

    0%,
    100% {
        transform: translate(0, 0);
    }

    2% {
        transform: translate(-1px, 0);
    }

    4% {
        transform: translate(1px, 0);
    }

    6% {
        transform: translate(-1px, 0);
    }

    8% {
        transform: translate(1px, 0);
    }

    10% {
        transform: translate(0, 0);
    }
}

.xp-dialog-titlebar {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.xp-dialog-content {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glitch-character {
    animation: character-bounce 2s ease-in-out infinite;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.glitch-character::before,
.glitch-character::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    background: inherit;
    z-index: -1;
}

.glitch-character::before {
    animation: glitch-char-1 3s ease-in-out infinite;
    background: linear-gradient(45deg, #ff0000, #00ff00);
}

.glitch-character::after {
    animation: glitch-char-2 3s ease-in-out infinite;
    background: linear-gradient(45deg, #0000ff, #ffff00);
}

@keyframes character-bounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.02);
    }
}

@keyframes glitch-char-1 {

    0%,
    100% {
        opacity: 0;
        transform: translate(0, 0);
    }

    10% {
        opacity: 0.3;
        transform: translate(-1px, 1px);
    }

    20% {
        opacity: 0;
        transform: translate(0, 0);
    }

    30% {
        opacity: 0.3;
        transform: translate(1px, -1px);
    }

    40% {
        opacity: 0;
        transform: translate(0, 0);
    }
}

@keyframes glitch-char-2 {

    0%,
    100% {
        opacity: 0;
        transform: translate(0, 0);
    }

    15% {
        opacity: 0.3;
        transform: translate(1px, -1px);
    }

    25% {
        opacity: 0;
        transform: translate(0, 0);
    }

    35% {
        opacity: 0.3;
        transform: translate(-1px, 1px);
    }

    45% {
        opacity: 0;
        transform: translate(0, 0);
    }
}

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 49%, rgba(255, 0, 0, 0.05) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(0, 255, 255, 0.05) 50%, transparent 51%);
    background-size: 20px 20px;
    animation: overlay-glitch 1s ease-in-out infinite;
    pointer-events: none;
}

/* Progress Bar Animation */
#progress-bar {
    animation: progress-glow 2s ease-in-out infinite;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@keyframes progress-glow {

    0%,
    100% {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 5px rgba(34, 197, 94, 0.3);
    }

    50% {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 15px rgba(34, 197, 94, 0.6);
    }
}

/* Loading Status Animation */
#loading-status {
    animation: status-flicker 1.5s ease-in-out infinite;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

@keyframes status-flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* Windows XP Button Styling */
.xp-btn {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 1px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid #666;
    border-radius: 2px;
}

.xp-btn:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 1px 0 rgba(0, 0, 0, 0.3);
}

/* Preloader Fade Out Animation */
.preloader-fade-out {
    animation: preloader-fade 0.5s ease-out forwards;
}

@keyframes preloader-fade {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tahoma', 'Arial', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

.font-press-start {
    font-family: 'Press Start 2P', cursive;
}

.font-tahoma {
    font-family: 'Tahoma', 'Arial', sans-serif;
}

/* CRT Scanlines Overlay */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%,
            rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(4px);
    }
}

/* Glitch Background */
.glitch-bg {
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    animation: glitch-bg 3s ease-in-out infinite;
}

@keyframes glitch-bg {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* Windows XP Popup Styles */
.xp-popup {
    box-shadow:
        0 0 0 2px #000,
        0 0 0 4px #fff,
        0 0 0 6px #000,
        0 8px 16px rgba(0, 0, 0, 0.5);
    animation: popup-glitch 4s ease-in-out infinite;
}

@keyframes popup-glitch {

    0%,
    100% {
        transform: translate(0, 0);
    }

    2% {
        transform: translate(-2px, 0);
    }

    4% {
        transform: translate(2px, 0);
    }

    6% {
        transform: translate(-1px, 0);
    }

    8% {
        transform: translate(1px, 0);
    }

    10% {
        transform: translate(0, 0);
    }
}

.xp-titlebar {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.xp-close-btn {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.xp-content {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    animation: glitch-text 3s ease-in-out infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s ease-in-out infinite;
    color: #ff0000;
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s ease-in-out infinite;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch-1 {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-2 {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(2px, -2px);
    }

    40% {
        transform: translate(2px, 2px);
    }

    60% {
        transform: translate(-2px, -2px);
    }

    80% {
        transform: translate(-2px, 2px);
    }
}

/* Glitch Button Effect */
.glitch-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glitch-btn:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.5),
        0 0 40px rgba(0, 255, 255, 0.3),
        0 0 60px rgba(0, 255, 255, 0.1);
}

.glitch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.glitch-btn:hover::before {
    left: 100%;
}

/* Video Glitch Effects */
.glitch-video {
    filter: contrast(1.1) saturate(1.2);
    transition: all 0.3s ease;
}

.glitch-video:hover {
    filter: contrast(1.3) saturate(1.5) hue-rotate(10deg);
    transform: scale(1.02);
}

.video-overlay {
    background:
        linear-gradient(45deg, transparent 49%, rgba(255, 0, 0, 0.1) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(0, 255, 255, 0.1) 50%, transparent 51%);
    background-size: 20px 20px;
    animation: overlay-glitch 2s ease-in-out infinite;
}

@keyframes overlay-glitch {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Gallery Styles */
.gallery-grid {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #4a5568 #2d3748;
}

.gallery-grid::-webkit-scrollbar {
    height: 8px;
}

.gallery-grid::-webkit-scrollbar-track {
    background: #2d3748;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* Windows XP Window Styles */
.xp-window {
    box-shadow:
        0 0 0 1px #000,
        0 0 0 2px #fff,
        0 0 0 3px #000,
        0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.xp-window:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px #000,
        0 0 0 2px #fff,
        0 0 0 3px #000,
        0 6px 12px rgba(0, 0, 0, 0.4);
}

.xp-window-titlebar {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.xp-window-content {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Glitch Window Effect */
.glitch-window {
    animation: window-glitch 5s ease-in-out infinite;
}

@keyframes window-glitch {

    0%,
    100% {
        transform: translate(0, 0);
    }

    2% {
        transform: translate(-1px, 0);
    }

    4% {
        transform: translate(1px, 0);
    }

    6% {
        transform: translate(0, 0);
    }
}

.glitch-window:hover {
    animation: window-glitch-hover 0.3s ease-in-out infinite;
}

@keyframes window-glitch-hover {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-2px, 0) scale(1.02);
    }

    50% {
        transform: translate(2px, 0) scale(1.02);
    }

    75% {
        transform: translate(0, -1px) scale(1.02);
    }
}

/* Glitch Image Effect */
.glitch-image {
    transition: all 0.3s ease;
    filter: contrast(1.1) saturate(1.1);
}

.glitch-image:hover {
    filter: contrast(1.3) saturate(1.3) hue-rotate(5deg);
    transform: scale(1.05);
}

/* Marquee Styles */
.marquee-container {
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #4a5568;
    padding: 8px 0;
}

.marquee-left {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-left 20s linear infinite;
    color: #00ff00;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
}

.marquee-right {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-right 20s linear infinite;
    color: #00ff00;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
}

@keyframes marquee-left {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes marquee-right {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Excel Window Styles */
.xp-excel-window {
    box-shadow:
        0 0 0 1px #000,
        0 0 0 2px #fff,
        0 0 0 3px #000,
        0 4px 8px rgba(0, 0, 0, 0.3);
    animation: excel-glitch 6s ease-in-out infinite;
}

@keyframes excel-glitch {

    0%,
    100% {
        transform: translate(0, 0);
    }

    1% {
        transform: translate(-1px, 0);
    }

    2% {
        transform: translate(1px, 0);
    }

    3% {
        transform: translate(0, 0);
    }
}

.xp-excel-titlebar {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.xp-excel-content {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Glitch Chart Effect */
.glitch-chart {
    animation: chart-glitch 4s ease-in-out infinite;
}

@keyframes chart-glitch {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Taskbar Styles */
.start-btn {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.social-icon {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.clock-container {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: clock-glitch 10s ease-in-out infinite;
}

@keyframes clock-glitch {

    0%,
    100% {
        transform: translate(0, 0);
    }

    1% {
        transform: translate(-1px, 0);
    }

    2% {
        transform: translate(1px, 0);
    }

    3% {
        transform: translate(0, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .xp-popup {
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .xp-window {
        min-width: 250px;
    }

    .marquee-left,
    .marquee-right {
        font-size: 10px;
    }

    .font-press-start {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .xp-popup {
        margin: 0.5rem;
        width: calc(100% - 1rem);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .xp-window {
        min-width: 200px;
    }

    .marquee-left,
    .marquee-right {
        font-size: 8px;
    }

    .font-press-start {
        font-size: 0.7em;
    }

    .xp-btn {
        padding: 0.5rem 1rem;
        font-size: 0.6em;
    }
}

/* Additional Glitch Effects */
.glitch-text[data-text]::before {
    content: attr(data-text);
}

.glitch-text[data-text]::after {
    content: attr(data-text);
}

/* RGB Split Effect */
.rgb-split {
    animation: rgb-split 2s ease-in-out infinite;
}

@keyframes rgb-split {

    0%,
    100% {
        text-shadow:
            0 0 0 #ff0000,
            0 0 0 #00ff00,
            0 0 0 #0000ff;
    }

    50% {
        text-shadow:
            -2px 0 0 #ff0000,
            2px 0 0 #00ff00,
            0 2px 0 #0000ff;
    }
}

/* Flicker Effect */
.flicker {
    animation: flicker 3s ease-in-out infinite;
}

@keyframes flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }

    51% {
        opacity: 1;
    }

    52% {
        opacity: 0.9;
    }

    53% {
        opacity: 1;
    }
}

/* VHS Distortion */
.vhs-distortion {
    position: relative;
}

.vhs-distortion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 0, 0, 0.1) 2px,
            rgba(255, 0, 0, 0.1) 4px);
    pointer-events: none;
    animation: vhs-scan 0.1s linear infinite;
}

@keyframes vhs-scan {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(4px);
    }
}

/* Action Button Styles */
.xp-action-btn {
    flex: 1;
    max-width: 200px;
    animation: action-btn-glitch 6s ease-in-out infinite;
}

/* Mobile-specific hiding for side buttons */
@media (max-width: 1023px) {
    .xp-action-btn.hidden.lg\:block {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
}

@keyframes action-btn-glitch {

    0%,
    100% {
        transform: translate(0, 0);
    }

    1% {
        transform: translate(-1px, 0);
    }

    2% {
        transform: translate(1px, 0);
    }

    3% {
        transform: translate(0, 0);
    }
}

.xp-btn-titlebar {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.xp-btn-content {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.xp-action-btn .glitch-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 1px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.xp-action-btn .glitch-btn:hover {
    transform: scale(1.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 1px 0 rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 255, 255, 0.5);
}

.xp-action-btn .glitch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.xp-action-btn .glitch-btn:hover::before {
    left: 100%;
}

/* Responsive adjustments for action buttons */
@media (max-width: 768px) {
    .xp-action-btn {
        max-width: 150px;
    }

    .xp-action-btn .glitch-btn {
        font-size: 0.6em;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .xp-action-btn {
        max-width: 120px;
    }

    .xp-action-btn .glitch-btn {
        font-size: 0.5em;
        padding: 0.4rem 0.5rem;
    }
}

/* Windows XP Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #4a90e2 #2d3748;
}

/* Custom Scrollbar for Webkit browsers */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
    border: 1px solid #4a5568;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4a90e2 0%, #3182ce 50%, #2c5282 100%);
    border: 1px solid #2d3748;
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #63b3ed 0%, #4299e1 50%, #3182ce 100%);
    animation: scrollbar-glitch 0.3s ease-in-out;
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #2c5282 0%, #2a4365 50%, #1a365d 100%);
}

/* Scrollbar Glitch Effect */
@keyframes scrollbar-glitch {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-1px);
        filter: hue-rotate(90deg);
    }

    50% {
        transform: translateX(1px);
        filter: hue-rotate(180deg);
    }

    75% {
        transform: translateX(-1px);
        filter: hue-rotate(270deg);
    }

    100% {
        transform: translateX(0);
        filter: hue-rotate(0deg);
    }
}

/* Windows XP Scroll Animation */
@keyframes xp-scroll {
    0% {
        transform: translateY(0);
        filter: brightness(1) contrast(1);
    }

    25% {
        transform: translateY(-2px);
        filter: brightness(1.1) contrast(1.1) hue-rotate(5deg);
    }

    50% {
        transform: translateY(0);
        filter: brightness(1) contrast(1);
    }

    75% {
        transform: translateY(2px);
        filter: brightness(0.9) contrast(0.9) hue-rotate(-5deg);
    }

    100% {
        transform: translateY(0);
        filter: brightness(1) contrast(1);
    }
}

/* Smooth Scroll Container */
.smooth-scroll-container {
    scroll-behavior: smooth;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Windows XP Scroll Indicator */
.scroll-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #4a90e2 0%, #3182ce 100%);
    border: 1px solid #2d3748;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scroll-dot:hover {
    background: linear-gradient(135deg, #63b3ed 0%, #4299e1 100%);
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.scroll-dot.active {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    animation: scroll-dot-pulse 2s ease-in-out infinite;
}

@keyframes scroll-dot-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    50% {
        transform: scale(1.3);
        box-shadow: 0 4px 12px rgba(246, 173, 85, 0.6);
    }
}

/* Windows XP Scroll Sound Effect (Visual) */
.scroll-sound-effect {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
    animation: scroll-sound-wave 0.5s ease-out;
}

@keyframes scroll-sound-wave {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0);
    }

    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

/* Enhanced Smooth Scroll for Sections */
section {
    scroll-margin-top: 20px;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

section:target {
    animation: section-focus 0.8s ease-out;
}

@keyframes section-focus {
    0% {
        transform: translateY(10px);
        filter: brightness(0.8) contrast(0.8);
    }

    50% {
        transform: translateY(-5px);
        filter: brightness(1.2) contrast(1.2) hue-rotate(10deg);
    }

    100% {
        transform: translateY(0);
        filter: brightness(1) contrast(1);
    }
}

/* Windows XP Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2 0%, #63b3ed 50%, #4a90e2 100%);
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.5);
}

.scroll-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-20px);
    }

    100% {
        transform: translateX(100px);
    }
}