:root {
    --bg-color: #050505;
    --primary-color: #ff003c;
    --secondary-color: #00f0ff;
    --text-color: #e0e0e0;
    --hex-bg: #111;
}

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

body {
    background-color: #000;
    color: var(--text-color);
    font-family: 'Share Tech Mono', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

/* Background Video */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    object-fit: cover;
    z-index: 1;
}

#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.5s;
}
.intro-content {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    font-size: 1.5rem;
    letter-spacing: 5px;
    animation: blink 1.5s infinite;
}



/* Main Container */
.container {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 10, 15, 0.3);
    backdrop-filter: blur(4px);
    z-index: 10;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    animation: swingIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes swingIn {
    0% {
        opacity: 0;
        transform: perspective(1000px) translateZ(-500px) rotateX(20deg);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) translateZ(0) rotateX(0deg);
    }
}

/* Ensure inner elements pop out during tilt */
.profile-section, .links-container, .sys-text, .footer {
    transform: translateZ(40px);
}

/* Corners UI */
.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--secondary-color);
    border-style: solid;
}
.top-left { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.top-right { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.bottom-left { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.bottom-right { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* Header */
.sys-text {
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 0 0 5px var(--secondary-color);
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

/* Circle Avatar */
.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar-wrapper:hover {
    transform: rotateY(180deg) scale(1.1);
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    backface-visibility: hidden;
}

/* Typography */
.name {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 0px var(--primary-color), -2px -2px 0px var(--secondary-color);
}

/* Glitch Effect */
.glitch {
    position: relative;
}
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}
.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 44px, 0); }
    20% { clip: rect(80px, 9999px, 12px, 0); }
    40% { clip: rect(4px, 9999px, 80px, 0); }
    60% { clip: rect(90px, 9999px, 34px, 0); }
    80% { clip: rect(20px, 9999px, 70px, 0); }
    100% { clip: rect(60px, 9999px, 10px, 0); }
}
@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(3px, 9999px, 40px, 0); }
    40% { clip: rect(50px, 9999px, 90px, 0); }
    60% { clip: rect(20px, 9999px, 10px, 0); }
    80% { clip: rect(80px, 9999px, 50px, 0); }
    100% { clip: rect(30px, 9999px, 80px, 0); }
}

.subtitle {
    color: var(--secondary-color);
    font-size: 1rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px var(--secondary-color);
}

.stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #aaa;
}
.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0f0;
    box-shadow: 0 0 8px #0f0;
}
.divider {
    color: var(--primary-color);
}

/* Links Section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    align-items: center;
    flex: 1;
}

.social-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.link-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: var(--text-color);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(4px);
}

@keyframes floating3d {
    0% { transform: translateY(0px) translateZ(40px); }
    100% { transform: translateY(-8px) translateZ(45px); }
}

.link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--secondary-color);
    transform: translateY(-5px) scale(1.05) translateZ(50px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 240, 255, 0.3);
}

.social-btn {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    border-radius: 8px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: floating3d 3s ease-in-out infinite alternate;
}

.social-btn:nth-child(2) { animation-delay: 0.2s; }
.social-btn:nth-child(3) { animation-delay: 0.4s; }
.social-btn:nth-child(4) { animation-delay: 0.6s; }

@keyframes floating3d {
    0% { transform: perspective(400px) rotateY(-25deg) translateY(0px); box-shadow: -5px 5px 10px rgba(0,0,0,0.3); }
    100% { transform: perspective(400px) rotateY(25deg) translateY(-12px); box-shadow: 5px 15px 20px rgba(0,240,255,0.4); }
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
    transition: 0.5s;
}

.social-btn:hover, .social-btn:active {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: perspective(400px) rotateY(360deg) scale(1.2) !important;
    animation: none;
}
.social-btn:hover::before, .social-btn:active::before {
    left: 100%;
}

/* Explore Button */
.explore-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 0.5rem;
    padding: 14px 20px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.explore-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
    transition: 0.5s;
}

.explore-btn:hover, .explore-btn:active {
    background: var(--secondary-color);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
    transform: translateY(-3px);
}

.explore-btn:hover::before, .explore-btn:active::before {
    left: 100%;
}

.shop-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 80%;
    padding: 1rem;
    background: transparent;
    border: 1px solid #ffd700;
    color: #ffd700;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.shop-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 15px;
    height: 15px;
    background: #ffd700;
}
.shop-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3) inset;
    text-shadow: 0 0 5px #ffd700;
}

/* Footer Info */
.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.75rem;
    color: var(--secondary-color);
    margin-top: auto;
}

.status {
    line-height: 1.4;
}
.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--secondary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.datetime {
    text-align: center;
    letter-spacing: 1px;
}

.audio-toggle {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}
.audio-toggle:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--secondary-color);
}
