/* Simple themed "About" page — follows app sea theme + light/dark */

#view-about {
  --about-accent: var(--sea-600, #1282a2);
  --about-accent-soft: rgba(18, 130, 162, 0.14);
  --about-accent-glow: rgba(26, 155, 196, 0.32);
  --about-card: rgba(255, 255, 255, 0.78);
  --about-hero-bg:
    radial-gradient(ellipse at 50% 0%, rgba(18, 130, 162, 0.1), transparent 55%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(232, 244, 252, 0.88) 100%);
  --about-text: var(--sea-900, #062a3a);
  --about-muted: var(--muted, #5f7588);
  --about-line: rgba(26, 60, 90, 0.08);
  --about-photo-border: rgba(255, 255, 255, 0.95);
  --about-shadow: 0 10px 28px rgba(80, 120, 160, 0.1);
}

html[data-theme="dark"] #view-about {
  --about-accent: var(--sea-500, #1a9bc4);
  --about-accent-soft: rgba(126, 200, 227, 0.12);
  --about-accent-glow: rgba(126, 200, 227, 0.28);
  --about-card: rgba(20, 34, 46, 0.82);
  --about-hero-bg:
    radial-gradient(ellipse at 50% 0%, rgba(126, 200, 227, 0.1), transparent 55%),
    linear-gradient(165deg, rgba(22, 38, 52, 0.96) 0%, rgba(14, 28, 40, 0.94) 100%);
  --about-text: #f0f5f8;
  --about-muted: rgba(255, 255, 255, 0.58);
  --about-line: rgba(255, 255, 255, 0.08);
  --about-photo-border: rgba(255, 255, 255, 0.88);
  --about-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.about-page {
  padding: 0.85rem 0.65rem 1rem;
  color: var(--about-text);
}

/* ---- Hero ---- */
.about-hero {
  margin-top: 0;
  padding: 1.35rem 1rem 1.15rem;
  border-radius: 22px;
  text-align: center;
  background: var(--about-hero-bg);
  border: 1px solid var(--about-line);
  box-shadow: var(--about-shadow);
}

.about-photo-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 0.85rem;
}

.about-photo-arcs {
  position: absolute;
  inset: -10px;
  pointer-events: none;
}

.about-photo-arcs span {
  position: absolute;
  inset: 0;
  border: 3px solid var(--about-accent);
  border-radius: 50%;
  border-left-color: transparent;
  border-bottom-color: transparent;
  opacity: 0;
  transform: rotate(-220deg) scale(0.82);
  filter: drop-shadow(0 0 8px var(--about-accent-glow));
  animation:
    aboutArcIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    aboutArcSpin 12s linear 1.2s infinite;
}

.about-photo-arcs span:nth-child(1) {
  inset: 0;
  border-width: 3px;
}

.about-photo-arcs span:nth-child(2) {
  inset: 10px;
  border-width: 2px;
  animation:
    aboutArcIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards,
    aboutArcSpin 15s linear 1.32s infinite reverse;
}

.about-photo-arcs span:nth-child(3) {
  inset: 20px;
  border-width: 2px;
  animation:
    aboutArcIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.24s forwards,
    aboutArcSpin 18s linear 1.44s infinite;
}

.about-photo-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--about-accent-glow), transparent 70%);
  filter: blur(8px);
  opacity: 0;
  animation: aboutGlowIn 1.1s ease 0.25s forwards;
}

.about-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--about-photo-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .about-photo {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(126, 200, 227, 0.12);
}

html[data-theme="dark"] .about-photo img {
  filter: brightness(0.94) contrast(1.04) saturate(0.92);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.about-hello {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  color: var(--about-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.about-hello-line {
  width: 22px;
  height: 2px;
  background: var(--about-accent);
}

.about-name {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--about-text);
}

.about-role {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--about-accent);
}

.about-intro {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--about-muted);
}

/* ---- Blocks ---- */
.about-block {
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: 20px;
  background: var(--about-card);
  border: 1px solid var(--about-line);
  box-shadow: var(--about-shadow);
}

.about-block h3 {
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0 0 0.65rem;
  color: var(--about-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.about-block h3 i {
  color: var(--about-accent);
}

.about-work {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--about-line);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.about-work:hover { opacity: 0.88; }
.about-work:last-child { border-bottom: 0; padding-bottom: 0; }
.about-work:first-of-type { padding-top: 0; }

.about-work-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--about-accent-soft);
  color: var(--about-accent);
  font-size: 1.05rem;
}

.about-work h4 {
  margin: 0 0 0.12rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--about-text);
}

.about-work p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--about-muted);
  line-height: 1.55;
}

.about-contact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.about-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--about-accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.84rem;
}

.about-contact a i {
  width: 1.2rem;
  text-align: center;
}

.about-contact a:hover {
  color: var(--sea-700, #0c6b8f);
}

html[data-theme="dark"] .about-contact a:hover {
  color: var(--sea-500, #1a9bc4);
}

/* ---- Animations ---- */
@keyframes aboutArcIn {
  0% {
    opacity: 0;
    transform: rotate(-220deg) scale(0.72);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0.9;
    transform: rotate(0deg) scale(1);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  .about-photo-arcs span,
  .about-photo-glow {
    animation: none !important;
    opacity: 0.9;
    transform: none;
  }
}

/* Override legacy shell.css about rules */
#view-about .about-hero,
html[data-theme="dark"] #view-about .about-hero,
html[data-theme="light"] #view-about .about-hero {
  background: var(--about-hero-bg);
  border-color: var(--about-line);
}

#view-about .about-block,
html[data-theme="dark"] #view-about .about-block {
  background: var(--about-card);
  border-color: var(--about-line);
}

#view-about .about-hero h2,
#view-about .about-block h3,
#view-about .about-work h4 {
  color: var(--about-text);
}
