/* iOS-style hover effects for portfolio items */
.ios-card {
  background: linear-gradient(135deg, #1c1c27 0%, #2d2d3a 100%);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
}

.ios-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 0 15px rgba(103, 103, 236, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ios-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(105deg, 
    rgba(255, 255, 255, 0.03) 0%, 
    rgba(255, 255, 255, 0.05) 20%, 
    rgba(255, 255, 255, 0) 60%);
  z-index: 1;
  pointer-events: none;
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  pointer-events: none;
  z-index: 3;
}

.ios-card .card-image {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
  background-color: rgba(0, 0, 0, 0.1); /* Fallback background color */
}

.ios-card .card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0) 0%, 
    rgba(0, 0, 0, 0.3) 100%);
  z-index: 2; /* Increased z-index to appear above the image */
  pointer-events: none;
}

.ios-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1; /* Ensure image is below the gradient overlay */
}

.ios-card:hover .card-image img {
  transform: scale(1.05);
}

.ios-card .card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}

.ios-card .card-tag {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #6c6ce5 0%, #5a5ae0 100%);
  color: white;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(108, 108, 229, 0.3);
  backdrop-filter: blur(5px);
  transform: translateZ(5px);
}

.ios-card .card-tag i {
  margin-right: 6px;
  font-size: 14px;
}

.ios-card .card-title {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transform: translateZ(10px);
}

.ios-card .card-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  transform: translateZ(5px);
}

.ios-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateZ(5px);
  flex-wrap: wrap;
  gap: 6px;
}

.ios-card .tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  pointer-events: none;
  max-width: 100%;
}

.ios-card .tech-badge {
  color: white;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, #555555, #777777); /* Default gradient for badges without specific class */
  padding: 3px 8px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.3px;
  position: relative; /* Needed for the ::before pseudo-element */
  pointer-events: none; /* Prevent interaction with badges */
  user-select: none; /* Prevent text selection */
  white-space: nowrap;
  flex-shrink: 0;
}

/* Remove hover effects for badges since they're now non-interactive */
.ios-card .tech-badge:hover {
  transform: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: auto;
}

/* Restore icon styling */
.ios-card .tech-badge i {
  margin-right: 4px;
  font-size: 12px;
}

/* Remove the glow effect on hover since badges are non-interactive */
.ios-card .tech-badge::before {
  display: none;
}

/* Tech badge color variations with more subtle, professional gradients */
.ios-card .tech-badge.python {
  background: linear-gradient(to right, #306998, #4889c0);
  box-shadow: 0 2px 8px rgba(48, 105, 152, 0.3);
  border-color: rgba(72, 137, 192, 0.3);
}

.ios-card .tech-badge.javascript {
  background: linear-gradient(to right, #f7df1e, #f0db4f);
  box-shadow: 0 2px 8px rgba(247, 223, 30, 0.3);
  border-color: rgba(240, 219, 79, 0.3);
  color: #323330;
}

.ios-card .tech-badge.react {
  background: linear-gradient(to right, #61dafb, #00b7ff);
  box-shadow: 0 2px 8px rgba(97, 218, 251, 0.3);
  border-color: rgba(0, 183, 255, 0.3);
}

.ios-card .tech-badge.tensorflow {
  background: linear-gradient(to right, #ff6f00, #ff8f3f);
  box-shadow: 0 2px 8px rgba(255, 111, 0, 0.3);
  border-color: rgba(255, 143, 63, 0.3);
}

.ios-card .tech-badge.pytorch {
  background: linear-gradient(to right, #ee4c2c, #f05732);
  box-shadow: 0 2px 8px rgba(238, 76, 44, 0.3);
  border-color: rgba(240, 87, 50, 0.3);
}

.ios-card .tech-badge.html {
  background: linear-gradient(to right, #e34f26, #f06529);
  box-shadow: 0 2px 8px rgba(227, 79, 38, 0.3);
  border-color: rgba(240, 101, 41, 0.3);
}

.ios-card .tech-badge.css {
  background: linear-gradient(to right, #264de4, #2965f1);
  box-shadow: 0 2px 8px rgba(38, 77, 228, 0.3);
  border-color: rgba(41, 101, 241, 0.3);
}

.ios-card .tech-badge.unity {
  background: linear-gradient(to right, #222222, #444444);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border-color: rgba(68, 68, 68, 0.3);
}

.ios-card .tech-badge.swift {
  background: linear-gradient(to right, #fa7343, #ff4c2f);
  box-shadow: 0 2px 8px rgba(250, 115, 67, 0.3);
  border-color: rgba(255, 76, 47, 0.3);
}

.ios-card .tech-badge.huggingface {
  background: linear-gradient(to right, #ffd21e, #ffb31e);
  box-shadow: 0 2px 8px rgba(255, 210, 30, 0.3);
  border-color: rgba(255, 179, 30, 0.3);
  color: #333;
}

.ios-card .tech-badge.blockchain {
  background: linear-gradient(to right, #627eea, #3c5be0);
  box-shadow: 0 2px 8px rgba(98, 126, 234, 0.3);
  border-color: rgba(60, 91, 224, 0.3);
}

/* Add more tech badges with subtle gradients */
.ios-card .tech-badge.csharp {
  background: linear-gradient(to right, #9b4f96, #68217a);
  box-shadow: 0 2px 8px rgba(155, 79, 150, 0.3);
  border-color: rgba(104, 33, 122, 0.3);
}

/* YouTube badge - both with and without class */
.ios-card .tech-badge:has(i.fa-youtube),
.ios-card .tech-badge.youtube {
  background: linear-gradient(to right, #FF0000, #CC0000);
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
  border-color: rgba(204, 0, 0, 0.3);
}

/* Video editing badge */
.ios-card .tech-badge:has(i.fa-video),
.ios-card .tech-badge.video {
  background: linear-gradient(to right, #8E44AD, #9B59B6);
  box-shadow: 0 2px 8px rgba(142, 68, 173, 0.3);
  border-color: rgba(155, 89, 182, 0.3);
}

/* Light mode adjustments for tech badges */
body:not(.dark) .ios-card .tech-badge {
  color: white; /* Keep text white for better contrast */
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body:not(.dark) .ios-card .tech-badge.javascript,
body:not(.dark) .ios-card .tech-badge.huggingface {
  color: #333; /* Dark text for light backgrounds */
}

/* Custom tag colors with enhanced gradients and icons */
.ios-card .card-tag.AI {
  background: linear-gradient(135deg, #6c6ce5 0%, #5a5ae0 100%);
  box-shadow: 0 4px 15px rgba(108, 108, 229, 0.4);
}

.ios-card .card-tag.WebApp {
  background: linear-gradient(135deg, #FF4C60 0%, #F7254E 100%);
  box-shadow: 0 4px 15px rgba(255, 76, 96, 0.4);
}

.ios-card .card-tag.AR {
  background: linear-gradient(135deg, #44D7B6 0%, #32C5A4 100%);
  box-shadow: 0 4px 15px rgba(68, 215, 182, 0.4);
}

.ios-card .card-tag.Game {
  background: linear-gradient(135deg, #FFD15C 0%, #FFC82E 100%);
  box-shadow: 0 4px 15px rgba(255, 209, 92, 0.4);
}

.ios-card .card-tag.YouTube {
  background: linear-gradient(135deg, #FF4C60 0%, #F7254E 100%);
  box-shadow: 0 4px 15px rgba(255, 76, 96, 0.4);
}

.ios-card .card-tag.Crypto {
  background: linear-gradient(135deg, #F9A826 0%, #F08C00 100%);
  box-shadow: 0 4px 15px rgba(249, 168, 38, 0.4);
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {
  .ios-card {
    margin-bottom: 20px;
  }
  
  .ios-card .card-image {
    padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
  }
}

/* Dark mode adjustments */
body.dark .ios-card {
  background: linear-gradient(135deg, #1c1c27 0%, #2d2d3a 100%);
}

body.dark .ios-card .card-title {
  color: white;
}

body.dark .ios-card .card-description {
  color: rgba(255, 255, 255, 0.7);
}

/* Light mode adjustments */
body:not(.dark) .ios-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body:not(.dark) .ios-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12), 0 0 15px rgba(103, 103, 236, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

body:not(.dark) .ios-card .card-title {
  color: #333;
  text-shadow: none;
}

body:not(.dark) .ios-card .card-description {
  color: rgba(0, 0, 0, 0.7);
}

body:not(.dark) .ios-card .card-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body:not(.dark) .ios-card .card-hours {
  color: rgba(0, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.03);
}

body:not(.dark) .ios-card .card-star {
  background: rgba(0, 0, 0, 0.03);
}

/* Responsive adjustments for tech badges */
@media only screen and (max-width: 992px) {
  .ios-card .tech-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
  
  .ios-card .tech-badge i {
    margin-right: 3px;
    font-size: 11px;
  }
} 