:root {
  --bg-start: #0d1224;
  --bg-end: #050816;
  --accent-1: 74, 0, 255;
  --accent-2: 0, 234, 255;
}

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

/* html,
body {
  height: 100%;
} */

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 2rem);
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial;
  color: #fff;
  overflow-x: hidden;

  /* 🔥 FIX: Perfectly centered gradient */
  background: radial-gradient(
    circle at center,
    var(--bg-start) 0%,
    #0b0f20 40%,
    var(--bg-end) 100%
  );
}

/* Floating background glow */
.orb {
  position: absolute;
  width: clamp(180px, 38vw, 600px);
  height: clamp(180px, 38vw, 600px);
  background: rgba(var(--accent-1), 0.28);
  filter: blur(110px);
  border-radius: 50%;
  z-index: 1;
  top: 10%;
  left: 8%;
  animation: float 13s infinite ease-in-out alternate;
}

.orb2 {
  background: rgba(var(--accent-2), 0.22);
  bottom: 10%;
  right: 8%;
  top: auto;
  left: auto;
  animation-duration: 15s;
  animation-delay: -4s;
}

@keyframes float {
  from {
    transform: translate(-120px, -120px);
  }
  to {
    transform: translate(120px, 120px);
  }
}

/* contact-row: visible email + copy */
.contact-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.6rem;
}
.contact-row .small-icon {
  opacity: 0.95;
  color: var(--muted);
}
.email-text {
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  background: transparent;
  color: var(--muted);
  user-select: text;
}
.email-text:focus {
  outline: none;
}
.copy-email {
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}
.copy-email:hover {
  background: linear-gradient(90deg, rgba(var(--accent-1), 0.08), rgba(var(--accent-2), 0.06));
  transform: translateY(-2px);
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.005));
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.contact-row .small-icon {
  opacity: 0.9;
  color: var(--muted);
  flex-shrink: 0;
}
.email-text {
  color: var(--muted);
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: transparent;
  user-select: text;
  -webkit-user-select: text;
}
.email-text {
  cursor: pointer;
  transition:
    background 0.14s ease,
    transform 0.12s ease;
}
.email-text:hover {
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-1px);
}
.email-text:focus {
  outline: 2px solid rgba(255, 255, 255, 0.06);
  outline-offset: 2px;
}
.copy-email {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    background 0.14s ease;
}
.copy-email .copy-icon {
  font-size: 0.95rem;
}
.copy-email .copy-label {
  font-size: 0.95rem;
}
.copy-email:hover {
  background: linear-gradient(90deg, rgba(var(--accent-1), 0.08), rgba(var(--accent-2), 0.06));
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.5);
}

/* toast used by copy action */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 220ms ease;
  z-index: 9999;
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* Main container */
.container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto; /* ✔ center horizontally */
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 90px;
}

/* Card */
.card {
  width: 100%;
  padding: clamp(1.2rem, 4vw, 2.5rem);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  text-align: center;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.55);
  animation: fadeIn 600ms ease both;
  margin-top: 100px;
  margin-bottom: 100px;
}

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

/* Profile Box */
.profile-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.profile-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.profile-title {
  font-size: 1.05rem;
  opacity: 0.85;
  color: #d4d6ff;
}

h1 {
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  font-weight: 700;
  color: #c3caff;
}

p {
  font-size: clamp(1rem, 3vw, 1.15rem);
  color: #e8e9ff;
  opacity: 0.95;
}

/* Small screens adjustments */
@media (max-width: 420px) {
  .orb,
  .orb2 {
    filter: blur(90px);
  }
  .card {
    padding: 1rem;
    border-radius: 14px;
  }
  .profile-img {
    width: 170px;
    height: 170px;
  }
}

/* Links / Social card styling */
.links-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}
.links-card .muted {
  margin-bottom: 0.6rem;
  opacity: 0.75;
  color: #cfd3ff;
}
.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 160ms ease;
}
.social .icon {
  font-size: 1.1rem;
  line-height: 1;
}
.social svg.icon {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
  fill: currentColor;
}
.social:hover,
.social:focus {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  background: linear-gradient(90deg, rgba(var(--accent-1), 0.12), rgba(var(--accent-2), 0.08));
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 460px) {
  .social {
    width: 100%;
    justify-content: center;
  }
}
