/*-----------------------------------*\
  #PORTFOLIO IMPROVEMENTS
\*-----------------------------------*/

/* Currently Learning Section */
.currently-learning {
  margin-bottom: 35px;
}

.learning-title {
  margin-bottom: 20px;
}

.learning-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.learning-item {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.learning-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.learning-icon-box {
  margin-top: 5px;
}

.learning-icon-box img {
  margin: auto;
}

.learning-content-box {
  flex: 1;
}

.learning-item-title {
  margin-bottom: 7px;
}

.learning-item-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}



/* Contact Form Improvements */
.form-subtitle {
  color: var(--light-gray-70);
  font-size: var(--fs-7);
  margin-bottom: 20px;
  text-align: center;
}

.form-messages {
  margin-bottom: 20px;
}

.message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: var(--fs-7);
  margin-bottom: 10px;
}

.success-message {
  background: rgba(16, 185, 129, 0.1);
  color: var(--white-2);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.success-message ion-icon {
  color: #10b981;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  color: var(--white-2);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.error-message ion-icon {
  color: #ef4444;
}

/* Loading state for submit button */
.form-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-btn.loading #submit-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (min-width: 580px) {
  .learning-item {
    padding: 30px;
  }
  

}

/* Tech Stack Badges */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tech-badge {
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: var(--fs-8);
  font-weight: var(--fw-500);
  white-space: nowrap;
}

/* Blog Tags */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.blog-tag {
  background: var(--border-gradient-onyx);
  color: var(--light-gray);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: var(--fs-8);
  font-weight: var(--fw-400);
  border: 1px solid var(--jet);
}

.blog-tag::before {
  content: "#";
  opacity: 0.7;
}

/* Media Carousel */
.project-media-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 16px;
}

.project-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.project-media.active {
  display: block;
}

.media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  opacity: 1;
  transition: all 0.3s ease;
  z-index: 10;
}

.media-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.media-nav.prev {
  left: 10px;
}

.media-nav.next {
  right: 10px;
}

.media-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.media-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.media-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.media-dot.active {
  background: var(--orange-yellow-crayola);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding: 0;
}

.pagination button {
  background: var(--border-gradient-onyx);
  color: var(--white-2);
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination span {
  color: var(--light-gray);
  font-size: 14px;
}

/* Project Overlay */
.project-wrapper {
  position: relative;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
  z-index: 5;
}

.project-wrapper:hover .project-overlay {
  opacity: 1;
}

.project-link, .github-link {
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.project-link:hover, .github-link:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(242, 201, 76, 0.4);
}

.github-link {
  background: var(--white-2);
  color: var(--smoky-black);
}

.github-link:hover {
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Floating Skills Animation */
.floating-skills {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--border-gradient-onyx);
}

.floating-skills::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.skill-bubble {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--orange-yellow-crayola);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: float 6s ease-in-out infinite;
}

.skill-bubble:hover {
  transform: scale(1.2);
  box-shadow: 0 10px 20px rgba(242, 201, 76, 0.4);
}

.skill-bubble:hover::after {
  content: attr(data-skill);
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--smoky-black);
  color: var(--white-2);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Position bubbles randomly */
.skill-bubble:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.skill-bubble:nth-child(2) { top: 60%; left: 20%; animation-delay: 1s; }
.skill-bubble:nth-child(3) { top: 30%; left: 40%; animation-delay: 2s; }
.skill-bubble:nth-child(4) { top: 70%; left: 60%; animation-delay: 0.5s; }
.skill-bubble:nth-child(5) { top: 10%; left: 70%; animation-delay: 1.5s; }
.skill-bubble:nth-child(6) { top: 50%; left: 80%; animation-delay: 2.5s; }
.skill-bubble:nth-child(7) { top: 80%; left: 15%; animation-delay: 3s; }
.skill-bubble:nth-child(8) { top: 40%; left: 85%; animation-delay: 0.8s; }
.skill-bubble:nth-child(9) { top: 15%; left: 50%; animation-delay: 1.8s; }
.skill-bubble:nth-child(10) { top: 65%; left: 45%; animation-delay: 2.2s; }
.skill-bubble:nth-child(11) { top: 25%; left: 75%; animation-delay: 1.2s; }
.skill-bubble:nth-child(12) { top: 75%; left: 35%; animation-delay: 2.8s; }
.skill-bubble:nth-child(13) { top: 35%; left: 25%; animation-delay: 0.3s; }
.skill-bubble:nth-child(14) { top: 55%; left: 65%; animation-delay: 1.7s; }
.skill-bubble:nth-child(15) { top: 45%; left: 5%; animation-delay: 2.3s; }

/* Simple Skills Text Grid */
.skills-text-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.skill-category {
  background: var(--border-gradient-onyx);
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  position: relative;
  z-index: 1;
}

.skill-category::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.skill-category-title {
  color: var(--white-2);
  font-size: var(--fs-5);
  font-weight: var(--fw-500);
  margin-bottom: 12px;
}

.skill-list {
  color: var(--light-gray);
  font-size: var(--fs-6);
  line-height: 1.6;
}

/* Portfolio Skills Section */
.portfolio-skills {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--jet);
}

.portfolio-skills .skills-title {
  margin-bottom: 25px;
  text-align: center;
}

@media (min-width: 768px) {
  .skills-text-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
}

/* Project Tech Stack Text */
.project-tech-stack {
  color: var(--light-gray);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
  margin-bottom: 12px;
  text-align: center;
  line-height: 1.4;
}

/* Breadcrumb Navigation */
.breadcrumb {
  margin-bottom: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--jet);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: var(--fs-7);
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--light-gray-70);
}

.breadcrumb-link {
  color: var(--orange-yellow-crayola);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: var(--white-2);
}

.breadcrumb-item.active span {
  color: var(--light-gray);
}

@media (min-width: 1024px) {
  .learning-list {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
}