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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 14px;
  background: #fbf8f7;
  color: #333333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
  min-height: 100vh;
}

a {
  color: #333333;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #000000;
}

/* Navigation & Social Wrapper */
.nav-wrapper {
  max-width: 720px;
  margin: 1rem auto 2rem;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Top Navigation */
.top-nav {
  padding: 0;
  background: transparent;
  display: block;
}

.nav-container {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

/* Pill Navigation */
.nav-pill {
  font-size: 0.8rem;
  font-weight: 400;
  color: #666666;
  padding: 0.4rem 1rem;
  border-radius: 16px;
  transition: all 0.2s ease;
  background: transparent;
  text-decoration: none;
}

.nav-pill:hover {
  color: #000000;
  background: rgba(0, 0, 0, 0.05);
}

.nav-pill.active {
  color: #000000;
  background: #f0f0f0;
  font-weight: 400;
}

/* Main Container - Single Column Layout */
.main-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem 1.5rem;
}

/* Header Image */
.header-image-container {
  margin-top: 2rem;
  margin-bottom: 2rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.header-image-full {
  width: 70%;
  height: auto;
  display: block;
}

/* Profile Tagline - Now at top */
.profile-tagline {
  font-size: 0.85rem;
  font-weight: 300;
  color: #666666;
  margin: 2.1rem 0 0 0;
  text-align: center;
}

/* Social Buttons */
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  justify-content: flex-end;
}

.social-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  /* Rounded square */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  background: transparent;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: #f0f0f0;
  color: #000000;
  border-color: #d0d0d0;
  transform: translateY(-2px);
}

.social-btn svg {
  width: 14px;
  height: 14px;
}




/* Section Divider */
.section-divider {
  border: none;
  border-top: 0.5px solid #d0d0d0;
  margin: 1.8rem 0;
}

/* Content Sections */
.content-section {
  margin-bottom: 0;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 400;
  color: #000000;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

/* Bio Text */
.bio-text {
  font-size: 0.85rem;
  font-weight: 300;
  color: #444444;
  line-height: 1.7;
}

.bio-text p {
  margin: 0 0 0.75rem;
}

.bio-text ul {
  margin: 0.5rem 0 0 0;
  padding-left: 1.2rem;
}

.bio-text li {
  margin-bottom: 0.3rem;
}

/* Experience & Project Items */
.experience-item {
  margin-bottom: 1.25rem;
}

.experience-item:last-child {
  margin-bottom: 0;
}

.item-title {
  font-size: 0.85rem;
  font-weight: 300;
  color: #000000;
  margin: 0 0 0.2rem;
}

.item-title a {
  color: #000000;
  text-decoration: none;
}

.item-title a:hover {
  text-decoration: underline;
}

.item-meta {
  font-size: 0.75rem;
  font-weight: 300;
  color: #666666;
  margin: 0 0 0.4rem;
}

.item-description {
  font-size: 0.8rem;
  font-weight: 300;
  color: #555555;
  line-height: 1.6;
  margin: 0;
}

/* Skills Section */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.skill-tag {
  font-size: 0.7rem;
  font-weight: 300;
  color: #555555;
  padding: 0.3rem 0.6rem;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: transparent;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  border-color: #999999;
  color: #333333;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.5rem 0;
  color: #999999;
  font-size: 0.7rem;
  font-weight: 300;
  margin-top: 2rem;
}

.site-footer p {
  margin: 0;
}

/* Page Layouts for Research, Projects, Blog */
.page-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  min-height: calc(100vh - 150px);
}

.page-content {
  width: 100%;
}

.page-title {
  font-size: 1.3rem;
  font-weight: 400;
  color: #000000;
  margin: 0 0 0.3rem;
}

.page-subtitle {
  font-size: 0.85rem;
  font-weight: 300;
  color: #666666;
  margin: 0 0 2rem;
}

/* Research Page */
.research-section {
  margin-bottom: 2rem;
}

.research-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e5e5e5;
}

.research-item:last-child {
  border-bottom: none;
}

.interests-section {
  margin-top: 1.5rem;
}

.interests-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.interests-list li {
  font-size: 0.8rem;
  font-weight: 300;
  color: #444444;
  padding: 0.4rem 0;
  padding-left: 1rem;
  position: relative;
}

.interests-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #888888;
}

/* Projects Page */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card {
  padding: 1.25rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fafafa;
  transition: all 0.2s ease;
}

.project-card:hover {
  border-color: #cccccc;
  background: #f5f5f5;
}

.project-card a {
  color: inherit;
  text-decoration: none;
}

.project-card a:hover {
  color: #000000;
}

/* Blog Page */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-post {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e5e5e5;
}

.blog-post:last-child {
  border-bottom: none;
}

.post-date {
  font-size: 0.7rem;
  font-weight: 300;
  color: #888888;
  margin: 0 0 0.2rem;
}

.post-title {
  font-size: 1rem;
  font-weight: 300;
  color: #000000;
  margin: 0 0 0.4rem;
}

.post-excerpt {
  font-size: 0.8rem;
  font-weight: 300;
  color: #666666;
  margin: 0 0 0.8rem 0;
  line-height: 1.5;
}

.post-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 400;
  color: #4a5c49;
  background: rgba(74, 92, 73, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 400;
  color: #1a1a1a;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.read-more-link:hover {
  color: #4a5c49;
  gap: 0.6rem;
}

.read-more-link svg {
  width: 12px;
  height: 12px;
}

/* Single Blog Post Layout */
.blog-post-content {
  font-family: "Inter", sans-serif;
  max-width: 680px;
  margin: 0 auto;
}

.blog-post-header {
  margin-bottom: 2.5rem;
}

.blog-post-title {
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.blog-post-meta {
  font-size: 0.8rem;
  color: #888888;
  display: flex;
  gap: 1rem;
}

.blog-content-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

.blog-content-body p {
  margin-bottom: 1.5rem;
}

.blog-content-body h2 {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 2rem 0 1rem;
}

/* Contact Form */
.contact-section {
  max-width: 100%;
}

/* Heading Hover Animation */
.section-title,
.page-title,
.post-title {
  position: relative;
  display: inline-block;
  cursor: default;
}

.section-title::after,
.page-title::after,
.post-title::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: #4a5c49;
  transform-origin: bottom left;
  transition: transform 0.3s ease-out;
}

.section-title:hover::after,
.page-title:hover::after,
.post-title:hover::after {
  transform: scaleX(1);
}

/* Responsive */
@media (max-width: 640px) {

  .main-container,
  .page-container {
    padding: 1.5rem 1rem;
  }

  .nav-container {
    padding: 0 1rem;
    gap: 0.3rem;
  }

  .nav-pill {
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
  }

  .profile-image-placeholder {
    width: 80px;
    height: 80px;
  }
}