/* Modern Minimal Project Showcase Styles */

.project-showcase {
  --card-border-radius: 12px;
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  --card-hover-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  --card-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --card-bg: rgba(255, 255, 255, 0.02);
  --card-border: 1px solid rgba(255, 255, 255, 0.03);
  --tag-bg: rgba(255, 255, 255, 0.03);
  --tag-color: rgba(255, 255, 255, 0.6);
}

/* Project Section Container */
.work-section {
  padding: 8rem 2rem;
  background: var(--primary-color);
  position: relative;
  overflow: hidden;
}

/* Background Elements */
.work-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 15% 20%, rgba(255, 51, 102, 0.03) 0%, transparent 40%);
  z-index: 0;
  pointer-events: none;
}

.projects-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-color) 50%, #00d4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(255, 51, 102, 0.3);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 3.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  line-height: 1.6;
}

/* Project Filter - Pill Style with Glow */
.project-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.filter-button {
  padding: 0.65rem 1.5rem;
  background: transparent;
  border: none;
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.filter-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 51, 102, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.filter-button:hover {
  color: #fff;
  transform: translateY(-2px);
}

.filter-button:hover::before {
  width: 100%;
  height: 100%;
}

.filter-button.active {
  background: linear-gradient(135deg, var(--accent-color), #ff1744);
  color: #fff;
  box-shadow: 0 8px 25px rgba(255, 51, 102, 0.4);
  transform: translateY(-2px);
}

.filter-button.active::before {
  display: none;
}

/* Projects Grid - Glass Card Layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
  animation: fadeIn 0.6s ease-in-out;
  align-items: start;
}

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

/* Project Card - Ultra Frosty Glass Morphism */
.project-card {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15), 
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border-radius: 32px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: calc(var(--delay, 0) * 0.05s);
  min-height: 480px;
}

/* Frosty Shimmer Effect */
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.2),
    transparent);
  transition: left 0.7s ease;
  z-index: 10;
  pointer-events: none;
}

.project-card:hover::before {
  left: 100%;
}

/* Electric Animated Border */
.project-card::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, 
    #ff3366, 
    #00d4ff, 
    #7c3aed, 
    #ff3366);
  background-size: 400% 400%;
  border-radius: 32px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  filter: blur(12px);
  animation: electricPulse 3s ease-in-out infinite;
}

@keyframes electricPulse {
  0%, 100% {
    background-position: 0% 50%;
    filter: blur(12px) brightness(1);
  }
  50% {
    background-position: 100% 50%;
    filter: blur(15px) brightness(1.3);
  }
}

.project-card:hover::after {
  opacity: 0.9;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.project-card.medium {
  grid-column: span 3;
  grid-row: span 1;
}

.project-card.wide {
  grid-column: span 4;
  grid-row: span 1;
}

.project-card.featured {
  grid-column: span 3;
  grid-row: span 2;
}

/* Project Badge */
.project-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--accent-color);
  color: #fff;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  z-index: 10;
}

/* Project Image - Frosty Curved Style */
.project-image {
  width: calc(100% - 32px);
  height: 220px;
  overflow: hidden;
  position: relative;
  border-radius: 24px;
  margin: 16px 16px 0 16px;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  filter: brightness(0.85) saturate(1.1);
}

/* Subtle Gradient Overlay */
.project-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
  opacity: 0.7;
}

/* Colored Accent Glow */
.project-image::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 51, 102, 0.3), transparent 60%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Project Content Area - Frosty Glass */
.project-content {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  flex: 1;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.03), 
    rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Project Title - Bold Modern Style */
.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  transition: all 0.3s ease;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* Project Categories Tags - Neon Style */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: rgba(255, 51, 102, 0.2);
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.7rem;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 51, 102, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Project Description - Enhanced Readability */
.project-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
  font-weight: 300;
  flex: 1;
  min-height: 3.6em;
}

/* Tech Stack Pills - Modern Icon Style */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-tag {
  color: #00e5ff;
  background: rgba(0, 212, 255, 0.15);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tech-tag i {
  font-size: 0.75rem;
}

/* Project Links - Modern Slide-up Design */
.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.project-link {
  flex: 1;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.8), rgba(255, 51, 102, 0.6));
  color: #fff;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 12px rgba(255, 51, 102, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-align: center;
  cursor: pointer;
}

.project-link:hover {
  background: linear-gradient(135deg, #ff3366, #ff1a4d);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(255, 51, 102, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.project-link i {
  font-size: 0.85rem;
}

/* Hover Effects - Enhanced 3D Transform */
.project-card:hover {
  transform: translateY(-16px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2), 
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.08));
  box-shadow: 
    0 25px 70px rgba(0, 0, 0, 0.6),
    0 12px 40px rgba(255, 51, 102, 0.4),
    0 12px 40px rgba(0, 212, 255, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(35px) saturate(250%);
  -webkit-backdrop-filter: blur(35px) saturate(250%);
}

.project-card:hover .project-image img {
  transform: scale(1.08) rotate(1deg);
  filter: brightness(1) saturate(1.3);
}

.project-card:hover .project-image::before {
  opacity: 0.3;
}

.project-card:hover .project-image::after {
  opacity: 1;
}

.project-card:hover .project-link {
  transform: translateY(-2px) scale(1.02);
}

.project-card:hover .project-title {
  transform: translateX(3px);
  color: var(--accent-color);
}

.project-card:hover .tag {
  background: rgba(255, 51, 102, 0.35);
  color: #fff;
  border-color: rgba(255, 51, 102, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 51, 102, 0.3);
}

.project-card:hover .tech-tag {
  background: rgba(0, 212, 255, 0.25);
  border-color: rgba(0, 212, 255, 0.5);
  color: #00f0ff;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

/* View More Projects */
.more-projects-cta {
  text-align: center;
  margin-top: 4rem;
}

.more-projects-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.more-projects-cta p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--accent-color);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: rgba(255, 51, 102, 0.9);
}

.btn-primary i {
  transition: transform 0.3s ease;
}

.btn-primary:hover i {
  transform: translateX(3px);
}

/* Project Modal for Detailed View */
.project-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.project-detail-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: rgba(25, 25, 25, 0.95);
  border-radius: 16px;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(30px);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.project-detail-modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 0;
  position: relative;
  height: 350px;
  overflow: hidden;
}

.modal-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(25, 25, 25, 1), transparent);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #fff;
  border: none;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--accent-color);
  transform: rotate(90deg);
}

.modal-title {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 5;
}

.modal-title h2 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.modal-badges {
  display: flex;
  gap: 0.8rem;
}

.modal-badge {
  background: var(--accent-color);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}

.modal-body {
  padding: 2rem;
}

.modal-section {
  margin-bottom: 2rem;
}

.modal-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.modal-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  font-size: 1rem;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.feature-icon {
  background: rgba(255, 51, 102, 0.1);
  color: var(--accent-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.feature-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.tech-stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.tech-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: auto;
  transition: all 0.3s ease;
}

.tech-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.tech-icon {
  font-size: 1.3rem;
  color: var(--accent-color);
}

.tech-name {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.gallery-item {
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem;
  border-radius: 100px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.modal-btn.primary {
  background: var(--accent-color);
  color: #fff;
}

.modal-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.modal-btn:hover {
  transform: translateY(-3px);
}

.modal-btn.primary:hover {
  background: rgba(255, 51, 102, 0.9);
}

.modal-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .project-card.medium,
  .project-card.wide {
    grid-column: span 1;
  }
  
  .project-card.featured {
    grid-column: span 2;
  }
  
  .modal-header {
    height: 280px;
  }
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .project-card.featured {
    grid-column: span 1;
  }
  
  .modal-title h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .work-section {
    padding: 5rem 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .modal-header {
    height: 220px;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .features-list, 
  .tech-stack-grid,
  .modal-gallery {
    grid-template-columns: 1fr 1fr;
  }
  
  .modal-actions {
    flex-direction: column;
  }
}

/* Project Filter */
.project-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-button {
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.filter-button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transform: translateY(-2px);
}

.filter-button.active {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

.filter-button.active::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 70%);
  opacity: 0.3;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: var(--grid-gap);
  margin-bottom: 4rem;
}

/* Project Card Base Styles */
.project-card {
  background: var(--card-bg);
  border-radius: var(--card-border-radius);
  border: var(--card-border);
  overflow: hidden;
  transition: var(--card-transition);
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 4;
  box-shadow: var(--card-shadow);
  transform-style: preserve-3d;
  transform: translateZ(0);
}

/* Different card sizes for visual interest */
.project-card.medium {
  grid-column: span 6;
}

.project-card.wide {
  grid-column: span 8;
}

.project-card.full {
  grid-column: span 12;
  grid-row: span 2;
}

.project-card.featured {
  grid-column: span 8;
  grid-row: span 2;
  border: var(--featured-border);
  box-shadow: 0 10px 30px rgba(255, 51, 102, 0.07);
}

/* Project Badge */
.project-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: linear-gradient(45deg, var(--accent-color), #ff6b6b);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(255, 51, 102, 0.3);
}

/* Project Image */
.project-image {
  width: 100%;
  height: 60%;
  overflow: hidden;
  position: relative;
}

.project-card.featured .project-image {
  height: 65%;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Project Content Area */
.project-content {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: transform 0.4s ease;
  transform: translateZ(20px);
  z-index: 2;
}

/* Project Title */
.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  transition: transform 0.3s ease;
}

.project-card.featured .project-title {
  font-size: 1.6rem;
}

/* Project Categories Tags */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.tag {
  background: var(--tag-bg);
  color: var(--tag-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

/* Project Description */
.project-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card.featured .project-description {
  -webkit-line-clamp: 4;
}

/* Tech Stack Pills */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

.tech-tag {
  color: var(--accent-color);
  background: rgba(255, 51, 102, 0.07);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.tech-tag i {
  font-size: 0.7rem;
  margin-right: 0.3rem;
}

/* Project Links - Hidden initially */
.project-links {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 5;
}

.project-link {
  padding: 0.7rem 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

.project-link i {
  font-size: 0.9rem;
}

/* Hover Effects */
.project-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: var(--card-hover-shadow);
  z-index: 10;
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-card:hover .project-links {
  transform: translateY(0);
  opacity: 1;
}

.project-card:hover .project-title {
  transform: translateY(-5px);
}

.project-card:hover .tag {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.project-card:hover .tech-tag {
  background: rgba(255, 51, 102, 0.15);
  transform: translateY(-2px);
}

/* Parallax effect on content when hovering */
.project-card:hover .project-content {
  transform: translateZ(40px);
}

/* Layered Overlay for Depth */
.project-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-card:hover .project-image::after {
  opacity: 1;
}

/* View More Projects */
.view-more-container {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}

.view-more-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.view-more-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-color);
  transform: translateY(-5px);
}

.view-more-btn:hover::before {
  left: 100%;
}

.view-more-btn i {
  transition: transform 0.3s ease;
}

.view-more-btn:hover i {
  transform: translateX(5px);
}

/* More Projects CTA */
.more-projects-cta {
  text-align: center;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 5rem;
  backdrop-filter: blur(10px);
}

.more-projects-cta h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.more-projects-cta p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--accent-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(255, 51, 102, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(255, 51, 102, 0.4);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover i {
  transform: translateX(5px);
}

.btn-primary i {
  transition: transform 0.3s ease;
}

/* Project Modal for Detailed View */
.project-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.project-detail-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: rgba(30, 30, 30, 0.95);
  border-radius: 16px;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(30px);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.project-detail-modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 0;
  position: relative;
  height: 400px;
  overflow: hidden;
}

.modal-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(30, 30, 30, 1), transparent);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #fff;
  border: none;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--accent-color);
  transform: rotate(90deg);
}

.modal-title {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 5;
}

.modal-title h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.modal-badges {
  display: flex;
  gap: 1rem;
}

.modal-badge {
  background: var(--accent-color);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
}

.modal-body {
  padding: 2.5rem;
}

.modal-section {
  margin-bottom: 2.5rem;
}

.modal-section h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding-left: 1.5rem;
}

.modal-section h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 2px;
}

.modal-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 1.1rem;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  background: rgba(255, 51, 102, 0.1);
  color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.tech-stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.tech-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100px;
  transition: all 0.3s ease;
}

.tech-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.tech-icon {
  font-size: 2rem;
  color: var(--accent-color);
}

.tech-name {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-item {
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.modal-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.modal-btn.primary {
  background: var(--accent-color);
  color: #fff;
}

.modal-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-btn:hover {
  transform: translateY(-3px);
}

.modal-btn.primary:hover {
  background: #ff4778;
}

.modal-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  
  .project-card.full,
  .project-card.wide,
  .project-card.featured {
    grid-column: span 6;
    grid-row: span 1;
  }
  
  .modal-header {
    height: 300px;
  }
}

@media (max-width: 992px) {
  .work-section {
    padding: 6rem 2rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }
  
  .project-card,
  .project-card.medium {
    grid-column: span 3;
  }
  
  .project-card.full,
  .project-card.wide,
  .project-card.featured {
    grid-column: span 6;
  }
  
  .project-title {
    font-size: 1.2rem;
  }
  
  .project-card.featured .project-title {
    font-size: 1.4rem;
  }
  
  .project-description {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
  }
  
  .project-card.featured .project-description {
    -webkit-line-clamp: 3;
  }
  
  .modal-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .work-section {
    padding: 5rem 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .project-card {
    grid-column: span 1;
  }
  
  .project-card.medium,
  .project-card.full,
  .project-card.wide,
  .project-card.featured {
    grid-column: span 1;
  }
  
  .project-filter {
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  .filter-button {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
  
  .modal-header {
    height: 250px;
  }
  
  .modal-title h2 {
    font-size: 1.8rem;
  }
  
  .features-list,
  .tech-stack-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .modal-gallery {
    grid-template-columns: 1fr;
  }
  
  .more-projects-cta {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .work-section {
    padding: 4rem 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .project-filter {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }
  
  .filter-button {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
  
  .modal-content {
    padding: 0;
  }
  
  .modal-header {
    height: 200px;
  }
  
  .modal-title h2 {
    font-size: 1.5rem;
  }
  
  .modal-badge {
    font-size: 0.7rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-section h3 {
    font-size: 1.2rem;
  }
  
  .modal-description {
    font-size: 1rem;
  }
  
  .modal-actions {
    flex-direction: column;
  }
}
