/* Contact Section */
.contact {
    padding: 100px 0;
    background: 
        linear-gradient(135deg, #000000 0%, #1a1a1a 25%, #000000 50%, #2d2d2d 75%, #000000 100%),
        radial-gradient(ellipse at top left, rgba(229, 45, 39, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(37, 117, 252, 0.08) 0%, transparent 50%);
    color: white;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(229, 45, 39, 0.6) 20%, 
        rgba(37, 117, 252, 0.6) 80%, 
        transparent
    );
    animation: shimmerLine 3s ease-in-out infinite;
    z-index: 1;
}

.contact::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 15%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(229, 45, 39, 0.05), transparent 70%);
    border-radius: 50%;
    animation: floatGlow 8s ease-in-out infinite;
    z-index: 1;
}

/* Ambient particles */
.contact .container::before {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(37, 117, 252, 0.05), transparent 70%);
    border-radius: 50%;
    animation: floatGlow 7s ease-in-out infinite reverse;
    z-index: 1;
}

.contact .section-header {
    position: relative;
    z-index: 1;
}

.contact .section-header h2 {
    color: white;
    background: linear-gradient(135deg, #ffffff, #e52d27);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(229, 45, 39, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.contact-btn {
    background: linear-gradient(135deg, #e52d27, #ff6b47);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(229, 45, 39, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-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 ease;
}

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

.contact-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.contact-btn:hover {
    transform: translateY(-8px) scale(1.05) rotateY(5deg);
    box-shadow: 
        0 15px 35px rgba(229, 45, 39, 0.5),
        0 0 25px rgba(229, 45, 39, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-btn i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.contact-btn:hover i {
    transform: scale(1.2) rotate(15deg);
    animation: pulse 1s ease-in-out infinite;
}

/* New animations for footer-like effect */
@keyframes shimmerLine {
    0%, 100% { opacity: 0.5; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1.2); }
}

@keyframes floatGlow {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.3; 
    }
    50% { 
        transform: translateY(-30px) rotate(180deg); 
        opacity: 0.6; 
    }
}

@keyframes expandLine {
    0%, 100% { width: 30%; opacity: 0.5; }
    50% { width: 70%; opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1.2) rotate(15deg); }
    50% { transform: scale(1.4) rotate(20deg); }
}

.contact-content::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229, 45, 39, 0.5), transparent);
    border-radius: 2px;
    animation: expandLine 2s ease-in-out infinite;
}

/* Contact social icons to match footer style */
.contact-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.contact-social a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-social a::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 ease;
}

.contact-social a:hover::before {
    left: 100%;
}

.contact-social a:hover {
    background: linear-gradient(135deg, #e52d27 0%, #ff6b47 100%);
    transform: translateY(-8px) scale(1.15) rotateY(10deg);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(229, 45, 39, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-social a i {
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.contact-social a:hover i {
    transform: scale(1.1) rotateZ(5deg);
}

/* Contact form enhancement (if needed in future) */
.contact-form {
    max-width: 500px;
    margin: 40px auto 0;
    display: none; /* Hidden by default, can be shown via JS */
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e52d27;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Social contact icons */
.contact-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.contact-social a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-social a:hover {
    background: #e52d27;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(229, 45, 39, 0.3);
}

.contact-social a i {
    font-size: 1.3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }
    
    .contact-content {
        padding: 25px 20px;
    }
    
    .contact-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .contact-btn {
        padding: 18px 35px;
        font-size: 1.1rem;
        gap: 12px;
    }
    
    .contact-btn i {
        font-size: 1.2rem;
    }
    
    .contact-social {
        gap: 15px;
        margin-top: 30px;
    }
    
    .contact-social a {
        width: 45px;
        height: 45px;
    }
    
    .contact-social a i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .contact-content {
        padding: 20px 15px;
    }
    
    .contact-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .contact-btn {
        padding: 15px 30px;
        font-size: 1rem;
        gap: 10px;
    }
    
    .contact-btn i {
        font-size: 1.1rem;
    }
    
    .contact-social {
        gap: 12px;
        margin-top: 25px;
    }
    
    .contact-social a {
        width: 40px;
        height: 40px;
    }
    
    .contact-social a i {
        font-size: 1.1rem;
    }
}
