/*reset all*/
* {
    margin: 0;

    box-sizing: border-box;
    scroll-behavior: smooth;

}

span {
    font-weight: bold;
}

body {
    padding: 0;
    line-height: 1.6;
    font-family: Helvetica, sans-serif;
    scroll-behavior: smooth;
    background-color: #f1f1f1;
}

.mylogo {
    width: 40px;
    height: 40px;
}

.mylogo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #3498db;

}



/*Navbar styling.*/
#navbar {
    position: fixed;
    top: 0;
    background-color: #333;
    width: 100%;
    color: white;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.214);
}

#navbar h1 {
    font-size: 1.5rem;
}

#navbar .container {
    padding: 5px;
    max-width: 1200px;
    margin: auto;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2px;
}

#navbar ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

#navbar ul li a,
#navbar #courseTitle a {
    text-decoration: none;
    font-weight: bold;
    color: white;
    transition: color 0.3s, transform 0.8s;
    /*this property used for smooth animation between two state. quickly or slowely changes properties like color, background-color, width, height, opacity.*/

    display: inline-block;
    /*if i don't use it, then tranform poperty will not working because of anchor tag default display property(inline)*/
}

#navbar ul li a:hover,
#navbar ul li a.active {
    color: #f39c12;
    transform: scale(1.2);
    font-weight: bold;

}

#navbar #courseTitle {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: center;
    position: fixed;
    background-color: #333;
    right: 50px;
    top: 45px;
    z-index: 100;
    padding: 10px;
    border-radius: 5px;

    box-shadow: 2px 2px 5px 3px rgba(0, 0, 0, 0.619);

}


#navbar #courseTitle a:hover {
    color: #f39c12;
    transform: scale(1.2);
    font-weight: bold;
}

/*Welcome Section Styling*/
/* Welcome Section Styling */
#welcome-section {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    background: linear-gradient(135deg, #ff7e5f, #feb47b, #ff6a5b);

    padding: 30px;

}

.welcome-container {
    width: 100%;
    display: flex;
    max-width: 1400px;
    margin:auto;
    gap: 20px;
}

#leftaside {
    position: relative;
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid white;

    /*background: linear-gradient(135deg, #f76a6a, #f89c7d, #ff8a85);
    */


}

/* Point on the top border */
#leftaside::before {
    content: '';
    position: absolute;
    width: 8px;
    /* Size of the point */
    height: 8px;
    background-color: #ffdd7e;
    /* Same color as border or another color for contrast */
    border-radius: 50%;
    top: 0;
    left: 0;
    animation: moveTop 4s linear infinite;
}

/* Point on the right border */
#leftaside::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #ffdd7e;
    border-radius: 50%;
    top: 0;
    right: 0;
    animation: moveRight 4s linear infinite;
}

/* Extra pseudo-elements for the bottom and left borders */
#leftaside .point-bottom {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #ffdd7e;
    border-radius: 50%;
    bottom: 0;
    left: 0;
    animation: moveBottom 4s linear infinite;
}

#leftaside .point-left {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #ffdd7e;
    border-radius: 50%;
    top: 0;
    left: 0;
    animation: moveLeft 4s linear infinite;
}

/* Keyframes for each point to move along one side of the border */
@keyframes moveTop {
    0% {
        left: 0;
    }

    100% {
        left: 100%;
    }
}

@keyframes moveRight {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

@keyframes moveBottom {
    0% {
        left: 100%;
    }

    100% {
        left: 0;
    }
}

@keyframes moveLeft {
    0% {
        top: 100%;
    }

    100% {
        top: 0;
    }
}



.picture-link {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Profile Photo Styling */
.profile-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #3498db;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.connection-list {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.connection-list a {
    font-size: 30px;
    transition: all 0.4s linear;


}

.connection-list a:hover {
    scale: 1.2;
}

.welcome-text {
    flex: 3;
    margin-left: 10px;
}

/* Welcome Text Styling */

#username {
    margin-bottom: 20px;
    animation: AddTextShadow 2s linear infinite alternate;
    color: rgb(255, 255, 0);
}

.welcome-text p {
    font-size: 1.1rem;
    color: black;
    margin: 10px 0 20px;
}

/* Button Styling */
.button {
    background-color: #3498db;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s, font-weight 0.3s;
}

.button:hover {
    background-color: #2980b9;
    font-weight: 600;
}

.education-section {
    display: flex;
    justify-content: space-between;
    color: #222;
}

.education-section ul {
    font-weight: 500;
}

i {
    color: #077cca;
}



@keyframes AddTextShadow {
    0% {
        text-shadow: 2px 2px 5px #3498db, -2px -2px 5px green;
    }

    25% {
        text-shadow: 2px 2px 5px rgb(252, 164, 1), -2px -2px 5px blue;

    }

    50% {
        text-shadow: 2px 2px 5px crimson, -2px -2px 5px rgba(232, 252, 15, 0.657);
    }

    75% {
        text-shadow: 2px 2px 5px rgb(220, 207, 20), -2px -2px 5px rgba(212, 5, 239, 0.884);

    }

    100% {
        text-shadow: 2px 2px 5px rgb(169, 233, 50), -2px -2px 5px rgba(249, 191, 0, 0.863);

    }


}

@media (max-width: 950px) {
    #leftaside {
        flex: 1.5;
    }
}

/* Responsive Design */
@media (max-width: 750px) {
    #welcome-section {
        padding-top: 100px;
    }

    .welcome-container {
        flex-direction: row;
        gap: 20px;
        width: 95%;
    }

    .profile-photo img {
        width: 150px;
        height: 150px;
    }

    .welcome-text h1 {
        font-size: 3rem;
    }

    .welcome-text p {
        font-size: 1.2rem;
    }
}

@media (max-width: 650px) {
    .welcome-container {
        flex-direction: column;
    }

    .picture-link {
        gap: 5px;
        justify-content: center;
        text-align: center;
    }

    .connection-list {
        justify-content: center;
    }

}

@media screen and (max-width:451px) {
    #navbar .container {
        width: 100%;
    }

    #navbar ul {
        gap: 15px;
    }

    #navbar ul a {
        font-size: 13px;
    }

    #welcome-section {
        padding: 10px;
    }

    .welcome-container {
        padding-top: 80px;
    }



}

@media screen and (max-width:350px) {
    .education-section {
        flex-direction: column;
    }

    #navbar .container {
        justify-content: space-around;

    }

    #navbar ul {
        padding-left: 2px;
        gap: 8px;

    }

    .mylogo {
        width: 40px;
        height: 40px;
    }




}





/* About Section */
#about {
    padding: 50px 20px;
    background-color: #ecf0f1;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.322);
}

#about h2 {
    text-align: center;
}



#projects {
    padding: 40px 40px;
    
    max-width: 1200px;
    margin: auto;
    

}

#projects h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 30px;
}

.project-gallery {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
}

.project {
    border: 2px solid #bbb;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px 5px rgba(0, 0, 0, 0.377);
}

.project-image {
    flex: 1.5;
    width: 100%;

    height: auto;
    padding: 5px;
    max-height: 250px;

}

.project-image img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.project-tile {
    flex: 1;
    padding: 20px;
    border: 1px solid #bdc3c7;

    border-radius: 10px;
    text-align: center;
}

.project-tile h3 {
    font-size: 1.3rem;
}

.project-tile p {
    color: #444;
}

.project-tile a {
    display: inline-block;
    color: #3498db;
    font-weight: bold;
    text-decoration: none;
    margin-top: 10px;
}

.project-tile a:hover {
    color: #f59a09;
}

#welcome-section,
#about,
#projects,
#contact {
    scroll-margin-top: 50px;
}


@media screen and (max-width:900px) {
    .project-gallery {
        display: grid;
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    }


}





/* Contact Section Styling */


.footer {
    background: linear-gradient(135deg, #0d0f1f, #2c3e50, #34495e);

    color: #f5f5f5;

    padding: 30px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-container>div {
    flex: 1;
    min-width: 250px;

    text-align: center;
}

.footer-container h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #f5f5f5;
    text-transform: uppercase;
    border-bottom: 2px solid #fcd34d;
    padding-bottom: 10px;
    display: inline-block;
    text-align: center;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-info a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-info a:hover {
    color: #fcd34d;
    transform: translateX(5px);
}


.follow-icon {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;

}

.follow-icon a {
    font-size: 30px;
    text-align: center;
    color: #f5f5f5;
    transition: transform 0.3s, color 0.3s ease-in-out;
}

.follow-icon a:hover {
    transform: scale(1.2);
    color: #fcd34d;
}

.contact-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border: 1px solid #91a1c9;
    box-shadow: 0 0 5px #91a1c9;
}

.contact-form button {
    background: linear-gradient(135deg, #ff6f61, #fcd34d, #34c3db);
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s ease;
}

.contact-form button:hover {
    background: linear-gradient(135deg, #fcd34d, #34c3db, #91a1c9);
    transform: scale(1.1);
    color: #333;
}


.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    color: white;

}

.footer-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #34c3db;
}

.footer-text {
    font-size: 17px;
}

#username {
    font-weight: bold;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-container>div {
        text-align: center;
    }
}