* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Monsterrat','Poppins', sans-serif;
    scroll-behavior: smooth;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}
body {
    /* background-image: url('Black Panther.jpg');
    background-attachment: scroll;
    background-size: 100%;
    background-repeat: no-repeat; */
    height:auto;
    background-color: rgb(0, 0, 14);
    /* color: white; */
}

/* --------------------------------------Top Navigation Bar------------------------------------------------------------------ */

.navbar {
    background-color: rgb(0, 0, 14);
    padding: 15px 60px 15px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    left:0;
    right:0;
    z-index: 1000;
    color: white;
}
.profile a{
    color: blueviolet;
    padding: 10px 15px;
    border: 2px solid blueviolet;
    border-radius: 25px;
    text-decoration: none;
}
.profile a:hover{
    cursor: pointer;
    box-shadow: 0px 2px 5px 2px rgb(133, 98, 133);
    color: white;
    background-color: rgb(182, 122, 238)
}
.navbar2{
    display: flex;
    justify-content: space-evenly;
    align-items: right;
    gap: 25px;
    position: static;
}
.navbar2 a {
    color: var(--text-color);
    text-decoration: none;
}
.navbar2 a:hover{
    color: blueviolet;
}

.logo{
    display: flex;
    align-items: center;
    font-family: cursive;
    color: rgb(255, 255, 255);
    text-align: center;
    font-size: 24px;
    /* animation: mymove 5s infinite; */
    border-radius: 50px;
    border-color: none;
    background-color: none;
}

@keyframes mymove {
    50% {box-shadow: 0cap 0px 10px 4px plum;}
  }

.logo:hover{
    transform: scale(1.3);
    transition: transform 0.5s;
}

.logo img{
    height: 48px;
    object-fit: contain;
    object-position: center;
}



/* -------------------------------------------------------Part 1---------------------------------------------------------------------- */

.part1{
display: flex;
justify-content: space-evenly;
align-items:center;
color: white;
padding: 140px 30px 10px 30px;
gap: 20px;
}


.contentcontainer{
display: flex;
flex-direction: column;
justify-content: center;
align-items:start;  
color: aliceblue;
width: 650px;
}


.contentcontainer h1{
    font-size: 44px;
    font-weight:bolder;
    font-style: italic;
}
.contentcontainer p{
    font-family:Poppins;
    font-size: 20px;
    padding: 20px 0px;
    color: azure;
}

.photoholder{
    display: flex;
    justify-content: end;
    align-items: center;
    height: 380px;
    width: 380px;
    border: 2px solid blueviolet;
    border-radius: 200px;
}


.photo {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 190px;
}

.container {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
}

.container h2 {
    font-weight: 900px;
    font-size: 32px;
    display: inline-block;
    margin: 0; /* Removes any default margin */
    vertical-align: middle; /* Aligns text properly */
}

.typed-out {
    display: inline-block;
    text-wrap: nowrap;
    width: 15ch;
    overflow: hidden;
    color: blueviolet !important;
    border-right: .15em solid rgb(0,0,14);
    white-space: nowrap;
    font-size: 32px;
    animation: typing 2s steps(15) infinite alternate-reverse;
    vertical-align: middle;
}

@keyframes typing {
    from { width: 0ch; } 
}

.cv{
    display: flex;
    justify-content: space-between;
    width: 100%;
    vertical-align: middle;
}
.contentcontainer a {
    text-decoration: none; 
    text-align: center;
    padding: 10px 40px;
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(to right, blueviolet, plum);
    border-radius: 25px;
    color: rgb(85, 26, 139);
    animation: mymove2 5s infinite;
}

@keyframes mymove2 {
    50% { color: white; }
}

.contentcontainer a:hover {
    color: white;
}


  /* ----------------------------------------------Part 2- SKILLS--------------------------------------------------------------- */
.whole-skills{
    align-content: center;
    margin: auto;
}

#Skills{
    align-content: center;
    justify-content: center;
    display: flex;
    align-items: center;
}

.skill-title{
    display: block;
    text-align: center;
    font-weight: 700px;
    font-size: 34px;
    padding: 90px 30px 0px 30px;
    color: rgba(211, 211, 211, 0.9);
}

.descrip {
    font-size: 24px;
    display: block;
    text-align: center;
    color: rgba(211, 211, 211, 0.9);
    margin-bottom: 30px;
}

.skill-grid {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 10px;
}



.skill-card{
    width: 100%;
    max-width: 500px;
    background: var(--bg-color);
    border: 0.1px solid rgb(133, 76, 230);
    box-shadow: rgba(150, 56, 171, 0.25) 0px 4px 24px;
    border-radius: 16px;
    padding: 18px 30px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.skill-card-title{
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 2px;
    display: block;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 20px;
}

.all-skill-holder{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;

}

.skill-holder{
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid rgba(211, 211, 211, 0.6);
    border-radius: 15px;
}

.skill-icon-holder{
    height: 24px;
    width: 24px;
}

.skill-icon{
    height: 100%;
}

.skill-icon-g{
  height: 100%;
  border-radius: 500px;
}

.skill-name{
    color: var(--text-color);
}

/* ------------------Experience Section------------------------ */

/* ------ Container ------ */
.experience-section {
    max-width: 700px;
    margin: 0 auto;
  }

  .experience-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  .experience-header h1 {
    margin-bottom: 0.5rem;
  }

  .experience-header p {
    color: #cbd5e1; /* Subtle gray for subtext */
  }

  /* ------ Experience Cards ------ */
  .experience-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

.iconWithTitle{
    display: flex;
    align-items: center;
    gap: 1rem;
}

  .experience-card {
    background-color: var(--bg-color); /* Slightly lighter dark background */
    padding: 1.5rem;
    border: 0.1px solid rgb(133, 76, 230);
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: rgba(150, 56, 171, 0.25) 0px 4px 24px;
    /* box-shadow: 0 0 0 rgba(0, 0, 0, 0); */
  }

  /* Hover effect: move card upward and add subtle shadow */
  .experience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 4px 15px rgba(0, 0, 14, 0.25);
  }

  /* Optional icon/number container on the left */
  .experience-icon {
    max-width: 55px;
    height: 55px;
    background-color: var(--bg-color); /* Accent color */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    object-fit: fit;
  }

  .experience-icon img{
    height: 100%;
    width: 100%;
    border-radius: 10px;
  }

  /* Right side content */
  .experience-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .experience-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
  }
  .experience-title p{
    font-size: 1rem;
    font-weight: 400;
  }
  .experience-title p:last-child{
    font-size: 0.75rem;  
    font-weight: 300;
  }

  .experience-description {
    margin-bottom: 0.5rem;
    color: #cbd5e1;
  }

  .experience-skills {
    display: flex;
    gap: 2rem;
    color: #94a3b8; /* Another subtle gray */
  }

.job-skills{
    display: flex;
    gap: 0.5rem 2rem;
    flex-wrap: wrap;
}


/* ----------------------Projects Section------------------------ */

/* Projects Section Styling */
#projects {
  padding: 0px 20px;
  background: var(--bg-color);                                /*  #f9f9f9 */
}

#projects h2 {
  padding-top: 30px;
  text-align: center;
  margin-bottom: 5px;
  font-size: 3rem;
  color: var(--text-color);
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
  flex-direction: row;
  justify-content: center;
  align-content: space-between;  
  gap: 50px;
}

.project-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  padding: 10px;
  background: var(--bg-color);
  border: 1px solid blueviolet;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: rgba(150, 56, 171, 0.65) 0px 4px 25px;;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  max-width: 300px;
  max-height: 450px;
}

.project-tile:hover {
  transform: translateY(-10px);
  box-shadow: rgba(150, 56, 171, 0.65) 0px 4px 25px;
}

.project-image {
  display: flex;
  justify-content: center;
  max-width: 100% ;
  max-height: 40%;
  height: auto;
}

.project-image img {
  padding: 5px;
  width: 100%;
  height: 100%;
  display: block;
}


.project-info {
  padding: 0px;
}

.project-info h3 {
  margin: 0 !important; 
  font-size: 1.5rem;
  color: var(--text-color);
}

.project-info .skills
  {
  margin: 5px 0;
  color: var(--text-color);
}

.project-info .time-period{
  margin: 0px;
  color: var(--text-color);
}

.short-description{
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limits text to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.projectsContent{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items:start;
  gap: 5px;
}


.project-info .github-link {
  display: inline-block;
  color: var(--bg-color);
  background: linear-gradient(to right, blueviolet, plum);
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.project-info .github-link:hover {
  color: var(--bg-color) !important;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background: var(--bg-color);
  color: var(--text-color);
  margin: auto;
  border-radius: 8px;
  padding: 20px;
  width: 80%;
  max-width: 800px;
  position: relative;
}

.modal-img-holder {
  margin-top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  object-fit: cover;
}


.modal-img-holder img.modal-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.modal-info {
  margin-top: 20px;
}

.modal-info h3 {
  margin: 0;
  font-size: 2rem;
  color: var(--text-color);
}

.modal-info p {
  margin: 10px 0;
  color: var(--text-color);
}

.modal-info a.modal-github {
  display: inline-block;
  margin-top: 15px;
  color: var(--bg-color);
  background: linear-gradient(to right, blueviolet, plum);
  padding: 10px 15px;
  border-radius: 40px;
  text-decoration: none;
  transition: background 0.3s;
}

.modal-info a.modal-github:hover {
  color: var(--bg-color) !important;
  box-shadow: rgba(150, 56, 171, 0.25) 0px 4px 25px;
}

.close {
  z-index: 999;
  position: absolute;
  right: 20px;
  top: 0px;
  font-size: 28px;
  font-weight: medium;
  color: var(--text-color);
  cursor: pointer;
}

.close:hover {
  color: #000;
}


/* ----------------------Education Section------------------------ */

.education-grade{
  display: flex;
  color: #94a3b8; /* Another subtle gray */
  font-size: 14px;
}

.education-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* ------------------contact me section---------------------- */

.contact-section {
  width: 60%;
  margin: 20px auto;
  background: var(--bg-color);
  padding: 40px;
  border: 1px solid blueviolet;
  box-shadow: rgba(150, 56, 171, 0.25) 0px 4px 24px;
  border-radius: 8px;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-color);
}

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

.contact-form .form-group {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
}

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

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid rgba(211, 211, 211, 0.6);
  border-radius: 4px;
  font-size: 1rem;
  background-color: rgb(255, 255, 255);
  color: black !important;
}


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

.contact-form button {
  padding: 15px 30px;
  border: none;
  background: linear-gradient(to right, blueviolet, plum);
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 700px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  color: var(--bg-color) !important;
}


/* ---------------Footer--------------- */

.footer {
  background-color:var(--bg-color);
  color:var(--text-color);
  padding: 20px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Individual sections styling */
.footer-section {
  margin: 10px 0;
}

/* Social icons styling */
.footer-section.social-icons a {
  margin: 0 10px;
  display: inline-block;
}

.footer-section.social-icons img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: transform 0.3s;
  background: transparent;
}

.footer-section.social-icons img:hover {
  transform: scale(1.2);
}

/* -------------Media query -------------*/

@media screen and (max-width: 425px){
    .contentcontainer{
        width: 100%;
    }
    .contentcontainer h1{
        font-size: 26px !important;
    }
    .contentcontainer h2{
        font-size: 20px;
    }
    .contentcontainer p{
        font-size: 16px;
    }
    .typed-out{
        font-size: 20px;
    }
}

@media screen and (max-width: 1024px){
    .skill-grid{
        grid-template-columns: 1fr;
        justify-content: center;
    }
    .skill-card{
        width: 100%;
    }
}

@media screen and (max-width: 450px){
    .typed-out {
        animation: none;
    }
}


@media screen and (max-width: 450px){
    .photoholder{
        width: 150px !important;
        height: 150px !important;
        display: flex;
        justify-content: center;
        align-items: center;
        border: none;
    }

    .photo{
        width: 150px !important;
        height: 150px !important;
        border: 2px solid blueviolet;
        border-radius: 100px;
    }
    
}


@media screen and (max-width: 1024px){
    .part1{
        /* flex-direction: column; */
        flex-wrap: wrap;
        flex-grow: 1;
    }
}

@media (max-width: 480px) {
    .experience-title
    .skill-title {
      font-size: 1.1rem;
    }
    .experience-card 
    .skill-card{
      padding: 1rem;
    }
    .experience-icon {
      min-width: 35px;
      height: 35px;
      font-size: 0.9rem;
    }
  }

  /* Use two-column layout for cards on medium to large screens */
  @media (min-width: 769px) and (max-width: 1024px) {
    .experience-cards {
      display: grid;
      grid-template-columns: repeat(1fr);
      gap: 1.5rem;
    }
    /* Adjust the card layout inside each grid cell if needed */
    .experience-card {
      flex-direction: column;
      align-items: flex-start;
    }
    .experience-icon {
      margin-bottom: 1rem;
    }
  }

  @media (max-width: 769px) {
    .experience-cards {
      padding: 20px;
    }
    .skill-title{
      font-size: 1.25em;
    }
    .descrip{
      font-size: 20px;
    }
  }

  /* Default: Show full navbar on larger screens */
  .navbar2 {
    display: flex;
    justify-content: space-between;
    gap: 25px;
  }
  
  /* Hide the hamburger button by default */
  .menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }
  
  /* Responsive: When viewport is less than 769px */
  @media screen and (max-width: 769px) {
    /* Hide the entire profile container on mobile */
    .profile {
      display: none;
    }
  
    /* Hide the nav links until toggled */
    .navbar2 {
      display: none;
      flex-direction: column; /* Optional: stack links vertically when shown */
      background-color: var(--bg-color);
      position: absolute;
      top: 70px; /* adjust based on your header height */
      left: 0;
      width: 100%;
      padding: 10px;
    }
  
    /* When active (toggled by JS), display the nav links */
    .navbar2.active {
      display: flex;
      justify-content: space-between;
      box-shadow: 0 4px 15px rgba(0, 0, 14, 0.25);
    }

    .navbar2 a {
      text-align: center;
    }
    
    .navbar2 a:last-child{
      color: blueviolet;
      padding: 10px 15px;
      border: 2px solid blueviolet;
      border-radius: 25px;
      text-decoration: none;
  }
  .navbar2 a:last-child:hover{
      cursor: pointer;
      box-shadow: 0px 2px 5px 2px rgb(133, 98, 133);
      color: white;
      background-color: rgb(182, 122, 238)
  }

    /* Show and reposition the hamburger menu button */
    .menu-toggle {
      display: block;       /* Ensure it’s visible */
      margin-left: auto;    /* Push it to the right */
      font-size: 28px;
      background: none;
      border: none;
      color: white;
      cursor: pointer;
    }
  }
  
  /* Responsive Media Query */
@media (max-width: 769px) {
  .modal-content {
    width: 90%;
    padding: 15px;
  }
  
  .project-info h3 {
    font-size: 1.3rem;
  }
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .contact-section {
    width: 90%;
    padding: 20px;
  }
  .contact-form .form-group {
    flex: 1 1 100%;
  }
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    box-sizing: border-box;
  }
}