/* style.css */

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
    pointer-events: none;
}
/* Navbar Styles */
.navbar {
    width: 100%;
    background-color: rgba(204, 224, 254, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
    backdrop-filter: blur(8px); /* subtle blur effect */
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.8rem;
    color: #2d319b;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #2d319b;
    font-size: 1rem; /* slightly smaller */
    font-weight: bold;
    position: relative;
    transition: all 0.4s ease;
    padding: 8px 10px;
    white-space: nowrap; /* prevent wrapping weirdly */
}


.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #79a7d3;
    left: 0;
    bottom: -5px;
    transition: width 0.4s;
}

.nav-links a:hover::after {
    width: 100%;
    background: linear-gradient(90deg, #79a7d3, #ffd6e7);
}


.nav-links a:hover {
    color: #6e55a3;
}

#hero {
    background: linear-gradient(270deg, #e0f7fa, #fef9ff, #ffd6e7, #d7ecfa);
    background-size: 800% 800%;
    animation: gradientMove 15s ease infinite;
    padding-top: 20px; /* adjust for navbar height */
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    text-align: center;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fef9ff; /* Soft pastel background */
    color: #3d3d3d;
}

.container {
    text-align: center;
    padding: 80px 20px;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px;
    box-shadow: 0 4px 15px rgba(173, 216, 230, 0.5); /* light shadow */
}

.profile-img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}


#hero h1 {
    font-size: 3rem;
    margin: 10px 0;
    color: #5f4b8b;
    animation: shimmer 3s infinite;
    background: linear-gradient(90deg, #5f4b8b, #79a7d3, #5f4b8b);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
/*
@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}
*/

h2 {
    font-size: 1.6rem;
    color: #79a7d3; /* Soft blue */
    margin-bottom: 10px;
}

p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #5c5c5c;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    background-color: #79a7d3; /* Pastel blue */
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: #5f4b8b; /* Pastel purple on hover */
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(95, 75, 139, 0.3);
}
#about {
    padding: 80px 20px;
    background-color: #e9f7f6; /* Light pastel mint */
}

#about h2 {
    color: #5f4b8b;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

#skills h2 {
    color: #5f4b8b;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

/* Skill Card Section */
.skill-card-section {
    background-color: #f6f8ff;
    padding: 60px 20px;
    text-align: center;
  }
  
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
  }
  
  /* General Skill Card */
  .skill-card {
    padding: 20px 15px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffd6e7, #fef9ff);
    color: #3d3d3d;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 2px solid #ffd6e7;
    transition: all 0.4s ease-in-out;
    cursor: default;
    position: relative;
    overflow: hidden;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; /* just in case of multi-line */
    /* height: 100px; control height for alignment */
  }
  
  .skill-card:hover {
    background: linear-gradient(135deg, #fef9ff, #d7ecfa);
    transform: translateY(-6px) scale(1.025);
    box-shadow: 0 10px 24px rgba(121, 167, 211, 0.2);
    border-color: #bda8ff;
  }
  
  /* Core Skill Card */
  .skill-card.core {
    background: linear-gradient(135deg, #d7ecfa, #fef9ff);
    color: #4b3a60;
    font-size: 1.05rem;
    border: 2px solid #bda8ff;
  }
  
  .skill-card.core:hover {
    background: linear-gradient(135deg, #fef9ff, #ffd6e7);
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 28px rgba(95, 75, 139, 0.25);
    border-color: #ffaad4;
  }
  
  /* Fade-In Stagger Animation */
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .skill-card {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
  }
  
  .skill-card:nth-child(1) { animation-delay: 0.05s; }
  .skill-card:nth-child(2) { animation-delay: 0.1s; }
  .skill-card:nth-child(3) { animation-delay: 0.15s; }
  .skill-card:nth-child(4) { animation-delay: 0.2s; }
  .skill-card:nth-child(5) { animation-delay: 0.25s; }
  .skill-card:nth-child(6) { animation-delay: 0.3s; }
  .skill-card:nth-child(7) { animation-delay: 0.35s; }
  .skill-card:nth-child(8) { animation-delay: 0.4s; }
  .skill-card:nth-child(9) { animation-delay: 0.45s; }
  .skill-card:nth-child(10) { animation-delay: 0.5s; }
  /* ... continue as needed */
  
  @media (max-width: 768px) {
    .skills-grid {
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
  }
 
#projects {
    padding: 80px 20px;
    background-color: #fff8f0; /* Light pastel peach */
}

#projects h2 {
    color: #5f4b8b;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    background-color: #e0f7fa;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 20px rgba(95, 75, 139, 0.2);
    background-color: #d7ecfa;
}

.project-card h3 {
    color: #5f4b8b;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.project-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.project-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #79a7d3;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.project-btn:hover {
    background-color: #5f4b8b;
}
.project-tags {
    margin-bottom: 15px;
}

.project-tags span {
    display: inline-block;
    background-color: #d7ecfa;
    color: #5f4b8b;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 5px 5px 0 0;
}

/* Experience */
#experience {
    padding: 80px 20px;
    background-color: #ecfaef; /* Light pastel blue */
}

#experience h2 {
    color: #5f4b8b;
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center; 
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, #79a7d3, #ffd6e7, #5f4b8b);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 20px 30px;
    position: relative;
    width: 60%;
    box-sizing: border-box;
  }
  
  .timeline-item:nth-child(odd) {
    left: calc(50% - 60%); /* Push left card away from center */
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%; /* Right cards stay as is */
    text-align: left;
}
  
.timeline-date {
    font-size: 0.9rem;
    font-weight: bold;
    color: #5f4b8b;
    margin-bottom: 5px;
    text-align: center; 
}

.timeline-content {
    background-color: #e0f7fa;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: center; /* Center-align all text */
}

.timeline-content:hover {
    transform: translateY(-5px);
    background-color: #d7ecfa;
}

.timeline-content h3 {
    margin-top: 0;
    font-size: 1.15rem;
    color: #79a7d3;
}

.timeline-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #f10606;
}

/* Badges/Tags */
.badges {
    margin-bottom: 8px;  /* Decrease the bottom margin */
    text-align: center; /* Center-aligns badge group */
}
  
.badges span {
    display: inline-block;
    background-color: #ffffff;
    color: #0a66c2;
    font-size: 10px;    /* Decrease font size */
    font-weight: 600;
    padding: 3px 6px;   /* Decrease padding */
    margin: 2px 4px;    /* Decrease margin */
    border-radius: 15px;  /* Slightly smaller border radius */
    border: 1px solid #b3daff;
}



  @media screen and (max-width: 768px) {
    .timeline::after {
      left: 8px;
    }
  
    .timeline-item {
      width: 100%;
      padding: 20px 20px 20px 40px;
    }
  
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
      left: 0;
    }
  }
  /*
.experience-section {
    padding: 2rem 1rem;
  }
  
  .experience-card {
    background: #fff;
    border-left: 4px solid #00aaff;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }
  
  .role-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
  
  .role-header h3 {
    margin: 0;
    font-size: 1.25rem;
  }
  
  .role-header .duration {
    font-size: 0.95rem;
    color: #666;
  } 
  
  .experience-card ul {
    margin-top: 0.5rem;
    padding-left: 1.25rem;
  }
  
  .experience-card ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
  } */
  /*
  .badges {
    margin-top: 1rem;
  }
  
  .badges span {
    display: inline-block;
    background: #f0f4f8;
    color: #0077b6;
    border-radius: 5px;
    padding: 0.3rem 0.6rem;
    margin-right: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
  }
  
  /* Certificates */
  #certifications {
    padding: 80px 20px;
    background-color: #fff0f5; /* Light pastel pink */
}

#certifications h2 {
    color: #5f4b8b;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.edu-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.edu-cert-card {
    background-color: #e0f7fa;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.edu-cert-card:hover {
    transform: translateY(-8px) scale(1.02);
    background-color: #d4e8fc;
    box-shadow: 0 10px 20px rgba(95, 75, 139, 0.15);
}

.edu-cert-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #5f4b8b;
}

.edu-cert-card p {
    font-size: 0.9rem;
    color: #555;
}

#contact {
    padding: 80px 20px;
    background-color: #fef9ff; /* Soft pastel background */
    text-align: center;
}

#contact h2 {
    color: #5f4b8b;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

#contact p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background-color: #d4c4f8;
    color: white;
    text-align: center;
    padding: 5px 2.5px;
    font-size: 1rem;
}

/* Scroll to Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: #79a7d3;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}



#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTopBtn:hover {
    background-color: #5f4b8b;
    transform: translateY(-4px);
}
 
  

.contact-form {
    max-width: 600px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, 
.contact-form textarea {
    padding: 12px 15px;
    border: 2px solid #d7ecfa;
    border-radius: 8px;
    font-size: 1rem;
    resize: none;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: #5f4b8b;
}

.contact-form button {
    margin-top: 10px;
}

/* Floating Circles
.circles {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(121, 167, 211, 0.2);
    animation: float 10s ease-in-out infinite;
    z-index: 0;
}

.circle.small {
    width: 40px;
    height: 40px;
    top: 20%;
    left: 10%;
}

.circle.medium {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 80%;
}

.circle.large {
    width: 100px;
    height: 100px;
    top: 85%;
    left: 20%;
}

*/

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Loader Styles */
#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #fef9ff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.dot {
    width: 15px;
    height: 15px;
    margin: 5px;
    background-color: #5f4b8b;
    border-radius: 50%;
    animation: bounce 1.2s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}


