/* Değişim27 Evden Eve Nakliyat - İletişim Sayfası CSS */

@import url('./index.css');

/* Contact Cards Animation */
.contact-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(19, 127, 236, 0.1), transparent);
    transition: left 0.6s;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -12px rgba(19, 127, 236, 0.2);
}

.contact-card .material-symbols-outlined {
    transition: all 0.3s ease;
}

.contact-card:hover .material-symbols-outlined {
    transform: scale(1.1);
    color: var(--primary);
}

/* Form Enhancements */
.form-container {
    position: relative;
}

.form-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), #0f6bc7, var(--primary));
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.form-container:hover::before {
    opacity: 0.1;
}

/* Input Focus Effects */
.form-input {
    transition: all 0.3s ease;
    position: relative;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(19, 127, 236, 0.15);
}

/* Button Hover Effects */
.submit-btn {
    position: relative;
    overflow: hidden;
}

.submit-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.6s;
}

.submit-btn:hover::before {
    left: 100%;
}

/* Service Area Cards */
.service-area-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-area-card:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px -12px rgba(19, 127, 236, 0.2);
}

.service-area-card .material-symbols-outlined {
    transition: all 0.3s ease;
}

.service-area-card:hover .material-symbols-outlined {
    color: var(--primary);
    transform: scale(1.2);
}

/* Social Media Icons */
.social-icon {
    transition: all 0.3s ease;
    position: relative;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon:hover {
    transform: translateY(-2px) scale(1.1);
    color: white;
}

/* Loading Animation for Form */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Message Animation */
.success-message {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .contact-card {
        padding: 1rem;
    }

    .contact-card:hover {
        transform: translateY(-3px);
    }

    .service-area-card:hover {
        transform: translateY(-2px) scale(1.02);
    }
}