/* ===== Dev Saimon Portfolio ===== */
:root {
  --season-accent: #60a5fa;
  --season-shadow: #3b82f6;
  --season-logo-from: #60a5fa;
  --season-logo-to: #a855f7;
  --season-mid: #93c5fd;
  --season-glow: #3b82f6;

  --bg: #05070b;
  --bg-soft: #0b0d12;
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --white: #ffffff;

  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .name, .brand {
  font-family: "Bricolage Grotesque", "Sora", sans-serif;
  letter-spacing: -0.03em;
}

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

/* ===== Backdrop ===== */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.backdrop-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 85%);
}

.backdrop-radial {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--season-shadow) 28%, transparent), transparent 42%),
    radial-gradient(circle at 80% 90%, rgba(168, 85, 247, 0.12), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(96, 165, 250, 0.10), transparent 40%);
}

.backdrop-grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ===== Layout ===== */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 16px 64px;
}

/* ===== Top bar ===== */
.topbar {
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--white);
}

.brand svg {
  filter: drop-shadow(0 3px 14px color-mix(in srgb, var(--season-glow) 35%, transparent));
}

.brand .brand-name {
  letter-spacing: -0.03em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  backdrop-filter: blur(12px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

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

/* ===== Profile card ===== */
.profile-card {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 36px 28px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: cardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--season-shadow) 14%, transparent), transparent 60%);
  pointer-events: none;
}

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

/* avatar */
.avatar-wrap {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 0 auto 20px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 40px;
  color: #fff;
  background: linear-gradient(135deg, var(--season-logo-from), var(--season-logo-to));
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06), 0 0 30px color-mix(in srgb, var(--season-shadow) 40%, transparent);
  position: relative;
  z-index: 1;
  letter-spacing: -0.04em;
}

.avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--season-accent) 40%, transparent);
  animation: ringSpin 8s linear infinite;
  z-index: 0;
}

.avatar-ring::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--season-accent);
  box-shadow: 0 0 12px var(--season-accent);
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.name {
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 6px;
}

.role {
  font-size: 14px;
  font-weight: 600;
  color: var(--season-accent);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.bio {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 22px;
  white-space: pre-line;
}

/* meta line */
.meta-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-line .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-dim);
}

/* tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tag:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.tag .tag-icon {
  font-size: 13px;
  line-height: 1;
}

/* socials */
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--white);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
}

.social:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social.instagram { --accent: #e1306c; }
.social.telegram { --accent: #26a5e4; }
.social.discord { --accent: #5865f2; }

.social .icon-wrap {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
  transition: background 0.2s ease;
}

.social:hover .icon-wrap {
  background: color-mix(in srgb, var(--accent) 32%, transparent);
}

.social.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.social.disabled:hover {
  transform: none;
}

/* ===== Services section ===== */
.services {
  width: 100%;
  max-width: 460px;
  margin-top: 24px;
  animation: cardIn 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.services-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-bottom: 12px;
  padding-left: 4px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.service-card {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(12px);
  padding: 16px 10px;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.service-icon {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}

.service-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 36px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}

.site-footer a {
  color: var(--season-accent);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--white);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .page { padding: 32px 12px 48px; }
  .profile-card { padding: 30px 20px 24px; }
  .name { font-size: 26px; }
  .service-grid { gap: 8px; }
  .social { padding: 10px 14px; font-size: 13px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
