/* Contact Page – Premium Tech/Gaming Style with 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;
}

/* Particle Layer */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particles::before,
.particles::after {
    content: "";
    position: absolute;
    width: 300%;
    height: 300%;
    background-image: radial-gradient(rgba(147, 51, 234, 0.6) 1px, transparent 1px),
    radial-gradient(rgba(79, 70, 229, 0.6) 1px, transparent 1px),
    radial-gradient(rgba(6, 182, 212, 0.6) 1px, transparent 1px);
    background-size: 80px 80px, 120px 120px, 160px 160px;
    animation: moveParticles 60s linear infinite;
    opacity: 0.25;
}

.particles::after {
    animation-direction: reverse;
    opacity: 0.15;
}

/* 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); }
}

@keyframes moveParticles {
    from { transform: translate(0, 0); }
    to   { transform: translate(-200px, -200px); }
}

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

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