/* Header & Navigation */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  transition: all 0.3s ease;
}

.nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.nav-left:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: scale(1.02);
}

.nav-left a {
  color: inherit;
  text-decoration: none;
  background: inherit;
  -webkit-background-clip: inherit;
  -webkit-text-fill-color: inherit;
  background-clip: inherit;
  font-size: 1.65rem !important;
}

.nav-left a:hover {
  color: inherit;
}

.nav-right {
  display: flex;
  gap: 1.5rem;
}

.nav-right a {
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
}

.nav-right a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-right a.active {
  color: var(--accent);
}

.nav-right a.active::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

/* Main Content */
.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  min-height: calc(100vh - 200px);
}

/* Intro Section */
.intro {
  margin-bottom: 4rem;
}

.intro h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 38rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.bio {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 38rem;
  margin-bottom: 2rem;
}

.links {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.links a {
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.links a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Resume Download Section */
.resume-download {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s ease;
  color: var(--text);
}

.resume-link:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.resume-icon {
  font-size: 2rem;
  line-height: 1;
}

.resume-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.resume-text strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.resume-text small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tech Stack Section */
.tech-stack {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.tech-stack h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.stack-category {
  background: var(--bg-soft);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.stack-category:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.stack-category h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.stack-category p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Page Headers */
.page-header {
  margin-bottom: 3rem;
}

.page-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.page-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-header .subtitle {
  font-size: 1.05rem;
}

.resume-button {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.resume-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 4px 12px var(--accent-soft);
}

/* Experience Section */
.experience,
.projects,
.skills-detail {
  margin-bottom: 4rem;
}

.experience h2,
.projects h2,
.skills-detail h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.job {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: var(--bg-soft);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  transition: all 0.3s ease;
}

.job:hover {
  background: var(--bg-elevated);
  transform: translateX(4px);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.job h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.company {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.duration {
  color: var(--text-subtle);
  font-size: 0.9rem;
  white-space: nowrap;
}

.description {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.highlights {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.highlights li {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  position: relative;
  line-height: 1.6;
}

.highlights li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tags span {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

/* Projects Section */
.project {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-soft);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.project:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.project h3 {
  font-size: 1.15rem;
  color: var(--text);
}

.project-link {
  font-size: 0.9rem;
  white-space: nowrap;
}

.project .description {
  margin-bottom: 1rem;
}

/* Competencies */
.competencies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.competency {
  padding: 1.5rem;
  background: var(--bg-soft);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.competency h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.competency p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Achievements Section */
.achievements {
  margin-bottom: 4rem;
}

.achievements h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.achievement {
  padding: 2rem;
  background: var(--bg-soft);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.achievement::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

.achievement:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.achievement-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  filter: grayscale(0.3);
  transition: all 0.3s ease;
}

.achievement:hover .achievement-icon {
  filter: grayscale(0);
  transform: scale(1.1);
}

.achievement h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-weight: 600;
}

.achievement p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Notes Section */
.notes-list {
  margin-bottom: 4rem;
}

.note {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.note:last-child {
  border-bottom: none;
}

.note-meta {
  margin-bottom: 0.5rem;
}

.note-meta time {
  font-size: 0.85rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.note h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.note h2 a {
  color: var(--text);
}

.note h2 a:hover {
  color: var(--accent);
}

.note p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 500;
}

.newsletter-cta {
  padding: 2rem;
  background: var(--bg-soft);
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: center;
}

.newsletter-cta h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.newsletter-cta p {
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 1rem;
}

.newsletter-cta em {
  color: var(--text-subtle);
}

/* Travel Section */
.travel-intro {
  margin-bottom: 4rem;
}

.travel-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.travel-entry {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}

.travel-image-placeholder {
  position: sticky;
  top: 6rem;
}

.image-placeholder {
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.travel-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.travel-content time {
  display: block;
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.travel-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.photography-note,
.gear {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.photography-note h2,
.gear h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.photography-note p,
.gear p {
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 42rem;
}

/* Footer */
.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }
  
  .nav-right {
    gap: 1rem;
  }
  
  .nav a {
    font-size: 0.9rem;
  }
  
  .content {
    padding: 3rem 1.5rem;
  }
  
  .intro h1,
  .page-header h1 {
    font-size: 2rem;
  }
  
  .stack-grid {
    grid-template-columns: 1fr;
  }
  
  .job-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .travel-entry {
    grid-template-columns: 1fr;
  }
  
  .travel-image-placeholder {
    position: static;
  }
  
  .competencies {
    grid-template-columns: 1fr;
  }
  
  .achievement-grid {
    grid-template-columns: 1fr;
  }
  
  .links {
    width: 100%;
  }
  
  .links a {
    flex: 1;
    text-align: center;
    min-width: calc(50% - 0.625rem);
  }
  
  .resume-link {
    width: 100%;
  }
  
  .page-header-content {
    flex-direction: column;
  }
  
  .resume-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .intro h1,
  .page-header h1 {
    font-size: 1.75rem;
  }
  
  .nav-right {
    gap: 0.75rem;
  }
  
  .nav a {
    font-size: 0.85rem;
  }
  
  .job,
  .project {
    padding: 1rem;
  }
  
  .links a {
    min-width: 100%;
  }
}
