@import url('https://fonts.googleapis.com/css2?family=VT323&family=Press+Start+2P&display=swap');

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

body {
    font-family: 'VT323', monospace;
    overflow-x: hidden;
    background: linear-gradient(180deg, #00a8ff 0%, #9c88ff 100%);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

.title {
    font-family: 'Press Start 2P', cursive;
    font-size: 6rem;
    color: #fff;
    text-shadow:
        4px 4px 0px #ff00ff,
        8px 8px 0px #00ffff,
        12px 12px 0px #ffff00,
        16px 16px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 4rem;
    animation: glitch 1s infinite alternate;
}

@keyframes glitch {
    0% {
        text-shadow:
            4px 4px 0px #ff00ff,
            8px 8px 0px #00ffff,
            12px 12px 0px #ffff00,
            16px 16px 20px rgba(0, 0, 0, 0.5);
    }
    25% {
        text-shadow:
            -4px 4px 0px #ff00ff,
            8px -8px 0px #00ffff,
            12px 12px 0px #ffff00,
            16px 16px 20px rgba(0, 0, 0, 0.5);
    }
    50% {
        text-shadow:
            4px -4px 0px #ff00ff,
            -8px 8px 0px #00ffff,
            12px 12px 0px #ffff00,
            16px 16px 20px rgba(0, 0, 0, 0.5);
    }
    75% {
        text-shadow:
            4px 4px 0px #00ffff,
            8px 8px 0px #ffff00,
            12px 12px 0px #ff00ff,
            16px 16px 20px rgba(0, 0, 0, 0.5);
    }
    100% {
        text-shadow:
            4px 4px 0px #ffff00,
            8px 8px 0px #ff00ff,
            12px 12px 0px #00ffff,
            16px 16px 20px rgba(0, 0, 0, 0.5);
    }
}

.button-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Windows 95 Style Button */
.y2k-button {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    padding: 0;
    background: #c0c0c0;
    border: none;
    cursor: pointer;
    position: relative;
    min-width: 200px;
    box-shadow:
        inset -2px -2px 0px #000000,
        inset 2px 2px 0px #ffffff,
        inset -3px -3px 0px #808080,
        inset 3px 3px 0px #dfdfdf;
    transition: all 0.1s;
    text-decoration: none;
    display: inline-block;
}

.y2k-button:hover {
    background: #d4d4d4;
    transform: scale(1.05);
}

.y2k-button:active {
    box-shadow:
        inset 2px 2px 0px #000000,
        inset -2px -2px 0px #ffffff,
        inset 3px 3px 0px #808080,
        inset -3px -3px 0px #dfdfdf;
    transform: translateY(2px);
}

.button-inner {
    display: block;
    padding: 15px 30px;
    border: 2px dotted transparent;
}

.y2k-button:focus .button-inner {
    border: 2px dotted #000000;
}

.button-text {
    color: #000000;
    text-transform: lowercase;
    letter-spacing: 2px;
}

/* Gallery Section */
.gallery {
    min-height: 100vh;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.gallery-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 1;
}

.gallery-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    background: #c0c0c0;
    border: 2px solid #000;
    box-shadow:
        inset -1px -1px 0px #000000,
        inset 1px 1px 0px #dfdfdf,
        inset -2px -2px 0px #808080,
        inset 2px 2px 0px #ffffff,
        4px 4px 8px rgba(0, 0, 0, 0.5);
    padding: 0;
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

/* Windows 95 Title Bar */
.window-titlebar {
    background: linear-gradient(180deg, #000080 0%, #1084d0 100%);
    padding: 4px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
}

.window-title {
    color: #fff;
    font-size: 1.3rem;
    font-family: 'VT323', monospace;
    padding-left: 8px;
    letter-spacing: 1px;
}

.window-controls {
    display: flex;
    gap: 4px;
}

.window-btn {
    background: #c0c0c0;
    border: none;
    width: 24px;
    height: 20px;
    font-size: 1rem;
    font-family: 'VT323', monospace;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    box-shadow:
        inset -1px -1px 0px #000000,
        inset 1px 1px 0px #ffffff,
        inset -2px -2px 0px #808080,
        inset 2px 2px 0px #dfdfdf;
    display: flex;
    align-items: center;
    justify-content: center;
}

.window-btn:hover {
    background: #d4d4d4;
}

.window-btn:active {
    box-shadow:
        inset 1px 1px 0px #000000,
        inset -1px -1px 0px #ffffff,
        inset 2px 2px 0px #808080,
        inset -2px -2px 0px #dfdfdf;
}

.gallery-video {
    width: 100%;
    height: 400px;
    display: block;
    background: #000;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 3rem;
        text-shadow:
            2px 2px 0px #ff00ff,
            4px 4px 0px #00ffff,
            6px 6px 0px #ffff00,
            8px 8px 10px rgba(0, 0, 0, 0.5);
    }

    .y2k-button {
        font-size: 1.5rem;
        min-width: 150px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Cursor */
body {
    cursor: url('data:image/svg+xml,<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 L0,13 L4,9 L7,16 L9,15 L6,8 L11,8 Z" fill="white" stroke="black" stroke-width="1"/></svg>'), auto;
}

button, a.y2k-button {
    cursor: url('data:image/svg+xml,<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M8,0 L12,6 L9,6 L9,12 L7,12 L7,6 L4,6 Z" fill="white" stroke="black" stroke-width="1"/></svg>'), pointer;
}

html {
    scroll-behavior: smooth;
}
