body {
    background-image: url('https://assets.zyrosite.com/A85wybJZ5QS5b5ay/white-grid-background-edited-Aq2vy9E7lvHx57PV.JPG');
    background-size: cover;
    background-position: center center; 
    background-repeat: no-repeat;
    background-attachment: fixed; 
    position: relative;
    z-index: 1; 
    font-family: 'Lato', sans-serif;
    margin: auto;
    padding-top: 70px;
    padding-bottom: 70px;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(0 0 0 / 40%); /* Adjust opacity by changing the last value (0.5) */
  z-index: -1; /* Ensures the overlay stays behind other content */
}

/* Main Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8); /* Transparent initially */
    padding: 5px 1px;
    transition: background 0.3s ease-in-out;
    z-index: 1000;
    font-family: 'Lato', sans-serif;
}

.main-header.scrolled {
    background: rgba(0, 0, 0, 0.8); /* Darker background on scroll */
}

.menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5em;
  cursor: pointer;
  display: none; 
  padding: 0;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.nav-links a {
    margin-right: 20px;
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #d9534f; /* Accent color */
}

@media (max-width: 768px) {
  .main-nav {
      display: none; /* Hide the navigation menu by default */
      position: absolute;
      background: rgba(0, 0, 0, 0.8);
      border-radius: 0px 0px 8px 8px;
      top: 100%;
      left: 0;
      width: 100%;
      box-shadow: 0px 4px 6px 3px #d9534fbd;
  }

  .nav-links a {
      padding: 5px 0px;
  }

  .menu-toggle {
      display: block; /* Show the menu toggle button on mobile */
  }

  .main-nav.active {
      display: block; /* Show the navigation when the menu is active */
  }
}

.social-icons a {
    margin-left: 20px;
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #d9534f; /* Accent color */
}


/* Projects Page */
  .projects-section {
    padding: 0 50px;
    max-width: 85vw;
    margin: auto;
  }

  .projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-evenly;
    align-items: center;
    align-content: space-around
  }

  .project-card {
    background: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, .15);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative
  }

  .project-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2)
  }

  .project-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  .card-link {
    text-decoration: none;
    color: inherit;
    display: block
  }

  .project-card:hover .card-link {
    text-decoration: none
  }

  .project-info {
    padding: 10px;
    text-align: left;
    flex-grow: 1;
  }

  .project-info h3 {
    font-size: 1.4rem;
    margin-top: 5px;
    margin-bottom: 10px;
    text-align: center;
    color: #d9534f;
  }

  .project-info p {
    font-size: 1.1rem;
    color: #333333;
    line-height: 1.3; 
    text-align: center;
  }

  .project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .95rem;
    color: #333333;
    flex-wrap: wrap;
    position: relative; 
    margin-top: 10px;
  }

  .category,
  .study-area {
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 4px;
  }

  .category {
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 4px;
    color: #9933FF;
    box-shadow: 0 2px 5px #9933FF;
    margin-right: auto;
  }

  .study-area-meta {
    display: flex;
    justify-content: start;
    gap: 10px;
    width: 100%;
    padding-bottom: 10px;
  }

  .project-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .study-area {
    color: #D4A373;
    box-shadow: 0 2px 5px #D4A373;
  }

  .tech-icons {
    margin-left: auto;
    display: flex;
    gap: 10px;
  }

  .project-card:nth-child(1) {
    flex-basis: 700px
  }

  .project-card:nth-child(2) {
    flex-basis: 600px
  }

  .project-card:nth-child(3) {
    flex-basis: 700px
  }

  .project-card:nth-child(4) {
    flex-basis: 500px
  }

  .project-card:nth-child(5) {
    flex-basis: 400px
  }

  .project-card:nth-child(6) {
    flex-basis: 700px
  }

  .project-card:nth-child(7) {
    flex-basis: 400px
  }

  .project-card:nth-child(8) {
    flex-basis: 400px
  }

  .project-card:nth-child(9) {
    flex-basis: 500px
  }

  .project-card:nth-child(10) {
    flex-basis: 400px
  }

  

  .tech-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px
  }

  .tech-icons i {
    font-size: 1.5rem;
    color: #333;
    transition: color .3s ease, transform .3s ease;
    cursor: pointer;
  }

  .tech-icons i:hover {
    color: #d9534f;
    transform: translateY(-3px)
  }

  .filter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 30px 0px;
  }

  .filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center
  }

  .filter-row::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #d9534f;
    margin: 20px 0;
  }

  .filter-btn {
    background-color: #f5f5f5;
    color: #333;
    padding: 10px 18px;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: .95rem;
    font-weight: 500;
    text-transform: capitalize;
    transition: all .3s ease;
    cursor: pointer;
    letter-spacing: .5px;
  }

  .filter-btn:hover {
    background-color: #d9534f;
    color: #fff;
    border-color: #d9534f;
  }

  .filter-btn.active {
    background-color: #d9534f;
    color: #fff;
    border-color: #d9534f;
  }

  .filter-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap
  }

  #projectModal {
    position: fixed;
    top: 0;
    left: 0;
    /*width: 60%;*/
    max-width: 60vw;
    height: 100vh;
    background-color: #F5F5F5;
    padding: 10px;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 1001;
  }

  @media (max-width: 768px) {
    .filter-btn {
      padding: 8px 14px;
      font-size: .85rem;
    }

    #projectModal {
      max-width: 100vw;
    }
  }

  .github-link {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f5f5f5;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    transition: background-color .3s ease, transform .3s ease;
    z-index: 2;
  }

  .github-link i {
    font-size: 1.5rem;
    color: #333;
  }

  .github-link:hover {
    background-color: #d9534f;
    transform: scale(1.1);
  }

  .github-link:hover i {
    color: #fff
  }

  .project-details {
    display: none;
    padding: 20px;
    background-color: #f5f5f5;
    border-top: 1px solid #e6e6e6;
  }

  .project-card.active .project-details {
    display: block;
  }

  /* Modal basic styles */
  /* When the modal is active, slide it into view */
  #projectModal.active {
    left: 0;
    /* Bring it fully into view */
  }

  .modal-content {
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .modal-header {
    display: flex;
    justify-content: flex-start;
    padding: 15px 20px;
    border-bottom: 2px solid #ddd;
  }

  .close-modal-btn {
    background: none;
    border: none;
    color: #d9534f;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .close-modal-btn:hover {
    color: #d9534f;
  }

  .close-modal-btn:hover i {
    transform: translateX(-5px);
  }

  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  /* Hidden class for the overlay */
  .modal-overlay.hidden {
    display: none;
  }

  .modal-title {
    font-size: 1.5rem;
    margin-top: 15px;
    margin-bottom: 15px;
    color: #d9534f;
    text-align: center;
  }

  .modal-project-meta {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .project-duration {
    text-align: center;
    font-size: 0.9rem;
    color: #333;
    background: linear-gradient(145deg, #fff -50%, #D4A373 100%);
    border-radius: 20px;
    display: inline-block;
    padding: 4px 12px;
    cursor: default;
  }

  .project-link {
    background: linear-gradient(145deg, #333 0%, #D4A373 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  .download-link {
    background: linear-gradient(145deg, #d9534f 0%, #333 100%);
    box-shadow: 0 4px 10px rgba(217, 83, 79, 0.4);
  }

  .project-link:hover,
  .download-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    background-position: 100% 100%;
  }

  .modal-extra-text {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
  }

  @keyframes slide-down {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
  }


.modal-section-header {
    color: #d9534f;
    padding: 8px 0px;
    border-bottom: 2px solid #ddd;
    margin: auto;
}

.modal-section-header.hidden{
  display: none;
}

  .modal-video-container {
      margin: 15px 0;
      display: flex;
      flex-direction: column;
      gap: 10px;
  }

  .modal-video {
      width: 100%;
      max-height: 400px;
      border-radius: 8px;
      outline: none;
  }

  .modal-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin: 15px 0px;
}

.carousel {
    display: flex;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

.carousel-inner {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    height: auto;
    transition: opacity 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
  max-width: 100%; /* Ensures images fit within their container */
  max-height: 40vh; /* Keeps images from being too tall */
  object-fit: contain; /* Ensures images maintain aspect ratio */
  border-radius: 8px 8px 0px 0px;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 50%;
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-info {
  flex: 1;
  overflow-y: auto;
}

  .footer-bar {
    display: flex;
    flex-flow: column;
    gap: 10px;
    justify-content: space-evenly;
    border-top: 2px solid #ddd;
    padding: 15px 20px;
  }

  .footer-bar a {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    transition: all 0.3s ease;
    flex-grow: 1;
    text-align: center;
    /* margin: 0 10px; */

  }

  .tech-tags {
    margin-top: 15px;
    margin-bottom: 15px;
    /* Adds space between tags and the text */
    display: flex;
    gap: 8px;
    /* Space between each tag */
    justify-content: center;
    /* Center-align tags */
    flex-wrap: wrap;
  }

  .tech-tag {
    background: linear-gradient(135deg, #D4A373, #d9534f);
    color: #fff;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
  }

  /* .tech-tag:hover {
    transform: translateY(-3px);
    cursor: default;
  } */




  /* Timeline Section */

  .section {
    margin-bottom: 40px;
    padding: 5px;
    border-radius: 5px;
    background-color: #f5f5f5eb;
    box-shadow: 0px 0px 19px 4px rgb(0 0 0 / 57%);
    transition: transform 0.2s, box-shadow 0.2s;
}

.section-title {
    font-size: 1.8em;
    font-weight: 500;
    margin-top:5px;
    margin-bottom: 10px;
    color: #D9534F;
    text-align: left;
}

  .timeline-section {
    position: relative;
    width: 100%;
    margin: auto;
}

.timeline {
    position: absolute;
    top: -10px;
    bottom: 0px;
    left: 25px;
    width: 2px;
    background-color: #D9534F;
}

.timeline-point {
    position: absolute;
    left: 7px;
    top: 30px;
    width: 14px;
    height: 14px;
    background: linear-gradient(45deg, #D9534F);
    border: 2.5px solid #D9534F;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: background 0.3s, transform 0.3s;
}

.experience-card, .education-card {
    position: relative;
    margin: 0px 10px;
    margin-bottom: 20px;
    padding: 20px 30px;
    border-radius: 8px;
    background-color: #F5F5F5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.experience-card:hover, .education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* .experience-card:hover .timeline-point, .education-card:hover .timeline-point {
    box-shadow: 0 0 15px #D9534F, 0 0 25px #9933FF;
    transform: translateY(-50%) scale(1.1);
} */

.experience-header, .education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-title, .degree-title {
    font-size: 1.1em;
    font-weight: 500;
    color: #D9534F;
}

.company-location {
    font-weight: 400;
    font-style: italic;
    color: #333333;
}

.institution-location {
  font-weight: 400;
  font-style: italic;
  color: #333333;
}

.duration {
    font-size: 0.9em;
    color: #9933FF;
}

.description {
    font-size: 0.95em;
    line-height: 1.6;
    color:#333333;
}

.cyber-bullets {
    padding-left: 30px;
}

.cyber-bullets li {
    position: relative;
    margin: 10px 0;
    font-size: 1.1em;
    line-height: 1.6em;
}

/* Minimalist Skills Section */
#skills {
    background-color: #F5F5F5; /* Subtle off-white background */
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0px 0px 19px 4px rgb(0 0 0 / 57%);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 40px;
}

.skills-container {
  padding: 20px 30px;
  position: relative;
  display: flex;
  flex-flow: wrap;
  padding-top: 0px;
  flex-direction: column;
  align-items: flex-start;
}

/* Title adjustments */
.skill-category h3 {
    font-size: 1.2em; /* Reduced size for titles */
    font-weight: 500; /* Lighter weight for more subtle look */
    color: #D9534F; /* Dark gray */
    margin-bottom: 10px;
    border-bottom: 1px solid #D9534F; /* Subtle divider under title */
    padding-bottom: 5px;
}

/* Skill list container */
.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Individual skill item */
.skill-item {
    font-size: 1.1em;
    color: #333333;
    background-color: #FFFFFF;
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgb(0 0 0 / 42%);
    transition: background-color 0.3s ease, color 0.3s cubic-bezier(0.25, 1.02, 0.25, 1), transform 0.3s ease;
    cursor: default;
}

/* Progress bar styles for skill proficiency */
.progress-bar {
    position: relative;
    height: 6px;
    width: 100%;
    background-color: #F5F5F5;
    border-radius: 10px;
    margin-top: 8px;
}

.progress {
    height: 100%;
    background-color: #688E26;
    border-radius: 10px;
}

@media (max-width: 768px) {
  .timeline-point {
      display: none;
  }

  .experience-card, .education-card {
    padding: 20px 10px;
  }
  
}

