/* Base Styles */
.projects-section {
  background: #0a0e1a;
  position: relative;
  min-height: 100vh;
}

/* Animated Mesh Background */
.projects-mesh-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0.7;
  animation: meshMove 20s ease-in-out infinite alternate;
}

@keyframes meshMove {
  0% {
    transform: scale(1) rotate(0deg);
  }

  100% {
    transform: scale(1.1) rotate(2deg);
  }
}

.projects-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Letter Spacing */
.ls-wide {
  letter-spacing: 0.12em;
}

/* Glass Badge */
.glass-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  animation: float-badge 3s ease-in-out infinite;
}

@keyframes float-badge {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-5px);
  }
}

.status-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.9);
  }
}

/* Heading */
.projects-heading {
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.text-gradient {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #3b82f6 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }
}

/* Featured Projects Grid - New Layout for 2 Projects */
.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Featured Project Card */
.featured-project-item {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-project-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.featured-project-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.featured-project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 30px 50px rgba(99, 102, 241, 0.2);
}

/* Project Media */
.featured-project-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.featured-project-video,
.featured-project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-project-card:hover .featured-project-video,
.featured-project-card:hover .featured-project-image {
  transform: scale(1.08);
}

/* Overlay */
.featured-project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(10, 14, 26, 0.4) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.featured-project-card:hover .featured-project-overlay {
  opacity: 1;
}

.overlay-content {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.project-featured-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 50px;
  color: #0a0e1a;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: featured-pulse 2s ease-in-out infinite;
}

@keyframes featured-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(251, 191, 36, 0);
  }
}

/* Project Content */
.featured-project-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.content-header {
  margin-bottom: 1.5rem;
}

/* Category and Year Badges */
.project-category-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50px;
  color: #a5b4fc;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.75rem;
}

.project-year-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  font-weight: 500;
}

.featured-project-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin: 1rem 0 0.75rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.featured-project-card:hover .featured-project-title {
  color: #a5b4fc;
}

.featured-project-description {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Content Footer */
.content-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.tech-item {
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.featured-project-card:hover .tech-item {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

/* Project Link */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-link i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.project-link:hover {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-color: transparent;
  color: #ffffff;
  transform: translateX(4px);
}

.project-link:hover i {
  transform: rotate(45deg);
}

/* CTA Button */
.cta-btn-modern {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border: none;
  border-radius: 50px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3);
}

.cta-btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cta-btn-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.5);
  color: #ffffff;
}

.cta-btn-modern:hover::before {
  opacity: 1;
}

.cta-text,
.cta-icon {
  position: relative;
  z-index: 1;
}

.cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.cta-btn-modern:hover .cta-icon {
  transform: translateX(4px);
}

.cta-shimmer {
  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.6s ease;
}

.cta-btn-modern:hover .cta-shimmer {
  left: 100%;
}

/* Scroll Reveal Animation */
[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-scroll-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
  .featured-projects-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    gap: 2rem;
  }

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

@media (max-width: 768px) {
  .projects-section {
    padding: 3rem 0;
  }

  .featured-project-content {
    padding: 1.5rem;
  }

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

  .content-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .tech-stack {
    width: 100%;
  }

  .project-link {
    width: 100%;
    justify-content: center;
  }

  .cta-btn-modern {
    padding: 1rem 2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .projects-heading {
    font-size: 2rem;
  }

  .featured-project-media {
    aspect-ratio: 4 / 3;
  }

  .featured-project-content {
    padding: 1.25rem;
  }

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

  .project-category-badge,
  .project-year-badge {
    padding: 0.3rem 0.7rem;
    font-size: 0.65rem;
  }
}