body {
  margin: 0;
  background-color: #000;
  color: #fff;
  height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  
}



/* Header */
body {
  margin: 0;
  background-color: #000;
  color: #fff;
  height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  
}


header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  z-index: 999; /* <-- add this */
  background-color: #000; /* ensure it's not transparent */
}



nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #bbb;
  font-size: 14px;
  transition: color 0.3s ease;
  
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInNav 0.6s ease forwards;
}
nav a:nth-child(1) { animation-delay: 0.3s; }
nav a:nth-child(2) { animation-delay: 0.4s; }
nav a:nth-child(3) { animation-delay: 0.5s; }
nav a:nth-child(4) { animation-delay: 0.6s; }
@keyframes fadeInNav {
  to {
    opacity: 1;
  }
}

nav a:hover {
  color: #b36aff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 18px;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.logo-text {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
  transition: all 0.3s ease;
  z-index: 1;
  position: relative;
}

.logo:hover .logo-text {
  opacity: 1;
  color: #b36aff;
  transform: translateX(2px);
}

.logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(179, 106, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.logo:hover::before {
  left: 100%;
}

.logo:hover {
  background-color: rgba(179, 106, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(179, 106, 255, 0.2);
}

.triangle {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid #b36aff;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.logo:hover .triangle {
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(179, 106, 255, 0.4);
  }
  50% { 
    box-shadow: 0 0 0 8px rgba(179, 106, 255, 0);
  }
}

.logo {
  animation: pulse 2s infinite;
}

/* Mobile responsive - hide home text on small screens */
@media (max-width: 768px) {
  .logo-text {
    display: none;
  }
  
  .logo {
    padding: 8px;
  }
}

.about-container {
  max-width: 960px;
  margin: auto;
  padding: 100px 20px;
  text-align: center;
  animation: fadeSlideIn 1s ease forwards;
  position: relative;
  z-index: 1;
}


@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-container h1 {
  font-size: 26px;
  margin-bottom: 20px;
  color: #b36aff;
  border-bottom: 2px solid #b36aff;
  display: inline-block;
  padding-bottom: 5px;
}

.about-container .intro {
  color: #aaa;
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.card {
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(179, 106, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInCard 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }


@keyframes fadeInCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(179, 106, 255, 0.2);
}

.card img {
  width: 100%;
  display: block;
  height: auto;
}

.card-text {
  padding: 20px;
}

.card-text h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 18px;
}

.card-text p {
  color: #ccc;
  font-size: 14px;
}

.card-text a {
  color: #b36aff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.card-text a:hover {
  color: #d4a5ff;
  text-decoration: underline;
}

/* Experience Timeline Styles */
.experience-timeline {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.experience-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 20px 24px;
  border: 1px solid rgba(179, 106, 255, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInCard 0.4s ease forwards;
}

.experience-item:nth-child(1) { animation-delay: 0.2s; }
.experience-item:nth-child(2) { animation-delay: 0.3s; }
.experience-item:nth-child(3) { animation-delay: 0.4s; }
.experience-item:nth-child(4) { animation-delay: 0.5s; }

.experience-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(179, 106, 255, 0.15);
  border-color: rgba(179, 106, 255, 0.3);
}

.experience-content {
  flex: 1;
  min-width: 0;
}

.experience-content h3 {
  margin: 0 0 10px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.experience-content p {
  margin: 12px 0 0 0;
  color: #ccc;
  font-size: 14px;
  line-height: 1.6;
}

.experience-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background-color: #0f0f0f;
  border: 1px solid rgba(179, 106, 255, 0.1);
  transition: all 0.3s ease;
}

.experience-item:hover .experience-image {
  border-color: rgba(179, 106, 255, 0.3);
  transform: scale(1.05);
}

.experience-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  filter: grayscale(30%) brightness(90%);
  transition: all 0.3s ease;
}

.experience-item:hover .experience-image img {
  filter: grayscale(0%) brightness(100%);
}

/* Books section */
.books {
  background-color: #111;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(179, 106, 255, 0.1);
  max-width: 600px;
  margin: auto;
  animation: fadeSlideIn 1s ease forwards;
}

.books h2 {
  color: #b36aff;
  margin-bottom: 10px;
}

.books p {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 20px;
}

.goodreads-btn {
  background-color: transparent;
  color: #b36aff;
  border: 1px solid #b36aff;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.goodreads-btn:hover {
  background-color: #b36aff;
  color: #000;
  box-shadow: 0 0 10px rgba(179, 106, 255, 0.3);
  transform: scale(1.05);
}

.section-block {
  margin-bottom: 80px;
}

.section-title {
  font-size: 26px;
  color: #b36aff;
  margin-bottom: 20px;
  border-bottom: 2px solid #b36aff;
  display: inline-block;
  padding-bottom: 5px;
}
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-container h1 {
    font-size: 28px;
  }

  .about-container .intro {
    font-size: 14px;
  }

  .card-text h2 {
    font-size: 16px;
  }

  .card-text p {
    font-size: 13px;
  }

  .books {
    padding: 20px;
  }

  .section-title {
    font-size: 20px;
  }

  .experience-item {
    flex-direction: column;
    padding: 16px 20px;
    gap: 16px;
  }

  .experience-image {
    width: 100px;
    height: 100px;
    align-self: flex-end;
  }

  .experience-content h3 {
    font-size: 16px;
  }

  .experience-content p {
    font-size: 13px;
  }
}
.about-me-box.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #1a1a1a;
  padding: 30px 40px;
  border-radius: 14px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(128, 0, 128, 0.1);
  color: white;
  font-family: Arial, sans-serif;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-me-box.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(179, 106, 255, 0.2);
}

/* Left side text */
.about-text {
  max-width: 70%;
  text-align: left;
}

.school-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap; /* keeps it responsive */
}

.school-label {
  margin: 0;
  font-weight: 500;
  font-size: 1.1rem;
  color: #c8a2ff;
  transition: color 0.3s ease;
  cursor: pointer;
}

.school-label:hover {
  color: #b266ff;
  text-decoration: none;
}

.school-logo {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain;
  filter: grayscale(100%) brightness(80%);
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInScale 0.6s ease forwards;
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.school-logo:hover {
  transform: scale(1.1);
  opacity: 1;
  filter: grayscale(0%) brightness(100%);
}

.location {
  font-weight: 600;
  font-size: 1rem;
}
.about-text h2 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #b36aff;
}
@keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.about-pic img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
}

.bio {
  margin-top: 15px;
  font-size: 1rem;
  line-height: 1.5;
  color: #ddd;
  text-align: left;
}

.resume-links {
  margin-top: 12px;
}

.resume-item {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.resume-label {
  color: #aaa;
  margin-right: 6px;
}

/* Purple highlight styles for key words */
.highlight {
  color: #b36aff;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.highlight:hover {
  color: #d4a5ff;
  text-shadow: 0 0 8px rgba(179, 106, 255, 0.4);
  transform: scale(1.05);
}

/* Resume Link */
.resume-link {
  color: #b36aff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.resume-link:hover {
  color: #c285ff;
  text-decoration: underline;
}

/* Job Details Styles */
.job-details {
  color: #888;
  font-size: 0.85em;
  margin: 8px 0 12px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 26, 26, 0.6);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(179, 106, 255, 0.15);
  transition: all 0.3s ease;
}

.job-icon {
  font-size: 1em;
  color: #b36aff;
  opacity: 0.9;
}

.date {
  color: #b36aff;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.job-separator {
  color: #666;
  margin: 0 4px;
}

.location {
  color: #aaa;
  font-weight: 400;
}

.company-name {
  color: #999;
  font-size: 0.9em;
  font-weight: 400;
  margin-top: 4px;
  margin-bottom: 8px;
}

.job-details:hover {
  border-color: rgba(179, 106, 255, 0.3);
  background: rgba(26, 26, 26, 0.8);
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .job-details {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    width: fit-content;
    max-width: 100%;
  }

  .job-details .job-icon {
    font-size: 0.9em;
  }

  .job-details .date,
  .job-details .location {
    font-size: 0.8em;
    white-space: nowrap;
  }

  .job-separator {
    display: inline;
    margin: 0 2px;
  }

  .job-duration::after,
  .job-location::after {
    display: none;
  }
}

.description-container {
  min-height: 80px;
  margin: 12px 0;
}

.description-container p {
  margin: 0;
  line-height: 1.5;
}



