/* ==========================================================================
   Tip Will Sigmon - Styles
   ========================================================================== */

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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.3);
  --accent-secondary: #667eea;
  --highlight: #f59e0b;
  --focus-ring: rgba(16, 185, 129, 0.5);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
}

/* Animated gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(245, 158, 11, 0.03) 0%, transparent 60%);
  animation: bgPulse 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

/* Subtle noise texture overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 0;
}

@keyframes bgPulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* ==========================================================================
   Focus Styles - Accessibility
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   Visited Link Styles
   ========================================================================== */

a:visited {
  color: inherit;
}

.footer-links a:visited {
  color: var(--text-secondary);
}

.project-card:visited .project-name {
  color: var(--text-secondary);
}

/* ==========================================================================
   Entrance Animations
   ========================================================================== */

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes softPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

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

/* ==========================================================================
   Layout
   ========================================================================== */

.page-wrapper {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header / Logo
   ========================================================================== */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  animation: fadeIn 0.6s ease-out;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.logo:hover .logo-mark {
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: rotate(-5deg);
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.header-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.header-link:hover {
  color: var(--accent);
  transform: translateX(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  text-align: center;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(
    90deg,
    #fff 0%,
    #fff 40%,
    var(--accent) 50%,
    #fff 60%,
    #fff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 8s linear infinite;
}

.hero-hook {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 32px;
}

.hero-hook strong {
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   Primary CTA
   ========================================================================== */

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 36px;
  background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
  color: white;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 8px 32px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  animation: scaleIn 0.6s ease-out 0.3s both;
}

.primary-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.primary-cta:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 16px 48px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.primary-cta:hover::before {
  left: 100%;
}

.primary-cta:active {
  transform: translateY(-2px) scale(1);
}

.primary-cta svg {
  width: 22px;
  height: 22px;
  animation: float 3s ease-in-out infinite;
}

.cta-subline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  animation: fadeIn 0.6s ease-out 0.5s both;
}

/* ==========================================================================
   Section
   ========================================================================== */

section {
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out both;
}

section:nth-child(3) { animation-delay: 0.1s; }
section:nth-child(4) { animation-delay: 0.2s; }
section:nth-child(5) { animation-delay: 0.3s; }
section:nth-child(6) { animation-delay: 0.4s; }
section:nth-child(7) { animation-delay: 0.5s; }

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.section-header:hover .section-icon {
  transform: scale(1.1) rotate(-5deg);
  border-color: var(--border-hover);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
}

.section-microcopy {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-left: 44px;
}

/* ==========================================================================
   Card Panel
   ========================================================================== */

.card-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.card-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* ==========================================================================
   What I Do / Skills
   ========================================================================== */

.what-i-do {
  margin-bottom: 32px;
}

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

.skill-item {
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.skill-item:hover::before {
  opacity: 0.3;
}

.skill-icon {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
  transition: transform 0.3s ease;
}

.skill-item:hover .skill-icon {
  transform: scale(1.15);
}

.skill-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Recent Wins
   ========================================================================== */

.wins-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.win-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.win-tag:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.win-tag::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

/* ==========================================================================
   Tip Options
   ========================================================================== */

.tip-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.tip-amount {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tip-amount::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tip-amount:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.2);
}

.tip-amount:hover::before {
  opacity: 1;
}

.tip-amount-icon {
  font-size: 24px;
  transition: transform 0.3s ease;
}

.tip-amount:hover .tip-amount-icon {
  transform: scale(1.2);
}

.tip-amount-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.tip-amount-label {
  font-size: 11px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* Highlight middle tier */
.tip-amount:nth-child(2) {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}

.tip-amount:nth-child(2)::after {
  content: 'Popular';
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 3px 8px;
  background: var(--accent);
  color: white;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0 16px 0 8px;
}

.tip-methods {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.tip-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.tip-method:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.tip-method svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.tip-method:hover svg {
  transform: scale(1.1);
}

.tip-method.primary {
  background: linear-gradient(135deg, #00D632 0%, #00a328 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(0, 214, 50, 0.25);
}

.tip-method.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 214, 50, 0.35);
}

/* ==========================================================================
   Projects
   ========================================================================== */

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:first-child::before {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
}

.project-card:last-child::before {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

.project-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(6px);
}

.project-card:first-child:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15);
}

.project-card:last-child:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.project-card:hover::before {
  opacity: 1;
}

.project-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.project-card:hover .project-icon {
  transform: scale(1.08) rotate(-3deg);
}

.project-icon.leavn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.project-card:hover .project-icon.leavn {
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.project-icon.wsigstack {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.project-card:hover .project-icon.wsigstack {
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.project-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.project-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.project-badge.github {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.25);
  color: #a78bfa;
}

.project-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.project-outcome {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  font-style: italic;
}

.project-arrow {
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.project-card:hover .project-arrow {
  transform: translateX(6px);
  color: var(--text-primary);
}

/* ==========================================================================
   Connect / Social - Brand Colors on Hover
   ========================================================================== */

.social-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  list-style: none;
}

.social-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-item a:hover {
  transform: translateY(-4px) scale(1.05);
}

.social-item svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.social-item a:hover svg {
  transform: scale(1.1);
}

/* X / Twitter */
.social-item:nth-child(1) a:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: #000;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* YouTube */
.social-item:nth-child(2) a:hover {
  background: rgba(255, 0, 0, 0.1);
  border-color: #ff0000;
  color: #ff0000;
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.2);
}

/* Instagram */
.social-item:nth-child(3) a:hover {
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.15) 0%, rgba(253, 29, 29, 0.15) 50%, rgba(252, 176, 69, 0.15) 100%);
  border-color: #e1306c;
  color: #e1306c;
  box-shadow: 0 8px 24px rgba(225, 48, 108, 0.2);
}

/* LinkedIn */
.social-item:nth-child(4) a:hover {
  background: rgba(0, 119, 181, 0.1);
  border-color: #0077b5;
  color: #0077b5;
  box-shadow: 0 8px 24px rgba(0, 119, 181, 0.2);
}

/* GitHub */
.social-item:nth-child(5) a:hover {
  background: rgba(110, 84, 148, 0.1);
  border-color: #6e5494;
  color: #fff;
  box-shadow: 0 8px 24px rgba(110, 84, 148, 0.2);
}

/* Threads */
.social-item:nth-child(6) a:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: #000;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Bluesky */
.social-item:nth-child(7) a:hover {
  background: rgba(0, 133, 255, 0.1);
  border-color: #0085ff;
  color: #0085ff;
  box-shadow: 0 8px 24px rgba(0, 133, 255, 0.2);
}

/* TikTok */
.social-item:nth-child(8) a:hover {
  background: linear-gradient(135deg, rgba(0, 242, 234, 0.1) 0%, rgba(255, 0, 80, 0.1) 100%);
  border-color: #00f2ea;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 242, 234, 0.2);
}

/* Telegram */
.social-item:nth-child(9) a:hover {
  background: rgba(0, 136, 204, 0.1);
  border-color: #0088cc;
  color: #0088cc;
  box-shadow: 0 8px 24px rgba(0, 136, 204, 0.2);
}

/* Facebook */
.social-item:nth-child(10) a:hover {
  background: rgba(24, 119, 242, 0.1);
  border-color: #1877f2;
  color: #1877f2;
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  animation: fadeIn 0.6s ease-out 0.6s both;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-brand {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-deploy {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
}

.footer-deploy a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-deploy a:hover {
  color: var(--text-secondary);
}

/* ==========================================================================
   Responsive - Tablet (768px)
   ========================================================================== */

@media (max-width: 768px) {
  .page-wrapper {
    padding: 22px 18px 44px;
  }

  header {
    margin-bottom: 40px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-hook {
    font-size: 17px;
  }

  .primary-cta {
    padding: 16px 32px;
    font-size: 16px;
  }

  .project-card {
    padding: 18px;
  }

  .project-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

/* ==========================================================================
   Responsive - Mobile (640px)
   ========================================================================== */

@media (max-width: 640px) {
  .page-wrapper {
    padding: 20px 16px 40px;
  }

  header {
    margin-bottom: 32px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-hook {
    font-size: 16px;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .skill-item {
    padding: 14px 8px;
  }

  .skill-icon {
    font-size: 22px;
  }

  .skill-name {
    font-size: 11px;
  }

  .tip-amounts {
    gap: 8px;
  }

  .tip-amount {
    padding: 16px 8px;
  }

  .tip-amount-icon {
    font-size: 20px;
  }

  .tip-amount-value {
    font-size: 18px;
  }

  .tip-amount:nth-child(2)::after {
    padding: 2px 6px;
    font-size: 8px;
  }

  .tip-methods {
    flex-wrap: wrap;
  }

  .tip-method {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
  }

  .social-list {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  .section-microcopy {
    padding-left: 0;
  }

  .project-card {
    padding: 16px;
  }

  .project-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
}

/* ==========================================================================
   Reduced Motion - Accessibility
   ========================================================================== */

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

  body::before {
    animation: none;
  }

  .hero h1 {
    animation: none;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
  }

  .primary-cta:hover,
  .tip-amount:hover,
  .tip-method.primary:hover,
  .project-card:hover,
  .social-item a:hover,
  .skill-item:hover,
  .win-tag:hover {
    transform: none;
  }

  .primary-cta::before {
    display: none;
  }

  .primary-cta svg {
    animation: none;
  }
}

/* ==========================================================================
   Floating Particles & Orbs
   ========================================================================== */

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: rgba(16, 185, 129, 0.4);
  border-radius: 50%;
  animation: floatParticle 20s ease-in-out infinite;
}

@keyframes floatParticle {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-40px) scale(1.2);
    opacity: 0.7;
  }
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 15s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(16, 185, 129, 0.15);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(139, 92, 246, 0.12);
  bottom: 20%;
  right: 10%;
  animation-delay: -5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(245, 158, 11, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.5;
  }
  33% {
    transform: scale(1.1) translate(20px, -20px);
    opacity: 0.7;
  }
  66% {
    transform: scale(0.9) translate(-20px, 20px);
    opacity: 0.4;
  }
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for grid items */
.tip-amount.reveal-on-scroll.revealed:nth-child(1) { transition-delay: 0s; }
.tip-amount.reveal-on-scroll.revealed:nth-child(2) { transition-delay: 0.1s; }
.tip-amount.reveal-on-scroll.revealed:nth-child(3) { transition-delay: 0.2s; }

.social-item.reveal-on-scroll.revealed:nth-child(1) { transition-delay: 0s; }
.social-item.reveal-on-scroll.revealed:nth-child(2) { transition-delay: 0.05s; }
.social-item.reveal-on-scroll.revealed:nth-child(3) { transition-delay: 0.1s; }
.social-item.reveal-on-scroll.revealed:nth-child(4) { transition-delay: 0.15s; }
.social-item.reveal-on-scroll.revealed:nth-child(5) { transition-delay: 0.2s; }
.social-item.reveal-on-scroll.revealed:nth-child(6) { transition-delay: 0.25s; }
.social-item.reveal-on-scroll.revealed:nth-child(7) { transition-delay: 0.3s; }
.social-item.reveal-on-scroll.revealed:nth-child(8) { transition-delay: 0.35s; }
.social-item.reveal-on-scroll.revealed:nth-child(9) { transition-delay: 0.4s; }
.social-item.reveal-on-scroll.revealed:nth-child(10) { transition-delay: 0.45s; }

/* ==========================================================================
   Enhanced Magnetic & Tilt Effects
   ========================================================================== */

.primary-cta,
.tip-amount,
.tip-method,
.project-card {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.project-card {
  transform-style: preserve-3d;
}

/* Shimmer effect on cards */
.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: left 0.8s ease;
  pointer-events: none;
}

.project-card:hover::after {
  left: 100%;
}

/* Glow pulse on primary CTA */
.primary-cta {
  position: relative;
}

.primary-cta::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.3s ease;
}

.primary-cta:hover::after {
  opacity: 0.5;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

/* ==========================================================================
   Selection & Smooth Scroll
   ========================================================================== */

::selection {
  background: rgba(16, 185, 129, 0.3);
  color: white;
}

html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
