/* ====================================== */
/* ABOUT PAGE SPECIFIC STYLES             */
/* ====================================== */

/* Profile Picture & Explosion Animation */
.profile-pic {
  width: clamp(10rem, 30vw, 15rem);
  height: clamp(10rem, 30vw, 15rem);
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 2rem auto;
  border: 0.2rem solid #e0e0e0;
  box-shadow: 0 0 1rem #8e8e8e;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-wrapper {
  position: relative;
  width: clamp(10rem, 30vw, 15rem);
  height: clamp(10rem, 30vw, 15rem);
  margin: 2rem auto;
}

.explosion-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 2;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 10%;
  height: 10%;
  background-image: url('../images/jayrao.png');
  background-size: 1000% 1000%;
  border-radius: 50%;
  will-change: transform, opacity;
}

/* Education Card */
.education-card {
  /* Inherits from section.card in shared */
}

.edu-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 1rem;
}

.edu-logo img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  background-color: #fff;
  border-radius: 0.5rem;
  padding: 0.2rem;
}

.edu-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.edu-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edu-header-row h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
}

.edu-date {
  color: #888;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.edu-degree {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.edu-degree h4 {
  margin: 0;
  font-size: 1.2rem;
  color: #e0e0e0;
  font-weight: 500;
}

.badge-concentration {
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.edu-courses {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #ccc;
}

.edu-courses strong {
  color: #fff;
}

/* Skills Carousel */
.carousel {
  overflow: hidden;
  position: relative;
  height: 6rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: scrollRightToLeft 25s linear infinite;
}

.carousel.right-to-left .carousel-track {
  animation: scrollRightToLeft 25s linear infinite;
}

.carousel.left-to-right .carousel-track {
  animation: scrollLeftToRight 25s linear infinite;
}

@keyframes scrollRightToLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollLeftToRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 0.3rem;
  width: 6rem; 
  flex-shrink: 0;
}

.skill-item img {
  height: 4rem;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.skill-item img:hover {
  transform: scale(1.15);
}

.skill-label {
  font-size: 0.9rem;
  color: #e0e0e0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
}

.skill-item:hover .skill-label {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 0.4rem;
  border: 1px solid #333;
  background-color: #1f1f1f;
  color: #fff;
  font-size: 1rem;
  box-sizing: border-box;
  font-family: inherit;
}

.contact-form button {
  background-color: #e0e0e0;
  color: #121212;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #121212;
  color: #e0e0e0;
}

#message {
  resize: none;
  overflow-y: auto;
}

#form-status {
  opacity: 0;
  transition: opacity 0.8s ease;
  text-align: center;
  margin-top: 1rem;
  font-weight: bold;
}

button.slide-out {
  animation: slideOutRight 0.4s ease forwards;
}

button.slide-in {
  animation: slideInLeft 0.4s ease forwards;
}

@keyframes slideOutRight {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(150%); opacity: 0; }
}

@keyframes slideInLeft {
  0% { transform: translateX(-150%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* Mobile Responsive */
@media screen and (max-width: 600px) {
  .edu-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .edu-logo img {
    width: 4rem;
    height: 4rem;
  }

  .edu-header-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
  }

  .edu-degree {
    justify-content: center;
    gap: 0.5rem;
  }
}

@media screen and (max-width: 768px) {
  .carousel-track,
  .carousel.right-to-left .carousel-track,
  .carousel.left-to-right .carousel-track {
    animation: none !important;
    width: max-content;
    padding: 0 1rem;
    gap: 0rem;
  }

  .carousel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    mask-image: none;
    -webkit-mask-image: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .carousel::-webkit-scrollbar {
    display: none;
  }

  .skill-item {
    scroll-snap-align: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
  }
}
