:root {
  --bg-1: #0f0c29;
  --bg-2: #302b63;
  --bg-3: #24243e;
  --card-bg: rgba(20, 18, 40, 0.55);
  --card-border: rgba(255, 255, 255, 0.12);
  --text-main: #f4f2ff;
  --text-muted: #b9b3d9;
  --accent: #7f5af0;
  --accent-2: #2cb67d;
  --tag-bg: rgba(127, 90, 240, 0.15);
  --tag-border: rgba(127, 90, 240, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2) 50%, var(--bg-3));
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(127, 90, 240, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 90, 240, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  pointer-events: none;
}

.card {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
  animation: rise 0.7s ease-out;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(44, 182, 125, 0.12);
  border: 1px solid rgba(44, 182, 125, 0.35);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.accent {
  color: var(--accent);
}

.subtitle {
  font-size: 1.15rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.subtitle strong {
  color: var(--accent-2);
}

.description {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.tag {
  font-size: 0.85rem;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: var(--text-main);
}

.projects {
  margin-bottom: 2.5rem;
  text-align: left;
}

.projects h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: center;
}

.project-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(127, 90, 240, 0.14);
  box-shadow: 0 8px 24px rgba(127, 90, 240, 0.25);
}

.project-card:visited {
  color: var(--text-main);
}

.project-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
  background: rgba(127, 90, 240, 0.15);
  border: 1px solid var(--tag-border);
  border-radius: 10px;
}

.project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
  min-width: 0;
}

.project-name {
  font-weight: 600;
  font-size: 1rem;
}

.project-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.project-card::after {
  content: "→";
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.project-card:hover::after {
  transform: translateX(4px);
}

.radio-card {
  margin-top: 0.75rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.radio-card:hover {
  border-color: var(--accent-2);
  box-shadow: 0 8px 24px rgba(44, 182, 125, 0.18);
}

.radio-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.radio-card .project-icon {
  background: rgba(44, 182, 125, 0.15);
  border-color: rgba(44, 182, 125, 0.4);
}

.radio-player {
  width: 100%;
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  padding-bottom: 40px;
}

.radio-player iframe {
  display: block;
  width: 100%;
  height: 310px;
  margin-top: -30px;
}

.chatbot-card {
  margin-top: 0.75rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(127, 90, 240, 0.2);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-desc a {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
}

.card-desc a:hover {
  text-decoration: underline;
}

.chatbot-preview {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.chatbot-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.more-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.more-info a {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
}

.more-info a:hover {
  text-decoration: underline;
}

footer {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--card-border);
  padding-top: 1.25rem;
}

@media (max-width: 480px) {
  .card {
    padding: 2.25rem 1.5rem;
  }
}
