/* ========================================
   YUNGS LABS - INNOVATION LABORATORY CSS
   ======================================== */

/* Hero Section */
.labs-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 3rem;
}

.labs-hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.labs-hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.labs-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(5, 5, 5, 0.3),
    rgba(5, 5, 5, 0.8)
  );
  z-index: 1;
}

.labs-hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.15),
    transparent 70%
  );
  filter: blur(80px);
  z-index: 1;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

.labs-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.labs-title {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--blue-neon),
    var(--purple-soft)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.labs-description {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.labs-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.stat-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--blue-neon),
    var(--purple-soft)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* About Section */
.labs-about {
  padding: 5rem 3rem;
  background: rgba(139, 92, 246, 0.03);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.about-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.about-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(14, 165, 233, 0.3);
  transform: translateY(-5px);
}

.about-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 0.8rem;
}

.about-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Projects Section */
.labs-projects {
  padding: 5rem 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  height: 100%;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(14, 165, 233, 0.3);
  transform: translateY(-8px);
}

.project-header {
  position: relative;
  min-height: 240px;
  height: auto;
  overflow: hidden;
}

.project-header img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16/9;
  transition: transform 0.3s ease;
}

.project-card:hover .project-header img {
  transform: scale(1.05);
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.status-development {
  background: rgba(251, 146, 60, 0.9);
  color: white;
}

.status-research {
  background: rgba(139, 92, 246, 0.9);
  color: white;
}

.status-beta {
  background: rgba(34, 197, 94, 0.9);
  color: white;
}

.status-prototype {
  background: rgba(59, 130, 246, 0.9);
  color: white;
}

.status-launch {
  background: rgba(244, 63, 94, 0.9);
  color: white;
}

.project-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.project-sector {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  color: var(--blue-neon);
}

.project-date {
  color: var(--text-light);
}

.project-card h3 {
  font-size: 1.4rem;
  color: white;
}

.project-card p {
  color: var(--text-light);
  line-height: 1.6;
  flex-grow: 1;
}

.project-progress {
  margin-top: 1rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--blue-neon),
    var(--purple-soft)
  );
  border-radius: 3px;
  animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.progress-text {
  font-size: 0.85rem;
  color: var(--blue-neon);
  font-weight: 600;
}

.project-techs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tech-tag {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: var(--blue-neon);
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Timeline Section */
.labs-timeline {
  padding: 5rem 3rem;
  background: rgba(14, 165, 233, 0.03);
}

.timeline-container {
  max-width: 800px;
  margin: 3rem auto 0;
  position: relative;
  padding: 2rem 0;
}

.timeline-container::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--blue-neon),
    var(--purple-soft),
    transparent
  );
  top: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: linear-gradient(
    135deg,
    var(--blue-neon),
    var(--purple-soft)
  );
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
  margin: 0 auto;
}

.timeline-content {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-content h3 {
  font-size: 1.1rem;
  color: var(--blue-neon);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.timeline-item:nth-child(even) {
  direction: rtl;
}

.timeline-item:nth-child(even) .timeline-content {
  direction: ltr;
}

@media (max-width: 768px) {
  .timeline-item,
  .timeline-item:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .timeline-container::before {
    left: 0;
    transform: translateX(-50%);
  }

  .timeline-item:nth-child(even) .timeline-content {
    direction: ltr;
  }
}

/* Technologies Section */
.labs-technologies {
  padding: 5rem 3rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tech-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.tech-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(14, 165, 233, 0.3);
  transform: translateY(-5px);
}

.tech-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.tech-card h3 {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 1rem;
}

.tech-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Application Section */
.labs-apply {
  padding: 5rem 3rem;
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.05),
    rgba(139, 92, 246, 0.05)
  );
}

.apply-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.apply-content,
.apply-form {
  min-width: 0;
}

.apply-content h3 {
  font-size: 1.6rem;
  color: white;
  margin-bottom: 2rem;
}

.apply-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.apply-benefits li {
  color: var(--text-light);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.apply-benefits li strong {
  color: var(--blue-neon);
}

.apply-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: 3rem;
  display: flex;
  align-items: center;
}

.form-status--success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
  color: #d4ffd8;
}

.form-status--error {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
  color: #ffd8d8;
}

button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: white;
  margin-bottom: 0.6rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.1);
}

@media (max-width: 900px) {
  .apply-wrapper {
    grid-template-columns: 1fr;
  }

  .labs-hero {
    padding: 80px 2rem;
  }

  .labs-title {
    font-size: 2.8rem;
  }

  .labs-description {
    font-size: 1.1rem;
  }

  .timeline-container::before {
    left: 0;
  }

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

@media (max-width: 600px) {
  .labs-hero {
    min-height: 80vh;
    padding: 60px 1.5rem;
  }

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

  .labs-description {
    font-size: 1rem;
  }

  .labs-hero-stats {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .apply-form {
    padding: 1.5rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }
}
