:root {
    --bg-color: #050505;
    --primary-cyan: #00f3ff;
    --primary-pink: #ff00ea;
    --card-bg: rgba(10, 10, 15, 0.7);
    --card-border: rgba(0, 243, 255, 0.3);
    --text-main: #e0f7fa;
    --text-muted: #8ab4f8;
}

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

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

/* Futuristic Grid Background */
.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) scale(2);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) scale(2); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(30px) scale(2); }
}

body::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,243,255,0.15) 0%, transparent 70%);
    top: 10%;
    left: 20%;
    z-index: -1;
}

body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,0,234,0.1) 0%, transparent 70%);
    bottom: 5%;
    right: 15%;
    z-index: -1;
}

.container {
    padding: 20px;
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 10;
}

.cyber-glass {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1), inset 0 0 20px rgba(0, 243, 255, 0.05);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

/* Corner decorations */
.cyber-glass::before, .cyber-glass::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-cyan);
    opacity: 0.5;
}
.cyber-glass::before {
    top: 0; left: 0;
    border-right: none; border-bottom: none;
}
.cyber-glass::after {
    bottom: 0; right: 0;
    border-left: none; border-top: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hologram-effect::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, var(--primary-cyan), transparent 30%);
    animation: spin 3s linear infinite;
}

.hologram-effect::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    background: var(--bg-color);
    border-radius: 50%;
}

.icon {
    position: relative;
    z-index: 2;
    color: var(--primary-pink);
    filter: drop-shadow(0 0 10px var(--primary-pink));
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.glitch-wrapper {
    position: relative;
    margin-bottom: 10px;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 5px;
    color: var(--primary-cyan);
    position: relative;
    display: inline-block;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--primary-pink);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--primary-cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 86px, 0); }
    20% { clip: rect(62px, 9999px, 96px, 0); }
    40% { clip: rect(10px, 9999px, 48px, 0); }
    60% { clip: rect(98px, 9999px, 75px, 0); }
    80% { clip: rect(15px, 9999px, 26px, 0); }
    100% { clip: rect(54px, 9999px, 83px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(12px, 9999px, 34px, 0); }
    40% { clip: rect(87px, 9999px, 12px, 0); }
    60% { clip: rect(43px, 9999px, 76px, 0); }
    80% { clip: rect(9px, 9999px, 56px, 0); }
    100% { clip: rect(32px, 9999px, 89px, 0); }
}

h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px var(--primary-pink);
}

p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
}

.cyber-btn {
    display: inline-block;
    padding: 15px 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bg-color);
    background-color: var(--primary-cyan);
    text-decoration: none;
    position: relative;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    box-shadow: 0 0 15px var(--primary-cyan);
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 10px; height: 10px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
}

.cyber-btn::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 10px; height: 10px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
}

.cyber-btn:hover {
    background-color: var(--primary-pink);
    color: #fff;
    box-shadow: 0 0 25px var(--primary-pink);
}

@media (max-width: 640px) {
    .cyber-glass {
        padding: 30px 20px;
    }
    h2 {
        font-size: 2.2rem;
    }
    p {
        font-size: 1.1rem;
    }
}
