/* ============================================================
   index.css — styles specific to index.html
   ============================================================ */

/* Glow blob behind hero */
body::after {
  content: '';
  position: fixed;
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vh;
  background: radial-gradient(ellipse, rgba(220,50,50,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Override container width to match original index layout */
.container { max-width: 960px; }
nav .inner { max-width: 960px; }

/* ── Hero ── */
.hero {
  padding: 100px 0 72px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  border: 1px solid rgba(220,50,50,0.25);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--tag-text);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 .gradient {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-subtle);
  max-width: 540px;
  margin: 0 auto 36px;
}

.hero-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Inline btn on index doesn't need full-width */
.hero-links .btn { width: auto; }
.project-links .btn { width: auto; }

/* ── Section headings ── */
.section-header { margin-bottom: 36px; }

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-header p {
  color: var(--text-subtle);
  margin-top: 8px;
  font-size: 0.95rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 80px 0;
}

/* ── Project Card ── */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.25s, box-shadow 0.3s;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(220,50,50,0.08);
}

.project-preview {
  width: 100%;
  height: 240px;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(220,50,50,0.2), transparent 60%),
    radial-gradient(ellipse at 75% 30%, rgba(255,112,67,0.1), transparent 50%),
    #080a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(220,50,50,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,50,50,0.1) 1px, transparent 1px);
  background-size: 32px 32px;
}

.preview-label {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: rgba(220,50,50,0.7);
  border: 1px solid rgba(220,50,50,0.2);
  border-radius: 6px;
  padding: 6px 14px;
  background: rgba(220,50,50,0.05);
  backdrop-filter: blur(4px);
}

.project-preview .geo {
  position: absolute;
  border: 1.5px solid rgba(220,50,50,0.35);
  border-radius: 3px;
  animation: float 5s ease-in-out infinite;
}

.project-preview .geo-cube {
  width: 64px; height: 64px;
  top: 38%; left: 25%;
  transform: rotate(22deg);
  animation-delay: 0s;
}

.project-preview .geo-tri {
  width: 0; height: 0;
  border: none;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  border-bottom: 46px solid rgba(255,112,67,0.25);
  border-radius: 0;
  top: 30%; right: 28%;
  animation-delay: 1.5s;
}

.project-preview .geo-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  border-color: rgba(255,112,67,0.2);
  bottom: 20%; right: 18%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(22deg); }
  50%       { transform: translateY(-10px) rotate(25deg); }
}

.project-card-body { padding: 28px; }

.project-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project-desc {
  color: var(--text-subtle);
  font-size: 0.925rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.tech-tags { margin-bottom: 24px; }

.project-highlights {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-bottom: 24px;
}

.project-highlights li {
  font-size: 0.85rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-highlights li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.25s;
}

.skill-card:hover { border-color: rgba(220,50,50,0.3); }

.skill-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.skill-list li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-subtle);
}

/* Footer override for index */
footer p { line-height: 1.6; }
