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

body {
    background: linear-gradient(135deg, #000235 0%, #1e0442 100%);
    color: white;
    overflow: hidden;
    min-height: 100vh;
}

#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

main {
    position: relative;
    z-index: 2;
    height: calc(100vh - 28px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.title-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.title-video {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-container {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.gallery-item {
    position: absolute;
    width: 300px;
    aspect-ratio: 1;
    background: #c0c0c0;
    border: 2px solid #dfdfdf;
    border-right-color: #808080;
    border-bottom-color: #808080;
    padding: 2px;
    transform-style: preserve-3d;
    pointer-events: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
    animation: float 6s infinite ease-in-out;
}

/* Special styling for text document */
.gallery-item.text-doc {
    width: 400px;
    aspect-ratio: auto;
    height: 80px;
    bottom: 20%;
    right: calc(8% + 320px);
    transform: rotate(-2deg);
    animation: float 6s infinite ease-in-out;
}

.gallery-item.text-doc:hover {
    transform: rotate(0deg) scale(1.05) !important;
}

.text-content {
    width: 100%;
    height: 100%;
    background: white;
    border: 1px solid #808080;
    border-right-color: #dfdfdf;
    border-bottom-color: #dfdfdf;
    padding: 10px;
    font-family: "Courier New", monospace;
    font-size: 16px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ca-text {
    cursor: pointer;
    user-select: all;
    padding: 5px 10px;
    transition: background-color 0.2s;
}

.ca-text:hover {
    background-color: #e6e6e6;
}

.ca-text.copied {
    background-color: #0000ff;
    color: white;
}

.gallery-item:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 4;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -2px;
    right: -2px;
    height: 20px;
    background: #c0c0c0;
    border: 2px solid #dfdfdf;
    border-right-color: #808080;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: -18px;
    left: 8px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    color: #000;
    font-size: 12px;
    text-shadow: 1px 1px #fff;
}

.gallery-item:nth-child(1) {
    top: 20%;
    left: 5%;
    transform: rotate(-5deg);
    animation-delay: 0s;
}

.gallery-item:nth-child(1)::after {
    content: 'gallery1.mp4';
}

.gallery-item:nth-child(2) {
    top: 15%;
    right: 5%;
    transform: rotate(7deg);
    animation-delay: -1.5s;
}

.gallery-item:nth-child(2)::after {
    content: 'gallery2.mp4';
}

.gallery-item:nth-child(3) {
    bottom: 15%;
    left: 8%;
    transform: rotate(3deg);
    animation-delay: -3s;
}

.gallery-item:nth-child(3)::after {
    content: 'gallery3.mp4';
}

.gallery-item:nth-child(4) {
    bottom: 20%;
    right: 8%;
    transform: rotate(-8deg);
    animation-delay: -4.5s;
}

.gallery-item:nth-child(4)::after {
    content: 'gallery4.mp4';
}

.gallery-item.text-doc::after {
    content: 'ca.txt';
}

.gallery-item img, 
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 1px solid #808080;
    border-right-color: #dfdfdf;
    border-bottom-color: #dfdfdf;
    background: #000;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotation));
    }
    50% {
        transform: translateY(-10px) rotate(var(--rotation));
    }
}

.gallery-item:nth-child(1) { --rotation: -5deg; }
.gallery-item:nth-child(2) { --rotation: 7deg; }
.gallery-item:nth-child(3) { --rotation: 3deg; }
.gallery-item:nth-child(4) { --rotation: -8deg; }
.gallery-item.text-doc { --rotation: -2deg; }

/* Windows 95 close button */
.gallery-item .close-btn {
    position: absolute;
    top: -18px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: #c0c0c0;
    border: 1px solid #808080;
    border-right-color: #dfdfdf;
    border-bottom-color: #dfdfdf;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: "Times New Roman", serif;
    font-size: 12px;
    line-height: 1;
    color: #000;
    z-index: 5;
}

.close-btn:active {
    border: 1px solid #dfdfdf;
    border-right-color: #808080;
    border-bottom-color: #808080;
}

/* Windows 95 Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 28px;
    background: #c0c0c0;
    border-top: 1px solid #dfdfdf;
    display: flex;
    align-items: center;
    padding: 2px;
    z-index: 9999;
}

.start-button {
    height: 22px;
    padding: 0 8px;
    background: #c0c0c0;
    border: 1px solid #dfdfdf;
    border-right-color: #808080;
    border-bottom-color: #808080;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 12px;
    color: #000;
    cursor: pointer;
}

.start-button:active {
    border: 1px solid #808080;
    border-right-color: #dfdfdf;
    border-bottom-color: #dfdfdf;
    padding: 1px 7px 0 9px;
}

.windows-logo {
    font-size: 14px;
}

.taskbar-divider {
    width: 1px;
    height: 22px;
    background: #808080;
    border-right: 1px solid #dfdfdf;
    margin: 0 4px;
}

.taskbar-items {
    display: flex;
    gap: 2px;
    flex: 1;
}

.taskbar-item {
    height: 22px;
    padding: 0 8px;
    background: #c0c0c0;
    border: 1px solid #dfdfdf;
    border-right-color: #808080;
    border-bottom-color: #808080;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 11px;
    color: #000;
    cursor: pointer;
    min-width: 125px;
    text-align: left;
    display: flex;
    align-items: center;
}

.taskbar-item.active {
    border: 1px solid #808080;
    border-right-color: #dfdfdf;
    border-bottom-color: #dfdfdf;
    background: #dfdfdf;
}

.taskbar-item:active {
    border: 1px solid #808080;
    border-right-color: #dfdfdf;
    border-bottom-color: #dfdfdf;
    padding: 1px 7px 0 9px;
}

/* X (Twitter) Button */
.social-button {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    background: #c0c0c0;
    border: 2px solid #dfdfdf;
    border-right-color: #808080;
    border-bottom-color: #808080;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 6px;
    cursor: pointer;
    transition: transform 0.1s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.social-button:active {
    border: 2px solid #808080;
    border-right-color: #dfdfdf;
    border-bottom-color: #dfdfdf;
    padding: 7px 5px 5px 7px;
}

.x-icon {
    width: 100%;
    height: 100%;
    color: #000;
}

/* Chrome scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000235;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#00f6ff, #ff6ac1);
    border-radius: 5px;
}
