/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Header Styling */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*background: #fff;*/
    z-index: 100;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow */
}

/* Logo Styling */
.logo {
    font-size: 2em;
    color: #555;
    font-weight: bold;
    cursor: default;
    opacity: 0;
    animation: rightslide 1s ease forwards;
}
.logo span{
    color: #5b33d1;
}

/* Navigation Styling */
.navigation {
    display: flex; /* Align items in a row */
    gap: 20px; /* Spacing between links */
}

.navigation a {
    display: inline-block;
    font-size: 1.1em;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease; /* Smooth hover effect */
    opacity: 0;
    animation: Topslide .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.navigation a:hover,
.navigation a.active {
    color: #5b33d1; /* Change color on hover */
}

/* Button Styling */
.btn-lets {
    font-size: 1em;
    padding: 10px 20px;
    color: #fff;
    background: #5b33d1;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-lets:hover {
    background: #0056b3; /* Darker shade on hover */
}

.home {
    position: relative;
    width: 100%;
    min-height: 50vh;
    /*background-color: #fff;*/
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 50px 50px;
    margin-top: 60px;
}

.profile-image {
    max-width: 60%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-left {
    position: relative;
    width: 35%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-right {
    position: relative;
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    max-width: 500px;
    color: #555;
    text-align: center;
    padding: 0 20px;
}

.content h2 {
    font-size: 3em;
    opacity: 0;
    animation: bottomslide 1s ease forwards;
    animation-delay: .7s;
}

.content h2 span {
    color: #5b33d1;
}

.content p {
    opacity: 0;
    animation: leftslide 1s ease forwards;
    animation-delay: .7s;
    padding: 10px 0 40px 0;
}
/* About Section */
.about {
    position: relative;
    width: 100%;
    padding: 200px 5px;  /* Padding to make space for fixed header */
    background-color: #f4f4f4;  /* Light background color */
    animation: fadeIn 1s ease-in-out;
}

/* Content Styling */
.about .content {
    max-width: 800px;
    margin: 0 auto;  /* Center the content */
    text-align: center;  /* Center-align text */
    color: #333;  /* Dark text color for better readability */
}

.about h2 {
    font-size: 2.5em;
    color: #5b33d1;  /* Main color for headings */
    margin-bottom: 20px;
    opacity: 0;
    animation: bottomslide 1s ease forwards;
    animation-delay: 0.5s;
}

.about p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
    opacity: 0;
    animation: leftslide 1s ease forwards;
    animation-delay: 1s;
}
/* Skills Section */
.skills {
    width: 100%;
    padding: 100px 20px;
    background-color: #f4f4f4;
}

.skills .content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Heading Style */
.skills h2 {
    font-size: 2.5em;
    color: #5b33d1;
    margin-bottom: 40px;
    opacity: 0;
    animation: bottomslide 1s ease forwards;
    animation-delay: 0.5s;
}

/* Skill List Style */
.skill-list {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));*/
    /*gap: 25px;*/
    margin-top: 30px;
}

.skill-item {
    background-color: #fff;
    /*padding: 25px;*/
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item h3 {
    font-size: 1.5em;
    color: #5b33d1;
    margin-bottom: 12px;
}

.skill-item p {
    font-size: 1em;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

/* Contact Section */
.contact {
    width: 100%;
    /*padding: 150px 5px;*/
    background-color: #f4f4f4; /* Light grey background */
    animation: fadeIn 1s ease-in-out;
}

/* Content Styling */
.contact .content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #333;
}

/* Heading Style */
/*.contact h2 {*/
/*    font-size: 2.5em;*/
    /*color: #5b33d1;*/
/*    margin-bottom: 40px;*/
/*    opacity: 0;*/
/*    animation: bottomslide 1s ease forwards;*/
/*    animation-delay: 0.5s;*/
/*}*/

/* Paragraph Style */
.contact p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 40px;
    opacity: 0;
    animation: leftslide 1s ease forwards;
    animation-delay: 1s;
}

/* Contact Form Style */
.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;   
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-form label {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: border 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #5b33d1; /* Border color change on focus */
}

.contact-form button {
    padding: 12px 40px;
    background-color: #5b33d1; /* Button background color */
    color: #fff;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #4526a1; /* Darker shade for button on hover */
}
.contact.animate {
    animation: slideIn .5s ease forwards;
}

.btn-group {
    margin-left: 100px;
}

.btn-group a {
    color: #fff;
    text-decoration: none;
    padding: 10px 40px;
    background:  #5b33d1;
    border-radius: 10px;
    border: 2px solid  #5b33d1;
    font-weight: 500;
    transition: .3s;
    opacity: 0;
    animation: Topslide .5s ease forwards;
    animation-delay: 2s;

}
.btn-group a:hover:nth-child(1){
    color: #5b33d1;
    background: transparent;
}
.btn-group a:nth-child(2) {
    color: #5b33d1;
    background: transparent;
    margin-left: 30px;
    padding: 10px 30px;
}
.btn-group a:hover:nth-child(2){
    color: #fff;
    background: #5b33d1;
}
.social-icons {
    position: absolute;
    bottom: 50px;
}
.social-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: #5b33d1;
    border-radius: 50%;
    margin-right: 22px;
    text-align: center;
    line-height: 35px;
    border: 1px solid #fff;
    outline: 2px solid #5b33d1;
    transition: .3s;
    opacity: 0;
    animation: leftslide .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}
.social-icons a:hover{
    transform: translateY(-5px);
}
.social-icons a i {
        color: #fff;
}
/*keyframe animation */
@keyframes rightslide {
    0%{
        transform: translateX(-100PX);
        opacity: 0;
    }
    100%{
        transform: translateX(0);
        opacity: 1;
    }

    
}
@keyframes Topslide {
    0%{
        transform: translateY(100PX);
        opacity: 0;
    }
    100%{
        transform: translateY(0);
        opacity: 1;
    }

    
}
@keyframes bottomslide {
    0%{
        transform: translateY(-100PX);
        opacity: 0;
    }
    100%{
        transform: translateY(0);
        opacity: 1;
    }

    
}
@keyframes leftslide {
    0%{
        transform: translateY(100PX);
        opacity: 0;
    }
    100%{
        transform: translateY(0);
        opacity: 1;
    }

    
}
/* Keyframe Animations */
@keyframes bottomslide {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes leftslide {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Global fade-in animation for sections */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
/* Keyframe Animations */
@keyframes bottomslide {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes leftslide {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Global fade-in animation for sections */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
/* Keyframe Animations */
@keyframes bottomslide {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes leftslide {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Global fade-in animation for sections */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Animation for active section */
@keyframes slideIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Update responsive styles for profile images */
@media screen and (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    .navigation {
        display: none;
    }
    .home {
        flex-direction: column-reverse;
        padding: 100px 20px 50px;
        text-align: center;
    }
    .profile-right {
        width: 100%;
        margin-bottom: 30px;
    }
    .content {
        max-width: 100%;
        padding: 0;
    }
    .content h2 {
        font-size: 2em;
    }
    .content p {
        padding: 10px 0 20px 0;
    }
    .profile-left {
        width: 100%;
        margin-top: 30px;
    }
    .profile-image {
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }
    .btn-group {
        flex-direction: column;
        gap: 15px;
    }
    .btn-group a:nth-child(2) {
        margin-left: 0;
    }
    .social-icons {
        justify-content: center;
        margin-top: 20px;
    }
    .social-icons a {
        margin: 0 10px;
    }
    .skills {
        padding: 60px 15px;
    }
    
    .skills h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }
    
    .skill-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }
    
    .skill-item {
        padding: 20px;
    }
    
    .skill-item h3 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }
    
    .skill-item p {
        font-size: 0.95em;
    }
}

/* Additional breakpoint for even smaller screens */
@media screen and (max-width: 480px) {
    .home {
        padding: 80px 15px 30px;
    }

    .content h2 {
        font-size: 1.8em;
    }

    .profile-image {
        max-width: 90%;
    }

    .btn-lets {
        display: none;
    }
    .skills {
        padding: 40px 10px;
    }
    
    .skills h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    
    .skill-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skill-item {
        padding: 15px;
    }
    
    .skill-item h3 {
        font-size: 1.2em;
    }
    
    .skill-item p {
        font-size: 0.9em;
    }
}