/* === BASE & M3 DESIGN TOKENS === */
:root {
  /* Core Colors - Nerdy/Hacker + Material You vibe */
  --md-sys-color-primary: #A8C7FA;
  --md-sys-color-on-primary: #062E6F;
  --md-sys-color-primary-container: #004A77;
  --md-sys-color-on-primary-container: #C2E7FF;
  
  --md-sys-color-secondary: #00E676; /* Hacker Green Accent */
  --md-sys-color-on-secondary: #003918;
  --md-sys-color-secondary-container: #005224;
  --md-sys-color-on-secondary-container: #69FF9E;

  /* Surface Colors */
  --md-sys-color-background: #0E1015; /* Deep dark blueish-black */
  --md-sys-color-on-background: #E2E2E9;
  
  --md-sys-color-surface: #14171E;
  --md-sys-color-surface-dim: #0E1015;
  --md-sys-color-surface-bright: #2A2D35;
  
  --md-sys-color-surface-container-lowest: #090B0E;
  --md-sys-color-surface-container-low: #14171E;
  --md-sys-color-surface-container: #1C2029;
  --md-sys-color-surface-container-high: #242833;
  --md-sys-color-surface-container-highest: #2E3340;

  --md-sys-color-on-surface: #E2E2E9;
  --md-sys-color-on-surface-variant: #C4C6D0;
  --md-sys-color-outline: #8E9099;
  --md-sys-color-outline-variant: #44474E;

  /* Typography */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Fira Code', 'JetBrains Mono', monospace;

  /* Shape Scale */
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 16px;
  --md-sys-shape-corner-large: 24px;
  --md-sys-shape-corner-extra-large: 32px;
  --md-sys-shape-corner-full: 9999px;

  /* Motion */
  --md-motion-standard: cubic-bezier(0.2, 0, 0, 1);
  --md-motion-emphasized: cubic-bezier(0.2, 0, 0, 1);
}

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

body {
  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

/* === BACKGROUND ANIMATIONS === */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.4;
  animation: float 12s infinite ease-in-out alternate;
  pointer-events: none;
}
.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(168, 199, 250, 0.2);
  top: -100px;
  left: -100px;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(0, 230, 118, 0.15); /* Hacker green hint */
  bottom: -150px;
  right: -100px;
  animation-delay: -5s;
}
.orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(144, 100, 255, 0.15); /* Purple accent */
  top: 40%;
  left: 60%;
  animation-delay: -2s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -50px) scale(1.1); }
  100% { transform: translate(-20px, 30px) scale(0.9); }
}

/* === LAYOUT & TYPOGRAPHY === */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 64px;
}

.avatar-container {
  flex-shrink: 0;
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: var(--md-sys-shape-corner-extra-large);
  background: linear-gradient(135deg, var(--md-sys-color-primary-container), var(--md-sys-color-surface-container-highest));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--md-sys-color-primary);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 2px 4px rgba(255,255,255,0.05);
  border: 1px solid var(--md-sys-color-outline-variant);
  transition: transform 0.3s var(--md-motion-standard), box-shadow 0.3s var(--md-motion-standard);
  position: relative;
  overflow: hidden;
}

.avatar::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.interactive-scale:hover .avatar {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,230,118,0.15), inset 0 2px 4px rgba(255,255,255,0.1);
  border-color: rgba(0, 230, 118, 0.3);
}
.interactive-scale:hover .avatar .material-symbols-rounded {
  color: var(--md-sys-color-secondary);
}

.hero-content {
  flex: 1;
}

.glitch-text {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -1.5px;
  background: linear-gradient(to right, var(--md-sys-color-primary), var(--md-sys-color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.subtitle {
  font-size: clamp(18px, 4vw, 22px);
  color: var(--md-sys-color-on-surface-variant);
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 20px;
}
.divider { color: var(--md-sys-color-outline-variant); margin: 0 8px; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: var(--md-sys-shape-corner-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--md-sys-color-secondary);
  font-family: var(--font-mono);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--md-sys-color-secondary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--md-sys-color-secondary);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
  70% { opacity: 0.5; box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
  100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* === CONTENT GRID & CARDS === */
.content-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.card {
  background: rgba(28, 32, 41, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-large);
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s var(--md-motion-standard);
  position: relative;
  overflow: hidden;
}

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

.card:hover {
  background: rgba(36, 40, 51, 0.8);
  border-color: rgba(168, 199, 250, 0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.card-header {
  margin-bottom: 24px;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.5px;
}

.icon-accent {
  color: var(--md-sys-color-primary);
  background: var(--md-sys-color-primary-container);
  padding: 8px;
  border-radius: var(--md-sys-shape-corner-medium);
  font-size: 28px !important;
}

.body-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--md-sys-color-on-surface-variant);
}

.highlight {
  color: var(--md-sys-color-on-surface);
  font-weight: 600;
}

/* === PROJECTS === */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-surface-container-high);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--md-motion-standard);
  position: relative;
  overflow: hidden;
}

.project-item:not(.disabled):hover {
  background: var(--md-sys-color-surface-container-highest);
  border-color: var(--md-sys-color-primary);
  transform: translateX(4px);
}

.project-item.disabled {
  opacity: 0.6;
  border-style: dashed;
}

.project-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface-container-highest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--md-sys-color-outline-variant);
  transition: all 0.3s;
}
.project-icon .material-symbols-rounded {
  font-size: 28px;
  color: var(--md-sys-color-on-surface-variant);
  transition: all 0.3s;
}

.project-item:not(.disabled):hover .project-icon {
  background: var(--md-sys-color-primary-container);
  border-color: var(--md-sys-color-primary);
}
.project-item:not(.disabled):hover .project-icon .material-symbols-rounded {
  color: var(--md-sys-color-on-primary-container);
}

.project-details {
  flex: 1;
}

.project-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.project-desc {
  font-size: 15px;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 12px;
  line-height: 1.5;
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--md-sys-shape-corner-small);
  background: var(--md-sys-color-surface-container-low);
  border: 1px solid var(--md-sys-color-outline-variant);
  color: var(--md-sys-color-on-surface-variant);
  font-family: var(--font-mono);
  font-weight: 600;
}
.project-item:not(.disabled):hover .tag {
  background: rgba(168, 199, 250, 0.1);
  color: var(--md-sys-color-primary);
  border-color: rgba(168, 199, 250, 0.3);
}

.project-action {
  color: var(--md-sys-color-outline);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s var(--md-motion-standard);
}
.project-item:not(.disabled):hover .project-action {
  opacity: 1;
  transform: translateX(0);
  color: var(--md-sys-color-primary);
}

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.contact-chip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-surface-container-high);
  border-radius: var(--md-sys-shape-corner-medium);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--md-motion-standard);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.contact-chip .material-symbols-rounded {
  font-size: 28px;
  color: var(--md-sys-color-outline);
  transition: all 0.3s;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--md-sys-color-outline);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--md-sys-color-on-surface);
}

.contact-chip:hover {
  background: var(--md-sys-color-surface-container-highest);
  border-color: var(--md-sys-color-outline-variant);
  transform: translateY(-2px);
}

.contact-chip:hover .material-symbols-rounded {
  color: var(--md-sys-color-primary);
  transform: scale(1.1);
}

.contact-chip:hover .contact-label {
  color: var(--md-sys-color-primary);
}

.copy-tooltip {
  position: absolute;
  right: 16px;
  font-size: 12px;
  font-family: var(--font-mono);
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  padding: 4px 8px;
  border-radius: var(--md-sys-shape-corner-small);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  pointer-events: none;
}

.contact-chip.copy-on-click:hover .copy-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* === M3 RIPPLE === */
.interactive { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 600ms linear;
  background-color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* === FOOTER === */
footer {
  margin-top: 64px;
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-outline);
  font-family: var(--font-mono);
  font-size: 14px;
}

/* === ANIMATIONS === */
.slide-up {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 0.6s var(--md-motion-decelerate) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

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

/* RESPONSIVE */
@media (max-width: 600px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .card {
    padding: 24px;
  }
  .project-item {
    flex-direction: column;
  }
  .project-action {
    display: none;
  }
}
