/* Contact Section Styles */
#contact {
    background: #f8f9fa;
    position: relative;
}

/* Contact Info Cards */
.contact-info-card {
    border: none;
    border-radius: 15px;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-info-card:hover::before {
    transform: scaleX(1);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon {
    transform: scale(1.1);
    background: rgba(102, 126, 234, 0.2);
}

.contact-info-card .card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info-card .card-text {
    color: #495057;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.contact-info-card .btn {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-info-card .btn:hover {
    transform: translateY(-2px);
}

/* Social & Resume Card */
.social-resume-card {
    border: none;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.social-resume-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover {
    transform: translateY(-3px);
    color: white;
}

.social-link.linkedin { background: #0077b5; }
.social-link.github { background: #333; }
.social-link.twitter { background: #1da1f2; }
.social-link.email { background: #ea4335; }
.social-link.facebook { background: #1877f2; }
.social-link.instagram { background: #e4405f; }

.resume-download .btn {
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.resume-download .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* Contact Form */
.contact-form-card {
    border: none;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form-card .card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Form Styling */
.form-label {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: #fff;
}

.form-control::placeholder {
    color: #adb5bd;
    font-style: italic;
}

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

.form-check-input {
    border: 2px solid #e9ecef;
    border-radius: 4px;
    width: 1.2em;
    height: 1.2em;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-check-label {
    color: #495057;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* Form Validation */
.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 1.44 1.44L7.4 4.5l.94.94L4.66 9.18z'/%3e%3c/svg%3e");
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4M7.2 4.6l-1.4 1.4'/%3e%3c/svg%3e");
}

.valid-feedback,
.invalid-feedback {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Submit Button */
#contactForm .btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    padding: 1rem 3rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#contactForm .btn-primary::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: left 0.5s ease;
}

#contactForm .btn-primary:hover::before {
    left: 100%;
}

#contactForm .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#contactForm .btn-primary:active {
    transform: translateY(0);
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success/Error Messages */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Form Animation */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating-label {
    position: absolute;
    top: 0.8rem;
    left: 1rem;
    color: #adb5bd;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: #fff;
    padding: 0 0.5rem;
}

.form-control:focus + .form-floating-label,
.form-control:not(:placeholder-shown) + .form-floating-label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-info-card {
        margin-bottom: 1rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .contact-form-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    #contactForm .btn-primary {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .contact-info-card .card-body {
        padding: 1.5rem;
    }
    
    .social-resume-card .card-body {
        padding: 1.5rem;
    }
    
    .contact-form-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .social-links {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .form-control,
    .form-select {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
    
    #contactForm .btn-primary {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Animation Delays */
.fade-in-up[data-delay="100"] { transition-delay: 0.1s; }
.fade-in-up[data-delay="200"] { transition-delay: 0.2s; }
.fade-in-up[data-delay="300"] { transition-delay: 0.3s; }
.fade-in-up[data-delay="400"] { transition-delay: 0.4s; }
.fade-in-up[data-delay="500"] { transition-delay: 0.5s; }
.fade-in-up[data-delay="600"] { transition-delay: 0.6s; }
