﻿:root {
    --primary-color: #00ffff;
    --secondary-color: #ff00ff;
    --accent-color: #ffff00;
    --bg-color: #0a0a0a;
    --panel-bg: rgba(15, 15, 15, 0.9);
    --text-color: #ffffff;
    --grid-color: rgba(0, 255, 255, 0.1);
}

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

body {
    font-family: "Rajdhani", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Grid Background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 10s linear infinite;
    z-index: 0;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Hero Container */
.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
}

/* Glitch Effect */
.glitch-wrapper {
    text-align: center;
    margin-bottom: 3rem;
}

.site-title {
    font-family: "Orbitron", monospace;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    position: relative;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--primary-color);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--secondary-color);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 30% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(50% 0 20% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(10% 0 60% 0); transform: translate(0, 2px); }
    80% { clip-path: inset(80% 0 5% 0); transform: translate(-2px, 0); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -2px); }
    40% { clip-path: inset(20% 0 50% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(30% 0 40% 0); transform: translate(2px, 0); }
    80% { clip-path: inset(5% 0 80% 0); transform: translate(0, -2px); }
}

/* Video Frame */
.video-frame {
    position: relative;
    background: var(--panel-bg);
    border: 2px solid var(--primary-color);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 0 50px rgba(0, 255, 255, 0.5),
        inset 0 0 50px rgba(0, 255, 255, 0.1);
}

.frame-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--accent-color);
}

.frame-corner.top-left {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.frame-corner.top-right {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

.frame-corner.bottom-left {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

.frame-corner.bottom-right {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
    animation: hologram-flicker 4s ease-in-out infinite;
}

#mainVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 85%,
        rgba(0, 255, 255, 0.1) 100%
    );
    pointer-events: none;
}

/* Video Info */
.video-info {
    margin-top: 1.5rem;
    text-align: center;
    animation: quantum-phase 8s ease-in-out infinite;
    transform-style: preserve-3d;
}

.video-title {
    font-family: "Orbitron", monospace;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

.video-subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Controls Panel */
.controls-panel {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.cyber-btn {
    position: relative;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    font-family: "Orbitron", monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
}

.cyber-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s;
    z-index: -1;
}

.cyber-btn:hover {
    color: var(--bg-color);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
}

.cyber-btn:hover::before {
    left: 0;
}

.btn-glitch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.cyber-btn:hover .btn-glitch {
    animation: btn-glitch 0.3s;
}

@keyframes btn-glitch {
    0%, 100% { opacity: 0; }
    33% { opacity: 1; color: var(--secondary-color); transform: translate(-48%, -50%); }
    66% { opacity: 1; color: var(--accent-color); transform: translate(-52%, -50%); }
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-cube,
.floating-triangle,
.floating-circle {
    position: absolute;
    opacity: 0.1;
}

.floating-cube {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    top: 20%;
    left: 10%;
    animation: float-1 15s infinite;
    transform: rotate(45deg);
}

.floating-triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 50px solid var(--secondary-color);
    top: 60%;
    right: 15%;
    animation: float-2 20s infinite;
}

.floating-circle {
    width: 60px;
    height: 60px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    bottom: 20%;
    left: 80%;
    animation: float-3 18s infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    33% { transform: translate(100px, -50px) rotate(135deg); }
    66% { transform: translate(-50px, 50px) rotate(225deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-100px, 100px); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -100px) scale(1.2); }
}

/* Scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.03) 2px,
        rgba(0, 255, 255, 0.03) 4px
    );
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* Coming Soon Overlay */
.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(5px);
    pointer-events: none;
}

.coming-soon-text {
    font-family: "Orbitron", monospace;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 
        0 0 20px var(--primary-color),
        0 0 40px var(--primary-color),
        0 0 60px var(--primary-color);
    animation: cyber-pulse 2s ease-in-out infinite;
    letter-spacing: 0.5rem;
}

@keyframes cyber-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* New Futuristic Animations */
@keyframes hologram-flicker {
    0%, 100% { 
        opacity: 1;
        filter: hue-rotate(0deg) brightness(1);
    }
    25% { 
        opacity: 0.95;
        filter: hue-rotate(10deg) brightness(1.1);
    }
    50% { 
        opacity: 0.98;
        filter: hue-rotate(-10deg) brightness(0.95);
    }
    75% { 
        opacity: 0.96;
        filter: hue-rotate(5deg) brightness(1.05);
    }
}

@keyframes quantum-phase {
    0% { 
        transform: translateZ(0) rotateY(0deg);
        opacity: 1;
    }
    50% { 
        transform: translateZ(100px) rotateY(180deg);
        opacity: 0.6;
    }
    100% { 
        transform: translateZ(0) rotateY(360deg);
        opacity: 1;
    }
}

@keyframes data-stream {
    0% { 
        transform: translateY(-100%) translateX(0);
        opacity: 0;
    }
    10% { 
        opacity: 1;
    }
    90% { 
        opacity: 1;
    }
    100% { 
        transform: translateY(100vh) translateX(20px);
        opacity: 0;
    }
}

@keyframes matrix-rain {
    0% { 
        transform: translateY(-100%);
        opacity: 0;
    }
    10% { 
        opacity: 1;
    }
    100% { 
        transform: translateY(calc(100vh + 100%));
        opacity: 0;
    }
}

@keyframes energy-surge {
    0%, 100% { 
        box-shadow: 
            0 0 20px var(--primary-color),
            inset 0 0 20px rgba(0, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 0 60px var(--primary-color),
            inset 0 0 40px rgba(0, 255, 255, 0.4);
    }
}

/* Apply holographic effect to video container */
.video-container {
    animation: hologram-flicker 4s ease-in-out infinite;
}

/* Apply energy surge to video frame */
.video-frame {
    animation: energy-surge 3s ease-in-out infinite;
}

/* Add data streams */
.data-stream {
    position: fixed;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, 
        transparent,
        var(--primary-color),
        transparent
    );
    animation: data-stream 4s linear infinite;
    opacity: 0.6;
}

/* Generate multiple data streams */
.data-stream:nth-child(1) { left: 10%; animation-delay: 0s; }
.data-stream:nth-child(2) { left: 30%; animation-delay: 1s; }
.data-stream:nth-child(3) { left: 50%; animation-delay: 2s; }
.data-stream:nth-child(4) { left: 70%; animation-delay: 0.5s; }
.data-stream:nth-child(5) { left: 90%; animation-delay: 1.5s; }

/* Update video info with quantum phase animation */
.video-info {
    animation: quantum-phase 8s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* Add matrix rain effect to background */
.matrix-rain {
    position: fixed;
    font-family: monospace;
    font-size: 16px;
    color: var(--primary-color);
    writing-mode: vertical-rl;
    text-orientation: upright;
    animation: matrix-rain 10s linear infinite;
    z-index: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .site-title { font-size: 2.5rem; }
    .video-title { font-size: 1.8rem; }
    .controls-panel { flex-direction: column; gap: 1rem; }
    .cyber-btn { width: 100%; }
    .coming-soon-text { font-size: 2rem; }
}
