/* Contact Page Specific Styles */

.contact-us-sec {
    position: relative;
}

/* Coding Profiles Section */
.contact-us-sec > .layout > div:first-of-type {
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-us-sec [style*="text-align: center"] {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-us-sec [style*="text-align: center"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.contact-us-sec [style*="text-align: center"]:hover::before {
    left: 100%;
}

.contact-us-sec [style*="text-align: center"]:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-us-sec i[style*="font-size: 2.5rem"] {
    transition: all 0.3s ease;
}

.contact-us-sec [style*="text-align: center"]:hover i[style*="font-size: 2.5rem"] {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 5px 15px rgba(99, 102, 241, 0.5));
}

/* Contact Info Items */
.contact-info-item {
    position: relative;
    transition: all 0.3s ease;
}

.contact-info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-1);
    transition: height 0.3s;
    border-radius: 0 2px 2px 0;
}

.contact-info-item:hover::before {
    height: 100%;
}

.contact-info-item i {
    transition: all 0.3s ease;
}

.contact-info-item:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--accent-color);
}

/* Form Enhancements */
.contact-form {
    position: relative;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.2);
}

.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s;
}

.form-group:focus-within::after {
    width: 100%;
}

/* Submit Button */
#submit-btn {
    position: relative;
    overflow: hidden;
}

#submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

#submit-btn span,
#submit-btn i {
    position: relative;
    z-index: 1;
}

/* Form Message */
.form-message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Link Hover Effects */
.contact-us-sec a[style*="display: flex"] {
    transition: all 0.3s ease;
}

.contact-us-sec a[style*="display: flex"]:hover {
    transform: translateX(5px);
    background: rgba(99, 102, 241, 0.1) !important;
}

.contact-us-sec a[style*="display: flex"] i[style*="margin-left: auto"] {
    transition: transform 0.3s;
}

.contact-us-sec a[style*="display: flex"]:hover i[style*="margin-left: auto"] {
    transform: translateX(3px);
}

/* Section Title */
.section-title {
    position: relative;
}

.section-title::after {
    animation: expand 1s ease-out;
}

@keyframes expand {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}
