/* =============================================
   SOCIAL ATOM — style.css
   Emmanuel Waseth
============================================= */

/* ---- VARIABLES ---- */
:root {
  --bg-deep:      #08041a;
  --bg-mid:       #110830;
  --violet:       #7c3aed;
  --violet-soft:  #a855f7;
  --violet-glow:  #c084fc;
  --accent:       #e8ff00;
  --white:        #ffffff;
  --white-dim:    rgba(255,255,255,0.5);
  --glass-bg:     rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.14);
  --orbit-stroke: rgba(168,85,247,0.38);
  --font-display: 'Bebas Neue', sans-serif;
  --font-mono:    'Space Mono', monospace;
  --font-body:    'DM Sans', sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ---- BODY ---- */
body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 90% 70% at 50% 10%,  rgba(124,58,237,.5)  0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 85%,  rgba(168,85,247,.2)  0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 75%,  rgba(99,40,200,.18)  0%, transparent 50%),
    linear-gradient(160deg, #08041a 0%, #110830 55%, #060318 100%);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ---- CUSTOM CURSOR (desktop only) ---- */
@media (pointer: fine) {
  .cursor {
    width: 10px; height: 10px;
    background: var(--violet-glow);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%,-50%);
    mix-blend-mode: screen;
  }
  .cursor-ring {
    width: 28px; height: 28px;
    border: 1px solid var(--violet-glow);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9998;
    transform: translate(-50%,-50%);
    opacity: .3;
    transition: transform .22s ease, opacity .22s ease;
  }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 2px; }

/* ---- PAGE ---- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 2rem 2rem;
  animation: fadeInPage .9s ease forwards;
}

/* ---- HEADER TEXT ---- */
.hero-label {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--violet-glow);
  margin-bottom: .5rem;
  opacity: 0;
  animation: fadeUp .6s .3s forwards;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  letter-spacing: 4px;
  line-height: 1;
  text-align: center;
  margin-bottom: .4rem;
  opacity: 0;
  animation: fadeUp .7s .5s forwards;
}
.hero-name span { color: var(--violet-glow); }

.hero-bio {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: 2px;
  color: var(--white-dim);
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp .7s .65s forwards;
}

/* ---- ATOM STAGE ---- */
.atom-wrap {
  position: relative;
  width: 600px;
  height: 600px;
  max-width: 92vw;
  max-height: 92vw;
  flex-shrink: 0;
  opacity: 0;
  animation: fadeIn .9s .85s forwards;
}

.atom-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
}

.orbit-ellipse {
  fill: none;
  stroke: var(--orbit-stroke);
  stroke-width: 1.2;
  filter: drop-shadow(0 0 5px rgba(168,85,247,.5));
}

/* ---- CENTER PROFILE ---- */
.center-img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  animation: float 4s ease-in-out infinite;
}

.profile-wrap {
  width: 108px; height: 108px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(var(--violet), var(--violet-glow), var(--violet-soft), var(--violet));
  box-shadow:
    0 0 28px rgba(168,85,247,.6),
    0 0 70px rgba(124,58,237,.25);
  position: relative;
}

.profile-wrap img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg-mid);
  border: 3px solid var(--bg-deep);
}

.profile-dot {
  position: absolute; bottom: 4px; right: 4px;
  width: 15px; height: 15px;
  background: #22c55e;
  border-radius: 50%;
  border: 3px solid var(--bg-deep);
  box-shadow: 0 0 8px rgba(34,197,94,.7);
}

/* ---- ORBIT NODES ---- */
.orbit-node {
  position: absolute;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 4px 20px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--white);
  cursor: none;
  transform: translate(-50%, -50%);
  transition: box-shadow .3s ease, border-color .3s ease;
}

.orbit-node:hover {
  box-shadow:
    0 0 22px rgba(168,85,247,.75),
    0 0 55px rgba(168,85,247,.3),
    inset 0 1px 0 rgba(255,255,255,.18);
  border-color: var(--violet-glow);
}

/* SVG icons inside nodes */
.orbit-node .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.orbit-node .lbl {
  font-family: var(--font-mono);
  font-size: .34rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-dim);
}

/* ---- NODE ICON COLORS ---- */
.n-github    .icon { color: #e2e8f0; }
.n-linkedin  .icon { color: #60a5fa; }
.n-instagram .icon { color: #f472b6; }  /* pink */
.n-tiktok    .icon { color: #e2e8f0; }  /* white/neutral */
.n-email     .icon { color: #f9a8d4; }
.n-portfolio .icon { color: var(--accent); }

/* ---- FOOTER ---- */
.page-footer {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: 3px;
  color: rgba(255,255,255,.18);
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  animation: fadeUp .7s 1.5s forwards;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInPage { from { opacity: 0 } to { opacity: 1 } }

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

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

@keyframes float {
  0%,100% { transform: translate(-50%,-50%) translateY(0); }
  50%      { transform: translate(-50%,-50%) translateY(-10px); }
}

/* ---- MOBILE ---- */
@media (max-width: 600px) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none !important; }
  .atom-wrap { display: none; }
  .mobile-section { display: flex !important; }
}

.mobile-section {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  width: 100%;
  max-width: 320px;
  margin-bottom: 1rem;
}

.mobile-profile-wrap {
  width: 96px; height: 96px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(var(--violet), var(--violet-glow), var(--violet-soft), var(--violet));
  box-shadow: 0 0 28px rgba(168,85,247,.55);
  position: relative;
  animation: floatMobile 4s ease-in-out infinite;
}

@keyframes floatMobile {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.mobile-profile-wrap img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg-mid);
  border: 3px solid var(--bg-deep);
}

.mobile-dot {
  position: absolute; bottom: 3px; right: 3px;
  width: 14px; height: 14px;
  background: #22c55e;
  border-radius: 50%;
  border: 3px solid var(--bg-deep);
}

.mobile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  width: 100%;
}

.mobile-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  color: var(--white);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: .9rem .4rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.mobile-node:hover,
.mobile-node:active {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(168,85,247,.5);
  border-color: var(--violet-glow);
}

.mobile-node .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-node .lbl {
  font-family: var(--font-mono);
  font-size: .48rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white-dim);
}

/* Mobile node icon colors */
.mobile-node.n-github    .icon { color: #e2e8f0; }
.mobile-node.n-linkedin  .icon { color: #60a5fa; }
.mobile-node.n-instagram .icon { color: #f472b6; }
.mobile-node.n-tiktok    .icon { color: #e2e8f0; }
.mobile-node.n-email     .icon { color: #f9a8d4; }
.mobile-node.n-portfolio .icon { color: var(--accent); }