#contact {
    margin: 7%;
    padding: 50px 10%;
    background-color: rgba(var(--background-color-rgb), 0.85);
    color: var(--text-color);
    text-align: center;
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius);
    animation: fadeIn 0.8s ease-out;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: url(./../images/download.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    animation: gradientFlow 15s ease infinite;
}

#contact h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.4s ease;
}

#contact h2:hover::after {
    width: 120px;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--element-spacing);
    background: rgba(var(--card-background-rgb), 0.9);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

#contact-form:hover {
    transform: perspective(1000px) rotateX(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

#contact-form label {
    text-align: left;
    font-size: 1rem;
    color: var(--text-light);
    transform: translateX(0);
    transition: transform 0.3s ease;
}

#contact-form input:focus + label,
#contact-form textarea:focus + label {
    transform: translateX(10px);
    color: var(--primary-color);
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    transition: all 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.6);
    transform: translateY(-3px);
}

#contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

#contact-form button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#contact-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

#contact-form button:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.6);
}

#contact-form button:hover::before {
    left: 100%;
}

/* Success animation */
@keyframes success {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-animation {
    animation: success 0.5s ease;
}