/*==================== RESET ====================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #eef5f9;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}
/*--------Header-----------*/
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 0.5rem 1rem;
    height: 4rem;
    position: fixed;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav__name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fc4c00;
}

/* Desktop Navigation Menu */
.nav__menu-desktop {
    display: flex;
}

.nav__menu-desktop ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav__menu-desktop ul li a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    transition: color 0.3s ease;
}

.nav__menu-desktop ul li a:hover {
    color: #fa3600;
}

/* Mobile Menu */
.nav__toggle {
    display: none; /* Hidden checkbox */
}

.nav__toggle-label {
    display: none; /* Hidden by default */
    cursor: pointer;
    font-size: 1.5rem;
    background-color: #f96530;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav__toggle-label:hover {
    background-color: #ff7f50;
}

.nav__menu-mobile {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 4rem;
    left: 0;
    width: 100%;
    z-index: 200;
}

.nav__menu-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav__menu-mobile ul li {
    border-bottom: 1px solid #f0f0f0;
    padding: 0.75rem 1rem;
    text-align: center;
}

.nav__menu-mobile ul li:last-child {
    border-bottom: none;
}

.nav__menu-mobile ul li a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav__menu-mobile ul li a:hover {
    background-color: #f96530;
    color: #fff;
}

/* Toggle mobile menu visibility */
.nav__toggle:checked ~ .nav__menu-mobile {
    display: flex; /* Show menu when checkbox is checked */
    animation: slideDown 0.3s ease;
}

/* Animation for dropdown menu */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVE STYLES ==================== */
@media screen and (max-width: 768px) {
    .nav__menu-desktop {
        display: none; /* Hide desktop menu */
    }

    .nav__toggle-label {
        display: block; /* Show toggle button */
    }

    .nav__menu-mobile {
        position: static;
    }
}




.nav__name {
    color: black;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-right:450px;
    margin-left: 20px;
    font-family: 'Poppins', sans-serif;
}


.nav__item {
    position: relative;
}

.nav__link {
    color: black;
    font-size: 15px;
    transition: color 0.3s;
    cursor: pointer;
    margin-right:20px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
}

.nav__link:hover{
    color: #ff6347;
}

.nav__icon {
    font-size: 1.2rem;
}

/*==================== MAIN ====================
.main {
    padding-top: 4rem;  Ensure content is not hidden behind the header 
}
*/
.section {
    padding: 35px 0;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
}

/*==================== HOME ====================*/
.home {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #eef5f9; /* Light friendly blue */
}

.home__container {
    display: grid;
    gap: 2rem;
    text-align: center;
    margin-top: 0;
}

.home__content {
    display: grid;
    align-items: center;
    gap: 2rem;
}

.home__social {
    display: flex;
    flex-direction: column; /* Arrange items vertically */
    gap: 1rem;
    justify-content: center;
    position: fixed; /* Fix the position on the page */
    top: 30%; /* Adjust top position as needed */
    left: 1rem; /* Adjust left position to place it at the left end */
    margin-top: 0; /* Remove margin-top */
    margin-left:20px
}

.home__social-icon {
    font-size: 1.5rem;
    color: #fab25f;
    transition: color 0.3s;
}

.home__social-icon:hover {
    color: #0e1364; /* Change hover color */
}

.home__img {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top:46px;
}

.home__blob {
    width: 200px;
    height: 200px;
}

.home__blob img {
    width: 130px;
    height: auto;
    display: block;
    object-fit: cover;
}

.home__data {
    text-align: center;

}

.home__title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
}

.home__subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 1rem;
}

.home__description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 18px;
}

.button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: #fa782c; /* Button color */
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #0e1364; /* Darker color on hover */
}

.button__icon {
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

.home__scroll {
    text-align: center;
    margin-top: 30px;
}

.home__scroll-button {
    display: inline-flex;
    align-items: center;
    color: #040124;
    text-decoration: none;
    transition: color 0.3s;
    transition:transform 0.3s;
}

.home__scroll-button:hover {
    color: #ff6347; /* Change hover color */
    transform: translateY(5px); /* Move down by 5px */
}

.home__scroll-mouse {
    font-size: 2rem;
}

.home__scroll-name {
    margin: 0 0.5rem;
    font-size: 1rem;
}

.home__scroll-arrow {
    font-size: 1.5rem;
}

/*==================== ABOUT ====================*/
.about {
    background-color: #eef5f9; /* Light friendly blue */
    padding: 4rem 0;
}

.about__container {
    display: grid;
    gap: 2rem;
    text-align: center;
}

.about__title {
    font-size: 2rem;
    font-weight: bold;
    color: #000000;
    margin-bottom:10px;
    margin-top:5px;
   
}

.about__container {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    margin-top: 30px;

}

.about__img {
    margin-right: 40px; /* Adjust the spacing between the image and the text */
}

.about__description {
    margin-top:20px;
    font-size: 1rem;
    color: #1f1b1b;
    margin-left: 10px; /* Remove the left margin */
    margin-right: 10px;
    text-align: justify;
    margin-bottom:10px;

}
.about__description a {
    text-decoration: underline;
    color: blue; /* Set link color to blue */
}

.about__img img {
    width: 1200px;
    height: 400px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.download-btn {
    display: inline-block;
    background-color: #fa782c;
    color: white;
    padding: 20px 25px;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 10px; /* Curved corners */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top:10px;
}
.download-btn:hover {
    background-color:  #0e1364;
}

.about__data {
    text-align: center;
}

/*==================== Project ====================*/
.projects-container {
    text-align: center;
    padding: 0px 20px;
    background-color: #eef5f9; /* Light friendly blue */
}

.projects-container h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.projects-container p {
    font-size: 17px;
    color: #494848;
    margin-bottom: 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Four equal columns */
    gap: 20px; /* Space between cards */
}

.project-card {
    background: #ffffff;
    color: rgb(0, 0, 0);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: #f0a74f;
}

.project-img img {
    width: 100%;
    max-height: 200px; /* Ensure consistent image height */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-card h4 {
    font-size: 18px;
    margin: 15px 0 10px;
}

.project-card p {
    font-size: 14px;
    color: #000000;
    margin-bottom: auto;
}
/* Hide social icons in the Projects section */
.projects:has(.home__social) .home__social {
    display: none; /* Hides the social icons */
}

.see-more-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #ff7f50; /* Orange color */
    color: #ffffff;
    font-size: 1em;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    align-self: center;
}

.see-more-btn:hover {
    background-color: #e05d30;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Media Query for smaller screens */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns for medium screens */
    }
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns for tablet screens */
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr; /* Single column for mobile screens */
    }
}


/*==================== Education ====================*/
/* Timeline Container */
.timeline-container {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    padding: 20px;
    position: relative;
    background-color: #eef5f9; /* Light friendly blue */
}

/* Section Title */
.timeline-section h2 {
    font-size: 28px;
    color: #000000; /* Education icon color */
    margin-bottom: 20px;
    text-align: center;
}

/* Timeline Item */
.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 30px;
}

/* Timeline Item Content */
.timeline-content {
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Date styling */
.timeline-content .date {
    font-size: 14px;
    color: #888;
    margin-top: 10px;
}

/* Circle indicator */
.timeline-item:before {
    content: '';
    position: absolute;
    left: 15px;
    top: 10px;
    width: 10px;
    height: 10px;
    background-color: #FF5722; /* Circle color for education */
    border-radius: 50%;
}

/* Line indicator */
.timeline-item:after {
    content: '';
    position: absolute;
    left: 19px;
    top: 30px;
    width: 2px;
    height: calc(100% - 30px);
    background-color: #FF5722; /* Line color for education */
}

/* Work section styling */
.timeline-section:nth-child(2) h2 {
    color: #000000; /* Work icon color */
}

.timeline-section:nth-child(2) .timeline-item:before {
    background-color: #757575; /* Circle color for work */
}

.timeline-section:nth-child(2) .timeline-item:after {
    background-color: #757575; /* Line color for work */
}

/*==================== Skills ====================*/
.skills-section {
    padding: 50px;
    text-align: center;
    background-color: #eef5f9; /* Light friendly blue */
}

.skills-container h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom:14px;
    margin-top:30px;
}

.skills-container p {
    font-size: 17px;
    color: #000000;;
    margin-bottom: 50px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skills-category {
    width: 200px;
}

.toggle {
    display: none;
}

.skills-toggle {
    background-color: transparent;
    border: none;
    font-size: 10 px;
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.skills-toggle:hover {
    background-color: #ff7f50;
    color: #fff;
}

.skills-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background-color: #fff;
    border-radius: 5px;
    padding: 0 10px;
    font-size: 10 px;
}

.skills-content ul {
    padding: 10px 0;
    margin: 0;
    text-align: left;
    list-style-type: disc;
    list-style-position: inside;
    font-size: 8 px;
}

.skills-content ul li {
    list-style: disc;
    padding: 5px 0;
    font-size: 13px;
}

.toggle:checked + .skills-toggle + .skills-content {
    max-height: 300px; /* Adjust as needed */
}

/*==================== awards====================*/
.awards-section {
    padding: 20px;
    background-color: #eef5f9; /* Light friendly blue */
    text-align: center;
}

.section-title {
    font-size: 28px; /* Slightly smaller title */
    margin-bottom: 25px;
    color: #000000;
}

.awards-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.award-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08); /* Lighter shadow */
    margin: 15px 0; /* Reduced margin */
    padding: 15px; /* Reduced padding */
    max-width: 700px; /* Smaller max width */
    width: 100%; /* Smaller width */
    text-align: center;
}

.award-card h3 {
    color: #4caf50; /* Friendly green color for title */
    font-size: 20px; /* Slightly smaller font */
    margin-bottom: 8px;
}

.award-card p {
    color: #666; /* Softer gray for text */
    font-size: 14px; /* Smaller text size */
}

.award-card p:nth-child(2) {
    font-weight: bold;
    color: #333; /* Darker gray for date */
    margin-bottom: 8px;
}



/*==================== CONTACT ====================*/
.contact {
    background-color: #eef5f9; /* Light friendly blue */
    padding: 4rem 0;
}

.contact__container {
    display: grid;
    gap: 2rem;
    text-align: center;
    margin-top:4rem;
}

.contact__title {
    font-size: 28px;
    font-weight: bold;
    color: #000000;
    margin-top:-50px;
}

.contact__description {
    font-size: 17px;
    color: #525252;
    margin-bottom: 12x;
}


.contact-info {
    display: flex;
    justify-content: space-around;
    margin: 0px;
    text-align: left;
}

.contact-details {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #000000;
    flex: 1;
    justify-content: center;
    margin-left:8px;
    margin-right:0px;
    transition: color 0.3s;
}

.contact-details i {
    font-size: 50px;
    color:  #fa782c;
    margin-right:12px;
}
.contact-details i:hover {
    color: #0e1364
}

.contact-details p {
    margin: 0;
}

.contact__form {
    margin-top:10px;
    display: grid;
    gap: 1rem;
    margin-left:40px;
}

.contact__input,
.contact__textarea {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #131191;
    background-color: #ffead2;
    resize: none;
    font-family: 'Poppins', sans-serif;
}

.contact__input:focus,
.contact__textarea:focus {
    border-color: #ff6347; /* Change border color on focus */
    outline: none;
}

.contact__button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: #ff6347; /* Button color */
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s;
    cursor: pointer;
}

.contact__button:hover {
    background-color: #e5533d; /* Darker color on hover */
}
.contact__details {
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #666;
}

.contact__details a {
    color: #ff6347; /* Link color */
    text-decoration: none;
}

.contact__details a:hover {
    text-decoration: underline;
}


/*==================== FOOTER ====================*/
.footer {
    background-color: #040133;
    color: rgb(247, 241, 241);
    padding: 2rem 0;
    text-align: center;
}

.footer__title1 {
    font-size: 1.5rem;
    margin-bottom: 1px;
}
.footer__title1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    margin-top:10px;
}

.footer__social-icon {
    font-size: 1.5rem;
    color:white;
    transition: color 0.3s;
}

.footer__social-icon:hover {
    color: white; /* Change hover color */
}

.footer__copy {
    font-size: 1rem;
    color: #ccc;
}

/*==================== MEDIA QUERIES ====================*/
@media screen and (max-width: 768px) {

    .home__container {
        grid-template-columns: 1fr;
    }

    .about__container {
        grid-template-columns: 1fr;
    }

    .contact__container {
        grid-template-columns: 1fr;
    }
}

/* Additional Media Queries for Enhanced Responsiveness */
@media screen and (max-width: 576px) {
    /* General styles for very small screens */
    body {
        font-size: 14px;
    }

    .header {
        height: 3.5rem;
        padding: 0 0.5rem;
    }

    .nav__menu {
        gap: 1rem;
    }

    .home__title {
        font-size: 1.8rem;
    }

    .home__subtitle,
    .home__description {
        font-size: 0.9rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card h4 {
        font-size: 1rem;
    }

    .project-card p {
        font-size: 0.9rem;
    }

    .contact__input,
    .contact__textarea {
        font-size: 0.9rem;
    }

    .footer__title1 {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    /* Fine-tuned styles for extra small screens */
    .header {
        font-size: 0.9rem;
    }


    .home__blob {
        width: 150px;
        height: 150px;
    }

    .download-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .skills-container h2 {
        font-size: 1.5rem;
    }

    .skills-content ul li {
        font-size: 12px;
    }

    .contact__button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}


@media screen and (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-details {
        justify-content: flex-start;
        margin-left: 0;
        margin-bottom: 1rem;
    }
}


@media screen and (max-width: 768px) {
    .about__container {
        flex-direction: column;
        text-align: center; /* Center align content for better appearance */
    }

    .about__img {
        margin-right: 0; /* Reset the margin when stacking */
        margin-bottom: 1rem; /* Add spacing between the image and description */
    }
}
@media screen and (max-width: 768px) {
    .home__social {
        display: none;
    }
}
@media screen and (max-width: 768px) {
    .about__description {
        font-size: 12px; /* Adjust this size as needed */
        line-height: 1.5; /* Maintain readability */
    }
}
@media screen and (max-width: 768px) {
    .about__img {
        width: 250px; /* Adjust the width as needed */
        height: auto; /* Maintain the aspect ratio */
        margin: 0 auto; /* Center the image if necessary */
        display: block;
    }
}
/* Adjust header size for mobile to fit navigation and header */
@media screen and (max-width: 768px) {
    .header {
        height: auto; /* Allow the header height to expand as needed */
        padding: 1rem;
        margin-right: 2px; /* Add padding for better spacing */
    }

    .nav {
        flex-wrap: wrap; /* Allow navigation elements to wrap if needed */
    }

    .nav__name {
        font-size: 16px; /* Adjust font size for better visibility */
        margin-right: 0px; /* Add spacing between the name and menu */
    }

}

/* Dropdown navigation for mobile */
@media screen and (max-width: 768px) {
    .nav__menu {
        display: none; /* Initially hide the menu */
        position: absolute;
        top: 4rem; /* Place it just below the header */
        right: 0;
        background-color: white;
        width: 200px; /* Set the width of the dropdown */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a shadow for visibility */
        z-index: 100;
        border-radius: 4px;
        text-align: right;
    }

    .nav__menu.show-menu {
        display: block; /* Show the menu when the class is added */
    }

    .nav__toggle {
        display: block; /* Show toggle button on mobile */
        font-size: 1.5rem;
        cursor: pointer;
        position: absolute;
        right: 1rem;
        top: 1.2rem;
        color: #333;
    }

    .nav__item {
        padding: 0.5rem 1rem; /* Add padding for menu items */
        border-bottom: 1px solid #f0f0f0; /* Add a subtle separator */
    }

    .nav__item:last-child {
        border-bottom: none; /* Remove separator from the last item */
    }
}