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

body {
  background: #111111;
  color: #e4e4e7;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  padding: 0;
}

/* Navigation */
.main-nav {
  background: rgba(17, 17, 17, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* Mobile menu toggle - removed as nav stays visible on top */
.nav-toggle {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: block;
  padding: 1rem 1.5rem;
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Dropdown menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(17, 17, 17, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  z-index: 1001;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.nav-dropdown a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f4f4f5;
}

.nav-dropdown a:first-child {
  border-radius: 8px 8px 0 0;
}

.nav-dropdown a:last-child {
  border-radius: 0 0 8px 8px;
}

.nav-link:hover,
.nav-link:focus {
  color: #f4f4f5;
  outline: none;
}

.nav-link:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: -2px;
}

.nav-link.active {
  color: #f4f4f5;
}

.wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

/* Sections */
section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  overflow: hidden;
}

section > h2 {
  padding: 1rem 2rem 0.5rem 2rem;
}

section > .intro,
section > .games-intro,
section > .cv-links {
  padding: 0 2rem 1rem 2rem;
}

/* Side-by-side container */
.current-profile-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.current-work, .profile-section {
  margin-bottom: 0;
  height: 100%;
}

.current-profile-container section > h2 {
  padding-top: 1rem;
}

section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #f4f4f5;
}

/* Intro text */
.intro {
  font-size: 1.1rem;
  color: #d4d4d8;
  margin-bottom: 1rem;
}

.intro strong {
  color: #a78bfa;
}

.intro a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
}

.intro a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* Work entries */
.work-entry {
  padding: 1.25rem 2rem;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.02);
}

.work-entry:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.work-entry:hover {
  background: rgba(255, 255, 255, 0.05);
}

.work-entry:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

.work-entry:last-child {
  padding-bottom: 2rem;
}

.company-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.company-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
}

.company-link:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.work-separator {
  display: none;
}

/* Strava Embed */
.strava-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.strava-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  z-index: 1;
}

.strava-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #fc4c02;
  border-radius: 50%;
  animation: strava-spin 1s linear infinite;
}

@keyframes strava-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .strava-spinner {
    animation: none;
    border-top-color: #fc4c02;
  }
}

.strava-loader p {
  color: #a1a1aa;
  font-size: 0.95rem;
  margin: 0;
}

.strava-loader.hidden {
  display: none;
  pointer-events: none;
}

.strava-embed {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  position: relative;
  z-index: 2;
}

.strava-header {
  margin-bottom: 2rem;
  text-align: center;
}

.work-period {
  color: #71717a;
  font-size: 0.95rem;
}

.work-period .present {
  color: #22c55e;
  font-weight: 500;
}

.work-role {
  color: #d4d4d8;
  font-weight: 500;
  font-size: 1rem;
}

.work-description {
  color: #a1a1aa;
  font-size: 0.95rem;
}

.work-description a {
  color: #fbbf24;
  text-decoration: none;
}

.work-description a:hover {
  color: #fcd34d;
  text-decoration: underline;
}

.work-details {
  color: #a1a1aa;
  font-size: 0.95rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.work-details li {
  padding: 0.35rem 0;
  position: relative;
  padding-left: 1.25rem;
}

.work-details li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: 600;
}

.work-details a {
  color: #fbbf24;
  text-decoration: none;
}

.work-details a:hover {
  color: #fcd34d;
  text-decoration: underline;
}

.work-details strong {
  color: #d4d4d8;
}

/* Profile image */
.profile-image {
  text-align: center;
  margin: 2rem 0;
}

.profile-image img {
  max-width: 300px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.profile-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* CV links */
.cv-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.cv-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 500;
}

.cv-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.cv-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cv-button.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Games section */
.games-intro {
  color: #d4d4d8;
  margin-bottom: 1.5rem;
}

.games-intro a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
}

.games-intro a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.game-embed {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a2e;
}

.game-embed:hover {
  transform: translateY(-2px);
}

.game-embed iframe {
  width: 100%;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-link {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }

  .nav-inner {
    padding: 0 0.5rem;
  }

  .wrapper {
    padding: 1rem;
  }

  header h1 {
    font-size: 2rem;
  }

  section {
    padding: 1.5rem;
  }

  .company-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  .work-separator {
    display: none;
  }

  .current-profile-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Footer Image */
.footer-image {
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-image img {
  max-width: 400px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.footer-signoff {
  margin-top: 1rem;
  color: #71717a;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .footer-image img {
    max-width: 300px;
  }
}
