* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

body {
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

a, button {
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    z-index: -1;
}

.content {
    position: relative;
    z-index: 1;
    height: 100vh;
}

.contact-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
    padding: 18px 36px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    font-family: 'Arial', sans-serif;
    border: none;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 1px;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1;
    position: relative;
}

.contact-button.glitching {
    color: transparent;
    text-shadow: none;
}

.contact-button.glitching::before,
.contact-button.glitching::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.contact-button.glitching::before {
    color: rgba(255, 255, 255, 0.8);
    animation: vhs-fast-glitch-1 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.contact-button.glitching::after {
    color: rgba(255, 255, 255, 0.5);
    animation: vhs-fast-glitch-2 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes vhs-fast-glitch-1 {
    0% { transform: none; clip-path: none; }
    25% { transform: translate(-3px, -2px); clip-path: polygon(0 25%, 100% 25%, 100% 30%, 0 30%); }
    50% { transform: translate(2px, 3px); clip-path: polygon(0 80%, 100% 80%, 100% 100%, 0 100%); }
    75% { transform: translate(-1px, -2px); clip-path: polygon(0 50%, 100% 50%, 100% 52%, 0 52%); }
    100% { transform: none; clip-path: none; }
}

@keyframes vhs-fast-glitch-2 {
    0% { transform: none; clip-path: none; }
    25% { transform: translate(3px, 2px); clip-path: polygon(0 5%, 100% 5%, 100% 10%, 0 10%); }
    50% { transform: translate(-2px, -3px); clip-path: polygon(0 60%, 100% 60%, 100% 75%, 0 75%); }
    75% { transform: translate(1px, 2px); clip-path: polygon(0 30%, 100% 30%, 100% 33%, 0 33%); }
    100% { transform: none; clip-path: none; }
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0);
    animation: sonar-wave 4s infinite ease-out;
}

.contact-button:active {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    background: #ffffff;
    color: #000000;
}

.contact-button.expanding {
    animation: expand-and-fade 0.8s ease-in-out forwards;
}

@keyframes expand-and-fade {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes sonar-wave {
    20% {
        border-color: rgba(255, 255, 255, 0.15);
    }
    80% {
        transform: scale(1.25);
        border-color: rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1.25);
    }
}

.sound-control {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.sound-button {
    display: inline-block;
    padding: 12px 24px;
    background: #000000;
    color: #ffffff;
    border: none;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Arial', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 1px;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.sound-button.glitching span {
    visibility: hidden;
}

.sound-button.glitching::before,
.sound-button.glitching::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-button.glitching::before {
    text-shadow: 1px 0px 1px rgba(255,255,255,0.7), -1px 0px 1px rgba(255,255,255,0.7);
    animation: button-glitch-anim 0.3s cubic-bezier(.25,.46,.45,.94) both infinite;
}

.sound-button.glitching::after {
    text-shadow: -1px 0px 1px rgba(255,255,255,0.7), 1px 0px 1px rgba(255,255,255,0.7);
    animation: button-glitch-anim-2 0.3s cubic-bezier(.25,.46,.45,.94) both infinite;
}

.sound-button:active {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    background: #ffffff;
    color: #000000;
}

@media (hover: hover) {
    .contact-button:hover {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
        background: #ffffff;
        color: #000000;
    }

    .sound-button:hover {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
        background: #ffffff;
        color: #000000;
    }
}

#custom-cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

#cursor-image {
    width: 100%;
    height: 100%;
    background-image: url('cursor.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.7s ease-in-out, filter 0.3s ease-in-out;
}

#cursor-image.inverted {
    filter: invert(1);
}

#cursor-image.rotating {
    animation: rotate-cursor 0.7s ease-in-out;
}

@keyframes rotate-cursor {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes button-glitch-anim {
  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 button-glitch-anim-2 {
  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); }
}

@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }

    a, button {
        cursor: pointer !important;
    }

    #custom-cursor {
        display: none;
    }

    .contact-button {
        padding: 15px 30px;
        font-size: 14px;
    }

    .sound-control {
        bottom: 30px;
    }
    
    .sound-button {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .contact-button {
        padding: 12px 25px;
        font-size: 14px;
    }

    .sound-control {
        bottom: 30px;
    }
    
    .sound-button {
        padding: 8px 16px;
        font-size: 12px;
    }

    #custom-cursor {
        width: 5px;
        height: 5px;
    }
}

body.glitching .video-background {
    animation: glitch-shake 0.3s ease-out;
}

body.glitching::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.05) 0,
        rgba(255, 255, 255, 0.05) 1px,
        transparent 1px,
        transparent 3px
    );
    animation: glitch-scanlines 0.3s ease-out;
    pointer-events: none;
    z-index: 10000;
}

@keyframes glitch-shake {
    0% { transform: translate(0); }
    25% { transform: translate(3px, -2px) rotate(0.5deg); }
    50% { transform: translate(-2px, 2px) rotate(-0.5deg); }
    75% { transform: translate(2px, 1px); }
    100% { transform: translate(0); }
}

@keyframes glitch-scanlines {
    0% {
        opacity: 0.5;
        transform: translateY(-100%);
    }
    100% {
        opacity: 0;
        transform: translateY(100%);
    }
} 