body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

#lang-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    background-color: #007bff;
    border: none;
    border-radius: 50%; 
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

#lang-toggle img {
    display: block;
    width: 24px; 
    height: auto;
    border: none;
}

#lang-toggle:hover {
    background-color: #0056b3;
}

#downloadButton:hover {
    cursor: pointer;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-p {
    text-indent: 2em;
    text-align: justify;
}

.academic-p {
    text-indent: 2em;
    text-align: justify;
}

.experience-p {
    text-indent: 2em;
    text-align: justify;
}

.projects-p {
    text-indent: 2em;
}

.project-link {
    text-decoration: none;
    color: black;
}

.project-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

header {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    animation: gradientAnimation 5s ease infinite;
}

header h1 {
    font-size: 3em;
    margin: 0;
    animation: fadeInDown 1s ease-in-out;
}

header p {
    font-size: 1.2em;
    margin: 10px 0 0;
}

nav {
    background-color: #444;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1001;
}

nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}


nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    display: inline-block;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #555;
}

.menu-toggle .menu-icon {
    font-size: 24px;
}

section {
    padding: 60px 0;
    background-color: #fff;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-size: 2em;
    color: #333;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background-color: #6e8efb;
    position: absolute;
    bottom: -3px;
    left: 0;
    border-radius: 2px;
    animation: widthAnimation 1s ease-out;
}

.skills-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.skills-list li {
    background-color: #6e8efb;
    color: #fff;
    padding: 10px 20px;
    margin: 10px 0;
    border-radius: 20px;
    transition: transform 0.3s;
}

.skills-list li:hover {
    transform: scale(1.1);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.project, .experience-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project:hover, .experience-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.project, .academic-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project:hover, .academic-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.academic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

#certificates {
    padding: 60px 0;
    background-color: #fff;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#certificates h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-size: 2em;
    color: #333;
    position: relative;
    display: inline-block;
}

#certificates h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background-color: #6e8efb;
    position: absolute;
    bottom: -3px;
    left: 0;
    border-radius: 2px;
    animation: widthAnimation 1s ease-out;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.certificate {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.certificate img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.certificate:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); 
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #007bff;
    cursor: pointer;
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-bottom: 5px;
    font-weight: bold;
}

form input, form textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s;
}

form input:focus, form textarea:focus {
    border-color: #6e8efb;
}

form button {
    padding: 15px;
    background-color: #6e8efb;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #a777e3;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientAnimation {
    0% {
        background: linear-gradient(135deg, #6e8efb, #a777e3);
    }
    50% {
        background: linear-gradient(135deg, #a777e3, #6e8efb);
    }
    100% {
        background: linear-gradient(135deg, #6e8efb, #a777e3);
    }
}

@keyframes widthAnimation {
    from {
        width: 0;
    }
    to {
        width: 50px;
    }
}