/* ===============================================
   ENHANCED CONTACT PAGE ANIMATIONS & EFFECTS
   =============================================== */

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
    }
}

/* Visual Banner Section */
.contact-visual-banner {
    width: 100%;
    height: 300px;
    margin-bottom: 60px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    animation: fadeIn 0.6s ease-out;
}

.contact-visual-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.contact-visual-banner:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.contact-visual-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 13, 23, 0.4) 100%);
    pointer-events: none;
}

/* Hero Section Animations */
.contact-hero {
    animation: fadeInUp 0.8s ease-out;
}

.contact-hero .demo-icon {
    animation: float 3s ease-in-out infinite;
}

.contact-hero .demo-icon i {
    display: inline-block;
    transition: transform 0.3s ease;
}

.contact-hero:hover .demo-icon i {
    transform: scale(1.1) rotate(5deg);
}

/* Form Enhancements */
.contact-form {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-group input,
.form-group select,
.form-group textarea {
    transition: all 0.3s ease;
    position: relative;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.2);
    border-color: #A855F7;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(168, 85, 247, 0.5);
}

/* Floating Label Effect */
.form-group label {
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 8px;
}

.form-group input:focus~label,
.form-group textarea:focus~label,
.form-group select:focus~label {
    color: #A855F7;
}

/* Submit Button Hover */
.btn-submit {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.5);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Sidebar Animations */
.contact-sidebar {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.demo-card {
    transition: all 0.4s ease;
    position: relative;
}

.demo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3);
}

.demo-card .demo-icon {
    transition: transform 0.3s ease;
}

.demo-card:hover .demo-icon {
    transform: scale(1.1);
    animation: glow 2s ease-in-out infinite;
}

/* Calendar Button */
.btn-calendar {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-calendar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    border-radius: 50%;
}

.btn-calendar:hover::after {
    width: 300px;
    height: 300px;
}

.btn-calendar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.4);
}

/* Contact Info Items */
.contact-info-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-info-item:hover {
    transform: translateX(8px);
    background: rgba(168, 85, 247, 0.05);
    border-radius: 12px;
    padding: 12px;
    margin-left: -12px;
}

.contact-info-item .info-icon {
    transition: all 0.3s ease;
}

.contact-info-item:hover .info-icon {
    transform: scale(1.15);
    color: #A855F7;
}

.contact-info-item .info-value {
    transition: color 0.3s ease;
}

.contact-info-item:hover .info-value {
    color: #A855F7;
}

/* Required Field Asterisk Animation */
.required {
    color: #EF4444;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Service Icon in Hero */
.contact-hero .demo-icon i {
    background: linear-gradient(135deg, #A855F7, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(168, 85, 247, 0.4));
}

/* Stagger Animation for Form Fields */
.form-group:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.form-group:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.form-group:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.form-group:nth-child(4) {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.form-group:nth-child(5) {
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.form-group:nth-child(6) {
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

/* Contact Grid Responsive Animation */
@media (max-width: 968px) {
    .contact-visual-banner {
        height: 200px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        animation: fadeInUp 1s ease-out 0.6s both;
    }
}

/* Loading State for Images */
.contact-visual-banner img {
    background: linear-gradient(90deg, #1a1c2e 25%, #2a2c3e 50%, #1a1c2e 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.contact-visual-banner img[src] {
    animation: none;
    background: none;
}

/* Interactive Hover Effect on Hero Title */
.contact-title {
    transition: all 0.3s ease;
    cursor: default;
}

.contact-title:hover {
    background: linear-gradient(135deg, #A855F7, #EC4899, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.02);
}