:root {
  --bg-page: #fbfbfa;
  --bg-header-overlay: rgba(240, 242, 245, 0.45);
  --border-header: rgba(210, 214, 222, 0.45);
  --text-main: #18181b;
  --text-muted: #52525b;
  --text-dim: #71717a;
  --accent-orange: #ea580c;
  --accent-orange-hover: #c2410c;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* Minimal Header: Fixed Overlay at Top with Grey Opacity Background & Frosted Glass Blur */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0.5rem 1.25rem;
  background-color: var(--bg-header-overlay);
  backdrop-filter: blur(4px) saturate(100%);
  -webkit-backdrop-filter: blur(4px) saturate(100%);
  border-bottom: 1px solid var(--border-header);
  font-size: 16px;
}

.identity .name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-main);
  white-space: nowrap;
}

.contact-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  font-size: 13.5px;
  color: var(--text-muted);
}

.link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 450;
  transition: color 0.18s ease;
}

.link-item:hover {
  color: var(--accent-orange);
}

.link-item .icon {
  width: 13.5px;
  height: 13.5px;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: color 0.18s ease;
}

.link-item:hover .icon {
  color: var(--accent-orange);
}

.divider {
  color: var(--text-dim);
  opacity: 0.35;
  user-select: none;
  font-size: 12px;
}

/* Fullscreen Canvas Animation Area - No Padding, No Border */
.animation-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.canvas-frame {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

#particle-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Lower-Left Animation Title (Subtle, No Border/Background/Icon) */
.animation-badge {
  position: absolute;
  bottom: 22px;
  left: 24px;
  z-index: 20;
  display: inline-block;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 450;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  user-select: none;
  text-decoration: none;
  outline: none;
  opacity: 0.65;
}

.animation-badge:hover {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--accent-orange);
  opacity: 1;
  transform: none;
}

.animation-badge:active {
  transform: none;
  opacity: 0.85;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .animation-badge {
    bottom: 16px;
    left: 16px;
    font-size: 11.5px;
  }

  .header {
    padding: 0.45rem 0.85rem;
    gap: 0.35rem 0.65rem;
  }
  
  .contact-links {
    gap: 0.35rem 0.55rem;
  }
}

@media (max-width: 570px) {
  .header {
    padding: 0.4rem 0.65rem;
    gap: 0.25rem 0.45rem;
  }

  .contact-links {
    gap: 0.25rem 0.45rem;
  }

  /* Remove icon for phone and email */
  .phone-link .icon,
  .email-link .icon {
    display: none;
  }

  /* Remove text (and only keep the icon) for CV and LinkedIn */
  .cv-link .link-text,
  .linkedin-link .link-text {
    display: none;
  }
}

@media (max-width: 430px) {
  .header {
    padding: 0.35rem 0.55rem;
    gap: 0.2rem 0.35rem;
  }

  .contact-links {
    gap: 0.2rem 0.35rem;
  }

  /* For email below 430px: display icon, hide text */
  .email-link .icon {
    display: inline-block;
  }

  .email-link .link-text {
    display: none;
  }
}
