/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.container {
  max-width: 930px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

/* Header Right Section */
.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Navigation */
.navigation {
  display: flex;
  gap: 2rem;
}

.navigation a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navigation a:hover {
  color: #007acc;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

/* Main Navigation */
.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #007acc;
}

/* Easter Egg Navigation */
.easter-egg-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.easter-egg-nav a:hover {
  color: #007acc;
}

.easter-egg-nav img {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
}

.social-icons a {
  color: #333;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.social-icons a:hover {
  color: #007acc;
}

/* Main content */
.main {
  padding: 2rem 0 2rem 0;
}

/* Intro section */
.intro {
  margin-bottom: 4rem;
  font-size: 1rem;
  line-height: 1.7;
}

.intro p {
  margin-bottom: 1.5rem;
}

.intro a {
  color: #007acc;
  text-decoration: none;
}

.intro a:hover {
  text-decoration: underline;
}

/* Experience Timeline */
.experience {
  margin-bottom: 4rem;
  position: relative;
  padding-left: 2rem;
}

/* Timeline line */
.experience::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #e0e0e0;
}

.experience-item {
  margin-bottom: 3rem;
  position: relative;
  padding-left: 2rem;
}

/* Timeline dot */
.experience-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #181818;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e0e0e0;
}

.experience-date {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.experience-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #333;
}

.experience-content p {
  margin-bottom: 1rem;
  color: #555;
  line-height: 1.6;
}


/* Selected Work */
.selected-work {
  margin-bottom: 4rem;
}

.selected-work h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: #333;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
}

.project {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  min-height: 140px;
}

.project-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.project-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-details h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
  line-height: 1.3;
}

.project-details p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.project-venue {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  margin-bottom: 0.7rem;
}

.project-links {
  font-size: 0.85rem;
}

.project-links a {
  color: #007acc;
  text-decoration: none;
}

.project-links a:hover {
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .header-right {
    flex-direction: column;
    gap: 1rem;
  }
  
  .navigation {
    gap: 1.5rem;
  }
  
  .experience {
    padding-left: 1.5rem;
  }
  
  .experience-item {
    padding-left: 1.5rem;
  }
  
  .experience-date {
    font-size: 0.85rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .project {
    flex-direction: column;
  }
  
  .project-image {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .name {
    font-size: 1.7rem;
  }
  
  .intro {
    font-size: 1rem;
  }
  
  .social-icons a {
    font-size: 1.3rem;
  }
}

/* Easter Egg Page */
.easter-egg-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.easter-egg-page h1 {
  font-size: 3rem;
  font-weight: 400;
  color: #333;
  margin-bottom: 2rem;
}

.easter-egg-text {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 500px;
}

.portfolio-link {
  color: #007acc;
  text-decoration: none;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 2rem;
}

.portfolio-link:hover {
  text-decoration: underline;
}

.back-link {
  color: #007acc;
  text-decoration: none;
  font-size: 1.1rem;
  display: block;
}

.back-link:hover {
  text-decoration: underline;
}