/* =============================================
   RESET & BASE
============================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #0d0d0d;
  color: #e0e0e0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 3rem 2rem 2rem;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 720px; width: 100%; }

/* =============================================
   HEADER
============================================= */
.header { text-align: center; margin-bottom: 3rem; }

.header h1 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header .tagline {
  font-size: 1rem;
  color: #555;
  margin-top: 0.4rem;
  min-height: 1.5em;
}

.header .tagline .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #a855f7;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

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

.header .badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: #1a1a2e;
  border: 1px solid #333;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #aaa;
  margin-bottom: 0.8rem;
}

/* =============================================
   SECTION TITLE
============================================= */
.section-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #999;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

/* =============================================
   TEAM GRID
============================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.card {
  position: relative;
  border-radius: 14px;
  padding: 1.8rem 1.2rem;
  text-align: center;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  background: #111;
  border: 1px solid #222;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.35s, box-shadow 0.35s;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 800px;
  will-change: transform;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:active {
  transform: translateY(-2px) scale(0.99);
}

.card .avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.8rem;
  display: block;
  position: relative;
  z-index: 2;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  position: relative;
  z-index: 2;
}

.card .role {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

/* =============================================
   MENEAR — NEON / FIRE
============================================= */
.card-m {
  border-color: rgba(255,60,0,0.15);
  font-family: 'Orbitron', sans-serif;
}

.card-m::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,60,0,0.03) 2px, rgba(255,60,0,0.03) 4px);
  pointer-events: none;
}

.card-m .ember-rain {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0.2;
}

.card-m .ec {
  position: absolute; top: -10%;
  width: 3px; height: 3px; background: #ff4500;
  border-radius: 50%;
  box-shadow: 0 0 6px #ff4500, 0 0 12px rgba(255,60,0,0.3);
  animation: e-fall linear infinite;
}

.card-m .ec:nth-child(1) { left: 10%; animation-duration: 3s; animation-delay: 0s; }
.card-m .ec:nth-child(2) { left: 30%; animation-duration: 4s; animation-delay: 0.8s; }
.card-m .ec:nth-child(3) { left: 55%; animation-duration: 3.5s; animation-delay: 1.5s; }
.card-m .ec:nth-child(4) { left: 75%; animation-duration: 4.5s; animation-delay: 0.3s; }
.card-m .ec:nth-child(5) { left: 90%; animation-duration: 3.8s; animation-delay: 2s; }

@keyframes e-fall {
  0% { transform: translateY(0) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: translateY(350px) scale(1.5); opacity: 0; }
}

.card-m .glow-line {
  position: absolute; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,60,0,0.12), transparent);
  animation: g-line 3s ease-in-out infinite;
  pointer-events: none;
}

.card-m .glow-line:nth-child(6) { top: 25%; animation-delay: 0s; }
.card-m .glow-line:nth-child(7) { top: 50%; animation-delay: 1s; }
.card-m .glow-line:nth-child(8) { top: 75%; animation-delay: 2s; }

@keyframes g-line {
  0%, 100% { opacity: 0; transform: scaleX(0.3); }
  50% { opacity: 1; transform: scaleX(1); }
}

.card-m .avatar { border: 2px solid rgba(255,60,0,0.2); box-shadow: 0 0 25px rgba(255,60,0,0.08); }

.card-m:hover .avatar {
  box-shadow: 0 0 40px rgba(255,60,0,0.25), 0 0 80px rgba(255,60,0,0.1);
}

.card-m h3 {
  color: #ff4500;
  text-shadow: 0 0 20px rgba(255,60,0,0.15);
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.card-m .role { color: rgba(255,60,0,0.25); letter-spacing: 4px; }

.card-m .heat {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #ff4500, #ff6a00, #ff4500, transparent);
  filter: blur(2px);
  animation: heat-wave 2s ease-in-out infinite;
}

@keyframes heat-wave {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* =============================================
   SUHAN — ICE / FROST
============================================= */
.card-s {
  border-color: rgba(100,200,255,0.08);
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, #0d1117, #0a0f14);
}

.card-s .frost-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: 0.1;
}

.card-s .flake {
  position: absolute;
  color: rgba(180,230,255,0.15);
  font-size: 10px;
  animation: snow linear infinite;
  pointer-events: none;
}

.card-s .flake:nth-child(1) { left: 5%; animation-duration: 5s; animation-delay: 0s; font-size: 8px; }
.card-s .flake:nth-child(2) { left: 25%; animation-duration: 6s; animation-delay: 1.5s; font-size: 6px; }
.card-s .flake:nth-child(3) { left: 45%; animation-duration: 4.5s; animation-delay: 0.5s; font-size: 10px; }
.card-s .flake:nth-child(4) { left: 65%; animation-duration: 5.5s; animation-delay: 2s; font-size: 7px; }
.card-s .flake:nth-child(5) { left: 85%; animation-duration: 4s; animation-delay: 1s; font-size: 9px; }

@keyframes snow {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.4; }
  100% { transform: translateY(350px) rotate(180deg); opacity: 0; }
}

.card-s .ice-crystal {
  position: absolute;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(100,200,255,0.1), transparent);
  pointer-events: none;
  animation: crystal-pulse 4s ease-in-out infinite;
}

.card-s .ice-crystal:nth-child(6) { left: 15%; top: 10%; height: 40px; animation-delay: 0s; }
.card-s .ice-crystal:nth-child(7) { left: 40%; top: 30%; height: 30px; animation-delay: 1.2s; }
.card-s .ice-crystal:nth-child(8) { left: 70%; top: 50%; height: 50px; animation-delay: 2.5s; }
.card-s .ice-crystal:nth-child(9) { left: 90%; top: 20%; height: 35px; animation-delay: 0.6s; }

@keyframes crystal-pulse {
  0%, 100% { opacity: 0.05; transform: scaleY(0.8); }
  50% { opacity: 0.2; transform: scaleY(1.2); }
}

.card-s .avatar {
  border: 2px solid rgba(100,200,255,0.1);
  box-shadow: 0 0 30px rgba(100,200,255,0.03), inset 0 0 20px rgba(100,200,255,0.02);
}

.card-s:hover .avatar {
  box-shadow: 0 0 40px rgba(100,200,255,0.15), inset 0 0 30px rgba(100,200,255,0.05);
}

.card-s h3 {
  color: #b4e6ff;
  text-shadow: 0 0 25px rgba(100,200,255,0.1);
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.card-s .role { color: rgba(100,200,255,0.2); letter-spacing: 4px; }

.card-s .frost-line {
  width: 50px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100,200,255,0.15), transparent);
  margin: 0.4rem auto 0.3rem;
  animation: frost-pulse 3s ease-in-out infinite;
}

@keyframes frost-pulse { 0%,100% { width: 40px; opacity: 0.2; } 50% { width: 70px; opacity: 0.5; } }

/* =============================================
   PROJECTS
============================================= */
.projects-section { margin: 2.5rem 0; }

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

.proj-card {
  position: relative;
  background: #111;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 1.5rem 1.2rem 1.2rem;
  text-align: left;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.proj-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.25s, box-shadow 0.3s;
}

.proj-card:hover {
  transform: translateY(-3px);
  border-color: #333;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.proj-card .proj-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.proj-card .proj-icon-img {
  width: 32px; height: 32px;
  margin-bottom: 0.5rem;
  display: block;
  border-radius: 6px;
}

.proj-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: #ccc;
}

.proj-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.proj-card h3 a:hover {
  color: #fff;
}

.proj-card .proj-desc {
  font-size: 0.78rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.proj-card .proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.proj-card .tag {
  font-size: 0.6rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #1a1a2e;
  color: #666;
  border: 1px solid #2a2a3e;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.proj-card .tag.purple { color: #a855f7; border-color: rgba(168,85,247,0.15); background: rgba(168,85,247,0.04); }
.proj-card .tag.blue  { color: #3b82f6; border-color: rgba(59,130,246,0.15); background: rgba(59,130,246,0.04); }
.proj-card .tag.orange { color: #ff8c42; border-color: rgba(255,140,66,0.15); background: rgba(255,140,66,0.04); }
.proj-card .tag.green { color: #22c55e; border-color: rgba(34,197,94,0.15); background: rgba(34,197,94,0.04); }
.proj-card .tag.cyan { color: #06b6d4; border-color: rgba(6,182,212,0.15); background: rgba(6,182,212,0.04); }

.proj-card .dl-btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  transition: transform 0.2s, filter 0.2s;
}

.proj-card .dl-btn:hover { transform: scale(1.04); filter: brightness(1.15); }

.proj-card .proj-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
}

.proj-card .proj-bar.purple { background: linear-gradient(90deg, #a855f7, #3b82f6); }
.proj-card .proj-bar.orange { background: linear-gradient(90deg, #ff6a00, #ff4500); }
.proj-card .proj-bar.cyan { background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.proj-card .proj-bar.green { background: linear-gradient(90deg, #22c55e, #06b6d4); }

/* =============================================
   FOOTER
============================================= */
footer {
  text-align: center;
  font-size: 0.75rem;
  color: #333;
  margin-top: 1rem;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .header h1 { font-size: 2rem; }
  body { padding: 2rem 1rem 2rem; }
}
