/* ===========================
   CSS Reset & 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;
  background-color: #fafafa;
  color: #1a1a1a;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

a:focus {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

button:focus {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip to main content link for accessibility */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1a1a1a;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-main:focus {
  top: 0;
}

/* ===========================
   Header & Navigation
   =========================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background-color: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid #e5e5e5;
}

.logo {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-size: 0.95rem;
  color: #666;
  font-weight: 400;
  position: relative;
}

nav a:hover {
  color: #1a1a1a;
  opacity: 1;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #1a1a1a;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ===========================
   Main Content
   =========================== */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 3rem 3rem;
}

section {
  margin-bottom: 8rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

/* ===========================
   Hero Section
   =========================== */

#hero {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-statement {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.hero-statement em {
  font-style: italic;
  font-weight: 400;
  color: #666;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4a4a4a;
  max-width: 800px;
  margin-bottom: 2.5rem;
}

.hero-highlights {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.highlight-item {
  color: #1a1a1a;
  font-weight: 500;
}

.highlight-separator {
  color: #999;
  font-size: 1.2rem;
}

/* ===========================
   About Section
   =========================== */

#about {
  max-width: 1100px;
}

.about-name {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.about-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 3rem;
  font-weight: 400;
}

.about-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-image {
  position: sticky;
  top: 120px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  background-color: #e5e5e5;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.image-caption {
  font-size: 0.9rem;
  color: #666;
  text-align: left;
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-bio p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4a4a4a;
}

.inline-link {
  color: #1a1a1a;
  text-decoration: underline;
  text-decoration-color: #e5e5e5;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: text-decoration-color 0.3s ease;
}

.inline-link:hover {
  text-decoration-color: #1a1a1a;
  opacity: 1;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #1a1a1a;
  color: #fff;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 1rem;
  width: fit-content;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: #333;
  transform: translateY(-2px);
  opacity: 1;
}

/* ===========================
   Experience Section
   =========================== */

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.experience-item {
  border-left: 2px solid #e5e5e5;
  padding-left: 2rem;
  transition: border-color 0.3s ease;
}

.experience-item:hover {
  border-left-color: #1a1a1a;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience-role {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.experience-company {
  font-size: 1rem;
  color: #666;
  font-weight: 400;
}

.experience-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a4a4a;
}

/* ===========================
   Projects Section
   =========================== */

.projects-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.projects-quote {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a4a4a;
  margin-bottom: 2rem;
  max-width: 800px;
}

.projects-quote em {
  font-style: italic;
  color: #666;
}

.projects-hero-image {
  width: 100%;
  margin-bottom: 3rem;
}

.projects-hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  background-color: #e5e5e5;
}

.hero-image-caption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.75rem;
  text-align: center;
}

.search-container {
  margin-bottom: 2rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background-color: #fff;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.search-input:focus {
  outline: none;
  border-color: #1a1a1a;
}

.search-input::placeholder {
  color: #999;
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  background-color: #fff;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: 400;
}

.filter-btn:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.filter-btn.active {
  background-color: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.projects-list-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  gap: 2rem;
}

.project-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.project-content {
  flex: 1;
}

.project-item-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.project-item-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a4a4a;
  margin-bottom: 1rem;
}

.project-item-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-tag {
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  background-color: #f5f5f5;
  border-radius: 20px;
  color: #666;
  font-weight: 500;
}

.project-view-btn {
  padding: 0.75rem 1.5rem;
  background-color: #1a1a1a;
  color: #fff;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.project-view-btn:hover {
  background-color: #333;
  transform: translateY(-2px);
  opacity: 1;
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: #666;
  font-size: 1.1rem;
}

/* Remove old projects grid styles */
.projects-grid {
  display: none;
}

.project-card {
  display: none;
}

.project-name {
  display: none;
}

.project-description {
  display: none;
}

.project-tags {
  display: none;
}

.tag {
  display: none;
}

/* ===========================
   Contact Section
   =========================== */

#contact {
  max-width: 800px;
}

.contact-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4a4a4a;
  margin-bottom: 2rem;
}

.contact-email {
  color: #1a1a1a;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #e5e5e5;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s ease;
}

.contact-email:hover {
  text-decoration-color: #1a1a1a;
  opacity: 1;
}

.contact-links {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.contact-link {
  font-size: 1rem;
  color: #1a1a1a;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #e5e5e5;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s ease;
}

.contact-link:hover {
  text-decoration-color: #1a1a1a;
  opacity: 1;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-icons a {
  color: #666;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #1a1a1a;
  transform: translateY(-2px);
  opacity: 1;
}

/* ===========================
   Footer
   =========================== */

footer {
  text-align: center;
  padding: 3rem 2rem;
  color: #999;
  font-size: 0.9rem;
  border-top: 1px solid #e5e5e5;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
  header {
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  nav {
    gap: 1.5rem;
  }

  main {
    padding: 5rem 1.5rem 2rem;
  }

  section {
    margin-bottom: 5rem;
  }

  .hero-statement {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    position: relative;
    top: 0;
  }

  .about-image img {
    max-width: 300px;
  }

  .experience-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects-hero-image img {
    height: 250px;
  }

  .filter-container {
    gap: 0.5rem;
  }

  .filter-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .project-item {
    flex-direction: column;
    padding: 1.5rem;
  }

  .project-view-btn {
    width: 100%;
    text-align: center;
  }

  .contact-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-statement {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .project-card {
    padding: 1.5rem;
  }
}
