/* Contact Page – Premium Tech/Gaming Style with Glowing Particles */

body {
    background: radial-gradient(circle at top, #0a0a0f, #000);
    color: #eee;
    overflow-x: hidden;
}

/* Hero Section */
.contact-hero {
    background: linear-gradient(135deg, #4f46e5, #9333ea, #06b6d4);
    text-align: center;
    padding: 5rem 2rem;
    color: white;
    box-shadow: 0 0 40px rgba(147, 51, 234, 0.6);
    position: relative;
}

.contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: pulseGlow 4s infinite alternate;
}

.contact-hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
    position: relative;
    z-index: 1;
}

.contact-card {
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid rgba(147, 51, 234, 0.4);
    border-radius: 1rem;
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.3),
    inset 0 0 20px rgba(79, 70, 229, 0.15);
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}






/* Full-screen particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particles span {
    position: absolute;
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9333ea;
    box-shadow: 0 0 20px #9333ea, 0 0 40px #4f46e5, 0 0 60px #06b6d4;
    animation: floatUp 25s linear infinite, colorShift 12s ease-in-out infinite;
}

/* Generate more particles with different properties */
.particles span:nth-child(odd)  { width: 8px; height: 8px; }
.particles span:nth-child(even) { width: 14px; height: 14px; }

.particles span:nth-child(1)  { left: 5%;  top: 80%; animation-delay: -5s, -3s; }
.particles span:nth-child(2)  { left: 12%; top: 90%; animation-delay: -12s, -6s; }
.particles span:nth-child(3)  { left: 20%; top: 70%; animation-delay: -8s, -4s; }
.particles span:nth-child(4)  { left: 28%; top: 95%; animation-delay: -15s, -9s; }
.particles span:nth-child(5)  { left: 35%; top: 85%; animation-delay: -6s, -2s; }
.particles span:nth-child(6)  { left: 42%; top: 60%; animation-delay: -10s, -5s; }
.particles span:nth-child(7)  { left: 50%; top: 92%; animation-delay: -18s, -11s; }
.particles span:nth-child(8)  { left: 58%; top: 78%; animation-delay: -14s, -7s; }
.particles span:nth-child(9)  { left: 65%; top: 95%; animation-delay: -20s, -13s; }
.particles span:nth-child(10) { left: 72%; top: 75%; animation-delay: -9s, -4s; }
.particles span:nth-child(11) { left: 80%; top: 88%; animation-delay: -11s, -5s; }
.particles span:nth-child(12) { left: 88%; top: 97%; animation-delay: -16s, -9s; }
.particles span:nth-child(13) { left: 93%; top: 85%; animation-delay: -7s, -3s; }
.particles span:nth-child(14) { left: 30%; top: 60%; animation-delay: -19s, -10s; }
.particles span:nth-child(15) { left: 10%; top: 50%; animation-delay: -4s, -2s; }
.particles span:nth-child(16) { left: 45%; top: 40%; animation-delay: -13s, -6s; }
.particles span:nth-child(17) { left: 70%; top: 55%; animation-delay: -17s, -8s; }
.particles span:nth-child(18) { left: 85%; top: 65%; animation-delay: -22s, -11s; }
.particles span:nth-child(19) { left: 15%; top: 75%; animation-delay: -21s, -12s; }
.particles span:nth-child(20) { left: 55%; top: 50%; animation-delay: -8s, -4s; }

/* Movement */
@keyframes floatUp {
    0%   { transform: translateY(0) scale(0.8); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translateY(-130vh) scale(1.4); opacity: 0; }
}

/* Color cycling */
@keyframes colorShift {
    0%   { background: #9333ea; box-shadow: 0 0 20px #9333ea, 0 0 40px #4f46e5, 0 0 60px #06b6d4; }
    33%  { background: #4f46e5; box-shadow: 0 0 20px #4f46e5, 0 0 40px #06b6d4, 0 0 60px #9333ea; }
    66%  { background: #06b6d4; box-shadow: 0 0 20px #06b6d4, 0 0 40px #9333ea, 0 0 60px #4f46e5; }
    100% { background: #9333ea; box-shadow: 0 0 20px #9333ea, 0 0 40px #4f46e5, 0 0 60px #06b6d4; }
}









/* Form Styling */
.contact-form {
    position: relative;
    z-index: 1;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: #a78bfa;
    text-shadow: 0 0 6px rgba(147, 51, 234, 0.6);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.6rem;
    font-size: 1.1rem;
    color: #eee;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #9333ea;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.9);
    outline: none;
}

/* Submit Button */
.btn-submit {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #4f46e5, #9333ea, #06b6d4);
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
}

.btn-submit:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 25px rgba(147, 51, 234, 0.9),
    0 0 50px rgba(79, 70, 229, 0.7);
}

.btn-submit:hover::after {
    left: 120%;
    transition: left 0.7s ease;
}

/* Animations */
@keyframes pulseGlow {
    from { text-shadow: 0 0 10px rgba(255,255,255,0.3); }
    to   { text-shadow: 0 0 25px rgba(255,255,255,0.8); }
}

/* Responsive */
@media (max-width: 600px) {
    .contact-hero {
        padding: 3.5rem 1.5rem;
    }

    .contact-card {
        padding: 1.8rem;
    }
}


/* Popup Styles */
.contact-popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.contact-popup .popup-content {
    background: #111;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 20px #9333ea, 0 0 40px #4f46e5;
    animation: popupFade 0.4s ease;
}

.contact-popup h2 {
    color: #00bfff;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px #00bfff;
}

.contact-popup button {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: #00bfff;
    color: #000;
    border: none;
    border-radius: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-popup button:hover {
    background: #66d9ff;
}

@keyframes popupFade {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
