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

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e0e0e0;
  --text-muted: #888;
  --accent: #ff6b35;
  --accent-glow: rgba(255, 107, 53, 0.3);
  --node-bg: rgba(255, 255, 255, 0.04);
  --node-border: rgba(255, 255, 255, 0.12);
  --orbital-radius: 220px;
  --center-size: 120px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
}

/* === Stars Background === */
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* === Orbital Container === */
.orbital-container {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  z-index: 1;
}

/* === Profile Center === */
.profile-center {
  position: absolute;
  top: 175px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.profile-center.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.92);
}

.profile-photo {
  width: var(--center-size);
  height: var(--center-size);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  animation: profileGlow 4s ease-in-out infinite;
  margin-bottom: 10px;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes profileGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.05), 0 0 60px rgba(255, 107, 53, 0.05); }
  50% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.1), 0 0 80px rgba(255, 107, 53, 0.1); }
}

.profile-name {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 3px;
}

.profile-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 8px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: var(--text-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.social-links a:hover {
  color: #fff;
}

/* === Orbit Wrapper (rotates ring + nodes together) === */
.orbit-wrapper {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
  transform-origin: center center;
}

/* === Orbital Ring (direct child of container — scales instantly) === */
.orbital-ring {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0;
  animation: fadeInUp 1.2s ease forwards 0.3s;
  pointer-events: none;
}

/* === Navigation Nodes === */
.orbital-nav {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 0;
  left: 0;
  z-index: 3;
}

.nav-node {
  position: absolute;
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
  min-height: 0;
  line-height: 0;
  font-size: 0;
  cursor: pointer;
  pointer-events: auto;
  overflow: visible;
}

.nav-node.active {
  z-index: 10;
  transform: scale(1.25);
  transform-origin: 28px 28px;
}

.node-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.1), 0 0 40px rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.nav-node:hover .node-icon {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.07);
}

.nav-node.active .node-icon {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.2), 0 0 48px rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.1);
}

.nav-node--ask .node-icon {
  border-color: var(--accent);
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.35), 0 0 50px rgba(255, 107, 53, 0.15), 0 0 80px rgba(255, 107, 53, 0.05);
}

.nav-node--ask:hover .node-icon {
  box-shadow: 0 0 24px var(--accent-glow);
  background: rgba(255, 107, 53, 0.15);
}

.nav-node--ask.active .node-icon {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow), 0 0 48px rgba(255, 107, 53, 0.15);
  background: rgba(255, 107, 53, 0.18);
}

.node-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nav-node:hover .node-label {
  color: #fff;
}

.nav-node.active .node-label {
  color: #fff;
}

.nav-node--ask .node-label {
  color: var(--accent);
}

.nav-node--ask.active .node-label {
  color: var(--accent);
}

/* === Content Panel (inside the ring) === */
.content-panel {
  position: absolute;
  width: 360px;
  max-height: 280px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  background: rgba(10, 10, 18, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.panel-titles {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.panel-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
}

.panel-sublabel {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.panel-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.2s;
}

.panel-close:hover {
  color: #fff;
}

.panel-body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  padding: 14px 12px 16px 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

/* Hide h2 and subtitle inside panel body (shown in header instead) */
.panel-body h2 {
  display: none;
}

.panel-body .section-subtitle {
  display: none;
}

/* Scale down content for compact display */
.panel-body h3 {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 2px;
  letter-spacing: 0.01em;
}

.panel-body p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(224, 224, 224, 0.85);
}

.panel-body .timeline {
  gap: 16px;
  padding-left: 18px;
}

.panel-body .timeline-item {
  padding-left: 14px;
}

.panel-body .timeline-marker {
  left: -23px;
  width: 8px;
  height: 8px;
}

.panel-body .timeline-meta {
  font-size: 0.75rem;
  margin-bottom: 3px;
}

.panel-body .project-card {
  padding: 14px;
}

.panel-body .project-card h3 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.panel-body .project-card p {
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.panel-body .project-grid {
  gap: 10px;
}

.panel-body .tag {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.65rem;
  padding: 2px 7px;
}

.panel-body .philosophy-quote {
  font-size: 1.06rem;
  padding-left: 14px;
}

.panel-body .context-content {
  gap: 14px;
}

.panel-body .context-block h3 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.panel-body .context-block p {
  font-size: 0.85rem;
}

.panel-body .skills-grid {
  gap: 14px;
}

.panel-body .skill-group h3 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.panel-body .skill-group li {
  font-size: 0.85rem;
  padding-left: 12px;
}

.panel-body .skill-group li::before {
  top: 6px;
  width: 4px;
  height: 4px;
}

.panel-body .ask-content p {
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.panel-body .btn {
  font-family: 'Inter', sans-serif;
  padding: 7px 16px;
  font-size: 0.81rem;
}

/* Panel body scrollbar */
.panel-body::-webkit-scrollbar {
  width: 5px;
}

.panel-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 5px;
  margin: 4px 0;
}

.panel-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
}

.panel-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* === Section Content Styles (shared between panel and mobile) === */
.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 20px;
}

.timeline-marker {
  position: absolute;
  left: -29px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  border: 2px solid var(--surface);
}

.timeline-marker--active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 2px;
}

.timeline-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.timeline-content p:last-child {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

/* Project grid */
.project-grid {
  display: grid;
  gap: 20px;
}

.project-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.project-card h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Context */
.context-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.philosophy-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  line-height: 1.6;
}

.context-block h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 6px;
}

.context-block p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

/* Skills */
.skills-grid {
  display: grid;
  gap: 24px;
}

.skill-group h3 {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-group li {
  font-size: 0.88rem;
  color: var(--text);
  padding-left: 16px;
  position: relative;
}

.skill-group li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

/* Ask */
.ask-content {
  text-align: center;
}

.ask-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.ask-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: #e85d2a;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* === Entrance Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
}

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

.node-enter {
  opacity: 0;
  animation: nodeFloat 1s ease-out forwards;
}

@keyframes nodeFloat {
  0% {
    opacity: 0;
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

/* === Responsive — no mobile fallback, orbital always visible === */

/* === Mobile Nav (hidden on desktop) === */
.mobile-nav {
  display: none;
}
