﻿.contact-section {
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #0f172a;
    /* dark blueish for titles */
}

.contact-text {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #334155;
    /* softer dark color for paragraph */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #f8fafc;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #38bdf8;
    /* bright blue on focus */
}

.contact-form button {
    padding: 15px;
    font-size: 1rem;
    background-color: #38bdf8;
    /* same bright blue as your "Contact me" button */
    color: white;
    border: none;
    /* border-radius: 8px; */
    cursor: pointer;
    transition: background-color 0.4s;
}

.contact-form button:hover {
    background-color: #080c34;
    /* darker blue on hover */
}

.privacy-note {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #64748b;
    /* soft gray */
}


@media (max-width:400px){
    #contact{
        padding-left: 0px;
        padding-right: 0px;
    }
}





/*Loader*/
/*--------------------------------------------------------------*/
/*Loader*/
.loader {
    width: 100px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 16px solid #10b4e4;
    animation: l20-1 0.8s infinite linear alternate, l20-2 1.6s infinite linear;
    position: absolute; /* ✅ fixed instead of absolute */
    /*left: 45%;*/
    left:42%;
    top: 30%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: none;
}

@media(max-width:650px){
    .loader{
        left:35%;
    }
}

@media(max-width:400px) {
    .loader {
        left: 32%;
    }
}
@media(max-width:300px) {
    .loader {
        left: 28%;
    }
}

@keyframes l20-1 {
    0% {
        clip-path: polygon(50% 50%,0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0% )
    }

    12.5% {
        clip-path: polygon(50% 50%,0 0, 50% 0%, 100% 0%, 100% 0%, 100% 0%, 100% 0% )
    }

    25% {
        clip-path: polygon(50% 50%,0 0, 50% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 100% )
    }

    50% {
        clip-path: polygon(50% 50%,0 0, 50% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100% )
    }

    62.5% {
        clip-path: polygon(50% 50%,100% 0, 100% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100% )
    }

    75% {
        clip-path: polygon(50% 50%,100% 100%, 100% 100%, 100% 100%, 100% 100%, 50% 100%, 0% 100% )
    }

    100% {
        clip-path: polygon(50% 50%,50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 0% 100% )
    }
}

@keyframes l20-2 {
    0% {
        transform: scaleY(1) rotate(0deg)
    }

    49.99% {
        transform: scaleY(1) rotate(135deg)
    }

    50% {
        transform: scaleY(-1) rotate(0deg)
    }

    100% {
        transform: scaleY(-1) rotate(-135deg)
    }
}
/*Loader end*/



.success-message {
    background-color: #ecfdf5;
    color: #10b981;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 20px;
    text-align: center;
    border: 1px solid #a7f3d0;
}

.error-message {
    background-color: #fef2f2;
    color: #ef4444;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 20px;
    text-align: center;
    border: 1px solid #fecaca;
}



.social-icon {
    background-color: #080c34;
    color: white;
    width: 3.7rem;
    height: 3.7rem;
    font-size: 2.2rem;
    display: flex;
    justify-content: center;
    align-content: center;
}

.social-icons {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
}

.si {
    position: relative;
}

    .si::before {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateY(-50%) translateX(-50%);
    }





#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    display: none;
    justify-content: center;
    align-content: center;
    background-color: #00b3e3;
    color: white;
    border: none;
    /*border-radius: 50%;*/
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    overflow: hidden;
    font-size: 24px;
    padding-left: 7px;
    padding-right: 7px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
}

    #backToTop:hover {
        background-color: #009fc5;
    }


.back-to-top {
}

    .back-to-top i {
        position: relative;
        font-weight: 1000 !important;
    }

        .back-to-top i::before {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translateY(-50%) translateX(-50%);
        }