:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --light-bg: #f8f9fa;
    --light-text: #212529;
    --light-card: #ffffff;
    --light-border: #dee2e6;
    --dark-bg: #121212;
    --dark-text: #e9ecef;
    --dark-card: #1e1e1e;
    --dark-border: #333333;
  
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--light-text);
    line-height: 1.6;
}

body.dark-theme {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    z-index: 100;
    background-color: var(--light-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.dark-theme header {
    background-color: var(--dark-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;

}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
} */

.logo {
    height: 60px; /* Adjust size as needed */
    width: auto;
    display: block;
    object-fit: contain; /* Ensures the image scales properly */
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    /* background-color: #1e3a8a; Deep blue theme */
}

.nav-container img.logo {
    max-height: 60px;
    transition: transform 0.3s ease-in-out;
}

.nav-container img.logo:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
}


.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
}

body.dark-theme .nav-link {
    color: var(--dark-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.theme-toggle {
    cursor: pointer;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    /* margin-left: 200px; */
}

body.dark-theme .theme-toggle {
    color: var(--dark-text);
    background-color: rgba(255, 255, 255, 0.05);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--light-text);
    cursor: pointer;
}

body.dark-theme .mobile-menu-btn {
    color: var(--dark-text);
}

main {
    padding-top: 5rem;
}

section {
    padding: 5rem 0;
}

#hero {
    /*height: 100vh;*/
    /*display: flex;*/
    /*align-items: center;*/
    /*position: relative;*/
    /*overflow: hidden;*/
    padding: 4rem 0;
}


/* Hero Section Layout */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 80vh;
    padding: 2rem 0;
}

.hero-text {
    flex: 1;
    max-width: 50%;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 100%;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    padding: 1rem;
    box-sizing: border-box;
}

.profile-img {
    width: 80%;
    height: 100%;
    object-fit: fill;
    border-radius: 5%;
    position: relative;
    z-index: 2;
    border: 5px solid var(--profile-border);
    box-shadow: 0 15px 30px var(--profile-shadow);
    transition: all 0.5s ease;
    animation: bounceIn 1.5s ease-in-out forwards;
}

.hero-shape {
    position: absolute;
    top: 49%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 115%;
    background: var(--shape-background);
    border-radius: 5%;
    z-index: 1;
    opacity: 0.5;
    transition: all 0.5s ease;
}
.hero-image-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
}
/* Hover and Interaction Effects */
.hero-image-wrapper:hover .profile-img {
    transform: scale(1.05);
    box-shadow: 0 20px 40px var(--profile-shadow-hover);
}

.hero-image-wrapper:hover .hero-shape {
    transform: translate(-50%, -50%) rotate(10deg);
    opacity: 0.7;
}

/* Light Mode Variables */
:root {
    --profile-border: rgba(67, 97, 238, 0.2);
    --profile-shadow: rgba(67, 97, 238, 0.1);
    --profile-shadow-hover: rgba(67, 97, 238, 0.2);
    --shape-background: rgba(67, 97, 238, 0.1);
}

/* Dark Mode Variables */
.dark-theme .profile-img {
    --profile-border: rgba(67, 97, 238, 0.3);
    --profile-shadow: rgba(67, 97, 238, 0.2);
    --profile-shadow-hover: rgba(67, 97, 238, 0.3);
    --shape-background: rgba(67, 97, 238, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
        order: 2;
    }

    .hero-image-container {
        order: 1;
        max-width: 300px;
        margin-bottom: 2rem;

    }

    .social-links {
        justify-content: center;
    }
    .hero-shape {
        position: absolute;
        top: 49%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        height: 100%;
        border-radius: 5%;
        z-index: 1;
    }
}

@media (max-width: 768px) {
    .hero-content {
        min-height: auto;
    }

    .hero-image-wrapper {
        max-width: 250px;
    }
}

.greeting {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    opacity: 0.8;
}
.resume-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.resume-btn:hover {
    background-color: var(--secondary);
}

body.dark-theme .hero-title {
    color: var(--dark-text);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.section-title {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.skill-category {
    flex: 1;
    min-width: 250px;
}

.skill-category-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background-color: var(--light-card);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}
.skill-tag:hover {
    transform: scale(1.1);
}
.skill-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin: 0.5rem;
    transition: transform 0.3s ease;
}

.skill-icon:hover {
    transform: scale(1.2);
}


body.dark-theme .skill-tag {
    background-color: var(--dark-card);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--light-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

body.dark-theme .project-card {
    background-color: var(--dark-card);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: fill;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.project-description {
    margin-bottom: 1.5rem;
    color: var(--light-text);
    opacity: 0.9;
}

body.dark-theme .project-description {
    color: var(--dark-text);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.3rem 0.8rem;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.project-link:hover {
    background-color: var(--secondary);
}

.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background-color: var(--light-border);
}

body.dark-theme .education-timeline::before {
    background-color: var(--dark-border);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--primary);
    border-radius: 50%;
    top: 2rem;
}

.timeline-item:nth-child(odd)::before {
    right: -7.5px;
}

.timeline-item:nth-child(even)::before {
    left: -7.5px;
}

.timeline-content {
    background-color: var(--light-card);
    border-radius: 10px;
    padding: 1.5rem;
    /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    cursor: default;
}
.timeline-content:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}


body.dark-theme .timeline-content {
    background-color: var(--dark-card);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.timeline-date {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--light-card);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.dark-theme .contact-form-container {
    background-color: var(--dark-card);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 500;
}

.form-input, .form-textarea {
    padding: 0.8rem;
    border: 1px solid var(--light-border);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--light-bg);
    color: var(--light-text);
}

body.dark-theme .form-input,
body.dark-theme .form-textarea {
    border-color: var(--dark-border);
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: var(--secondary);
}
.switch-btn {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.switch-btn:hover {
    background-color: var(--secondary);
}
/*footer {*/
/*    background-color: var(--light-card);*/
/*    padding: 2rem 0;*/
/*    text-align: center;*/
/*    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);*/
/*}*/

/*body.dark-theme footer {*/
/*    background-color: var(--dark-card);*/
/*    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);*/
/*}*/

/*.footer-content {*/
/*    max-width: 600px;*/
/*    margin: 0 auto;*/
/*}*/

/*.footer-text {*/
/*    margin-bottom: 1rem;*/
/*}*/

/*.footer-links {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    gap: 1.5rem;*/
/*    margin-bottom: 1.5rem;*/
/*}*/

/*.footer-link {*/
/*    color: var(--light-text);*/
/*    text-decoration: none;*/
/*    transition: color 0.3s;*/
/*}*/

/*body.dark-theme .footer-link {*/
/*    color: var(--dark-text);*/
/*}*/

/*.footer-link:hover {*/
/*    color: var(--primary);*/
/*}*/

/*.copyright {*/
/*    font-size: 0.9rem;*/
/*    opacity: 0.8;*/
/*}*/

/* .contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.contact-info {
  flex: 1;
  min-width: 280px;
  background-color: var(--light-card);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

body.dark-theme .contact-info {
  background-color: var(--dark-card);
}

.contact-subtitle {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.contact-info p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
}

.map-container {
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.contact-form-container {
  flex: 1;
  min-width: 280px;
}


.map-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.map-link:hover {
  text-decoration: underline;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
  font-size: 1.5rem;
}

.contact-icon {
  color: var(--primary);
  font-size: 4rem;
  width: 40px;
  text-align: center;
} */


.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.contact-info {
  flex: 1;
  min-width: 280px;
  background-color: var(--light-card);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
body.dark-theme .contact-info {
  background-color: var(--dark-card);
}
.contact-info p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}
.contact-form-container {
  flex: 1;
  min-width: 300px;
}

.info-block {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 25px;
  margin-right: 15px;
  color: var(--primary);
  margin-top: 5px;
}

.map-container {
  margin-top: 20px;
}

.map-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.contact-form .form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-form .form-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.contact-form .full-width {
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  resize: vertical;
}

.contact-form label {
  margin-bottom: 6px;
  font-weight: bold;
}

.submit-btn {
  background-color:var(--primary);
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}


.footer-section {
    background-color: var(--light-card);
    color: var(--light-text);
    padding: 3rem 0 1rem;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
}

body.dark-theme .footer-section {
    background-color: var(--dark-card);
    color: var(--dark-text);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-left,
.footer-middle,
.footer-right {
    flex: 1;
    min-width: 220px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 1rem;
    opacity: 0.8;
}

.footer-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--social-bg);
    color: var(--social-icon);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.footer-icon:hover {
    background-color: var(--social-bg-hover);
    color: var(--social-icon-hover);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid var(--light-border);
    padding-top: 1rem;
    opacity: 0.7;
}

body.dark-theme .footer-bottom {
    border-top: 1px solid var(--dark-border);
}

.quality-bar {
    margin-bottom: 1rem;
}

.quality-bar label {
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.3rem;
}

.progress {
    background-color: var(--light-border);
    height: 8px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

body.dark-theme .progress {
    background-color: var(--dark-border);
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    width: 0;
    animation: fillProgress 2s ease-in-out forwards;
    border-radius: 10px;
}

@keyframes fillProgress {
    from {
        width: 0;
    }
    to {
        width: var(--progress-width);
    }
}


/* Base styles for experience section */
#experience {
    padding: 4rem 0;
    background-color: var(--background-color);
    transition: background-color 0.3s ease;
}

.section-title {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.experience-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    

}

.experience-card {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    cursor: default;
}

.experience-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

body.dark-theme .experience-card {
  background-color: var(--dark-card);
}

.experience-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.experience-card ul {
    list-style: none;
    padding: 0;
}

.experience-card li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.experience-card li:last-child {
    border-bottom: none;
}

.experience-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.experience-detail {
    display: flex;
    justify-content: space-between;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.experience-detail .timeline {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* Light Mode Styles (Default) */
:root {
    --background-color: #f4f4f4;
    --text-color: #333;
    --card-background: #ffffff;
    --primary-color: #0066cc;
    --border-color: rgba(0, 0, 0, 0.1);
}

/* Dark Mode Styles */
.dark-theme {
    --background-color: #121212;
    --text-color: #e0e0e0;
    --card-background: #1e1e1e;
    --primary-color: #4da6ff;
    --border-color: rgba(255, 255, 255, 0.1);
}

 /* Base Styles for Languages Section */
 #languages {
    background-color: var(--languages-background);
    padding: 4rem 0;
    transition: background-color 0.3s ease;
    
}


.section-title {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.languages-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.language-card {
    flex: 1;
    min-width: 200px;
    text-align: center;
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.language-flag {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.language-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.language-card p {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* Light Mode (Default) */
:root {
    --languages-background: rgba(67, 97, 238, 0.05);
    --text-color: #333;
    --text-secondary: #666;
    --card-background: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.05);
}

/* Dark Mode */
.dark-theme #languages {
    --languages-background: rgba(67, 97, 238, 0.1);
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --card-background: #1e1e1e;
    --shadow-color: rgba(255, 255, 255, 0.05);
}

/* Hover Effect */
.language-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

 /* Social Links Styling */
 .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--social-bg);
    color: var(--social-icon);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link svg {
    width: 20px;
    height: 20px;
    stroke: var(--social-icon);
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
    background-color: var(--social-bg-hover);
    color: var(--social-icon-hover);
}

.social-link:hover svg {
    stroke: var(--social-icon-hover);
}

/* Light Mode Variables */
:root {
    --social-bg: rgba(67, 97, 238, 0.1);
    --social-icon: rgba(67, 97, 238, 0.8);
    --social-bg-hover: rgba(67, 97, 238, 0.2);
    --social-icon-hover: rgba(67, 97, 238, 1);
}

/* Dark Mode Variables */
.dark-theme .social-links {
    --social-bg: rgba(67, 97, 238, 0.2);
    --social-icon: rgba(255, 255, 255, 0.7);
    --social-bg-hover: rgba(67, 97, 238, 0.3);
    --social-icon-hover: rgba(255, 255, 255, 1);
}


/* Animate name letter by letter */
.animate-letters span {
    opacity: 0;
    display: inline-block;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

.animate-letters span:nth-child(1) { animation-delay: 0s; }
.animate-letters span:nth-child(2) { animation-delay: 0.1s; }
.animate-letters span:nth-child(3) { animation-delay: 0.2s; }
.animate-letters span:nth-child(4) { animation-delay: 0.3s; }
.animate-letters span:nth-child(5) { animation-delay: 0.4s; }
.animate-letters span:nth-child(6) { animation-delay: 0.5s; }
.animate-letters span:nth-child(7) { animation-delay: 0.6s; }
.animate-letters span:nth-child(8) { animation-delay: 0.7s; }
.animate-letters span:nth-child(9) { animation-delay: 0.8s; }
.animate-letters span:nth-child(10) { animation-delay: 0.9s; }
.animate-letters span:nth-child(11) { animation-delay: 1s; }
.animate-letters span:nth-child(12) { animation-delay: 1.1s; }
.animate-letters span:nth-child(13) { animation-delay: 1.2s; }
.animate-letters span:nth-child(14) { animation-delay: 1.3s; }

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide in from left */
.hero-description,
.hero-title,
.greeting {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 1s forwards;
    animation-delay: 1.6s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Bounce-in profile image */
.profile-img {
    animation: bounceOut 1.5s ease-in-out forwards;
    opacity: 100;
}

@keyframes bounceOut {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Hover effect on social icons */
.social-link svg {
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.3);
    stroke: var(--primary);
}


/* Generic fade and move-up animation */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay helpers */
.delay-1 { animation-delay: 0.2s; }
.delay-2 span { animation-delay: calc(0.2s + 0.1s * var(--i)); } /* for name letters */
.delay-3 { animation-delay: 1s; }
.delay-4 { animation-delay: 1.2s; }
.delay-5 { animation-delay: 1.4s; }
.delay-6 { animation-delay: 1.6s; }
.delay-7 { animation-delay: 1.8s; }

/* Animate name letters */
.animate-letters span {
    opacity: 0;
    display: inline-block;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out forwards;
}

/* Assign index to each span */
.animate-letters span:nth-child(1) { --i: 0; }
.animate-letters span:nth-child(2) { --i: 1; }
.animate-letters span:nth-child(3) { --i: 2; }
.animate-letters span:nth-child(4) { --i: 3; }
.animate-letters span:nth-child(5) { --i: 4; }
.animate-letters span:nth-child(6) { --i: 5; }
.animate-letters span:nth-child(7) { --i: 6; }
.animate-letters span:nth-child(8) { --i: 7; }
.animate-letters span:nth-child(9) { --i: 8; }
.animate-letters span:nth-child(10) { --i: 9; }
.animate-letters span:nth-child(11) { --i: 10; }
.animate-letters span:nth-child(12) { --i: 11; }
.animate-letters span:nth-child(13) { --i: 12; }
.animate-letters span:nth-child(14) { --i: 13; }

/* Profile image bounce */
.hero-image-container.fade-up {
    animation: bounceIn 1.2s ease-out forwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    60% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.section-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}
.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .social-links {
        justify-content: center;
    }
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .languages-grid {
        flex-direction: column;
    }

    .language-card {
        width: 100%;
        min-width: auto;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .experience-grid {
        flex-direction: column;
    }

    .experience-card {
        width: 100%;
        min-width: auto;
    }
}


/* Responsive styles */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .social-links {
        justify-content: center;
    }

    .timeline-item {
        width: 100%;
        left: 0;
        padding: 0 2rem 2rem 2rem;
    }

    .timeline-item:nth-child(even) {
        left: 0;
        padding: 0 2rem 2rem 2rem;
    }

    .education-timeline::before {
        left: 2rem;
    }

    .timeline-item::before {
        left: 2rem;
    }

    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--light-card);
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    body.dark-theme .nav-links.active {
        background-color: var(--dark-card);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

/* Animation classes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/*@media (max-width: 768px) {*/
/*    .hero-image-wrapper {*/
/*        max-width: 250px;*/
/*    }*/
/*}*/

/*@media (max-width: 480px) {*/
/*    .hero-image-wrapper {*/
/*        max-width: 180px;*/
/*    }*/
/*}*/

/*.hero-content {*/
/*    flex-direction: column;*/
/*    align-items: center;*/
/*    text-align: center;*/
/*    gap: 2rem;*/
/*}*/

/*@media (min-width: 769px) {*/
/*    .hero-content {*/
/*        flex-direction: row;*/
/*        text-align: left;*/
/*    }*/
/*}*/
/*@media (max-width: 480px) {*/
/*    .hero-content {*/
/*        flex-direction: row;*/
/*        text-align: left;*/
/*    }*/
/*}*/

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .hero-text {
        width: 100%;
    }

    .hero-name {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-image-wrapper {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 1.1rem;
    }

    .profile-img {
        border-width: 3px;
    }

    .resume-btn {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
    }
}