@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: 'Montserrat', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Background Videos */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    pointer-events: none;
}

/* Device-specific video toggle */
.pc-video {
    display: block;
}

.mb-video {
    display: none;
}

@media (max-width: 768px) {
    .pc-video {
        display: none;
    }
    .mb-video {
        display: block;
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
}

/* Ambient glow */
.ambient-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.25) 0%, rgba(255, 69, 0, 0.1) 40%, transparent 70%);
    filter: blur(60px);
    z-index: 2;
    pointer-events: none;
    animation: pulseAmbient 4s ease-in-out infinite alternate;
}

@keyframes pulseAmbient {
    0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* Center Content */
.center-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-portal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-portal:hover {
    transform: scale(1.06);
}

.btn-portal:active {
    transform: scale(0.96);
}

/* Multi-color Glowing Rings */
.rings-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outer-ring, .inner-ring {
    position: absolute;
    border-radius: 50%;
    border: 5px solid transparent;
    border-top-color: #FF8C00;
    border-right-color: #FF0055;
    border-bottom-color: #00E5FF;
    border-left-color: #FFD700;
    box-shadow: 0 0 25px rgba(255, 140, 0, 0.7), inset 0 0 15px rgba(255, 255, 255, 0.3);
}

.outer-ring {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation: spinClockwise 8s linear infinite;
}

.inner-ring {
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 14px;
    border-width: 4px;
    border-top-color: #00E5FF;
    border-right-color: #FFD700;
    border-bottom-color: #FF8C00;
    border-left-color: #FF0055;
    animation: spinCounterClockwise 5s linear infinite;
}

.glow-pulse {
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.35) 0%, transparent 80%);
    animation: pulseRing 2s ease-in-out infinite;
}

.center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.8));
    transition: transform 0.3s ease;
}

.btn-portal:hover .center-logo img {
    transform: scale(1.1);
}

/* Button Label underneath */
.btn-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #FF9900 0%, #FF5500 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 1.5px;
    box-shadow: 0 8px 25px rgba(255, 100, 0, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.4);
    animation: buttonPulse 2s infinite alternate;
}

.pulse-text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.arrow-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.btn-portal:hover .arrow-icon {
    transform: translateX(4px);
}

/* Click Overlay */
.click-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20;
    cursor: pointer;
    background: rgba(0, 0, 0, 0);
}

/* Mobile responsive sizing */
@media (max-width: 768px) {
    .rings-wrapper {
        width: 190px;
        height: 190px;
        margin-bottom: 16px;
    }
    .center-logo {
        width: 110px;
        height: 110px;
    }
    .btn-label {
        padding: 10px 26px;
        font-size: 0.95rem;
        letter-spacing: 1px;
    }
    .ambient-glow {
        width: 350px;
        height: 350px;
    }
}

/* Keyframes */
@keyframes spinClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes pulseRing {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.9; }
    100% { transform: scale(0.9); opacity: 0.5; }
}

@keyframes buttonPulse {
    0% { transform: translateY(0); box-shadow: 0 8px 25px rgba(255, 100, 0, 0.5); }
    100% { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(255, 120, 0, 0.85); }
}
