/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #06060f;
  --bg2: #0c0c1a;
  --accent: #7c6bf5;
  --accent2: #a78bfa;
  --accent3: #6366f1;
  --diamond: #c4b5fd;
  --text: #e8e6f0;
  --text-muted: #9590ad;
  --card-bg: rgba(20, 18, 40, .65);
  --card-border: rgba(124, 107, 245, .15);
  --glow: rgba(124, 107, 245, .25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Particles Canvas ── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: .4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: .7; transform: translate(-50%, -50%) scale(1.15); }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  position: relative;
}

/* ── Avatar ── */
.avatar-wrapper {
  position: relative;
  width: 220px; height: 220px;
}

.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 40px var(--glow), 0 0 80px rgba(124, 107, 245, .1);
}

.avatar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1.5px solid rgba(124, 107, 245, .3);
  animation: ring-spin 12s linear infinite;
}
.ring-2 {
  inset: -24px;
  border-color: rgba(99, 102, 241, .15);
  animation-duration: 20s;
  animation-direction: reverse;
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

/* ── Hero text ── */
.tagline {
  font-size: .85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent2);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent2) 70%, var(--diamond));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.diamond {
  -webkit-text-fill-color: initial;
  animation: diamond-float 3s ease-in-out infinite;
  display: inline-block;
}

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

.subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
  font-family: 'JetBrains Mono', monospace;
}

/* ── CTA ── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 2rem;
  background: linear-gradient(135deg, var(--accent3), var(--accent));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all .3s ease;
  box-shadow: 0 4px 24px rgba(124, 107, 245, .3);
  margin-top: .5rem;
}
.cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 40px rgba(124, 107, 245, .45);
}
.cta-icon {
  font-size: 1.2rem;
  animation: sparkle 2s ease-in-out infinite;
}
@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3) rotate(20deg); }
}

.access-note {
  font-size: .9rem;
  color: var(--text-muted);
  font-style: italic;
  padding: .6rem 1.5rem;
  border: 1px solid var(--card-border);
  border-radius: 50px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  margin-top: .5rem;
}

/* ── Scroll hint ── */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--text-muted);
  font-size: .8rem;
}

.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--accent2);
  border-bottom: 2px solid var(--accent2);
  transform: rotate(45deg);
  animation: bounce-down 2s infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: .6; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

/* ── Sections ── */
.capabilities, .tech {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--text), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Cards Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all .35s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(124,107,245,.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .35s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 107, 245, .35);
  box-shadow: 0 12px 40px rgba(124, 107, 245, .12);
}
.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: icon-float 4s ease-in-out infinite;
}
@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: var(--diamond);
}

.card p {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Tech Grid ── */
.tech { padding-bottom: 3rem; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.tech-item {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.2rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: border-color .3s;
}
.tech-item:hover {
  border-color: rgba(124, 107, 245, .35);
}

.tech-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent2);
  font-weight: 600;
}
.tech-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: .88rem;
  color: var(--text);
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 2rem 3rem;
}

.footer-glow {
  position: absolute;
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, var(--glow) 0%, transparent 70%);
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: .3;
}

.footer-text {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--diamond);
}

.cta-footer { margin-bottom: 2rem; }

.footer-brand {
  font-size: .8rem;
  color: var(--text-muted);
}
.footer-brand a {
  color: var(--accent2);
  text-decoration: none;
}
.footer-brand a:hover { text-decoration: underline; }

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up .8s ease forwards;
}
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }
.delay-4 { animation-delay: .6s; }
.delay-5 { animation-delay: .9s; }

@keyframes fade-in-up {
  to { opacity: 1; transform: translateY(0); }
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--delay, 0s);
}
.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .avatar-wrapper { width: 160px; height: 160px; }
  .grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .capabilities, .tech { padding: 3rem 1.2rem; }
}
