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

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #f5f4f4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 2%;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
    text-decoration: underline;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem 5%;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    text-align: center;
    background-color: #fff;
}

.profile-photo {
    width: 315px;
    height: 315px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
}

.about, .work, .contact {
    background-color: #f9f9f9;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.work .work-content{
    margin: 0px;
}

h3{
    margin-left: -8px;
    margin-bottom: 0.3rem
}

.summary p{
    margin-left: -8px;
    text-align: justify;
}

h4{
    margin-left: -8px;
}

p{
    margin-left: -8px;
}

ul{
    margin-left: 18px;
    text-align: justify;
}

.about-content, .work-content {
    max-width: 850px;
    display: grid;
    gap: 2rem;
}

/* Updated styling for the white boxes (including the skills box) */
.summary, .skills, .certificates, .experience, .projects {
    background: #fff;
    padding: 1.5rem;
    border-radius: 15px; /* More pronounced rounded corners */
    border: 2px solid #000; /* Black border around the box */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Slightly deeper shadow */
    margin-bottom: 2rem;

}

/* Skills progress indicator styling */
.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skill-bar-wrapper {
    background: #eee; /* Light gray track */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 20px;
}

.skill-bar {
    background: #211285; /* Blue indicator */
    border: 1px solid #000; /* Thin black border around the indicator */
    height: 100%;
    line-height: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5px;
    color: #d1cbcb;
    font-size: 0.8rem;
    font-weight: 600;
    transition: width 1s ease-in-out;
}

.certificates{
    width: 850px;
}


.skills ul, .certificates ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.job, .project {
    margin-bottom: 1.5rem;
    margin: 10px;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.project img {
    margin-left: -7px;
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
   
}

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

.cert-button {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9rem;
    margin: 0.9px;
    margin-left: 0.5rem;
    transition: background-color 0.3s ease;
}

.cert-button:hover {
    background-color: #333;
}

.contact form {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.social-links img:hover {
    transform: scale(1.2);
}

.email-text {
    margin-top: 1rem;
    font-size: 1rem;
    text-align: center;
}

.email-text a {
    color: #007bff;
    text-decoration: none;
}

.email-text a:hover {
    text-decoration: underline;
}

/*Mobile version
/* Basic Mobile Responsiveness */
@media screen and (max-width: 768px) {
    /* Navbar adjustments */
    .navbar {
      flex-direction: column;
      align-items: center;
    }
    
    .nav-links {
      flex-direction: column;
      gap: 10px;
      padding: 10px 0;
    }
  
    /* Hero Section adjustments */
    .hero-content {
      text-align: center;
      padding: 20px;
    }
  
    .profile-photo {
      width: 120px; /* Make profile photo smaller */
      height: auto;
    }
  
    /* About Section adjustments */
    .about-content {
      flex-direction: column;
      padding: 20px;
    }
  
    .summary, .skills, .certificates {
      width: 100%;
    }
  
    /* Work Section adjustments */
    .work-content {
      flex-direction: column;
      padding: 20px;
    }
  
    .projects .project-list {
      flex-direction: column;
    }
  
    .project img {
      width: 100%; /* Make project images responsive */
      height: auto;
    }
  
    /* Contact Section adjustments */
    .social-links img {
      width: 30px; /* Smaller social icons */
      height: 30px;
    }
  }
  
  /* Even smaller devices like mobile phones */
  @media screen and (max-width: 480px) {
    h1, h2, h3, h4 {
      font-size: 1.2rem;
    }
    
    p {
      font-size: 1rem;
    }
    
    .nav-links {
      font-size: 1rem;
    }
  }

/*mobile nav
/* Initially hide menu button on large screens */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333; /* Change color as you like */
  }
  
  /* Mobile view */
  @media screen and (max-width: 768px) {
    .nav-links {
      display: none;
      flex-direction: column;
      width: 100%;
      text-align: center;
      background-color: #fff; /* Match your navbar background */
    }
  
    .nav-links.active {
      display: flex;
    }
  
    .menu-toggle {
      display: block;
    }
  }
  
  
