﻿/* Contact Section */
.contact-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.modal-body {
    background-color: var(--light-color);
}

    .contact-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
        animation: float 20s ease-in-out infinite;
        pointer-events: none;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

    .section-header h2 {
        font-size: 2.5rem;
        color: var(--secondary-color);
        margin-bottom: 15px;
        position: relative;
        display: inline-block;
        font-weight: 700;
    }

        .section-header h2::after {
            content: '';
            position: absolute;
            width: 80px;
            height: 3px;
            background: linear-gradient(45deg, var(--primary-color), #0a6c65);
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 2px;
        }

    .section-header p {
        color: var(--text-light);
        font-size: 1.2rem;
        max-width: 600px;
        margin: 0 auto;
    }

/* Contact Cards */
.contact-info {
    margin-bottom: 30px;
}

.contact-card {
    margin-right: 10px;
    background: linear-gradient(145deg, #b8d4dd, #94b0ba);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.15), -5px -5px 15px rgba(255, 255, 255, 0.6), inset 2px 2px 8px rgba(0, 0, 0, 0.1), inset -2px -2px 8px rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

    .contact-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s;
    }

    .contact-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 12px 15px 30px rgba(0, 0, 0, 0.2), -8px -8px 20px rgba(255, 255, 255, 0.7);
    }

        .contact-card:hover::before {
            left: 100%;
        }

    .contact-card h3 {
        color: var(--secondary-color);
        margin-bottom: 15px;
        font-size: 1.3rem;
        display: flex;
        align-items: center;
        font-weight: 600;
    }

        .contact-card h3 i {
            margin-right: 12px;
            color: var(--primary-color);
            font-size: 1.2em;
            padding: 8px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

    .contact-card:hover h3 i {
        transform: scale(1.1);
        background: var(--primary-color);
        color: white;
    }

    .contact-card p {
        margin-bottom: 0;
        padding-left: 47px;
        font-weight: 500;
    }

    .contact-card a {
        color: var(--text-color);
        transition: all 0.3s ease;
        text-decoration: none;
        position: relative;
    }

        .contact-card a:hover {
            color: var(--primary-color);
            text-shadow: 0 0 8px rgba(8, 83, 77, 0.3);
        }

/* Contact Form */
.contact-form {
    background: linear-gradient(145deg, #b8d4dd, #94b0ba);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.15), -5px -5px 15px rgba(255, 255, 255, 0.6), inset 2px 2px 8px rgba(0, 0, 0, 0.1), inset -2px -2px 8px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

    .contact-form::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        animation: shimmer 3s ease-in-out infinite;
        pointer-events: none;
    }

@keyframes shimmer {
    0%, 100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.contact-form label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form .form-control {
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1);
}

    .contact-form .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.25rem rgba(8, 83, 77, 0.25), inset 2px 2px 5px rgba(0, 0, 0, 0.1);
        background: white;
        transform: translateY(-2px);
    }

.contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.invalid-feedback {
    font-size: 0.85rem;
    margin-top: -10px;
    margin-bottom: 10px;
}

/* Enhanced Submit Button */
.btn-send {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--primary-color), #0a6c65);
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(8, 83, 77, 0.3);
    text-transform: uppercase;
}

    .btn-send:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(8, 83, 77, 0.4);
        background: transparent;
        color: var(--primary-color);
    }

    .btn-send:active {
        transform: translateY(-1px);
        color:white;
    }

/* Button Content States */
.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.btn-send.loading .btn-content {
    opacity: 0;
    transform: translateY(-10px);
}

.btn-send.loading .btn-loading {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.btn-send.loading {
    pointer-events: none;
}

.btn-icon {
    margin-right: 10px;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-send:hover .btn-icon {
    transform: translateX(5px);
}

/* Custom Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

    .ripple.animate {
        animation: ripple 0.6s linear;
    }

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced Success Modal */
#contactSuccessModal .modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.success-animation {
    position: relative;
}

.success-icon {
    font-size: 80px;
    color: var(--primary-color);
    animation: successPulse 0.8s ease-in-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-title {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-text {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.modal-btn {
    padding: 12px 30px;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--primary-color), #0a6c65);
    border: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .modal-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(8, 83, 77, 0.3);
    }

    .modal-btn i {
        margin-right: 8px;
    }

/* Responsive Styles */
@media (max-width: 991.98px) {
    .contact-info {
        margin-bottom: 40px;
    }
}

@media (max-width: 767.98px) {
    .contact-section {
        padding: 60px 0;
    }

    .contact-form {
        padding: 30px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-card {
        margin-right: 0;
    }
}

@media (max-width: 575.98px) {
    .contact-card {
        padding: 20px;
    }

    .contact-form {
        padding: 25px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .btn-send {
        padding: 14px 30px;
        font-size: 1rem;
    }
}
