/* Custom CSS for Codum Bot - Discord Theme - Updated: 2024-12-19 - Phosphorescent Gray Theme */

/* Discord-like Color Variables */
:root {
    --discord-bg-primary: #0f0f23;
    --discord-bg-secondary: #1a1a2e;
    --discord-bg-tertiary: #16213e;
    --discord-text-primary: #e0e6ed;
    --discord-text-secondary: #b9bbbe;
    --discord-text-muted: #72767d;
    --discord-accent: #00d4aa;
    --discord-accent-glow: #00d4aa40;
    --discord-border: #2f3136;
    --discord-hover: #2f3136;
    --discord-glow: #00d4aa80;
    
    /* Discord Button Colors */
    --btn-primary: #5865f2;
    --btn-primary-hover: #4752c4;
    --btn-success: #3ba55c;
    --btn-success-hover: #2d7d46;
    --btn-danger: #ed4245;
    --btn-danger-hover: #c03e3f;
    --btn-warning: #faa61a;
    --btn-warning-hover: #e09217;
    --btn-info: #00d4aa;
    --btn-info-hover: #00b8a3;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Exo+2:wght@100;200;300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@100;200;300;400;500;600;700;800&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Poppins:wght@100;200;300;400;500;600;700;800;900&family=Source+Code+Pro:wght@200;300;400;500;600;700;800;900&display=swap');

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

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, var(--discord-bg-primary) 0%, var(--discord-bg-secondary) 50%, var(--discord-bg-tertiary) 100%);
    min-height: 100vh;
    color: var(--discord-text-primary);
    line-height: 1.6;
}

code {
    font-family: 'JetBrains Mono', source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
        monospace;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Focus styles */
*:focus {
    outline: 2px solid #6b7280;
    outline-offset: 2px;
}

/* Selection styles */
::selection {
    background: #6b7280;
    color: white;
}

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 5px rgba(107, 114, 128, 0.5);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(107, 114, 128, 0.8), 0 0 25px rgba(156, 163, 175, 0.6);
    }
}

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

@keyframes logoPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 20px rgba(107, 114, 128, 0.5);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 30px rgba(107, 114, 128, 0.8);
    }
}

@keyframes textGlow {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(107, 114, 128, 0.5);
    }
    50% { 
        text-shadow: 0 0 20px rgba(107, 114, 128, 1);
    }
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Discord Theme Utility Classes */
.text-reveal {
    background: linear-gradient(45deg, var(--discord-accent), #00b8a3, #00d4aa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px var(--discord-accent-glow);
}

.discord-glow {
    box-shadow: 0 0 20px var(--discord-glow);
}

.discord-card {
    background: rgba(47, 49, 54, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--discord-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.discord-card:hover {
    background: rgba(47, 49, 54, 0.8);
    border-color: var(--discord-accent);
    box-shadow: 0 0 25px var(--discord-accent-glow);
    transform: translateY(-2px);
}

.discord-button {
    background: linear-gradient(135deg, var(--discord-accent), #00b8a3);
    border: none;
    color: var(--discord-bg-primary);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--discord-accent-glow);
}

.discord-button:hover {
    background: linear-gradient(135deg, #00b8a3, var(--discord-accent));
    box-shadow: 0 6px 20px var(--discord-glow);
    transform: translateY(-1px);
}

.discord-text {
    color: var(--discord-text-primary);
    font-family: 'Inter', sans-serif;
}

.discord-text-secondary {
    color: var(--discord-text-secondary);
    font-family: 'Inter', sans-serif;
}

.discord-text-muted {
    color: var(--discord-text-muted);
    font-family: 'Inter', sans-serif;
}

.discord-accent {
    color: var(--discord-accent);
    text-shadow: 0 0 10px var(--discord-accent-glow);
}

/* Discord Button Styles - Login Button */
.btn-discord {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 13rem;
    overflow: hidden;
    height: 3rem;
    background-size: 300% 300%;
    cursor: pointer;
    backdrop-filter: blur(1rem);
    border-radius: 5rem;
    transition: 0.5s;
    animation: gradient_301 5s ease infinite;
    border: double 4px transparent;
    background-image: linear-gradient(#1a1a2e, #1a1a2e),
        linear-gradient(
            137.48deg,
            #5865f2 10%,
            #7289da 45%,
            #99aab5 67%,
            #2c2f33 87%
        );
    background-origin: border-box;
    background-clip: content-box, border-box;
    position: relative;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

#container-stars {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: 0.5s;
    backdrop-filter: blur(1rem);
    border-radius: 5rem;
}

.btn-discord strong {
    z-index: 2;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 4px white;
}

#glow {
    position: absolute;
    display: flex;
    width: 12rem;
}

.circle {
    width: 100%;
    height: 30px;
    filter: blur(2rem);
    animation: pulse_3011 4s infinite;
    z-index: -1;
}

.circle:nth-of-type(1) {
    background: rgba(88, 101, 242, 0.636);
}

.circle:nth-of-type(2) {
    background: rgba(114, 137, 218, 0.704);
}

.btn-discord:hover #container-stars {
    z-index: 1;
    background-color: #1a1a2e;
}

.btn-discord:hover {
    transform: scale(1.1);
}

.btn-discord:active {
    border: double 4px #5865f2;
    background-origin: border-box;
    background-clip: content-box, border-box;
    animation: none;
}

.btn-discord:active .circle {
    background: #5865f2;
}

#stars {
    position: relative;
    background: transparent;
    width: 200rem;
    height: 200rem;
}

#stars::after {
    content: "";
    position: absolute;
    top: -10rem;
    left: -100rem;
    width: 100%;
    height: 100%;
    animation: animStarRotate 90s linear infinite;
}

#stars::after {
    background-image: radial-gradient(#ffffff 1px, transparent 1%);
    background-size: 50px 50px;
}

#stars::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 170%;
    height: 500%;
    animation: animStar 60s linear infinite;
}

#stars::before {
    background-image: radial-gradient(#ffffff 1px, transparent 1%);
    background-size: 50px 50px;
    opacity: 0.5;
}

@keyframes animStar {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-135rem);
    }
}

@keyframes animStarRotate {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0);
    }
}

@keyframes gradient_301 {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse_3011 {
    0% {
        transform: scale(0.75);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }
    100% {
        transform: scale(0.75);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* Sunucuya Ekle Button - Pulsa Style */
.btn-pulsa {
    animation: pulsa 1.4s infinite;
    min-width: 200px;
    width: fit-content;
    border-radius: 9999px;
    display: inline-block;
    position: relative;
}

@media (max-width: 640px) {
    .btn-pulsa {
        min-width: 180px;
        width: 100%;
    }
    
    .btn-cta {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.btn-cta {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: linear-gradient(109.6deg, #5865f2 11.2%, #7289da 53.7%, #5865f2 100.2%);
    border-radius: 9999px;
    padding: 12px 24px;
    color: white;
    font-size: 15px;
    letter-spacing: 0.08em;
    font-weight: 800;
    position: relative;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.btn-cta:active {
    animation: pulsa-active .4s infinite;
}

.star {
    width: 3px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: absolute;
    animation: pulsa-stella 1.8s infinite;
    transition: all .8s ease-in-out;
    pointer-events: none;
}

.star.a {
    top: 8px;
    left: 8px;
}

.star.b {
    top: 4px;
    left: 20px;
}

.star.c {
    top: 20px;
    left: 12px;
}

.star.d {
    top: 16px;
    left: 28px;
}

.star.e {
    top: 32px;
    left: 12px;
}

.star.f {
    top: 28px;
    left: 32px;
}

.star.g {
    top: 12px;
    left: 40px;
}

.btn-pulsa:hover .star.a {
    transform: translate3d(0px, 8px, 0);
}

.btn-pulsa:hover .star.b {
    transform: translate3d(-4px, 6px, 0);
}

.btn-pulsa:hover .star.c {
    transform: translate3d(14px, -8px, 0);
}

.btn-pulsa:hover .star.d {
    transform: translate3d(16px, -2px, 0);
}

.btn-pulsa:hover .star.e {
    transform: translate3d(58px, -20px, 0);
}

.btn-pulsa:hover .star.f {
    transform: translate3d(34px, 2px, 0);
}

.btn-pulsa:hover .star.g {
    transform: translate3d(10px, 16px, 0);
}

.rocket {
    position: absolute;
    top: 8px;
    right: 16px;
    z-index: 1;
    transform: rotate(180deg);
    transition: all .3s ease-in-out;
    opacity: 0.7;
}

.btn-pulsa:hover .rocket {
    z-index: 2;
    animation: muovi-razzo 1.8s linear;
    transform: rotate(0deg);
    opacity: 1;
}

@keyframes pulsa {
    0% {
        box-shadow: 0 0 0 0 #5865f2;
    }
    100% {
        box-shadow: 0 0 0 8px rgba(88, 101, 242, 0.1);
    }
}

@keyframes pulsa-stella {
    0% {
        box-shadow: 0 0 0 0 #ffffff;
    }
    100% {
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
    }
}

@keyframes muovi-razzo {
    from {
        transform: rotate(180deg);
    }
    25% {
        transform: translate3d(40px, 32px, 0);
    }
    50% {
        transform: translate3d(32px, -60px, 0);
    }
    75% {
        transform: translate3d(0px, -60px, 0) rotate(0);
    }
    to {
        transform: rotate(0deg);
    }
}

@keyframes pulsa-active {
    0% {
        box-shadow: 0 0 0 0 #5865f2;
    }
    100% {
        box-shadow: 0 0 0 16px rgba(88, 101, 242, 0.1);
    }
}

.btn-success {
    background: var(--btn-success);
    box-shadow: 0 4px 12px rgba(59, 165, 92, 0.3);
}

.btn-success:hover {
    background: var(--btn-success-hover);
    box-shadow: 0 8px 25px rgba(59, 165, 92, 0.4);
}

.btn-danger {
    background: var(--btn-danger);
    box-shadow: 0 4px 12px rgba(237, 66, 69, 0.3);
}

.btn-danger:hover {
    background: var(--btn-danger-hover);
    box-shadow: 0 8px 25px rgba(237, 66, 69, 0.4);
}

.btn-warning {
    background: var(--btn-warning);
    box-shadow: 0 4px 12px rgba(250, 166, 26, 0.3);
}

.btn-warning:hover {
    background: var(--btn-warning-hover);
    box-shadow: 0 8px 25px rgba(250, 166, 26, 0.4);
}

.btn-info {
    background: var(--btn-info);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

.btn-info:hover {
    background: var(--btn-info-hover);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
}

/* Discord Icon Styles */
.discord-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--discord-bg-secondary);
    color: var(--discord-text-primary);
    font-size: 18px;
    transition: all 0.3s ease;
    border: 2px solid var(--discord-border);
}

.discord-icon:hover {
    background: var(--discord-accent);
    color: var(--discord-bg-primary);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px var(--discord-accent-glow);
    border-color: var(--discord-accent);
}

.discord-icon-lg {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.discord-icon-sm {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

/* Discord Card Animations */
.discord-card {
    background: rgba(47, 49, 54, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--discord-border);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.discord-card:hover::before {
    left: 100%;
}

.discord-card:hover {
    background: rgba(47, 49, 54, 0.8);
    border-color: var(--discord-accent);
    box-shadow: 0 0 25px var(--discord-accent-glow);
    transform: translateY(-4px) scale(1.02);
}

/* Discord Text Animations */
.discord-text-glow {
    text-shadow: 0 0 10px var(--discord-accent-glow);
    transition: text-shadow 0.3s ease;
}

.discord-text-glow:hover {
    text-shadow: 0 0 20px var(--discord-accent);
}

/* Discord Loading Animation */
.discord-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--discord-border);
    border-radius: 50%;
    border-top-color: var(--discord-accent);
    animation: discord-spin 1s ease-in-out infinite;
}

@keyframes discord-spin {
    to { transform: rotate(360deg); }
}

/* Discord Pulse Animation */
.discord-pulse {
    animation: discord-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes discord-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Discord Bounce Animation */
.discord-bounce {
    animation: discord-bounce 1s infinite;
}

@keyframes discord-bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: none;
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Discord Preloader Advanced Animations */
.logo-outer {
    animation: discord-spin 3s linear infinite;
}

.logo-inner {
    animation: discord-spin-reverse 2s linear infinite;
}

.logo-center {
    animation: discord-pulse 2s ease-in-out infinite;
}

@keyframes discord-spin-reverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

/* Floating Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--discord-accent);
    border-radius: 50%;
    animation: float-particle 4s ease-in-out infinite;
    box-shadow: 0 0 10px var(--discord-accent-glow);
}

.particle-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle-2 {
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

.particle-3 {
    bottom: 30%;
    left: 30%;
    animation-delay: 2s;
}

.particle-4 {
    bottom: 20%;
    right: 30%;
    animation-delay: 3s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

/* Typing Dots Animation */
.typing-dots {
    animation: typing-dots 1.5s infinite;
}

@keyframes typing-dots {
    0%, 20% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Progress Bar Animation */
.progress-fill {
    animation: progress-loading 3s ease-in-out infinite;
}

@keyframes progress-loading {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

/* Loading Stats Animation */
.stat-item {
    animation: fade-in-up 0.6s ease-out;
    animation-fill-mode: both;
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Zoom In/Out Effect */
#preloader {
    animation: preloader-zoom 0.8s ease-out;
}

@keyframes preloader-zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Microchip Preloader Styles */
.microchip-container {
    animation: microchip-glow 2s ease-in-out infinite;
}

@keyframes microchip-glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.6));
    }
}

.microchip-main {
    position: relative;
    border: 2px solid #374151;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

/* Circuit Lines */
.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    height: 2px;
    animation: circuit-pulse 1.5s ease-in-out infinite;
}

.circuit-line-1 {
    top: 20%;
    left: 10%;
    width: 30%;
    animation-delay: 0s;
}

.circuit-line-2 {
    top: 40%;
    right: 10%;
    width: 25%;
    animation-delay: 0.3s;
}

.circuit-line-3 {
    bottom: 30%;
    left: 15%;
    width: 35%;
    animation-delay: 0.6s;
}

.circuit-line-4 {
    bottom: 20%;
    right: 15%;
    width: 20%;
    animation-delay: 0.9s;
}

@keyframes circuit-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Circuit Nodes */
.circuit-node {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #22c55e;
    border-radius: 50%;
    animation: node-blink 2s ease-in-out infinite;
    box-shadow: 0 0 8px #22c55e;
}

.circuit-node-1 {
    top: 20%;
    left: 40%;
    animation-delay: 0s;
}

.circuit-node-2 {
    top: 40%;
    right: 35%;
    animation-delay: 0.5s;
}

.circuit-node-3 {
    bottom: 30%;
    left: 50%;
    animation-delay: 1s;
}

.circuit-node-4 {
    bottom: 20%;
    right: 35%;
    animation-delay: 1.5s;
}

@keyframes node-blink {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Microchip Core */
.microchip-core {
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
    animation: core-pulse 1s ease-in-out infinite;
}

@keyframes core-pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(34, 197, 94, 0.8);
    }
}

/* Circuit Ring */
.circuit-ring {
    animation: circuit-ring-spin 3s linear infinite;
}

.circuit-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
}

.circuit-dot-1 {
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
}

.circuit-dot-2 {
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
}

.circuit-dot-3 {
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
}

.circuit-dot-4 {
    left: -3px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes circuit-ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Data Streams */
.data-stream {
    position: absolute;
    background: linear-gradient(45deg, transparent, #22c55e, transparent);
    animation: data-flow 2s linear infinite;
}

.data-stream-1 {
    width: 2px;
    height: 40px;
    top: 20%;
    right: -10px;
    animation-delay: 0s;
}

.data-stream-2 {
    width: 2px;
    height: 30px;
    bottom: 30%;
    left: -10px;
    animation-delay: 0.7s;
}

.data-stream-3 {
    width: 40px;
    height: 2px;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1.4s;
}

@keyframes data-flow {
    0% {
        opacity: 0;
        transform: scaleY(0);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
    100% {
        opacity: 0;
        transform: scaleY(0);
    }
}

/* Code Particles */
.code-particle {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #22c55e;
    font-weight: bold;
    animation: code-float 3s ease-in-out infinite;
    text-shadow: 0 0 5px #22c55e;
}

.code-particle-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.code-particle-2 {
    top: 20%;
    right: 10%;
    animation-delay: 0.8s;
}

.code-particle-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 1.6s;
}

.code-particle-4 {
    bottom: 10%;
    right: 15%;
    animation-delay: 2.4s;
}

@keyframes code-float {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0px) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-15px) scale(1.1);
    }
}

/* SVG Microchip Styles */
.microchip {
    display: block;
    margin: auto;
    width: 8em;
    height: auto;
    color: #22c55e;
}

.microchip__center,
.microchip__dot,
.microchip__line,
.microchip__lines,
.microchip__spark,
.microchip__wave {
    animation-duration: 5s;
    animation-timing-function: cubic-bezier(0.65,0,0.35,1);
    animation-iteration-count: infinite;
}

.microchip__core,
.microchip__dot {
    fill: #22c55e;
    transition: fill 0.3s;
}

.microchip__center,
.microchip__wave {
    transform-origin: 25px 25px;
}

.microchip__center {
    animation-name: center-scale;
}

.microchip__dot {
    animation-name: dot-scale;
}

.microchip__line,
.microchip__spark,
.microchip__wave {
    transition: stroke 0.3s;
}

.microchip__line {
    stroke: #22c55e;
    animation-name: line-draw;
}

.microchip__lines {
    animation-name: lines-scale;
    transform-origin: 54px 54px;
}

.microchip__spark,
.microchip__wave {
    animation-timing-function: linear;
    stroke: #16a34a;
}

.microchip__spark {
    animation-name: spark;
}

.microchip__wave {
    animation-name: wave-scale;
}

/* Microchip Animations */
@keyframes center-scale {
    from, to {
        transform: scale(0);
    }
    12.5%, 75% {
        transform: scale(1);
    }
}

@keyframes dot-scale {
    from, 20%, 81.25%, to {
        transform: scale(0);
    }
    32.5%, 68.75% {
        transform: scale(1);
    }
}

@keyframes line-draw {
    from, 93.75%, to {
        stroke-dashoffset: 60;
    }
    25%, 68.75% {
        stroke-dashoffset: 0;
    }
}

@keyframes lines-scale {
    from {
        opacity: 1;
        transform: scale(0);
    }
    12.5%, 75% {
        opacity: 1;
        transform: scale(1);
    }
    93.75%, to {
        opacity: 0;
        transform: scale(0.5);
    }
}

@keyframes spark {
    from, 27.5% {
        stroke-dashoffset: 60;
    }
    50%, 52.5% {
        stroke-dashoffset: -30;
    }
    75%, to {
        stroke-dashoffset: -120;
    }
}

@keyframes wave-scale {
    from, 0%, 25%, 50%, 75% {
        stroke-width: 6px;
        transform: scale(1);
    }
    10%, 35%, 60%, 85%, to {
        stroke-width: 0;
        transform: scale(2);
    }
}

/* Microchip Text Styles */
.microchip-text {
    color: #22c55e;
    text-shadow: 0 0 10px #22c55e;
    animation: microchip-text-glow 2s ease-in-out infinite;
}

.microchip-accent {
    color: #22c55e;
    text-shadow: 0 0 8px #22c55e;
    font-weight: 600;
}

@keyframes microchip-text-glow {
    0%, 100% {
        text-shadow: 0 0 10px #22c55e;
    }
    50% {
        text-shadow: 0 0 20px #22c55e, 0 0 30px #22c55e;
    }
}

/* Utility classes */

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-logo-rotate {
    animation: logoRotate 0.8s linear infinite;
}

.animate-logo-pulse {
    animation: logoPulse 1.2s ease-in-out infinite;
}

.animate-text-glow {
    animation: textGlow 1.5s ease-in-out infinite;
}

.animate-dot-bounce {
    animation: dotBounce 1.2s ease-in-out infinite both;
}

/* Glass effect for cards */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Pulse animation for loading */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse-slow {
    animation: pulse-slow 2s ease-in-out infinite;
}

/* Custom button styles */
.btn-gradient {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    border: none;
    color: white;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Custom form styles */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .glass-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .card-hover:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* Custom animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Preloader styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #111827 0%, #333d4d 50%, #202b3a 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

.preloader-content {
    text-align: center;
}

.logo-container {
    position: relative;
    display: inline-block;
}

.logo-circle {
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-top: 3px solid #6b7280;
    border-right: 3px solid #9ca3af;
    border-radius: 50%;
    animation: logoRotate 0.8s linear infinite;
    position: relative;
}

.logo-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoPulse 1.2s ease-in-out infinite;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.loading-text {
    font-size: 20px;
    font-weight: 600;
    color: white;
    font-family: 'Exo 2', sans-serif;
    animation: textGlow 1.5s ease-in-out infinite;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    border-radius: 50%;
    animation: dotBounce 1.2s ease-in-out infinite both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }

/* Discord-like colors */
.discord-blurple {
    background-color: #5865F2;
}

.discord-green {
    background-color: #57F287;
}

.discord-yellow {
    background-color: #FEE75C;
}

.discord-red {
    background-color: #ED4245;
}

/* Custom utilities */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}
