/* Contact Section */
.contact {
    padding: clamp(20px, 8vw, 70px) clamp(10px, 5vw, 20px); /* Dynamic padding */
    background: linear-gradient(135deg, #243B55, #141E30);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    transform: translate(-50%, -50%);
    animation: subtleSpin 25s linear infinite;
    z-index: 0;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.2rem, 4.5vw, 2.2rem); /* Improved scaling for smaller screens */
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(to right, #00C6FF, #0072FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2; /* Improved line height for better spacing */
    margin-bottom: clamp(8px, 3vw, 12px); /* Dynamic margin for better spacing */
    letter-spacing: clamp(1px, 0.3vw, 3px); /* Subtle letter spacing for clarity */
}


.section-header .subtitle_contact {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.9rem, 3vw, 1.3rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: clamp(10px, 2vw, 15px) auto clamp(20px, 4vw, 30px);
    line-height: 1.6;
    max-width: 800px;
}

/* Contact Form */
.contact-form {
    width: 100%;
    max-width: clamp(250px, 90%, 700px); /* Adaptive width for all devices */
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: clamp(20px, 5vw, 40px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: left;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.input-container {
    position: relative;
    margin-bottom: 20px;
}

.input-container input,
.input-container textarea {
    width: 100%;
    padding: clamp(10px, 3vw, 15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.input-container input:focus,
.input-container textarea:focus {
    border: 1px solid #00C6FF;
    box-shadow: 0 0 10px #00C6FF;
    background: rgba(255, 255, 255, 0.2);
}

.input-container label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-size: clamp(0.65rem, 1.5vw, 0.85rem); /* Responsive font size */
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transition: transform 0.3s ease, font-size 0.3s ease, color 0.3s ease;
}


.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label,
.input-container textarea:focus + label,
.input-container textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.85rem;
    color: #00C6FF;
    background: rgba(36, 59, 85, 0.8);
    padding: 0 5px;
    border-radius: 5px;
}

.button-container {
    text-align: center;
    margin-top: clamp(10px, 5vw, 20px); /* Responsive margin-top */
}

.btn.primary {
    display: inline-block;
    padding: clamp(8px, 2vw, 12px) clamp(15px, 5vw, 30px); /* Responsive padding */
    font-size: clamp(0.8rem, 2vw, 1rem); /* Responsive font size */
    font-weight: 600;
    text-align: center;
    color: #ffffff; /* White text color */
    background: linear-gradient(to right, #00C6FF, #0072FF); /* Gradient background */
    border: none;
    border-radius: 30px; /* Rounded corners */
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
    text-decoration: none; /* Removes default link styles */
}

.btn.primary:hover {
    background: linear-gradient(to right, #0072FF, #00C6FF); /* Reversed gradient on hover */
    transform: translateY(-3px); /* Subtle lift effect */
    box-shadow: 0 6px 15px rgba(0, 198, 255, 0.5); /* Enhanced shadow */
}

.btn.primary:active {
    transform: translateY(0); /* Reset lift effect */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Smaller shadow */
}


.contact-form button {
    padding: clamp(10px, 2.5vw, 15px) clamp(20px, 5vw, 30px);
    border: none;
    border-radius: 30px;
    background: linear-gradient(to right, #00C6FF, #0072FF);
    color: #ffffff;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-5px);
    background: linear-gradient(to right, #0072FF, #00C6FF);
    box-shadow: 0 10px 25px rgba(0, 198, 255, 0.5);
}

/* Form Feedback */
.form-feedback {
    margin: clamp(10px, 2.5vw, 20px) 0;
    padding: 10px;
    font-size: clamp(0.8rem, 2vw, 1rem);
    text-align: center;
    border-radius: 5px;
    display: none;
}

.form-feedback.success {
    background: #10b981;
    color: #ffffff;
}

.form-feedback.error {
    background: #ef4444;
    color: #ffffff;
}
