@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&family=Inter:wght@300;400;700&family=Pacifico&display=swap');

:root {
    --bg-color: #1a001a;
    --card-bg: rgba(40, 10, 40, 0.7);
    --primary: #ff1493;
    --secondary: #ff69b4;
    --accent: #ff00ff;
    --text-main: #ffffff;
    --text-muted: #ffb6c1;
    --font-heading: 'Orbitron', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
    background-size: 200% 100%;
    background-attachment: fixed;
    animation: fastRainbow 1.5s linear infinite;
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

@keyframes rainbowBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Background Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-glitch {
    font-size: 4rem;
    font-weight: 900;
    position: relative;
    color: white;
    text-shadow: 0 0 10px var(--primary), 0 0 20px var(--secondary);
    animation: pulse 2s infinite alternate;
}

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 100px);
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80vh;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 30px;
    padding: 4rem 2rem;
    margin: 3rem auto;
    box-shadow: 0 0 50px #ff00ff, inset 0 0 30px #00ffff;
    border: 4px solid #ff00ff;
    backdrop-filter: blur(20px);
    max-width: 900px;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px 0 rgba(255, 0, 255, 0.2);
    border-color: rgba(255, 0, 255, 0.3);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: white;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
    background-size: 200% auto;
    animation: rainbowPulse 2s linear infinite;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px #ff00ff, 0 0 40px #00ffff;
    position: relative;
    overflow: hidden;
    text-shadow: 2px 2px 4px #000;
}

.btn-primary:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px #ff00ff, 0 0 80px #00ffff;
}

/* Footer */
footer {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

footer nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

footer nav a:hover {
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary);
}

footer p {
    font-family: var(--font-mono);
    color: #fff;
}

.sparkle {
    background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 3s linear infinite;
}

/* Page Transitions */
.page-transition {
    animation: fadeIn 0.5s ease-out;
}

/* Fake Loading & Scanners */
.loading-box {
    font-family: var(--font-mono);
    margin: 2rem 0;
    text-align: left;
    display: inline-block;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #111;
    border: 1px solid var(--secondary);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    box-shadow: 0 0 10px var(--primary);
    transition: width 0.1s linear;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { text-shadow: 0 0 10px var(--primary); }
    100% { text-shadow: 0 0 20px var(--secondary), 0 0 30px var(--primary); }
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.glitch-anim {
    animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

/* Forms */
input, textarea, button {
    font-family: var(--font-mono);
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--primary);
    color: white;
    border-radius: 5px;
}
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 10px var(--primary);
}

/* Ticker */
.news-ticker {
    width: 100%;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 200% 200%;
    animation: rainbowPulse 2s linear infinite;
    color: white;
    text-shadow: 2px 2px 4px #000;
    font-family: var(--font-heading);
    font-weight: bold;
    padding: 10px;
    overflow: hidden;
    white-space: nowrap;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}
.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 15s linear infinite;
}
@keyframes ticker {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Secret popups */
.random-popup {
    position: fixed;
    background: rgba(0,0,0,0.9);
    border: 2px solid red;
    color: red;
    padding: 1rem;
    font-family: var(--font-mono);
    z-index: 9999;
    pointer-events: none;
    animation: flash 0.5s infinite alternate;
}
@keyframes flash {
    0% { border-color: red; color: red; }
    100% { border-color: yellow; color: yellow; }
}

/* Utils */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.text-neon { color: var(--secondary); text-shadow: 0 0 5px var(--secondary); }
.text-danger { color: #ff3333; text-shadow: 0 0 5px #ff3333; }

/* The Super Gay Font Styling */
.super-gay {
    font-size: 1.5em;
    line-height: 1;
    font-family: 'Pacifico', cursive;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff00ff, #ff0000);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: rainbowPulse 2s linear infinite, wiggle 1s ease-in-out infinite;
    display: inline-block;
    padding: 0 10px;
    text-transform: none;
}

@keyframes rainbowPulse {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg) scale(1.05); }
    50% { transform: rotate(3deg) scale(1.05); }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .title-glitch { font-size: 2rem !important; }
    .container { padding: 1rem; }
    .glass-card { padding: 1rem; margin-bottom: 1rem; }
    .cert-name { font-size: 2rem !important; }
    .btn-primary { padding: 0.8rem 1.5rem; font-size: 1rem; width: 100%; }
    .news-ticker { font-size: 0.8rem; }
}

@keyframes fastRainbow { 0% { background-position: 0% 0; } 100% { background-position: -200% 0; } }


/* --- 6+ CRAZY HOMEPAGE ANIMATIONS --- */

.bounce-anim {
    animation: bounceAlert 0.5s ease-in-out infinite alternate;
}
@keyframes bounceAlert {
    0% { transform: translateY(0) scale(1); text-shadow: 0 0 10px red; }
    100% { transform: translateY(-15px) scale(1.1); text-shadow: 0 0 40px red, 0 0 80px yellow; }
}

.extreme-glitch {
    animation: extremeGlitch 0.15s linear infinite;
}
@keyframes extremeGlitch {
    0% { transform: translate(0) skew(0deg); opacity: 1; }
    20% { transform: translate(-8px, 8px) skew(5deg); opacity: 0.8; filter: hue-rotate(90deg); }
    40% { transform: translate(8px, -8px) skew(-5deg); opacity: 1; }
    60% { transform: translate(-8px, -8px) skew(10deg); opacity: 0.9; filter: hue-rotate(-90deg); }
    80% { transform: translate(8px, 8px) skew(-10deg); opacity: 1; }
    100% { transform: translate(0) skew(0deg); opacity: 1; }
}

.shake-hard {
    display: inline-block;
    animation: shakeHard 0.08s linear infinite;
}
@keyframes shakeHard {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-15px) rotate(-8deg) scale(1.1); }
    75% { transform: translateX(15px) rotate(8deg) scale(1.1); }
}

.pulse-scale {
    animation: pulseScale 0.4s ease-in-out infinite alternate;
}
@keyframes pulseScale {
    0% { transform: scale(1); box-shadow: 0 0 10px #ff00ff; }
    100% { transform: scale(1.2); box-shadow: 0 0 60px #ff00ff, 0 0 100px #00ffff; }
}

.spin-in-3d {
    animation: spin3D 2s ease-in-out infinite alternate;
}
@keyframes spin3D {
    0% { transform: perspective(1000px) rotateY(-30deg) rotateX(15deg); box-shadow: -20px 20px 50px rgba(0,255,255,0.5); }
    100% { transform: perspective(1000px) rotateY(30deg) rotateX(-15deg); box-shadow: 20px -20px 50px rgba(255,0,255,0.5); }
}

.float-anim {
    animation: floatAnim 3s ease-in-out infinite;
}
@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

.rapid-flash {
    animation: rapidFlash 0.15s infinite;
}
@keyframes rapidFlash {
    0% { background: #ff0000; box-shadow: 0 0 30px #ff0000; }
    33% { background: #00ff00; box-shadow: 0 0 30px #00ff00; }
    66% { background: #0000ff; box-shadow: 0 0 30px #0000ff; }
    100% { background: #ff00ff; box-shadow: 0 0 30px #ff00ff; }
}

.shake-hover:hover {
    animation: shakeHard 0.05s linear infinite !important;
    filter: hue-rotate(180deg);
}

.bg-emoji {
    position: absolute;
    font-size: 5rem;
    z-index: 1000;
    pointer-events: none;
    animation: floatUp linear infinite;
    opacity: 0.9;
    text-shadow: 0 0 20px #fff;
}
@keyframes floatUp {
    0% { transform: translateY(110vh) rotate(0deg) scale(1); }
    50% { transform: translateY(50vh) rotate(180deg) scale(1.5); }
    100% { transform: translateY(-30vh) rotate(360deg) scale(1); }
}
