
/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/

#contact {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    position: relative;
    padding: 80px 0;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, rgba(133, 13, 213, 0.1) 0%, rgba(141, 53, 229, 0.05) 100%); */
    z-index: -1;
}

#contact.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-form {
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(133, 13, 213, 0.1),
                0 2px 8px rgba(141, 53, 229, 0.08),
                inset 0 1px 1px rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.contact-form .form-control {
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--bs-body-color);
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    box-shadow: 0 0 0 4px rgba(133, 13, 213, 0.1);
    border-color: rgba(133, 13, 213, 0.5);
    background: rgba(255, 255, 255, 0.03);
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form .form-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form .btn {
    background: linear-gradient(135deg, #850dd5 0%, #9d3be3 100%);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-form .btn::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 .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(133, 13, 213, 0.3);
}

.contact-form .btn:hover::before {
    left: 100%;
}

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

/* Form feedback and validation styles */
.contact-form .form-control.is-valid {
    border-color: rgba(25, 135, 84, 0.5);
    background-image: none;
}

.contact-form .form-control.is-invalid {
    border-color: rgba(220, 53, 69, 0.5);
    background-image: none;
}

/* Loading state for submit button */
.contact-form .btn.loading {
    background: linear-gradient(135deg, #6a0aa9 0%, #7d2fb5 100%);
    pointer-events: none;
    opacity: 0.8;
}

/* Inline Success Message */
.success-message {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.success-content {
    background: rgba(46, 125, 50, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.2);
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-message::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
}

.success-message.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.success-content i {
    font-size: 1.2em;
    color: #4caf50;
    animation: popIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-content span {
    color: #2e7d32;
    font-size: 0.95em;
    font-weight: 500;
}

.close-success {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    width: 32px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.close-success:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

.close-success i {
    font-size: 1.2em;
    line-height: 1;
}

/* Success Message Animations */
@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Dark theme adjustments */
[data-bs-theme="dark"] .success-content {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.2);
}

[data-bs-theme="dark"] .success-content span {
    color: #81c784;
}

@media (max-width: 768px) {
    .success-content {
        width: 90%;
        max-width: 320px;
    }
    
    .success-icon {
        padding: 25px;
    }
    
    .success-icon i {
        font-size: 3em;
    }
    
    .success-text {
        padding: 20px 25px;
    }
    
    .success-text h4 {
        font-size: 1.3em;
    }
}

/* Find Me On Section */
.find-me-on {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.find-me-on h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    position: relative;
    display: inline-block;
}

.find-me-on h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #850dd5, transparent);
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
}

.social-link:hover {
    transform: translateY(-3px);
    background: rgba(133, 13, 213, 0.1);
    border-color: rgba(133, 13, 213, 0.2);
    color: #fff;
}

.social-link i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    color: #850dd5;
    transition: all 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.1);
    color: #9d3be3;
}

.social-link span {
    font-weight: 500;
}

/* Social link variants */
.social-link.github:hover {
    background: rgba(36, 41, 46, 0.1);
    border-color: rgba(36, 41, 46, 0.2);
}

.social-link.linkedin:hover {
    background: rgba(0, 119, 181, 0.1);
    border-color: rgba(0, 119, 181, 0.2);
}

.social-link.twitter:hover {
    background: rgba(29, 161, 242, 0.1);
    border-color: rgba(29, 161, 242, 0.2);
}

.social-link.email:hover {
    background: rgba(234, 67, 53, 0.1);
    border-color: rgba(234, 67, 53, 0.2);
}

/* Animation for social links */
@keyframes socialPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(133, 13, 213, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(133, 13, 213, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(133, 13, 213, 0);
    }
}

.social-link:active {
    animation: socialPulse 0.5s;
}

/* Profiles Section */
.profiles-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    min-height: 450px; /* Match typical form height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(133, 13, 213, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profiles-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(133, 13, 213, 0.15);
}

.profiles-section h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.profiles-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #850dd5, transparent);
}

.profile-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.profile-link {
    display: flex;
    align-items: center;
    padding: 10px 1.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-link .hover-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

.profile-link:hover {
    transform: translateY(-3px);
    background: rgba(133, 13, 213, 0.1);
    border-color: rgba(133, 13, 213, 0.2);
    color: #fff;
}

.profile-link:hover .hover-glow {
    left: 100%;
}

.profile-link i {
    font-size: 1.25rem;
    color: #850dd5;
    transition: transform 0.3s ease;
}

.profile-link:hover i {
    transform: scale(1.1);
    color: #9d3be3;
}

.profile-link span {
    margin-left: 0.75rem;
    font-weight: 500;
}

/* Animation classes */
.animate__fadeIn {
    animation: fadeIn 0.5s ease;
}

.animate__fadeInLeft {
    animation: fadeInLeft 0.5s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-form {
        padding: 30px;
    }
    
    .contact-form .btn {
        width: 100%;
    }

    .find-me-on {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .social-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .social-link {
        padding: 0.75rem;
    }
}
