/* ===== INNOVATIVE PROJECTS SECTION ===== */
.projects-section {
  background: linear-gradient(135deg, #0a1828 0%, #101820 50%, #16222a 100%);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.projects-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(127, 255, 166, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(46, 204, 64, 0.08) 0%,
      transparent 40%
    );
  pointer-events: none;
}

.projects-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Dynamic Header */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.header-text .section-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(127, 255, 166, 0.95);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.title-accent {
  font-size: 3rem;
  animation: float 3s ease-in-out infinite;
}

.title-line {
  height: 4px;
  background: linear-gradient(90deg, rgba(127, 255, 166, 0.8), transparent);
  flex: 1;
  min-width: 100px;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0.5rem 0 0 0;
}

.projects-nav {
  display: flex;
  gap: 1rem;
  background: rgba(26, 42, 47, 0.4);
  padding: 0.5rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.nav-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn.active,
.nav-btn:hover {
  background: rgba(127, 255, 166, 0.2);
  color: rgba(127, 255, 166, 0.95);
  transform: translateY(-2px);
}

/* Interactive Showcase */
.projects-showcase {
  display: block;
  margin-bottom: 4rem;
}

/* Featured Project */
.featured-project {
  margin-bottom: 3rem;
}

.project-preview {
  background: linear-gradient(
    145deg,
    rgba(26, 42, 47, 0.8),
    rgba(16, 24, 32, 0.6)
  );
  border-radius: 25px;
  overflow: hidden;
  border: 1px solid rgba(127, 255, 166, 0.2);
  backdrop-filter: blur(15px);
  transition: all 0.4s ease;
}

.project-preview:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(127, 255, 166, 0.4);
}

.preview-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.main-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-preview:hover .main-preview {
  transform: scale(1.05);
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.4),
    rgba(127, 255, 166, 0.1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.overlay-actions {
  display: flex;
  gap: 1rem;
}

.action-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.action-btn.primary {
  background: rgba(127, 255, 166, 0.9);
  color: #0a1828;
}

.action-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.preview-info {
  padding: 2rem;
}

.project-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.status-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(46, 204, 64, 0.2);
  color: rgba(46, 204, 64, 1);
}

.category-tag {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  background: rgba(127, 255, 166, 0.1);
  color: rgba(127, 255, 166, 0.8);
}

.project-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem 0;
}

.project-brief {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.tech-preview {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-pill {
  padding: 0.3rem 0.8rem;
  background: rgba(127, 255, 166, 0.15);
  color: rgba(127, 255, 166, 0.9);
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tech-more {
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 15px;
  font-size: 0.8rem;
}

/* Projects Grid: Vertical Layout */
.projects-grid {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin: 3rem 0;
}

/* Project Card Styling */
.project-card {
  background: linear-gradient(
    135deg,
    rgba(26, 42, 47, 0.8),
    rgba(16, 24, 32, 0.6)
  );
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(127, 255, 166, 0.2);
  backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(127, 255, 166, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(127, 255, 166, 0.1);
}

/* Card Image Section */
.card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* Image Overlay */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.7),
    rgba(127, 255, 166, 0.3)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.overlay-content {
  text-align: center;
  color: white;
}

.overlay-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.action-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.action-btn:not(.disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Card Content Section */
.card-content {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

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

.status-badge.live {
  background: rgba(46, 204, 64, 0.2);
  color: #2ecc40;
  border: 1px solid rgba(46, 204, 64, 0.3);
}

.status-badge.development {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.category-badge {
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #7fffa6;
  margin: 0;
  line-height: 1.3;
}

.card-description {
  color: rgba(224, 242, 233, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* Technology Stack */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.tech-tag {
  padding: 0.4rem 0.9rem;
  background: linear-gradient(
    135deg,
    rgba(127, 255, 166, 0.15),
    rgba(127, 255, 166, 0.05)
  );
  color: #7fffa6;
  border-radius: 18px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(127, 255, 166, 0.2);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(127, 255, 166, 0.2);
  transform: translateY(-1px);
}

/* Card Links */
.card-links {
  margin-top: auto;
  padding-top: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #7fffa6;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  background: rgba(127, 255, 166, 0.1);
  border: 1px solid rgba(127, 255, 166, 0.2);
  transition: all 0.3s ease;
}

.card-link:hover {
  background: rgba(127, 255, 166, 0.2);
  transform: translateX(5px);
}

.link-icon {
  font-size: 1rem;
}

/* Dashboard Stats */
.projects-dashboard {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  background: linear-gradient(
    135deg,
    rgba(26, 42, 47, 0.4),
    rgba(16, 24, 32, 0.3)
  );
  border-radius: 25px;
  padding: 3rem;
  border: 1px solid rgba(127, 255, 166, 0.15);
  backdrop-filter: blur(15px);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-visual {
  margin-bottom: 1rem;
}

.stat-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(
    rgba(127, 255, 166, 0.8) 0deg,
    rgba(127, 255, 166, 0.2) 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.stat-circle::before {
  content: "";
  width: 60px;
  height: 60px;
  background: #0a1828;
  border-radius: 50%;
  position: absolute;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(127, 255, 166, 0.9);
  position: relative;
  z-index: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.dashboard-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.dashboard-cta h3 {
  font-size: 1.5rem;
  color: white;
  margin: 0 0 0.5rem 0;
}

.dashboard-cta p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 2rem 0;
}

.cta-btn {
  padding: 1rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(127, 255, 166, 0.9),
    rgba(46, 204, 64, 0.8)
  );
  color: #0a1828;
  text-decoration: none;
  border-radius: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(127, 255, 166, 0.3);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(127, 255, 166, 0.4);
}

.cta-arrow {
  transition: transform 0.3s ease;
}

.cta-btn:hover .cta-arrow {
  transform: translateX(5px);
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .projects-grid {
    gap: 2rem;
  }

  .projects-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    gap: 1.5rem;
  }

  .projects-header {
    flex-direction: column;
    text-align: center;
  }

  .header-text .section-title {
    font-size: 2.5rem;
    flex-direction: column;
  }

  .title-line {
    width: 100px;
    margin: 1rem auto;
  }

  .projects-nav {
    justify-content: center;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .projects-dashboard {
    padding: 2rem;
  }

  .card-content {
    padding: 1.4rem;
  }

  .card-image {
    height: 180px;
  }

  .overlay-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .action-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    gap: 1rem;
    padding: 0 1rem;
  }

  .projects-header {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .header-text .section-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .title-accent {
    font-size: 2rem;
  }

  .title-line {
    width: 80px;
    margin: 0.5rem auto;
  }

  .section-subtitle {
    font-size: 1rem;
    text-align: center;
    margin: 0.5rem 0;
  }

  .projects-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    justify-content: center;
  }

  .nav-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    flex: 1;
    min-width: 80px;
    text-align: center;
  }

  .project-preview {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 2rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  .preview-image {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .main-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .preview-info {
    padding: 1rem 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .project-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    align-items: center;
  }

  .status-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem !important;
    padding: 0.4rem 0.8rem !important;
    margin: 0.2rem 0.3rem 0.2rem 0 !important;
    border-radius: 1.2rem !important;
    white-space: nowrap;
    word-break: keep-all;
    overflow: visible;
    text-overflow: unset;
    min-width: auto;
    max-width: none;
    width: auto;
    box-sizing: border-box;
    flex-shrink: 0;
    height: auto;
    line-height: 1.2;
  }

  .status-badge.live {
    background: rgba(46, 204, 64, 0.25) !important;
    color: #2ecc40 !important;
    border: 1px solid rgba(46, 204, 64, 0.4) !important;
  }

  .status-badge.development {
    background: rgba(255, 193, 7, 0.25) !important;
    color: #ffc107 !important;
    border: 1px solid rgba(255, 193, 7, 0.4) !important;
  }

  .category-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    padding: 0.4rem 0.8rem;
    margin: 0.2rem 0;
    white-space: nowrap;
    word-break: keep-all;
    border-radius: 1.2rem;
    flex-shrink: 0;
    width: auto;
    box-sizing: border-box;
  }

  .project-name {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
  }

  .project-brief {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .tech-preview {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .tech-pill {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    margin: 0.2rem 0.2rem 0.2rem 0;
    white-space: nowrap;
    word-break: keep-all;
  }

  .tech-more {
    font-size: 0.7rem;
    display: inline-block;
    margin: 0.2rem;
  }

  .featured-project {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    margin-bottom: 2rem;
  }

  .project-preview {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    border-radius: 16px;
  }
}
