html {
    scroll-behavior: smooth;
}

/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #faf8f2, #f9faf2);
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
}

.topnav {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    overflow: hidden;
    text-align: center;
    width: 95%;
    margin: 20px auto;
}

.topnav a {
    display: inline-block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-size: 18px;
}

.topnav a:hover {
    background: linear-gradient(to left, #ff7e5f, #feb47b);
    color: black;
}

.img_text {
    text-align: center;
    border-radius: 50px;
    padding: 50px;
    background-color: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.img_text h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.box {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.text {
    max-width: 800px;
    text-align: justify;
    font-size: 16px;
    transform: translateY(10px);
}

.image {
    display: flex;
    justify-content: center;
}

.img_text img {
    border-radius: 20%;
    max-width: 200px;
    height: auto;
}

/* For laptop view */
@media screen and (min-width: 768px) {
    .content {
        flex-direction: row;
        align-items: center;
    }

    .box {
        order: 1;
        margin-left: 20px;
    }

    .image {
        order: -1;
        margin-right: 20px;
    }
}

.education-status {
    
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.education-item {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.education-item h3 {
    margin-top: 0;
    font-size: 20px;
}

.education-item p {
    margin-top: 5px;
    color: #555;
    font-size: 16px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .education-item {
        padding: 15px;
    }
}

/*project links*/
.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;

    padding: 20px;
    background-color: #f4f4f9;
}

.flex-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 20px;
    text-align: center;
    width: 280px;
    max-width: calc(33.33% - 40px);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.flex-item h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    color: #333;
}

/* Hover effect for the entire item */
.flex-item:hover {
    background: linear-gradient(to right, #58f5eb, #58f57f);
    color: white;
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.flex-item a {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.flex-item:hover a {
    color: inherit;
}

.project-link {
    background-color: #4CAF50;
    border: 2px solid #4CAF50;
    color: white;
}

.project-link:hover {
    background-color: #45a049;
}

@media screen and (max-width: 768px) {
    .flex-item {
        max-width: calc(50% - 40px);
    }
}

@media screen and (max-width: 480px) {
    .flex-item {
        max-width: calc(100% - 40px);
    }
}

.wrap-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Projects & Honours Section */
.wrap-cards .card {
    margin: 10px;
    padding: 15px;
    width: 300px;
    text-align: center;
    font-size: 16px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wrap-cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.wrap-cards .card .wrap-image {
    text-align: center;
    margin-bottom: 15px;
}

.wrap-cards .card .wrap-image img {
    max-width: 100%;
    border-radius: 8px;
}

.wrap-cards .card .contents h3 {
    margin: 0;
}

.wrap-cards .card .contents .text {
    color: #555;
}


/* Volunteer Experience Section */
.volunteer-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f9;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.volunteer-item {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.volunteer-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.volunteer-item h3 {
    margin-top: 0;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.volunteer-item p {
    margin-top: 5px;
    color: #555;
    font-size: 16px;
}

h2 {
    margin-bottom: 15px;
    text-align: center;
    font-size: 20px;
}

/* Internship Experience Section */
/* Internship Section */
.internship-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f9;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px; 
}

.internship-section {
    padding: 20px;
    background-color: #f4f4f9;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.internship-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.internship-item {
    margin-bottom: 30px;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.internship-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.internship-item h3 {
    margin-top: 0;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.internship-item p {
    margin-top: 5px;
    color: #555;
    font-size: 16px;
}


/* Contact Section */
/* Footer Section */
.footer-container {
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    background-color: #f4f4f9;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px; /* Added margin between sections */
}

.contact-info, .social-icons-wrapper {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px; /* Added margin between sections */
}

.contact-info h4, .social-icons-wrapper h3 {
    margin-top: 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.contact-info ul {
    padding: 0;
    margin: 0;
}

.contact-info ul li {
    list-style-type: none;
    margin-bottom: 10px;
}

.contact-info ul li a {
    font-size: 16px;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info ul li a:hover {
    color: #333;
}

.social-icons-wrapper {
    display: flex;
    justify-content: center;
}

.social-link {
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.social-link img {
    width: 32px; /* Adjust as needed */
    height: 32px; /* Adjust as needed */
}

.social-link:hover {
    transform: scale(1.2);
}
