/* ============================================
   Nebeu Fekede — nebeufekede.com
   Futuristic theme: R&B / Blues / Soul · Ethiopia · Portland · Chicago
   ============================================ */

:root {
  /* Palette: deep blues (Blues, Chicago), warm gold (Soul, Ethiopia), subtle green (Portland, Ethiopia) */
  --color-bg: #0a0e17;
  --color-bg-soft: #111827;
  --color-surface: rgba(22, 30, 45, 0.85);
  --color-surface-solid: #161e2d;
  --color-text: #f0f2f5;
  --color-text-muted: #9ca3b8;
  --color-accent: #d4a853;
  --color-accent-hover: #e8c97a;
  --color-accent-dim: rgba(212, 168, 83, 0.4);
  --color-blues: #3b82f6;
  --color-ethiopia-gold: #d4a853;
  --color-ethiopia-green: rgba(0, 138, 80, 0.25);
  --color-border: rgba(148, 163, 184, 0.15);
  --color-shadow: rgba(0, 0, 0, 0.35);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --radius: 10px;
  --radius-lg: 16px;
  --profile-size: 200px;
  --max-width: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* ----- Futuristic background ----- */
.bg-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 20% 10%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse 80% 50% at 50% 90%, var(--color-ethiopia-green) 0%, transparent 50%),
    linear-gradient(180deg, #0a0e17 0%, #0f1420 40%, #111827 70%, #0d1220 100%);
}

.bg-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 168, 83, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 168, 83, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23d4a853' stroke-width='0.3' stroke-opacity='0.15'/%3E%3C/svg%3E");
}

/* Ethiopia / Chicago accent: subtle horizontal band (gold–red–green hint) */
.bg-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 138, 80, 0.5) 20%,
    rgba(212, 168, 83, 0.7) 50%,
    rgba(206, 17, 38, 0.4) 80%,
    transparent 100%
  );
}

.page-content {
  position: relative;
  z-index: 1;
}

/* Focus visible for keyboard navigation (accessibility) */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* ----- Header (sticky, glass) ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header-profile-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
}

.header-profile-link:hover {
  text-decoration: none;
}

/* Spinning vinyl record around the profile photo */
.vinyl-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  z-index: 0;
  transform: translate(-50%, -50%);
}

.vinyl-ring {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
      circle at center,
      transparent 26px,
      #252528 26px,
      #1e1e21 28px,
      #1a1a1c 30px,
      #151518 37px
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 2px 8px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.3);
  animation: vinyl-spin 8s linear infinite;
  -webkit-animation: vinyl-spin 8s linear infinite;
}

@keyframes vinyl-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@-webkit-keyframes vinyl-spin {
  from { -webkit-transform: rotate(0deg); }
  to { -webkit-transform: rotate(360deg); }
}

.header-profile-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  z-index: 1;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4), 0 0 16px var(--color-accent-dim);
}

.header-profile-link:hover .header-profile-image {
  box-shadow: 0 0 0 2px var(--color-accent), 0 0 24px var(--color-accent-dim);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto 0 0;
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* ----- About section ----- */
.about-section {
  padding: var(--space-3xl) var(--space-xl);
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.profile-image-wrap {
  flex-shrink: 0;
}

.profile-image {
  width: var(--profile-size);
  height: var(--profile-size);
  min-width: var(--profile-size);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--color-border), 0 8px 32px var(--color-shadow), 0 0 40px var(--color-accent-dim);
  display: block;
}

.profile-placeholder {
  display: none;
  width: var(--profile-size);
  height: var(--profile-size);
  min-width: var(--profile-size);
  border-radius: 50%;
  background: var(--color-surface-solid);
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}

.profile-placeholder--visible {
  display: flex;
}

.about-content {
  min-width: 0;
}

.about-name {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}

.about-meta {
  margin: 0 0 var(--space-lg);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.about-meta .about-job {
  color: var(--color-accent);
}

.about-sep {
  margin: 0 var(--space-xs);
}

.about-text {
  margin: 0 0 var(--space-lg);
}

.about-text p {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-accent);
}

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

.about-link-icon {
  padding: var(--space-xs);
}

.about-link-icon:hover {
  text-decoration: none;
}

.about-link-icon .icon {
  display: block;
}

/* ----- Projects section (glass panel) ----- */
.projects-section {
  padding: var(--space-3xl) var(--space-xl);
  background: var(--color-surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-border);
}

.projects-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.projects-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 400;
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}

.projects-subtitle {
  margin: 0 0 var(--space-2xl);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.project-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(6px);
  padding: var(--space-lg);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.project-card:hover {
  border-color: var(--color-accent-dim);
  box-shadow: 0 8px 32px var(--color-shadow), 0 0 0 1px var(--color-accent-dim);
}

.project-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
}

.project-name .project-link {
  color: var(--color-text);
}

.project-name .project-link:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.project-desc {
  margin: 0 0 var(--space-md);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  flex-grow: 1;
}

.project-cta {
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: auto;
  color: var(--color-accent);
}

.project-cta:hover {
  text-decoration: none;
  color: var(--color-accent-hover);
}

/* ----- Footer ----- */
.site-footer {
  padding: var(--space-xl);
  text-align: center;
  border-top: 1px solid var(--color-border);
  background: rgba(10, 14, 23, 0.6);
  backdrop-filter: blur(8px);
}

.footer-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ----- Responsive: tablet and below ----- */
@media (max-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .profile-image-wrap {
    justify-self: start;
  }

  .profile-image {
    width: 180px;
    height: 180px;
    min-width: 180px;
  }

  .project-list {
    grid-template-columns: 1fr;
  }
}

/* ----- Responsive: small mobile ----- */
@media (max-width: 480px) {
  .site-header,
  .about-section,
  .projects-section {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .profile-image {
    width: 150px;
    height: 150px;
    min-width: 150px;
  }
}
