/* Option 3: Refined Editorial with Subtle Polish
   NY Times structure with Apple's attention to detail */

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

body {
  background: #ffffff;
  color: #000000;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100vh;
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header {
  text-align: center;
  margin-bottom: 64px;
}

.profile-picture {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  margin-bottom: 28px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-picture:hover {
  transform: scale(1.05);
}

.header h1 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  font-family: 'Georgia', serif;
  line-height: 1.25;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.section {
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.section:nth-child(1) {
  animation-delay: 0.1s;
}

.section:nth-child(2) {
  animation-delay: 0.2s;
}

.section:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
  color: #000000;
  font-family: 'Georgia', serif;
  text-transform: uppercase;
}

.section-content {
  font-size: 18px;
  line-height: 1.85;
  color: #1a1a1a;
  font-weight: 400;
  max-width: 100%;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}

.experience-item {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-item:hover {
  transform: translateX(4px);
}

.experience-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
  margin-top: 0px;
  opacity: 0.9;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 4px;
}

.figma-logo {
  width: 32px;
  height: 32px;
}

.experience-item:hover .experience-logo {
  opacity: 1;
}

.experience-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.experience-org {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  color: #000000;
  line-height: 1.35;
}

.experience-role {
  font-size: 16px;
  color: #666666;
  margin-bottom: 10px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.experience-date {
  font-size: 14px;
  color: #666666;
  font-weight: 400;
  font-style: normal;
  white-space: nowrap;
  flex-shrink: 0;
}

.experience-desc {
  font-size: 16px;
  color: #333333;
  line-height: 1.75;
  font-weight: 400;
}

.project-list {
  position: relative;
}

.project-list .experience-item {
  position: relative;
  padding-left: 20px;
}

.project-list .experience-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #000000;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.35;
}

.project-list .experience-item:hover {
  padding-left: 28px;
}

.project-list .experience-item:hover::before {
  left: 8px;
}

.footer {
  text-align: center;
  padding-top: 32px;
  margin-top: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.resume-link {
  color: #000000;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid #000000;
  padding-bottom: 3px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  font-family: 'Georgia', serif;
}

.resume-link:hover {
  opacity: 0.65;
  border-bottom-width: 2px;
}

.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-link {
  color: #000000;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  width: 24px;
  height: 24px;
}

.social-link:hover {
  opacity: 0.65;
}

.social-link svg {
  width: 100%;
  height: 100%;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.fab:active {
  transform: scale(0.95);
}

.fab svg {
  position: absolute;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-icon.terminal-icon {
  opacity: 1;
  transform: scale(1);
}

.fab-icon.x-icon {
  opacity: 0;
  transform: scale(0.8);
}

.fab.active .fab-icon.terminal-icon {
  opacity: 0;
  transform: scale(0.8);
}

.fab.active .fab-icon.x-icon {
  opacity: 1;
  transform: scale(1);
}

/* Liquid Overlay */
.liquid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  clip-path: circle(0% at calc(100% - 24px) calc(100% - 24px));
  transition: clip-path 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
}

.liquid-overlay.active {
  opacity: 1;
  pointer-events: auto;
  clip-path: circle(150% at calc(100% - 24px) calc(100% - 24px));
}

@media (max-width: 768px) {
  .page {
    padding: 80px 28px;
  }
  
  .header {
    margin-bottom: 48px;
  }
  
  .profile-picture {
    width: 85px;
    height: 85px;
    margin-bottom: 24px;
  }
  
  .header h1 {
    font-size: 30px;
    font-weight: 500;
  }
  
  .main {
    gap: 56px;
  }
  
  .section-title {
    font-size: 13px;
  }
  
  .section-content {
    font-size: 17px;
  }
  
  .experience-item:hover {
    transform: translateX(2px);
  }
  
  .experience-logo {
    width: 26px;
    height: 26px;
  }
  
  .experience-list {
    gap: 36px;
  }
  
  .experience-org {
    font-size: 18px;
  }
  
  .experience-role,
  .experience-desc {
    font-size: 15px;
  }
  
  .experience-date {
    font-size: 13px;
  }
  
  .project-list .experience-item {
    padding-left: 18px;
  }
  
  .project-list .experience-item::before {
    font-size: 18px;
    line-height: 1.35;
  }
  
  .project-list .experience-item:hover {
    padding-left: 22px;
  }
  
  .project-list .experience-item:hover::before {
    left: 4px;
  }
  
  .fab {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
  
  .fab svg {
    width: 18px;
    height: 18px;
  }
  
  .liquid-overlay {
    clip-path: circle(0% at calc(100% - 20px) calc(100% - 20px));
  }
  
  .liquid-overlay.active {
    clip-path: circle(150% at calc(100% - 20px) calc(100% - 20px));
  }
}
