/* ============================================================
   LANDING PAGE — usamabinyousuf.com
   Minimal dark, Apple-inspired, animated
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --bg:          #0a0a0f;
  --surface:     rgba(255, 255, 255, 0.04);
  --border:      rgba(255, 255, 255, 0.08);
  --border-hover:rgba(255, 255, 255, 0.18);
  --white:       #ffffff;
  --gray-200:    rgba(255, 255, 255, 0.75);
  --gray-400:    rgba(255, 255, 255, 0.45);
  --gray-600:    rgba(255, 255, 255, 0.25);
  --accent:      #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --accent-dim:  rgba(59, 130, 246, 0.12);
  --upwork:      #14a800;
  --upwork-dim:  rgba(20, 168, 0, 0.12);
  --upwork-glow: rgba(20, 168, 0, 0.3);

  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --spring:      cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

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

/* ============================================================
   CANVAS BACKGROUND
   ============================================================ */
#canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   RADIAL GLOW OVERLAY
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(59, 130, 246, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.landing {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  max-width: 640px;
  width: 100%;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

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

@keyframes rotateBorder {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   FADE-IN UTILITY
   ============================================================ */
.fade-in {
  opacity: 0;
  animation: fadeSlideUp 0.7s var(--ease) var(--delay, 0s) forwards;
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 36px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--accent-glow);
}

/* ============================================================
   NAME
   ============================================================ */
.name {
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 20px;
  white-space: nowrap;
}

.name-plain {
  color: var(--white);
}

.name-accent {
  /* Animated gradient shimmer — blue only on "Yousuf" */
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #93c5fd 20%,
    #3b82f6 40%,
    #ffffff 55%,
    #3b82f6 70%,
    #93c5fd 85%,
    #ffffff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ============================================================
   TITLE
   ============================================================ */
.title {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

/* ============================================================
   TAGLINE
   ============================================================ */
.tagline {
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 400;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 480px;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
  margin-bottom: 40px;
}

/* ============================================================
   SOCIAL LINKS
   ============================================================ */
.links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--gray-200);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background  0.25s var(--ease),
    border-color 0.25s var(--ease),
    color       0.25s var(--ease),
    transform   0.25s var(--spring),
    box-shadow  0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

/* Hover shimmer background sweep */
.link-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
}
.link-btn:hover::before {
  transform: translateX(100%);
}

/* LinkedIn — blue accent */
.link-btn:hover {
  background: var(--accent-dim);
  border-color: rgba(59, 130, 246, 0.35);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

/* Upwork — green accent */
.link-btn--upwork:hover {
  background: var(--upwork-dim);
  border-color: rgba(20, 168, 0, 0.35);
  color: var(--white);
  box-shadow: 0 8px 28px var(--upwork-glow);
}

/* GitHub — white/gray accent */
.link-btn--github:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.1);
}

.link-btn svg {
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--spring);
}
.link-btn:hover svg {
  opacity: 1;
  transform: scale(1.1);
}

/* Focus visible ring */
.link-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================================
   FOOTER NOTE
   ============================================================ */
.footer-note {
  font-size: 0.75rem;
  color: var(--gray-600);
  letter-spacing: 0.04em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .links {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .link-btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .name {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
    white-space: nowrap;
  }
}
