/* =================================================================
   CUSTOM STYLES AND ENHANCEMENTS
   ================================================================= */

/* Section Title Styling */
.section-heading h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 50px;
}

.section-heading h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #bac964, #b2c251);
  border-radius: 2px;
}

/* Portfolio Filters Enhancement */
.filters ul {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.filters ul li {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  transition: all 0.3s ease;
}

.filters ul li:hover,
.filters ul li.active {
  background: rgba(186, 201, 100, 0.2);
  border-color: #bac964;
  color: #fff;
  transform: translateY(-2px);
}

/* Portfolio Items Enhancement */
.single-portfolio {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.single-portfolio:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.single-portfolio .thumb {
  position: relative;
  overflow: hidden;
  height: 200px;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Professional gradient backgrounds for different categories */
.single-portfolio.machine_learning .thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.single-portfolio.web .thumb {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.single-portfolio.others .thumb {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.single-portfolio.coding .thumb {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.single-portfolio.pygame .thumb {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Add icons or text overlays for different categories */
.single-portfolio .thumb::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.single-portfolio:hover .thumb::before {
  opacity: 0.9;
  transform: translate(-50%, -50%) scale(1.1);
}

.single-portfolio.machine_learning .thumb::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

.single-portfolio.web .thumb::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z'/%3E%3C/svg%3E");
}

.single-portfolio.others .thumb::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0L19.2 12l-4.6-4.6L16 6l6 6-6 6-1.4-1.4z'/%3E%3C/svg%3E");
}

.single-portfolio.coding .thumb::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0L19.2 12l-4.6-4.6L16 6l6 6-6 6-1.4-1.4z'/%3E%3C/svg%3E");
}

.single-portfolio.pygame .thumb::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M21.58 16.09l-1.09-7.66C20.21 6.46 18.52 5 16.53 5H7.47C5.48 5 3.79 6.46 3.51 8.43l-1.09 7.66C2.2 17.63 3.39 19 4.94 19h.68c.83 0 1.58-.5 1.9-1.28L8.89 15h6.22l1.37 2.72c.32.78 1.07 1.28 1.9 1.28h.68c1.55 0 2.74-1.37 2.52-2.91zM11 8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5S11 9.33 11 8.5zM7.5 12C6.67 12 6 11.33 6 10.5S6.67 9 7.5 9 9 9.67 9 10.5 8.33 12 7.5 12zm9 0c-.83 0-1.5-.67-1.5-1.5S15.67 9 16.5 9 18 9.67 18 10.5 17.33 12 16.5 12z'/%3E%3C/svg%3E");
}

.single-portfolio .p-inner {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.single-portfolio .p-inner h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 400;
}

.single-portfolio .cat {
  color: #bac964;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Overlay effects */
.single-portfolio .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.single-portfolio:hover .overlay {
  opacity: 1;
}

/* ensure old pseudo content (if any) stays hidden */
.single-portfolio .overlay::before,
.single-portfolio .overlay::after {
  content: none !important;
}

/* Clickable CTA link inside overlay */
.single-portfolio .overlay .portfolio-cta {
  display: inline-block;
  color: #fff;
  background: linear-gradient(90deg, #bac964, #b2c251);
  padding: 10px 18px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(186, 201, 100, 0.25);
  transform: translateY(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.single-portfolio .overlay .portfolio-cta:hover {
  transform: translateY(4px);
  box-shadow: 0 12px 24px rgba(186, 201, 100, 0.35);
  filter: brightness(1.05);
}

/* ML badge */
.single-portfolio .badge-ml {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #0f2e0f;
  background: linear-gradient(90deg, #39d353, #26a641);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for portfolio */
@media (max-width: 768px) {
  .single-portfolio .thumb {
    height: 150px;
  }

  .single-portfolio .thumb::before {
    font-size: 3rem;
  }
  .single-portfolio .overlay .portfolio-cta {
    padding: 8px 14px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .single-portfolio .thumb {
    height: 120px;
  }

  .single-portfolio .thumb::before {
    font-size: 2.5rem;
  }
  .single-portfolio .overlay .portfolio-cta {
    padding: 7px 12px;
    font-size: 0.9rem;
  }
}

/* Resume Items Enhancement */
.resume-item .date {
  color: #bac964;
  font-weight: 400;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.resume-item .school {
  color: #6ebfb5;
  font-weight: 400;
  font-family: "Roboto", sans-serif;
  margin-bottom: 8px;
  display: block;
}
.resume-item .school:hover {
  color: #bac964;
}

.resume-item h3 {
  color: #fff;
  font-weight: 400;
  font-family: "Roboto", sans-serif;
  margin-bottom: 15px;
  line-height: 1.4;
}

/* Link Styling */
a {
  color: #bac964;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #b2c251;
  text-decoration: none;
}

/* Button Styling */
.btn-primary {
  background: linear-gradient(90deg, #bac964, #b2c251);
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 400;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #b2c251, #bac964);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(186, 201, 100, 0.3);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: #bac964;
  animation: spin 1s ease-in-out infinite;
}

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

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 9999;
}

.scroll-progress {
  height: 100%;
  background: linear-gradient(90deg, #bac964, #b2c251);
  width: 0%;
  transition: width 0.1s ease;
}

/* Testimonial Enhancement */
.testimonial-section {
  padding: 40px 0;
}

/* Footer Enhancement */
.site-footer {
  background: rgba(0, 0, 0, 0.3);
  padding: 40px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact Form Enhancement */
.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 5px;
  padding: 12px 15px;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #bac964;
  box-shadow: 0 0 0 0.2rem rgba(186, 201, 100, 0.25);
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection Styling */
::selection {
  background: rgba(186, 201, 100, 0.3);
  color: #fff;
}

::-moz-selection {
  background: rgba(186, 201, 100, 0.3);
  color: #fff;
}

/* Focus Styles for Accessibility */
.btn:focus,
.nav-link:focus,
.form-control:focus {
  outline: 2px solid #bac964;
  outline-offset: 2px;
}

/* Print Specific Styles */
@media print {
  .no-print {
    display: none !important;
  }

  .print-break {
    page-break-before: always;
  }
}
