.tech-stack-section {
  width: 750px;
  min-height: 500px;
  max-width: 260px;
  padding: 24px 16px;
  position: absolute;
  top: 120px;
  right: 60px;
  background: #181818;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}
.tech-stack-section {
  background: rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 20px 18px 18px 18px;
  min-width: 320px;
  max-width: 420px;
  margin: 40px auto 32px auto;
  box-shadow: 0 4px 24px 0 rgba(31,38,135,0.10);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tech-stack-section h2 {
  font-size: 1.3em;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}

.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  justify-items: center;
}

.tech-skill-card {
  background: rgba(255,255,255,0.13);
  border-radius: 12px;
  padding: 12px 6px 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  width: 90px;
  min-height: 90px;
}

.tech-skill-card img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-bottom: 6px;
}

.tech-skill-card p {
  font-size: 0.98em;
  color: #fff;
  margin: 0;
  text-align: center;
}
.about-tech-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 60px;
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  width: 80vw;
  z-index: 2;
}

/* Tech Stack Section */
.tech-stack-section {
  background: rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 32px 28px 24px 28px;
  min-width: 220px;
  box-shadow: 0 4px 24px 0 rgba(31,38,135,0.10);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tech-stack-section h2 {
  font-size: 1.6em;
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: 1px;
}

.tech-stack-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15em;
}

.tech-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #091413;
}

/* All navigation views share the same centered panel geometry. */
.tech-stack-section,
.projects-section,
.experience-section {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  width: min(760px, 86vw) !important;
  min-width: 0 !important;
  max-width: 760px !important;
  min-height: 500px !important;
  margin: 0 !important;
  padding: 32px 28px 24px !important;
  transform: translate(-50%, -50%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 18px;
  align-items: center;
}

.background {
  display: none;
}

/* Projects and experience are temporarily removed from the minimal layout. */
.projects-section,
.experience-section {
  display: none;
}

/* Keep the minimal layout flat and free of decorative panel treatments. */
div,
section {
  box-shadow: none !important;
}

.header,
.tech-stack-section,
.tech-skill-card,
.footer-social {
  background: transparent !important;
  box-shadow: none !important;
}

.footer-social {
  display: none;
}


.header {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
  background: rgba(255, 255, 255, 0.08);
  padding: 15px 40px;
  border-radius: 20px;
  width: auto;
  max-width: 98vw;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.header-link {
  color: white;
  text-decoration: none;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

.header-link i {
  margin-right: 8px;
  font-size: 1.5em;
}

.header-link:hover {
  color: #00ffff;
}

.header > a {
  display: none;
}

.header-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.header-link.active {
  color: #00ffff;
}

.tech-stack-section,
.projects-section,
.experience-section {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.projects-section,
.experience-section {
  display: none;
}

.projects-section.active,
.experience-section.active,
.tech-stack-section.active {
  display: flex;
}

.resume-details {
  display: grid;
  gap: 16px;
  max-width: 760px;
  color: #ddd;
  line-height: 1.45;
}

.resume-details p {
  margin: 0;
}

.resume-details strong {
  color: #fff;
}

.about-container {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}


.profile-img {
  width: 198px;
  height: 198px;
  object-fit: cover;
  border-radius: 50%;
  border: none;
  margin-top: 40px;
  display: block;
  -webkit-mask-image: radial-gradient(circle, #000 70%, transparent 100%);
  mask-image: radial-gradient(circle, #000 70%, transparent 100%);
}

.about-text {
  color: white;
  max-width: 500px;
  text-align: left;
}



.about-text h1 {
  font-size: 3em;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.about-text p {
  font-size: 1.2em;
  line-height: 1.5;
  color: #ddd;
}

.projects-section {
  margin-top: 110vh; /* Pushes it down by 1 full screen height */
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  color: white;
  text-align: center;
  padding-bottom: 80px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 48px 0 32px 0;
  margin-top: 80px;
}

.footer-social a {
  color: #bbb;
  font-size: 1.5em;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social a:hover {
  color: #fff;
}

.projects-section h2 {
  font-size: 2.5em;
  margin-bottom: 70px;
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 18px;
  padding: 18px 400px 14px 400px;
  box-shadow: 0 4px 24px 0 rgba(31,38,135,0.10);
  font-weight: 800;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1.3fr);
  gap: 32px;
  justify-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 40px 40px;
  width: 100%;
  min-height: 90px;
  color: white;
  box-shadow: 0 2px 12px 0 rgba(31,38,135,0.07);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1em;
}

.project-card img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  margin-right: 28px;
  margin-bottom: 0;
  margin-top: -25px;
  border-radius: 12px;
  background: rgba(0,0,0,0.08);
}
.project-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Change from flex-end to flex-start */
  text-align: left;
}
.project-info .github-btn {
  align-self: flex-end;    /* This moves only the button to the right */
  margin-right: 40px;      /* Custom amount from the right edge */
}

.project-card h3 {
  margin-bottom: 12px;
  font-size: 1.08em;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
}

.project-card p {
  font-size: 0.92em;
  color: #ddd;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  margin-bottom: 0.5em;

}

.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  padding: 12px 15px;
  background: #24292e;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25em;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 4px 0 rgba(31,38,135,0.09);
}
.github-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  display: inline-block;
  vertical-align: middle;
}

.github-btn:hover {
  background: #0666d35e;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px 0 rgba(31,38,135,0.13);
}

.project-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.demo-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  padding: 12px 15px;
  background: #24292e;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25em;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 4px 0 rgba(31,38,135,0.09);
}

.demo-btn-main:hover {
  background: #0666d35e;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px 0 rgba(31,38,135,0.13);
}

.see-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: #24292e;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2em;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  box-shadow: 0 1px 4px 0 rgba(31,38,135,0.09);
}

.see-more-btn:hover {
  background: #0666d35e;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px 0 rgba(31,38,135,0.13);
  transform: translateY(-2px);
}

.learn-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  padding: 12px 15px;
  background: #24292e;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25em;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 4px 0 rgba(31,38,135,0.09);
}

.learn-more-btn img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  vertical-align: middle;
}

.learn-more-btn:hover {
  background: #0666d35e;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px 0 rgba(31,38,135,0.13);
}

.experience-section {
  margin-top: 80px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  color: white;
  text-align: center;
  padding-bottom: 80px;
}

.experience-section h2 {
  font-size: 2.5em;
  margin-bottom: 70px;
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 18px;
  padding: 18px 400px 14px 400px;
  box-shadow: 0 4px 24px 0 rgba(31,38,135,0.10);
  font-weight: 800;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.experience-grid {
  display: flex;
  flex-direction: column;
  /* more vertical spacing so the timeline is clearer */
  gap: 48px;
  justify-content: center;
  align-items: center;
}

/* Timeline styling for Experience section */
.experience-section .experience-grid {
  position: relative;
  /* center cards horizontally while keeping the timeline pinned to the left */
  align-items: center;
}

.experience-section .experience-grid::before {
  content: "";
  position: absolute;
  /* position timeline at the dot center: 50% - (cardWidth/2) + 24px */
  left: calc(50% - 400px + 24px);
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
}

.experience-section .project-card {
  position: relative;
  padding-left: 56px; /* space for the timeline dots */
}

.experience-section .project-card::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 32px; /* roughly aligned with title; can tweak */
  width: 16px;
  height: 16px;
  background: #87ceeb;
  border: 3px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(135, 206, 235, 0.15);
}

.experience-grid .project-card {
  width: 100%;
  max-width: 800px;
  /* ensure centering within the grid container */
  margin-left: auto;
  margin-right: auto;
}

.experience-grid .project-card img {
  width: 80px;
  height: 80px;
}

.tech-stack-section {
    padding: 60px 20px; /* Adjust padding as needed */
    text-align: center;
    color: white; /* Text color for the section title */
    max-width: 1200px; /* Limit width for larger screens */
    margin: 0 auto; /* Center the section */
}

.tech-stack-section h2 {
    font-size: 2.5em; /* Adjust size for "My Tech Stack" heading */
    margin-bottom: 40px;
    color: #fff; /* Ensure heading is white or your primary text color */
}

.tech-stack-grid {
    display: grid;
    /* Responsive Grid: */
    /* Auto-fit creates as many columns as fit, minmax sets min/max width for each */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px; /* Space between grid items */
    justify-items: center; /* Center cards horizontally within their grid cell */
    align-items: start; /* Align cards to the top of their grid cell */
}

.tech-skill-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for a subtle card background */
    border-radius: 8px; /* Slightly rounded corners */
    padding: 20px 15px; /* Padding inside the card */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%; /* Take full width of grid cell */
    max-width: 150px; /* Max width for each card if the grid cell is very large */
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out; /* Smooth hover effect */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
}

/* Project Detail Pages Styles */
.project-detail-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 20px 40px;
  color: #ffffff;
}

.project-detail-header {
  text-align: center;
  margin-bottom: 3rem;
}

.project-detail-logo {
  height: 80px;
  margin-bottom: 1rem;
}

.project-detail-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.project-subtitle {
  font-size: 1.2rem;
  color: #b0c4de;
  margin-bottom: 0;
}

.project-detail-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.project-detail-content section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 2rem;
}

.project-detail-content h2 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
}

.project-overview p {
  color: #f0f8ff;
  line-height: 1.7;
  font-size: 1.1rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.tech-item:hover {
  transform: translateY(-2px);
}

.tech-item img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.tech-item span {
  color: #f0f8ff;
  font-size: 0.9rem;
  text-align: center;
}

.project-features ul {
  list-style: none;
  padding: 0;
}

.project-features li {
  color: #f0f8ff;
  line-height: 1.6;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.project-features li::before {
  content: "→";
  color: #87ceeb;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.challenge-item {
  margin-bottom: 1.5rem;
}

.challenge-item:last-child {
  margin-bottom: 0;
}

.challenge-item h3 {
  color: #87ceeb;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.challenge-item p {
  color: #f0f8ff;
  line-height: 1.6;
}

.project-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.demo-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
}

.demo-btn:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
}

.action-btn img {
  height: 20px;
  width: 20px;
  object-fit: contain;
}

/* Responsive Design for Project Details */
@media (max-width: 768px) {
  /* Improve timeline spacing on smaller screens */
  .experience-section .experience-grid::before {
    /* align with dot center when cards shrink: dot center stays 24px from card's left */
    left: calc(50% - min(400px, 45vw) + 24px);
  }
  .experience-section .project-card {
    padding-left: 46px;
  }
  .project-detail-container {
    padding: 80px 15px 30px;
  }
  
  .project-detail-header h1 {
    font-size: 2rem;
  }
  
  .project-subtitle {
    font-size: 1rem;
  }
  
  .project-detail-content {
    gap: 2rem;
  }
  
  .project-detail-content section {
    padding: 1.5rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  
  .project-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .action-btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
}

.tech-skill-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    background-color: rgba(255, 255, 255, 0.1); /* Slightly brighter on hover */
}

.tech-skill-card img {
    width: 60px; /* Size of the icon */
    height: 60px;
    object-fit: contain; /* Ensure icon scales properly */
    margin-bottom: 10px;
}

.tech-skill-card p {
    color: #fff; /* Text color for tech name */
    font-size: 1em; /* Adjust font size */
    margin: 0; /* Remove default paragraph margin */
    font-weight: 500; /* Slightly bolder text */
}

@media (max-width: 768px) {
    .tech-stack-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Smaller cards on tablets */
        gap: 20px;
    }
    .tech-skill-card {
        padding: 15px 10px;
        max-width: 120px;
    }
    .tech-skill-card img {
        width: 50px;
        height: 50px;
    }
    .tech-stack-section h2 {
        font-size: 2em;
    }
}

.search-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: #250a03;
}

.search-page::before,
.search-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.search-page::before {
  position: fixed;
  inset: -12px 0;
  background: url("/assests/background.jpg") center / cover no-repeat;
  filter: blur(6px);
}

.search-page::after {
  position: fixed;
  inset: 0;
  background: rgba(37, 10, 3, 0.5);
}

.search-content {
  width: min(100%, 560px);
  margin: auto;
  text-align: center;
}

.search-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 24px;
  color: #fff;
  text-align: center;
}

.search-heading h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.search-subtext {
  margin: -12px 0 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

.contact-details {
  position: relative;
  left: 50%;
  display: flex;
  width: min(900px, calc(100vw - 32px));
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: -12px 0 24px;
  transform: translateX(-50%);
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
}

.copy-contact {
  cursor: pointer;
}

.copy-contact:hover,
.copy-contact:focus-visible {
  color: #fff;
}

.copy-contact:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
  border-radius: 2px;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: #fff;
}

.social-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

.social-link img,
.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link img {
  object-fit: contain;
}

.social-link svg {
  fill: currentColor;
}

.copy-status {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.copy-status.visible {
  opacity: 1;
}

.location-icon,
.contact-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}

.linkedin-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
  border-radius: 99px;
}

.search-form {
  width: 100%;
  margin-inline: auto;
}

.search-form input {
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  text-align: left;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.search-form input:focus {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

body.has-active-panel .search-page {
  display: block;
  min-height: 100vh;
  padding: 24px 24px 120px;
}

body.has-active-panel .search-content {
  width: 100%;
  text-align: left;
}

body.has-active-panel .search-content::after {
  content: "";
  position: fixed;
  z-index: 18;
  inset: auto 0 0;
  height: 240px;
  background: linear-gradient(to bottom, transparent, rgba(12, 8, 7, 0.68));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 42%);
  mask-image: linear-gradient(to bottom, transparent, #000 42%);
  pointer-events: none;
}

body.has-active-panel .search-heading,
body.has-active-panel .search-subtext,
body.has-active-panel .contact-details,
body.has-active-panel .copy-status {
  display: none;
}

body.has-active-panel .section-nav {
  position: fixed;
  z-index: 19;
  left: 50%;
  bottom: max(88px, calc(env(safe-area-inset-bottom) + 82px));
  width: min(560px, calc(100vw - 32px));
  justify-content: center;
  margin: 0;
  padding: 10px 0;
  transform: translateX(-50%);
  background: transparent;
  animation: prompt-dock-in 0.55s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

body.has-active-panel .section-nav-button {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
}

body.has-active-panel .search-form {
  transition: bottom 0.55s cubic-bezier(0.2, 0.75, 0.25, 1), transform 0.55s cubic-bezier(0.2, 0.75, 0.25, 1);
}

body.has-active-panel .portfolio-panels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.has-active-panel .chat-history {
  padding-bottom: 60px;
}

.section-nav[hidden] {
  display: none;
}

.user-prompt,
.agent-label {
  display: none;
}

.agent-identity {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

body.has-active-panel .user-prompt {
  display: block;
  align-self: flex-end;
  max-width: min(80%, 560px);
  margin: 0;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px 18px 4px 18px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  animation: chat-message-in 0.45s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.assistant-message {
  max-width: min(100%, 760px);
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  white-space: pre-wrap;
  animation: assistant-response-in 0.5s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.assistant-message-loading {
  color: rgba(255, 255, 255, 0.6);
}

.assistant-link-button {
  display: inline-flex;
  max-width: min(100%, 300px);
  align-items: center;
  gap: 10px;
  margin: 3px 6px 3px 0;
  padding: 6px 12px 6px 7px;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.077);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  color: #fff;
  text-decoration: none;
}

.assistant-link-button:focus-visible {
  outline: 2px solid rgba(145, 211, 255, 0.85);
  outline-offset: 3px;
}

.assistant-link-image {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 6px;
  object-fit: contain;
}

.assistant-link-image-pdf {
  width: 48px;
  height: 38px;
  flex-basis: 48px;
  border-radius: 6px;
  object-fit: cover;
  object-position: top;
}

.assistant-link-details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}

.assistant-link-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
}

.search-form input:disabled {
  cursor: wait;
  opacity: 0.7;
}

body.has-active-panel .portfolio-panel {
  padding: 8px 0 18px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  animation: assistant-response-in 0.6s 0.08s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

body.has-active-panel .agent-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

body.has-active-panel .agent-identity img {
  display: block;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  object-fit: cover;
}

body.has-active-panel .portfolio-panel article {
  border-color: rgba(255, 255, 255, 0.12);
  animation: assistant-response-in 0.5s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

body.has-active-panel .portfolio-panel article:nth-of-type(2) {
  animation-delay: 0.08s;
}

body.has-active-panel .portfolio-panel article:nth-of-type(3) {
  animation-delay: 0.16s;
}

body.has-active-panel .portfolio-panel article:nth-of-type(4) {
  animation-delay: 0.24s;
}

body.has-active-panel .search-form {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(560px, calc(100vw - 32px));
  transform: translateX(-50%);
  margin: 0;
  animation: search-bar-drop 0.55s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

body.has-active-panel .search-form input {
  background: rgba(25, 18, 17, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

body.has-active-panel .portfolio-panels {
  width: min(100%, 760px);
  margin: 24px auto 0;
  padding-bottom: 20px;
}

body.has-active-panel .portfolio-panel {
  scroll-margin-top: 24px;
}

.featured-projects {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: calc(100vw - 48px);
  margin: 0;
  transform: translateX(-50%);
  color: #fff;
  text-align: left;
}

.featured-projects h2 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.featured-projects-track {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  scrollbar-width: thin;
}

.featured-project-card {
  display: grid;
  flex: 0 0 min(380px, calc(100vw - 48px), 55vh);
  grid-template-columns: minmax(120px, 50%) minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(104px, 16vh, 144px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(20, 15, 20, 0.62);
  color: #fff;
  text-align: left;
  text-decoration: none;
  scroll-snap-align: start;
}

.featured-project-card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.featured-project-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  align-self: center;
}

.featured-project-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 10px;
}

.featured-project-type {
  color: #a9d9d2;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.featured-project-card h3 {
  font-size: 0.9rem;
  line-height: 1.3;
}

.featured-project-card p {
  flex: 1;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.74rem;
  line-height: 1.45;
}

.featured-project-link {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: #d7eee9;
  font-size: 0.7rem;
}

body.has-active-panel .featured-projects {
  display: none;
}

@media (max-height: 760px) {
  .search-page {
    gap: clamp(24px, 4vh, 32px);
  }

  .featured-projects {
    position: static;
    margin: 0 auto;
    transform: none;
  }
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
}

.section-nav-button {
  min-width: 0;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: clamp(0.75rem, 2.5vw, 0.9rem);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.section-nav-button:hover,
.section-nav-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-2px);
}

.section-nav-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.section-nav-button.active {
  border-color: rgba(255, 255, 255, 0.48);
  color: #fff;
}

body:not(.has-active-panel) .portfolio-panels {
  display: none;
}

.portfolio-panels {
  width: 100%;
  margin-top: 28px;
  padding-bottom: 18px;
  color: #fff;
  text-align: left;
}

.portfolio-panel {
  scroll-margin-top: 24px;
  scroll-margin-bottom: 24px;
}

.portfolio-panel[hidden] {
  display: none;
}

.portfolio-panel.active {
  animation: panel-slide-in 0.3s ease both;
}

.portfolio-panel h2 {
  margin-bottom: 14px;
  font-size: 1.15rem;
  text-align: center;
}

.portfolio-panel article {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.portfolio-panel .project-entry {
  display: grid;
  grid-template-columns: minmax(110px, 30%) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  border-top: 0;
}

.project-image,
.project-image-placeholder {
  display: block;
  width: 100%;
  min-height: 120px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
}

.project-image {
  object-fit: cover;
}

.project-image-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025));
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  text-align: center;
}

.project-image-placeholder span {
  padding: 10px;
}

.project-content {
  min-width: 0;
}

.portfolio-panel h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.portfolio-panel p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.85rem;
  line-height: 1.5;
}

.portfolio-panel .project-tech {
  margin: 3px 0 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
}

.portfolio-panel .project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.portfolio-panel .project-links a {
  color: #a9d9d2;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portfolio-panel .project-links a:hover,
.portfolio-panel .project-links a:focus-visible {
  color: #fff;
}

.portfolio-panel h3 .github-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 24px;
}

.portfolio-panel .github-link img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.timeline-panel {
  position: relative;
  padding-left: 28px;
}

#panel-hackathons {
  padding-left: 138px;
}

.timeline-panel h2 {
  text-align: left;
}

.timeline-panel article {
  position: relative;
  padding: 12px 0 12px 18px;
  border-top: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.28);
}

.timeline-panel article::before {
  content: "";
  position: absolute;
  top: 17px;
  left: -8px;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: #cbcbcb41;
}

.timeline-panel article:last-child {
  border-left-color: transparent;
}

.timeline-panel .timeline-date {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

#panel-hackathons .hackathon-entry {
  align-items: flex-start;
  padding-top: 38px;
}

#panel-hackathons .hackathon-entry .timeline-date {
  position: absolute;
  top: 12px;
  left: 18px;
  width: auto;
  margin: 0;
  text-align: left;
  white-space: nowrap;
}

#panel-hackathons .hackathon-entry > div {
  min-width: 0;
  flex: 1;
}

#panel-hackathons .hackathon-entry h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

#panel-hackathons .hackathon-entry p:not(.timeline-date) {
  font-size: 0.88rem;
  line-height: 1.45;
}

.timeline-panel .opportunity-timeline-entry,
.timeline-panel .hackathon-entry {
  display: flex;
  align-items: center;
  gap: 14px;
}

.timeline-panel .hackathon-entry {
  border-left-color: rgba(255, 255, 255, 0.28);
}

#panel-hackathons .hackathon-entry.award-highlight {
  margin: 8px 0;
  padding: 42px 16px 16px 18px;
  border: 1px solid rgba(255, 213, 125, 0.42);
  border-left: 3px solid #ffd27d;
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(255, 210, 125, 0.13), rgba(255, 255, 255, 0.035));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

#panel-hackathons .hackathon-entry.award-highlight::before {
  top: 17px;
  left: -8px;
  border-color: #ffe4ac;
  background: #d7a743;
  box-shadow: 0 0 12px rgba(255, 210, 125, 0.45);
}

#panel-hackathons .hackathon-entry.award-highlight h3 {
  color: #ffe2a6;
}

.timeline-panel .hackathon-entry > img,
.timeline-panel .hackathon-entry > a {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 12px;
}

.timeline-panel .hackathon-entry > a img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.timeline-panel .hackathon-entry > img {
  object-fit: cover;
}

@media (max-width: 600px) {
  #panel-hackathons {
    padding-left: 28px;
  }

  #panel-hackathons .hackathon-entry > img {
    width: 80px;
    height: 80px;
    flex-basis: 80px;
  }
}

.timeline-panel .opportunity-timeline-entry::before {
  display: none;
}

.opportunity-timeline-entry img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 12px;
  object-fit: cover;
}

.opportunity-timeline-entry > div {
  min-width: 0;
}

@keyframes panel-slide-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes prompt-dock-in {
  from { opacity: 0; transform: translate(-50%, 18px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes chat-message-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes search-bar-drop {
  from { opacity: 0.8; transform: translate(-50%, -28vh); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes assistant-response-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .section-nav-button,
  body.has-active-panel .search-form {
    transition: none;
  }

  .portfolio-panel.active,
  body.has-active-panel .section-nav,
  body.has-active-panel .search-form,
  body.has-active-panel .user-prompt,
  body.has-active-panel .portfolio-panel,
  body.has-active-panel .portfolio-panel article {
    animation: none;
  }
}

@media (max-width: 600px) {
  .portfolio-panel .project-entry {
    grid-template-columns: minmax(82px, 28%) minmax(0, 1fr);
    gap: 12px;
  }

  .project-image-placeholder {
    min-height: 92px;
    font-size: 0.68rem;
  }
}

@media (max-width: 480px) {
  /* on small phones, keep the line near the left edge */
  .experience-section .experience-grid::before {
    left: 18px;
  }
  .experience-section .project-card {
    padding-left: 50px;
  }
    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
        gap: 15px;
    }
    .tech-skill-card {
        max-width: none; /* Allow cards to take up available width */
    }
    .tech-skill-card img {
        width: 45px;
        height: 45px;
    }
}
