/* Contact Section Styles */
.contact-section {
    background: linear-gradient(135deg, #323275 0%, #4646a5 100%);
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
    color: white;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/textures/aluminum-texture.jpg');
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

/* Abstract design elements */
.contact-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(50, 50, 117, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.contact-header {
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
}

.contact-title {
    color: white;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, white, rgba(255, 255, 255, 0.3));
    border-radius: 3px;
}

.contact-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #323275, #4646a5);
    margin: 20px auto 0;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(50, 50, 117, 0.3);
    position: relative;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-divider::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    z-index: 2;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3.5s infinite cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes shimmer {
    0% {
        left: -100%;
        opacity: 0;
    }
    5% {
        opacity: 0.3;
    }
    20% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    80% {
        opacity: 0.8;
    }
    95% {
        opacity: 0.3;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.contact-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.95) 100%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    height: 100%;
    min-height: 200px;
    max-height: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-blue), rgba(50, 50, 117, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-icon-wrapper {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.contact-icon-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(50, 50, 117, 0.05) 0%, rgba(138, 136, 255, 0.1) 100%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0);
    border-radius: 50%;
}

.contact-card:hover .contact-icon-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 1);
}

.contact-card:hover .contact-icon-wrapper::after {
    opacity: 1;
    transform: scale(1.5);
}

.contact-icon {
    color: var(--brand-blue);
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.contact-card:hover .contact-icon {
    transform: translateY(-2px);
    color: #323275;
}

.contact-info-title {
    font-size: 1.2rem;
    margin: 12px 0 8px;
    color: var(--brand-blue);
    font-weight: 600;
    position: relative;
}

.contact-info-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--brand-blue), rgba(50, 50, 117, 0.3));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.contact-card:hover .contact-info-title::after {
    width: 60px;
}

.contact-info-text {
    color: var(--brand-gray);
    text-align: center;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Email link styling */
.email-link {
    color: var(--brand-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
    text-align: center;
    width: 100%;
    transform: translateX(-4px);
}

.email-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--brand-blue);
    transition: width 0.3s ease;
}

.email-link:hover {
    color: var(--brand-dark);
}

.email-link:hover::after {
    width: 100%;
}

.contact-form-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.95) 100%);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    padding: 45px 40px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.contact-form-wrapper:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.contact-form-wrapper:hover::before {
    opacity: 1;
}

.form-control {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) inset;
}

.form-control:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.2rem rgba(50, 50, 117, 0.15);
    background-color: #fff;
}

.form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus::placeholder {
    opacity: 0.7;
    transform: translateX(5px);
}

textarea.form-control {
    height: 150px;
    resize: none;
    overflow-y: auto;
}

.btn-send-message {
    background: linear-gradient(135deg, white 0%, rgba(255, 255, 255, 0.9) 100%);
    color: var(--brand-blue);
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-send-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #2a2a7a 0%, var(--brand-blue) 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-send-message:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(50, 50, 117, 0.3);
    color: white;
}

.btn-send-message:hover::before {
    width: 100%;
}

.btn-send-message:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(50, 50, 117, 0.2);
}

/* Responsive styles */
@media (max-width: 1199px) {
    .contact-section {
        padding: 90px 0 100px;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 991px) {
    .contact-section {
        padding: 80px 0 90px;
    }
    
    .contact-info-cards {
        margin-bottom: 40px;
    }
    
    .contact-card {
        margin-bottom: 20px;
    }
    
    .contact-title {
        font-size: 2.3rem;
    }
    
    .contact-form-wrapper {
        padding: 35px 30px;
    }
}

@media (max-width: 767px) {
    .contact-section {
        padding: 70px 0 80px;
    }
    
    .contact-header {
        margin-bottom: 50px;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }
    
    .contact-card, 
    .contact-form-wrapper {
        padding: 30px 25px;
    }
    
    .contact-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .contact-icon {
        font-size: 1.5rem;
    }
    
    .form-control {
        padding: 12px 15px;
        margin-bottom: 15px;
    }
    
    .btn-send-message {
        padding: 12px 30px;
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 575px) {
    .contact-section {
        padding: 60px 0 70px;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-title::after {
        width: 60px;
        bottom: -8px;
    }
    
    .contact-subtitle {
        font-size: 0.9rem;
    }
    
    .contact-info-title {
        font-size: 1.1rem;
    }
    
    .contact-info-text {
        font-size: 0.95rem;
    }
    
    .form-control {
        font-size: 0.95rem;
    }
    
    .btn-send-message {
        font-size: 0.95rem;
    }
}
