/* Designed and developed by Aditya Panigrahi */

/* Contact Form Modal Styles */
.contact-modal {
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 2px 8px rgba(255, 255, 255, 0.4) inset,
        0 8px 32px rgba(0, 0, 0, 0.06);
    max-width: 750px;
    margin: 0 auto;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(248, 250, 252, 0.8) 50%,
        rgba(255, 255, 255, 0.75) 100%
    ) !important;
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(248, 250, 252, 0.6) 30%,
        rgba(241, 245, 249, 0.5) 70%,
        rgba(255, 255, 255, 0.4) 100%
    );
    border-radius: 24px;
    pointer-events: none;
    z-index: -1;
}

.contact-modal::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(139, 92, 246, 0.05) 50%,
        rgba(59, 130, 246, 0.1) 100%
    );
    border-radius: 26px;
    pointer-events: none;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal:hover::after {
    opacity: 1;
}

.contact-modal .modal-header {
    padding: 2.5rem 2.5rem 0 2.5rem;
    background: transparent;
    position: relative;
}

.contact-modal .btn-close {
    background-size: 1.3em;
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-modal .btn-close:hover {
    opacity: 1;
    transform: scale(1.05) rotate(90deg);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    background-color: rgba(255, 255, 255, 0.9);
}

.contact-modal .modal-body {
    padding: 0 2.5rem 2.5rem 2.5rem;
    background: transparent !important;
}

.contact-modal .modal-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Contact Form Header */
.contact-form-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}


.form-icon {
    font-size: 2.5rem;
    color: #6366f1;
    margin-bottom: 1.5rem;
    display: block;
    text-shadow: 0 4px 8px rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}


.form-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    font-family: "Manrope", sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    letter-spacing: -0.025em;
}

/* Form Labels */
.contact-form .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    letter-spacing: 0.025em;
    transition: color 0.3s ease;
}

.contact-form .form-label:hover {
    color: #1f2937;
}

.contact-form .form-label.required::after {
    content: "*";
    color: #ef4444;
    margin-left: 3px;
    text-shadow: none;
    font-weight: 700;
}

/* Form Controls */
.contact-form .form-control {
    border: 1px solid rgba(209, 213, 219, 0.6);
    border-radius: 14px;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.8);
    color: #374151;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: auto;
    min-height: 52px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 1px 3px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.contact-form .form-control:focus {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 
        0 0 0 0.25rem rgba(99, 102, 241, 0.1),
        0 8px 20px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset,
        0 0 0 2px rgba(99, 102, 241, 0.1);
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    transform: translateY(-2px);
    outline: none;
}

.contact-form .form-control:hover:not(:focus) {
    border-color: rgba(156, 163, 175, 0.8);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

.contact-form .form-control::placeholder {
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Textarea specific styling */
.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Send Button */
.send-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #3b82f6 100%);
    border: none;
    border-radius: 16px;
    padding: 0.875rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    box-shadow: 
        0 6px 16px rgba(99, 102, 241, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset,
        0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
}

.send-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: left 0.5s ease;
}

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

.send-btn:hover {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #2563eb 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 12px 24px rgba(99, 102, 241, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.send-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.send-btn:focus {
    outline: none;
    box-shadow: 
        0 6px 16px rgba(99, 102, 241, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset,
        0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Modal backdrop and animation - specific to contact modal */
#contactModal .modal-backdrop {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

#contactModal.fade .modal-dialog {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(0.8) translateY(-30px) rotateX(10deg);
    opacity: 0;
}

#contactModal.show .modal-dialog {
    transform: scale(1) translateY(0) rotateX(0deg);
    opacity: 1;
}

#contactModal.fade .modal-backdrop {
    opacity: 0;
}

#contactModal.show .modal-backdrop {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-modal {
        margin: 1rem;
        border-radius: 20px !important;
        backdrop-filter: blur(16px) saturate(130%);
        -webkit-backdrop-filter: blur(16px) saturate(130%);
        max-width: calc(100vw - 2rem);
    }
    
    .contact-modal .modal-body {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .contact-modal .modal-header {
        padding: 1.5rem 1.5rem 0 1.5rem;
    }
    
    .contact-form-header {
        margin-bottom: 2rem;
    }
    
    .form-title {
        font-size: 1.625rem;
    }
    
    .form-icon {
        font-size: 2.25rem;
        margin-bottom: 1.25rem;
    }
    
    .send-btn {
        width: 100%;
        margin-top: 1.5rem;
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }
    
    .contact-form .form-control {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0.75rem 1rem;
        min-height: 48px;
    }
    
    .contact-form .form-label {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .contact-modal {
        margin: 0.5rem;
        border-radius: 16px !important;
    }
    
    .contact-modal .modal-body {
        padding: 0 1rem 1rem 1rem;
    }
    
    .contact-modal .modal-header {
        padding: 1rem 1rem 0 1rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-icon {
        font-size: 2rem;
    }
}


