/* ===========================================
   COMPONENTS.CSS - Buttons, Cards, Forms, Loader
   =========================================== */

/* Loader */
/* Next-Gen Loader */
#loader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #020b04; /* Deep Green Black matching theme */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    perspective: 1000px;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.loader-content {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

/* Energy Rings */
.energy-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    pointer-events: none;
}

.ring-1 {
    width: 100%; height: 100%;
    border-top: 2px solid #a855f7; /* Neon Purple */
    border-bottom: 2px solid #a855f7;
    animation: rotate3d 4s linear infinite;
    filter: drop-shadow(0 0 15px #a855f7);
    opacity: 0.8;
}

.ring-2 {
    width: 75%; height: 75%;
    border-left: 2px solid #00ff41; /* Electric Green */
    border-right: 2px solid #00ff41;
    animation: rotate3d-reverse 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 0 10px #00ff41);
    opacity: 0.9;
}

.ring-3 {
    width: 140%; height: 140%;
    border: 1px dashed rgba(168, 85, 247, 0.2);
    animation: pulse-ring 6s ease-in-out infinite;
}

.energy-core {
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px #00ff41, 0 0 40px #a855f7, 0 0 60px #fff;
    animation: core-pulse 1.2s ease-in-out infinite alternate;
}

/* Text */
.loader-text {
    position: absolute;
    bottom: -80px;
    font-family: 'Michroma', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 6px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    animation: text-glitch 3s infinite;
    white-space: nowrap;
}

/* Advanced Animations */
@keyframes rotate3d {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(180deg) rotateZ(360deg); }
}

@keyframes rotate3d-reverse {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(-180deg) rotateY(-360deg) rotateZ(-180deg); }
}

@keyframes core-pulse {
    0% { transform: scale(0.8); opacity: 0.6; box-shadow: 0 0 20px #00ff41; }
    100% { transform: scale(1.5); opacity: 1; box-shadow: 0 0 40px #00ff41, 0 0 80px #a855f7; }
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.1; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.3; }
}

@keyframes text-glitch {
    0% { opacity: 1; transform: translateX(0); }
    40% { opacity: 1; transform: translateX(0); }
    41% { opacity: 0.8; transform: translateX(-2px); }
    42% { opacity: 1; transform: translateX(2px); }
    43% { opacity: 1; transform: translateX(0); }
    100% { opacity: 1; }
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.stat-card {
    background: rgba(10, 10, 14, 0.6);
    border: 1px solid #333;
    padding: 15px 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: auto;
    opacity: 0;
    transform: translateY(30px);
}

.stat-card:hover {
    border-color: var(--neon-green);
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(0, 255, 65, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    display: none;
}

.stat-number {
    font-family: var(--font-cyber);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    line-height: 1;
}

.stat-number.counting {
    color: var(--accent-gold);
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #888;
    text-transform: uppercase;
    text-align: center;
}

/* Sponsors Grid */
.sponsors-grid {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.sponsor-logo {
    width: 150px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    color: #888;
}

/* Contact Form */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1000px;
}

.contact-details {
    text-align: left;
}

.contact-details h3 {
    color: var(--neon-green);
    margin-bottom: 1rem;
    font-family: var(--font-cyber);
}

.contact-details p {
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.socials a {
    color: #fff;
    margin-right: 1rem;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #fff;
    padding: 5px 10px;
    border-radius: 4px;
    transition: 0.3s;
}

.socials a:hover {
    background: var(--neon-green);
    color: #000;
    border-color: var(--neon-green);
}

.contact-form-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
}

.contact-form-main input,
.contact-form-main textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 1rem;
    color: #fff;
    font-family: var(--font-body);
    border-radius: 5px;
}

.contact-form-main input:focus,
.contact-form-main textarea:focus {
    outline: none;
    border-color: var(--neon-green);
}

.contact-form-main textarea {
    height: 120px;
    resize: none;
}

.submit-glow {
    padding: 1rem;
    background: var(--neon-dark);
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-cyber);
}

.submit-glow:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 20px var(--neon-green);
}