:root {
    --primary-color: #2d3436;
    --secondary-color: #0791fa;
    --accent-color: #00b894;
    --background-color: #f9f9f9;
    --text-color: #2d3436;
    --card-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
    --hover-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

nav button {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

nav button:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* About Section */
#about {
    background: white;
    margin: 2rem auto;
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}
#about h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
}
#about h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1rem auto;
    border-radius: 2px;
}
#about p {
    padding: 2rem;
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}
#about a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
#about:hover {
    transform: translateY(-5px);
}

.profile-image {
    width: 250px;
    height: 230px;
    margin: 2rem auto;
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.profile-images {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

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

/* Experience Section Styling */
#experience {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 3rem;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.experience-item {
    position: relative;
    padding: 2rem;
    margin-bottom: 2rem;
    background: white;
    border-radius: 15px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateX(10px);
    box-shadow: var(--hover-shadow);
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -13px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 4px solid white;
}

.experience-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.experience-item h3::after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), transparent);
}

.experience-item p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Soft Skills Section Styling */
#soft-skills {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 3rem;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

#soft-skills h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
}

#soft-skills h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.skill-card strong {
    color: var(--secondary-color);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 1rem;
}

.skill-card p {
    color: #666;
    line-height: 1.6;
}

/* Update the existing soft skills list to use the new card layout */
#soft-skills ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

#soft-skills li {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#soft-skills li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

#soft-skills li:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

#soft-skills li strong {
    color: var(--secondary-color);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Add skill level indicators */
.skill-level {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

.skill-level::after {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    width: var(--skill-level, 80%);
    transition: width 1s ease;
}

/* Animation for skill cards */
@keyframes skillCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#soft-skills li {
    animation: skillCardFadeIn 0.5s ease forwards;
    opacity: 0;
}

#soft-skills li:nth-child(1) { animation-delay: 0.1s; }
#soft-skills li:nth-child(2) { animation-delay: 0.2s; }
#soft-skills li:nth-child(3) { animation-delay: 0.3s; }
#soft-skills li:nth-child(4) { animation-delay: 0.4s; }
#soft-skills li:nth-child(5) { animation-delay: 0.5s; }
#soft-skills li:nth-child(6) { animation-delay: 0.6s; }
#soft-skills li:nth-child(7) { animation-delay: 0.7s; }
#soft-skills li:nth-child(8) { animation-delay: 0.8s; }

/* Relevant Courses Section Styling */
#relevent-courses {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 3rem;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

#relevent-courses h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
}

#relevent-courses h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

#relevent-courses ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

#relevent-courses li {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#relevent-courses li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

#relevent-courses li:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

#relevent-courses li strong {
    color: var(--secondary-color);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

#relevent-courses li p {
    color: #666;
    line-height: 1.6;
}

.skill-level {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

.skill-level::after {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    width: var(--skill-level, 80%);
    transition: width 1s ease;
}

/* Animation for course cards */
@keyframes courseCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#relevent-courses li {
    animation: courseCardFadeIn 0.5s ease forwards;
    opacity: 0;
}

#relevent-courses li:nth-child(1) { animation-delay: 0.1s; }
#relevent-courses li:nth-child(2) { animation-delay: 0.2s; }
#relevent-courses li:nth-child(3) { animation-delay: 0.3s; }
#relevent-courses li:nth-child(4) { animation-delay: 0.4s; }
#relevent-courses li:nth-child(5) { animation-delay: 0.5s; }
#relevent-courses li:nth-child(6) { animation-delay: 0.6s; }
#relevent-courses li:nth-child(7) { animation-delay: 0.7s; }
#relevent-courses li:nth-child(8) { animation-delay: 0.8s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    #relevent-courses {
        padding: 2rem 1rem;
    }

    #relevent-courses li {
        padding: 1.5rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #experience,
    #soft-skills {
        padding: 2rem 1rem;
    }

    .experience-item {
        padding: 1.5rem;
    }

    .experience-item h3 {
        font-size: 1.3rem;
    }

    #soft-skills li {
        padding: 1.5rem;
    }
}

/* Skills Sections */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.skill-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: var(--hover-shadow);
}

.skill-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.project-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover img {
    transform: scale(1.05);
}

.project-item h3 {
    color: var(--primary-color);
    margin: 1rem;
    font-size: 1.5rem;
}

.project-item p {
    padding: 0 1rem 1rem;
    color: #666;
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, white, #f5f5f5);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.contact-info {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-info a:hover {
    color: var(--accent-color);
}

/* Section Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

section.animate {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 6px;
}

::-webkit-scroll:root {
    --primary-color: #2d3436;
    --secondary-color: #0791fa;
    --accent-color: #00b894;
    --background-color: #f9f9f9;
    --text-color: #2d3436;
    --card-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
    --hover-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

nav button {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

nav button:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* About Section */
#about {
    background: white;
    margin: 2rem auto;
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}
#about h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
}
#about h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1rem auto;
    border-radius: 2px;
}
#about p {
    padding: 2rem;
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}
#about a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
#about:hover {
    transform: translateY(-5px);
}

.profile-image {
    width: 250px;
    height: 230px;
    margin: 2rem auto;
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.profile-images {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

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

/* Experience Section Styling */
#experience {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 3rem;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.experience-item {
    position: relative;
    padding: 2rem;
    margin-bottom: 2rem;
    background: white;
    border-radius: 15px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateX(10px);
    box-shadow: var(--hover-shadow);
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -13px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 4px solid white;
}

.experience-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.experience-item h3::after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), transparent);
}

.experience-item p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Soft Skills Section Styling */
#soft-skills {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 3rem;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

#soft-skills h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
}

#soft-skills h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.skill-card strong {
    color: var(--secondary-color);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 1rem;
}

.skill-card p {
    color: #666;
    line-height: 1.6;
}

/* Update the existing soft skills list to use the new card layout */
#soft-skills ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

#soft-skills li {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#soft-skills li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

#soft-skills li:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

#soft-skills li strong {
    color: var(--secondary-color);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Add skill level indicators */
.skill-level {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

.skill-level::after {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    width: var(--skill-level, 80%);
    transition: width 1s ease;
}

/* Animation for skill cards */
@keyframes skillCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#soft-skills li {
    animation: skillCardFadeIn 0.5s ease forwards;
    opacity: 0;
}

#soft-skills li:nth-child(1) { animation-delay: 0.1s; }
#soft-skills li:nth-child(2) { animation-delay: 0.2s; }
#soft-skills li:nth-child(3) { animation-delay: 0.3s; }
#soft-skills li:nth-child(4) { animation-delay: 0.4s; }
#soft-skills li:nth-child(5) { animation-delay: 0.5s; }
#soft-skills li:nth-child(6) { animation-delay: 0.6s; }
#soft-skills li:nth-child(7) { animation-delay: 0.7s; }
#soft-skills li:nth-child(8) { animation-delay: 0.8s; }

/* Relevant Courses Section Styling */
#relevent-courses {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 3rem;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

#relevent-courses h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
}

#relevent-courses h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

#relevent-courses ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

#relevent-courses li {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#relevent-courses li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

#relevent-courses li:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

#relevent-courses li strong {
    color: var(--secondary-color);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

#relevent-courses li p {
    color: #666;
    line-height: 1.6;
}

#relevent-courses li .course-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.skill-level {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

.skill-level::after {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    width: var(--skill-level, 80%);
    transition: width 1s ease;
}

/* Animation for course cards */
@keyframes courseCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#relevent-courses li {
    animation: courseCardFadeIn 0.5s ease forwards;
    opacity: 0;
}

#relevent-courses li:nth-child(1) { animation-delay: 0.1s; }
#relevent-courses li:nth-child(2) { animation-delay: 0.2s; }
#relevent-courses li:nth-child(3) { animation-delay: 0.3s; }
#relevent-courses li:nth-child(4) { animation-delay: 0.4s; }
#relevent-courses li:nth-child(5) { animation-delay: 0.5s; }
#relevent-courses li:nth-child(6) { animation-delay: 0.6s; }
#relevent-courses li:nth-child(7) { animation-delay: 0.7s; }
#relevent-courses li:nth-child(8) { animation-delay: 0.8s; }


#relevent-courses li .course-icon,
#soft-skills li i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

#relevent-courses li:hover .course-icon,
#soft-skills li:hover i {
    color: var(--accent-color);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.tic-tac-toe {
    text-align: center;
    margin: 20px 0;
    font-family: 'Arial', sans-serif;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 10px;
    justify-content: center;
    margin: 0 auto;
    background: #f4f4f4; /* Light background to match the theme */
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 2px solid #ddd;
}

.cell {
    width: 100px;
    height: 100px;
    background-color: #fff;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cell:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.cell.x {
    color: #ff6347; /* Tomato color for X */
    text-shadow: 0 0 10px rgba(255, 99, 71, 0.3);
}

.cell.o {
    color: #4682b4; /* SteelBlue color for O */
    text-shadow: 0 0 10px rgba(70, 130, 180, 0.3);
}

.cell.winner {
    background-color: #e0ffe0; /* Light green for winning cells */
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

button#restartButton {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(145deg, #333, #555);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

button#restartButton:hover {
    background: linear-gradient(145deg, #555, #777);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

button#restartButton:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.board {
    animation: fadeIn 0.5s ease-in-out;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    #relevent-courses {
        padding: 2rem 1rem;
    }

    #relevent-courses li {
        padding: 1.5rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #experience,
    #soft-skills {
        padding: 2rem 1rem;
    }

    .experience-item {
        padding: 1.5rem;
    }

    .experience-item h3 {
        font-size: 1.3rem;
    }

    #soft-skills li {
        padding: 1.5rem;
    }
}

/* Skills Sections */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.skill-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: var(--hover-shadow);
}

.skill-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.project-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover img {
    transform: scale(1.05);
}

.project-item h3 {
    color: var(--primary-color);
    margin: 1rem;
    font-size: 1.5rem;
}

.project-item p {
    padding: 0 1rem 1rem;
    color: #666;
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, white, #f5f5f5);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
   
}
#contact h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
}
.contact-info {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-info a:hover {
    color: var(--accent-color);
}

/* Section Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

section.animate {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }

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

/* Achievements Section */
#achievements {
    background: linear-gradient(135deg, #f5f5f5, white);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    margin: 2rem 0;
}

#achievements h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
}

.achievement-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.achievement-content {
    flex: 1;
    padding-right: 1rem;
}

.achievement-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.achievement-content p {
    font-size: 1rem;
    color: var(--secondary-color);
    margin: 0;
}

.achievement-image {
    width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}
/* #certificates ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
} */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}


/* Keyframe animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.slide-in-left {
    opacity: 0;
    animation: slideInLeft 1s forwards;
}


 /* Add CSS for typing effect */
 .typing {
    border-right: .15em solid #000;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 40%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: black; }
}


/* General icon styling */
h2 i {
    margin-right: 10px; /* Space between icon and text */
    color: var(--secondary-color); /* Match the icon color to your theme */
}

/* Contact section icon styling */
.contact-info i {
    margin-right: 10px; /* Space between icon and text */
    color: var(--secondary-color); /* Match the icon color to your theme */
}

/* Projects section icon styling */
#Projects h2 i {
    color: var(--accent-color); /* Use a different color for projects icon */
}

/* Technical Skills section icon styling */
#technical-skills h2 i {
    color: var(--primary-color); /* Use a different color for skills icon */
}

/*readjust the name according to the ids*/
/* Fading animation for the header */
#header-text {
    opacity: 0; /* Start invisible */
    animation: fadeIn 2s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* Typing animation for the header */
#header-text {
    border-right: .15em solid var(--secondary-color); /* Cursor effect */
    white-space: nowrap;
    overflow: hidden;
    width: 0; /* Start with no width */
    animation: typing 3.5s steps(40, end) forwards, blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; } /* Expand to full width */
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--secondary-color); } /* Blinking cursor */
}

/* Fading animation for the header */
#header-text {
    opacity: 0; /* Start invisible */
    animation: fadeIn 2s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Color-changing animation for the header */
#header-text {
    animation: colorChange 5s infinite alternate;
}

@keyframes colorChange {
    0% { color: var(--primary-color); }
    50% { color: var(--secondary-color); }
    100% { color: var(--accent-color); }
}

#header-text {
    border-right: .15em solid var(--secondary-color);
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    opacity: 0;
    animation: typing 3.5s steps(40, end) forwards, blink-caret .75s step-end infinite, fadeIn 2s ease-in 3.5s forwards, colorChange 5s infinite 5s alternate;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--secondary-color); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes colorChange {
    0% { color: var(--primary-color); }
    50% { color: var(--secondary-color); }
    100% { color: var(--accent-color); }
}