* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Bitcount Prop Double Ink', 'Arial', sans-serif;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2a3a 0%, #0f1419 100%);
    z-index: -1;
    overflow: hidden;
}

.video-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.links-box {
    background: rgba(15, 20, 25, 0.6);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(100, 120, 140, 0.4);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.05);
    animation: boxEnter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), subtleFloat 6s ease-in-out infinite;
}

@keyframes boxEnter {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.links-box h1 {
    color: rgba(200, 220, 240, 0.95);
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    font-family: 'Bitcount Prop Double Ink', sans-serif;
}

.text-animate {
    display: inline-block;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.letter {
    display: inline-block;
    animation: typeWriter 4s ease-in-out infinite;
    opacity: 0.6;
}

.letter:nth-child(1) { animation-delay: 0s; }
.letter:nth-child(2) { animation-delay: 0.1s; }
.letter:nth-child(3) { animation-delay: 0.2s; }
.letter:nth-child(4) { animation-delay: 0.3s; }
.letter:nth-child(5) { animation-delay: 0.4s; }
.letter:nth-child(6) { animation-delay: 0.5s; }
.letter:nth-child(7) { animation-delay: 0.6s; }
.letter:nth-child(8) { animation-delay: 0.7s; }
.letter:nth-child(9) { animation-delay: 0.8s; }
.letter:nth-child(10) { animation-delay: 0.9s; }
.letter:nth-child(11) { animation-delay: 1s; }
.letter:nth-child(12) { animation-delay: 1.1s; }
.letter:nth-child(13) { animation-delay: 1.2s; }

@keyframes typeWriter {
    0%, 100% {
        opacity: 0.6;
        text-shadow: 0 2px 8px rgba(100, 150, 200, 0.3);
        transform: scale(1);
    }
    50% {
        opacity: 1;
        text-shadow: 0 2px 16px rgba(100, 150, 200, 0.8), 0 0 20px rgba(100, 150, 200, 0.4);
        transform: scale(1.05);
    }
}

.icons-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(50, 70, 100, 0.3);
    border: 2px solid rgba(100, 150, 200, 0.4);
    color: rgba(180, 210, 240, 0.9);
    font-size: 32px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.icon-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(100, 150, 200, 0.4) 0%, transparent 70%);
    transition: left 0.5s ease;
}

.icon-link:hover {
    background: rgba(80, 120, 160, 0.5);
    border-color: rgba(150, 200, 255, 0.7);
    transform: scale(1.15) translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(100, 150, 200, 0.3);
    color: rgba(220, 240, 255, 1);
}

.icon-link:hover::before {
    left: 100%;
}

.icon-link:active {
    transform: scale(0.95);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .links-box {
        padding: 40px 30px;
        max-width: 100%;
    }

    .links-box h1 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .icons-container {
        gap: 20px;
    }

    .icon-link {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .links-box {
        padding: 30px 20px;
    }

    .links-box h1 {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

    .icon-link {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.loading-overlay.active {
    display: flex;
    opacity: 1;
}

.loading-spinner {
    text-align: center;
}

.loader-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
    animation: containerPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes containerPop {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.loader-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    border: 3px solid rgba(100, 150, 200, 0.4);
    box-shadow: 0 0 25px rgba(100, 150, 200, 0.5), inset 0 0 15px rgba(100, 150, 200, 0.2);
    animation: imagePulse 2s ease-in-out infinite;
    z-index: 5;
}

@keyframes imagePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 25px rgba(100, 150, 200, 0.5), inset 0 0 15px rgba(100, 150, 200, 0.2);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 40px rgba(100, 150, 200, 0.8), inset 0 0 20px rgba(100, 150, 200, 0.4);
    }
}

.loader-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    border: 3px solid transparent;
    border-top-color: rgba(100, 150, 200, 0.7);
    border-right-color: rgba(100, 150, 200, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotateRing 3s linear infinite;
}

.loader-ring-2 {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid transparent;
    border-top-color: rgba(150, 200, 255, 0.6);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotateRing 2s linear infinite reverse;
}

@keyframes rotateRing {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.loading-text {
    color: rgba(150, 200, 255, 0.9);
    font-size: 1.1rem;
    font-family: 'Bitcount Prop Double Ink', sans-serif;
    letter-spacing: 2px;
    animation: loadingPulse 1.5s ease-in-out infinite;
    margin-top: 20px;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}
