/* ============================================================
   Stratix Personal Page — Design System
   ============================================================ */

/* ---- Tokens ---- */
:root {
  /* Core palette */
  --bg:          #0a0e17;
  --bg-card:     rgba(16, 22, 36, 0.72);
  --surface:     rgba(255, 255, 255, 0.04);

  /* Accent — Stratix teal */
  --accent:      #4ECDC4;
  --accent-d:    #38b2ac;
  --accent-glow: rgba(78, 205, 196, 0.25);

  /* Complementary */
  --purple:      #7C5CFF;
  --navy:        #1a2744;

  /* Text */
  --text:        #f0f2f5;
  --text-muted:  rgba(240, 242, 245, 0.55);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --radius:      16px;
  --radius-sm:   10px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

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

/* ---- Canvas ---- */
#constellation {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- Ambient glow orbs ---- */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
  opacity: 0.35;
}

.glow-orb--teal {
  width: 420px;
  height: 420px;
  background: var(--accent);
  top: -10%;
  right: -5%;
  animation: drift 18s ease-in-out infinite alternate;
}

.glow-orb--navy {
  width: 500px;
  height: 500px;
  background: var(--navy);
  bottom: -10%;
  left: -8%;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

.glow-orb--purple {
  width: 320px;
  height: 320px;
  background: var(--purple);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.18;
  animation: drift 15s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.08); }
}

/* ---- Page layout ---- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 2rem 1.25rem;
}

/* ---- Card ---- */
.card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
  animation: cardIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    0 0 80px rgba(78, 205, 196, 0.06);
}

@keyframes cardIn {
  0% {
    opacity: 0;
    transform: translateY(32px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Accent bar */
.card__accent {
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--purple), var(--accent));
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Card content */
.card__content {
  padding: 2.75rem 2.25rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Brand */
.card__brand {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* Name */
.card__name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--text) 0%, rgba(240, 242, 245, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tagline */
.card__tagline {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 340px;
}

/* Divider */
.card__divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 1.75rem 0;
  opacity: 0.6;
}

/* ---- Action Buttons ---- */
.card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover {
  border-color: rgba(78, 205, 196, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(78, 205, 196, 0.12);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(0);
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  color: var(--accent);
  transition: color 0.3s ease;
}

.btn span {
  position: relative;
  z-index: 1;
}

/* Specific button accents */
#btn-linkedin:hover {
  border-color: rgba(0, 119, 181, 0.4);
  box-shadow: 0 8px 24px rgba(0, 119, 181, 0.12);
}
#btn-linkedin:hover .btn__icon {
  color: #0077B5;
}
#btn-linkedin:hover::before {
  background: linear-gradient(135deg, rgba(0, 119, 181, 0.15), transparent);
}

#btn-email:hover {
  border-color: rgba(78, 205, 196, 0.3);
}

#btn-call:hover {
  border-color: rgba(124, 92, 255, 0.3);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.12);
}
#btn-call:hover .btn__icon {
  color: var(--purple);
}
#btn-call:hover::before {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.15), transparent);
}

#btn-website:hover {
  border-color: rgba(78, 205, 196, 0.3);
}

/* ---- Footer ---- */
.footer {
  margin-top: 2.5rem;
  animation: cardIn 0.9s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.footer p {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.5;
  letter-spacing: 0.04em;
}

/* ---- Toast notification ---- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(16, 22, 36, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(78, 205, 196, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast__number {
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .card__content {
    padding: 2.25rem 1.5rem 1.75rem;
  }

  .card__name {
    font-size: 2rem;
  }

  .card__tagline {
    font-size: 0.85rem;
  }

  .card__actions {
    gap: 10px;
  }

  .btn {
    padding: 12px 10px;
    font-size: 0.8rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .card {
    max-width: 400px;
  }
}

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