/* ==========================
   CONTACT SECTION
========================== */

#contact{
    padding: 100px 20px;
    position: relative;
}

.contact-wrapper{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;

    max-width: 1400px;
    width: 80%;
    margin: 0 auto;
}

/* ==========================
   LEFT SIDE
========================== */

.contact-left{
    flex: 1;
    min-width: 320px;
    text-align: center;
}

.profile-img{
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.1);
    box-shadow:
        0 0 20px rgba(255, 174, 0, 0.3),
        0 0 50px rgba(255, 136, 0, 0.2);
    transition: .4s;
    object-position: center 16%;
}

.profile-img:hover{
    transform: scale(1.05);
}

.contact-left h2{
    margin-top: 25px;
    font-size: 2rem;
    font-weight: 700;
}

.contact-left p{
    max-width: 500px;
    margin: 15px auto 0;
    color: #cfcfcf;
    line-height: 1.8;
}

/* ==========================
   RIGHT SIDE
========================== */

.contact-right{
    flex: 1;
    min-width: 320px;

    padding: 35px;

    border-radius: 25px;

    background: rgba(255,255,255,0.05);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border: 1px solid rgba(255,255,255,0.1);

    box-shadow:
        0 10px 40px rgba(0,0,0,0.3);
}

.my-detail{
    font-size: 30px;
    margin-bottom: 20px;
}
.connect{
    font-size: 22px;
    margin-bottom: 18px;
}

/* ==========================
   DETAILS
========================== */

.info{
    margin-bottom: 35px;
}

.info p{
    margin-bottom: 7px;
    color: #e0e0e0;
    font-size: 18px;
}

.info strong{
    color: #ffb300;
}

/* ==========================
   SOCIAL LINKS
========================== */

.social-links{
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.social-links a{
    padding: 0px;

    text-decoration: none;

    color: white;

    /* background: rgba(255,255,255,0.08);

    border: 1px solid rgba(255,255,255,0.1); */

    border-radius: 12px;

    transition: .2s;
}

.social-links a:hover{
    transform: translateY(-4px);

    /* background: linear-gradient(
        135deg,
        #ff8c00,
        #ffcc00
    ); */
    color: #ffb300;

}
.social-links a i{
    font-size: 40px;
}


/* form */
/* ==========================
   CONTACT FORM BOX (MAIN)
========================== */

.contact-form-box{
    margin-top: 80px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;


    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
}

/* ==========================
   FORM SIDE
========================== */

.contact-form{
    flex: 1;
    min-width: 300px;

    display: flex;
    flex-direction: column;
    gap: 18px;
    background: rgba(255,255,255,0.03);
    padding: 25px;

    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
}

.contact-form-box h2{
    width: 100%;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* INPUTS */

.input-group input,
.input-group textarea{

    width: 100%;
    padding: 15px 18px;

    border-radius: 12px;

    border: 1px solid rgba(255,255,255,0.1);

    background: rgba(255,255,255,0.08);

    color: #fff;

    outline: none;

    transition: 0.3s;
}

.input-group input:focus,
.input-group textarea:focus{
    border-color: #ffb300;
    box-shadow: 0 0 15px rgba(255,179,0,0.3);
}

.input-group textarea{
    resize: none;
}

/* BUTTON */

.contact-form button{
    width: fit-content;
    margin-top: 10px;
    padding: 14px 30px;

    border: none;
    border-radius: 50px;

    background: linear-gradient(135deg,#ff8c00,#ffcc00);

    color: #000;
    font-weight: 700;

    cursor: pointer;

    transition: 0.3s;
}

.contact-form button i{
    margin-right: 8px;
}

.contact-form button:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255,170,0,0.4);
}

/* ==========================
   IMAGE SIDE
========================== */

.msg-image{
    flex: 1;
    min-width: 300px;

    display: flex;
    justify-content: center;
    align-items: center;

    /* optional (testing ke liye hata de) */
    /* background: red; */
}

.msg-image img{
    width: 520px;        /* control size here */
    max-width: 100%;     /* responsive safe */
    height: auto;

    object-fit: contain;
}

/* FLOAT ANIMATION */

/* @keyframes float{
    0%,100%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-15px);
    }
} */

/* ==========================
   MOBILE RESPONSIVE
========================== */

@media (max-width: 768px){

    .contact-form-box{
        flex-direction: column;
        padding: 10px;
    }

    .msg-image img{
        max-width: 500px;
    }

    .contact-form-box h2{
        font-size: 1.6rem;
    }
}





/* ==========================
   MOBILE RESPONSIVE
========================== */

@media (max-width:768px){

    .contact-wrapper{
        flex-direction: column;
        width: 96%;
    }
    
    .contact-right{
        width: 100%;
        text-align: center;
    }
    .contact-right{
        padding: 15px;
        text-align: center;
    }

    .profile-img{
        width: 180px;
        height: 180px;
    }

    .contact-left h2{
        font-size: 1.7rem;
    }

    .social-links{
        justify-content: center;
    }
    


    .contact-form-box {
        margin-top: -40px;      /* Top margin kam kiya */
        gap: 25px;             /* Form aur Image ke beech ka gap kam kiya */
        width: 95%;            /* Screen ke side mein halki space chodi */
    }

    .contact-form-box h2 {
        font-size: 1.6rem;     /* Heading size thoda chota kiya */
        margin-bottom: 10px;
    }

    .contact-form {
        width: 100%;
        padding: 20px 15px;    /* Internal padding kam ki taaki mobile par form bada dikhe */
        border-radius: 20px;   /* Corners thode kam round kiye */
    }

    .input-group input,
    .input-group textarea {
        padding: 12px 15px;    /* Inputs ka size mobile ke hisab se chota kiya */
        font-size: 0.95rem;
    }

    .contact-form button {
        width: 100%;           /* Mobile par button full width dikhega jo dekhne mein achha lagta hai */
        padding: 14px;
        text-align: center;
    }

    .msg-image img {
        width: 100%;           /* Image mobile screen ke hisab se khud ko adjust karegi */
        max-width: 350px;      /* Mobile par image ko zyada bada hone se rokega */
    }


}