/* Contact Section Specific CSS */
/*code by: Arif billah */
#contact.contact-page {
    padding: 80px 0;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.9)), url('https://i.postimg.cc/XYkg2sry/c.avif') center/cover no-repeat fixed;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#contact .contact-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

#contact .particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float-up 32s infinite linear;
    opacity: 0.65 !important;
    filter: drop-shadow(0 0 5px currentColor);
    animation-fill-mode: both;
    will-change: transform, opacity;
}

@keyframes float-up {
    0% {
        transform: translate3d(0, 30vh, 0);
    }
    100% {
        transform: translate3d(50px, -80vh, 0);
    }
}

#contact .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

#contact .page-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 4;
}

#contact .page-header h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    background: linear-gradient(90deg, #3498db, #2ecc71, #3498db);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

#contact .page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 15px;
}

#contact .page-header p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    border-radius: 3px;
}

#contact .content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

#contact .contact-form {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

#contact .contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #3498db, #2ecc71);
    transition: all 0.4s ease;
}

#contact .contact-form:hover::before {
    width: 100%;
    opacity: 0.05;
}

#contact .contact-form:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

#contact .contact-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

#contact .contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #3498db, #2ecc71);
    transition: all 0.4s ease;
}

#contact .contact-info:hover::before {
    width: 100%;
    opacity: 0.05;
}

#contact .contact-info:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

#contact .section-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
    position: relative;
    display: inline-block;
}

#contact .section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #2ecc71;
    transition: width 0.5s ease;
}

#contact .contact-form:hover .section-title::after,
#contact .contact-info:hover .section-title::after {
    width: 100%;
}

#contact .form-group {
    margin-bottom: 25px;
    position: relative;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

#contact textarea {
    min-height: 150px;
    resize: vertical;
}

#contact .floating-label {
    position: absolute;
    top: 18px;
    left: 20px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    pointer-events: none;
}

#contact input:focus+.floating-label,
#contact textarea:focus+.floating-label,
#contact input:not(:placeholder-shown)+.floating-label,
#contact textarea:not(:placeholder-shown)+.floating-label {
    top: -12px;
    left: 10px;
    font-size: 12px;
    background: #3498db;
    padding: 0 8px;
    color: #fff;
    font-weight: 500;
    border-radius: 4px;
}

#contact .btn {
    background: linear-gradient(90deg, #3498db, #2ecc71);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#contact .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, #2ecc71, #3498db);
}

#contact .contact-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

#contact .contact-info p a,
#contact .contact-info p a:visited,
#contact .contact-info p a:hover,
#contact .contact-info p a:active {
    color: inherit;
    text-decoration: none;
}

#contact .contact-info p:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

#contact .contact-info i {
    margin-right: 15px;
    color: #3498db;
    font-size: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

#contact .contact-info p:hover i {
    background: rgba(52, 152, 219, 0.2);
    transform: scale(1.1);
}

/* FIXED WHATSAPP BUTTON STYLES */
#contact .whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    margin: 20px 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
    min-width: 200px;
    /* Removed complex animations that interfere with clicks */
}

#contact .whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
}

#contact .whatsapp-btn:active {
    transform: translateY(0px);
    transition: transform 0.1s ease;
}

#contact .whatsapp-btn i {
    margin-right: 10px;
    font-size: 1.2em;
}

/* SIMPLE PULSE ANIMATION THAT WON'T INTERFERE WITH CLICKS */
@keyframes simple-pulse {
    0% {
        box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    }
    100% {
        box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    }
}

#contact .whatsapp-btn.pulse {
    animation: simple-pulse 2s infinite;
    /* Ensure animation doesn't block clicks */
    animation-fill-mode: both;
    pointer-events: auto !important;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.social-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 80px;
}

.social-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.social-link-icon i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-link-text {
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

/* Hover effects */
.social-link-item:hover .social-link-icon::before {
    opacity: 1;
}

.social-link-item:hover .social-link-icon {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-link-item:hover .social-link-text {
    color: #4fc3f7;
    transform: translateY(2px);
}

/* Platform-specific colors on hover */
.social-link-item[title="GitHub"]:hover .social-link-icon::before {
    background: linear-gradient(135deg, #6e5494, #333);
}

.social-link-item[title="LinkedIn"]:hover .social-link-icon::before {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
}

.social-link-item[title="Twitter"]:hover .social-link-icon::before {
    background: linear-gradient(135deg, #1da1f2, #1a91da);
}

.social-link-item[title="Facebook"]:hover .social-link-icon::before {
    background: linear-gradient(135deg, #3b5998, #4267b2);
}

#contact #success-message,
#contact #error-message {
    padding: 20px;
    margin-top: 25px;
    border-radius: 10px;
    text-align: center;
    display: none;
    animation: fade-in 0.5s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#contact #success-message {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.2));
    color: #fff;
    border: 1px solid rgba(46, 204, 113, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#contact #error-message {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(192, 57, 43, 0.2));
    color: #fff;
    border: 1px solid rgba(231, 76, 60, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    #contact .content {
        flex-direction: column;
    }

    #contact .page-header h2 {
        font-size: 2.5rem;
    }

    #contact .contact-form,
    #contact .contact-info {
        padding: 25px;
    }

    #contact .whatsapp-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 180px;
    }

    .social-links {
        gap: 15px;
    }

    .social-link-item {
        width: 70px;
    }

    .social-link-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .social-link-text {
        font-size: 12px;
    }
}

/* Additional fix for mobile touch devices */
@media (hover: none) and (pointer: coarse) {
    #contact .whatsapp-btn {
        min-height: 50px;
        /* Ensure enough touch target */
        touch-action: manipulation;
        /* Improve touch response */
    }
}