/*
  Name: Rachel Gui
  Date: October 16, 2025
  Section: CSE 154 AL
  This is the styles.css file for my personal portfolio website.
  It provides consistent styling across all pages with a modern,
  clean design focused on typography and user experience.
*/

/* Font Face Definitions */

@font-face {
  font-family: 'anthropicSerif';
  src: local('Georgia'), local('Times New Roman'), local('serif');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Unica Pro Regular';
  src: url('https://fonts.cdnfonts.com/css/neue-haas-unica-pro') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Neue Haas Unica Pro Medium';
  src: url('https://fonts.cdnfonts.com/css/neue-haas-unica-pro') format('woff2');
  font-weight: 500;
  font-style: normal;
}

/* Grouped selectors for shared styles */
h1, h2, h3 {
  font-family: 'anthropicSerif', 'Inter', -apple-system, BlinkMacSystemFont, serif;
  font-weight: 500;
  line-height: 1.2;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS Variables */
:root {
  --token-b3235550-3757-416d-b131-be21ea4d150a: rgb(71, 71, 71);
  --token-4c03ec57-1526-4855-9bbe-39072bd57075: rgba(58, 60, 66, 0.5);
  --token-7c8a8a8a-8a8a-8a8a-8a8a-8a8a8a8a8a8a: rgb(138, 138, 138);
  --token-ffffff-ffffff-ffffff-ffffff-ffffff: rgb(255, 255, 255);
  --token-000000-000000-000000-000000-000000: rgb(0, 0, 0);
  --token-999999-999999-999999-999999-999999: rgb(153, 153, 153);
  --token-666666-666666-666666-666666-666666: rgb(102, 102, 102);
  --token-333333-333333-333333-333333-333333: rgb(51, 51, 51);
  --token-cccccc-cccccc-cccccc-cccccc-cccccc: rgb(204, 204, 204);
  --token-eeeeee-eeeeee-eeeeee-eeeeee-eeeeee: rgb(238, 238, 238);
  --token-f5f5f5-f5f5f5-f5f5f5-f5f5f5-f5f5f5: rgb(245, 245, 245);
  --token-f8f8f8-f8f8f8-f8f8f8-f8f8f8-f8f8f8: rgb(248, 248, 248);
  --token-fafafa-fafafa-fafafa-fafafa-fafafa: rgb(250, 250, 250);
  --token-fcfcfc-fcfcfc-fcfcfc-fcfcfc-fcfcfc: rgb(252, 252, 252);
  --token-ffffff-ffffff-ffffff-ffffff-ffffff-80: rgba(255, 255, 255, 0.8);
  --token-000000-000000-000000-000000-000000-10: rgba(0, 0, 0, 0.1);
  --token-000000-000000-000000-000000-000000-20: rgba(0, 0, 0, 0.2);
  --token-000000-000000-000000-000000-000000-30: rgba(0, 0, 0, 0.3);
  --token-000000-000000-000000-000000-000000-50: rgba(0, 0, 0, 0.5);
  --token-000000-000000-000000-000000-000000-70: rgba(0, 0, 0, 0.7);
  --token-000000-000000-000000-000000-000000-90: rgba(0, 0, 0, 0.9);

  /* Additional Design-specific tokens */
  --design-text-color: var(--token-b3235550-3757-416d-b131-be21ea4d150a);
  --design-text-alignment: left;
  --design-link-text-color: rgb(0, 153, 255);
  --design-link-text-decoration: underline;
  --design-background-color: #ffffff;
  --design-border-radius: 12px;
  --design-shadow: none;
  --design-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout variables */
  --sidebar-width: 212px;
  --sidebar-padding: 20px;
  --main-content-padding: 40px;
  --mobile-nav-height: 60px;
}

body {
  font-family: '__tiemposText_34e0db', '__tiemposText_Fallback_34e0db', serif;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 31px;
  color: #141413;
  background-color: var(--token-ffffff-ffffff-ffffff-ffffff-ffffff);
  overflow-x: hidden;
}

/* Main Container Layout */
.main-container {
  display: flex;
  min-height: 100vh;
  background-color: var(--token-ffffff-ffffff-ffffff-ffffff-ffffff);
}

/* Sidebar Navigation */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 212px;
  height: 100vh;
  background-color: transparent;
  padding: 20px 0 0 20px;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  border-right: none;
}

/* Brand Section */
.brand-section {
  margin-bottom: 60px;
  padding-top: 40px;
}

.brand-name {
  font-family:
    'anthropicSerif',
    'Neue Haas Unica Pro Medium',
    -apple-system,
    BlinkMacSystemFont,
    serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgb(71, 71, 71);
  margin: 0;
  line-height: 1.2;
}

/* Sidebar Navigation */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.nav-link {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  color: #999999;
  font-family:
    'anthropicSerif',
    'Neue Haas Unica Pro Regular',
    -apple-system,
    BlinkMacSystemFont,
    serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

.nav-link:hover .nav-text {
  color: #666666;
}

.nav-link.active .nav-text {
  color: #000000;
  font-weight: 500;
}

.nav-link.active {
  color: #000000;
  font-weight: 500;
  transform: translateX(8px);
  position: relative;
}

.nav-link.active:after {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background-color: #000000;
  border-radius: 2px;
  opacity: 0.8;
}

.nav-link:active {
  transform: translateX(12px);
  transition: transform 0.1s ease;
  color: #333333;
}

.nav-text {
  display: block;
  font-family: 'anthropicSerif', 'Inter', -apple-system, BlinkMacSystemFont, serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

.nav-styles-preset-1qasfeg {
  color:
    var(
      --extracted-r6o4lv,
      var(--token-b3235550-3757-416d-b131-be21ea4d150a, rgb(71, 71, 71))
    );
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin: 0;
  font-family:
    'anthropicSerif',
    'Neue Haas Unica Pro Regular',
    -apple-system,
    BlinkMacSystemFont,
    serif;
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: 212px;
  padding: 40px;
  min-height: 100vh;
  background-color: var(--token-ffffff-ffffff-ffffff-ffffff-ffffff);
}

/* Hero Section */
.hero {
  padding: 0px 0 0px 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.hero-content {
  max-width: 800px;
  margin: 0;
  padding: 0 40px;
}

.recent-content,
.craft-content,
.contact-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0px;
}

.hero-title {
  font-family:
    'anthropicSerif',
    'Neue Haas Unica Pro Regular',
    -apple-system,
    BlinkMacSystemFont,
    serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: #3a3c427a;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.highlight {
  color: #2d2d2d;
  font-weight: 500;
}

.hero-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.detail-item {
  font-family: 'anthropicSerif', 'Inter', -apple-system, BlinkMacSystemFont, serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  line-height: 1.4;
}

/* Stories Section */
.stories {
  padding: 60px 0;
  background-color: transparent;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
  transition: var(--design-transition);
  position: relative;
  min-height: 200px;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: none;
}

/* Specific project card styles */
.project-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 248, 240, 0.6));
  color: #666;
}

.project-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 248, 240, 0.6));
  color: #666;
}

.project-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  color: #666;
}

/* Framer Project Card Styles */
.project-card-main {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
  position: relative;
  min-height: 200px;
}

.project-card-main:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: none;
}

.project-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.project-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card-main:hover .project-thumbnail img {
  transform: scale(1.05);
}

/* Specific Framer project card styles */
.project-card-main:nth-child(1) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 248, 240, 0.6));
  color: #666;
}

.project-card-main:nth-child(2) {
  background: linear-gradient(135deg, rgba(45, 55, 72, 0.9), rgba(60, 70, 85, 0.8));
  color: white;
}

.project-card-main:nth-child(3) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  color: #666;
}

.project-card-main:nth-child(4) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  color: #666;
}

.project-card:nth-child(5) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  color: #666;
}

.project-card:nth-child(6) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  color: #666;
}

.project-image {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-lock-icon {
  width: 24px;
  height: 24px;
  opacity: 0.6;
  fill: currentcolor;
}

.project-photo,
.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-photo,
.project-card:hover .project-video {
  transform: scale(1.05);
}

.project-info {
  padding: 20px;
  position: relative;
  z-index: 2;
}

.project-tag {
  display: inline-block;
  font-family: 'anthropicSerif', 'Inter', -apple-system, BlinkMacSystemFont, serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: currentcolor;
  margin-bottom: 12px;
  padding: 4px 8px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  opacity: 0.8;
}

.project-title {
  font-family:
    'anthropicSerif',
    'Neue Haas Unica Pro Medium',
    -apple-system,
    BlinkMacSystemFont,
    serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: currentcolor;
  margin: 0;
  opacity: 0.9;
}

/* Craft Section */
.craft {
  padding: 60px 0;
  background-color: #ffffff;
}

/* Craft content styles are defined above */

.craft-text {
  text-align: center;
  margin-bottom: 60px;
}

.craft-text h2 {
  font-family:
    'anthropicSerif',
    'Neue Haas Unica Pro Regular',
    -apple-system,
    BlinkMacSystemFont,
    serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: #2d2d2d;
  margin: 0;
  letter-spacing: -0.01em;
}

.craft-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 60px;
}

.craft-grid-1 {
  grid-template-columns: repeat(3, 1fr);
}

.craft-grid-2 {
  grid-template-columns: repeat(3, 1fr);
}

.craft-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.experience-gallery {
  margin-bottom: 24px;
}

.experience-gallery .craft-item {
  display: none;
}

.experience-gallery .craft-item:nth-child(-n+6) {
  display: block;
}

.experience-gallery.is-expanded .craft-item {
  display: block;
}

.gallery-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 60px;
}

.gallery-toggle {
  font-family:
    'anthropicSerif',
    'Neue Haas Unica Pro Regular',
    -apple-system,
    BlinkMacSystemFont,
    serif;
  font-size: 14px;
  font-weight: 400;
  color: #2d2d2d;
  background-color: transparent;
  border: none;
  border-radius: 999px;
  padding: 8px 0;
  cursor: pointer;
  transition: var(--design-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gallery-toggle:hover {
  background-color: transparent;
  color: #111;
}

.gallery-toggle:focus-visible {
  outline: 2px solid rgba(45, 45, 45, 0.25);
  outline-offset: 4px;
}

.gallery-toggle::after {
  content: '→';
  font-size: 16px;
  line-height: 1;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.gallery-modal.is-open {
  display: flex;
}

.gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
}

.gallery-modal__panel {
  position: relative;
  width: min(1120px, 92vw);
  max-height: 86vh;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
}

.gallery-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px;
  border-bottom: 1px solid rgba(45, 45, 45, 0.12);
}

.gallery-modal__title {
  font-family:
    'anthropicSerif',
    'Neue Haas Unica Pro Regular',
    -apple-system,
    BlinkMacSystemFont,
    serif;
  font-size: 18px;
  font-weight: 400;
  color: #2d2d2d;
  margin: 0;
}

.gallery-modal__close {
  font-family:
    'anthropicSerif',
    'Neue Haas Unica Pro Regular',
    -apple-system,
    BlinkMacSystemFont,
    serif;
  font-size: 14px;
  font-weight: 400;
  color: #2d2d2d;
  border: 1px solid rgba(45, 45, 45, 0.3);
  background: transparent;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: var(--design-transition);
}

.gallery-modal__close:hover {
  background-color: rgba(45, 45, 45, 0.06);
}

.gallery-modal__close:focus-visible {
  outline: 2px solid rgba(45, 45, 45, 0.35);
  outline-offset: 2px;
}

.gallery-modal__body {
  padding: 32px 36px 48px;
  overflow: auto;
}

.gallery-modal__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.gallery-modal__item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-modal__item--large {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-modal__item--tall {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-modal__item--wide {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-modal__item--square {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-modal__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
  display: block;
}

@media (max-width: 900px) {
  .gallery-modal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .gallery-modal__body {
    padding: 24px 20px 32px;
  }

  .gallery-modal__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.craft-item {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  transition: var(--design-transition);
  background-color: transparent;
  position: relative;
  aspect-ratio: 1;
}

.craft-item:hover {
  transform: scale(1.05);
  box-shadow: none;
}

.craft-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.craft-item:hover img {
  transform: scale(1.1);
}

/* Craft Item as Button */
.craft-item[role="button"] {
  cursor: pointer;
}

.craft-item[role="button"]:focus {
  outline: 2px solid rgba(0, 0, 0, 0.3);
  outline-offset: 2px;
}

/* Craft Result Display Area */
.craft-result {
  margin-top: 40px;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.craft-result img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.craft-result p,
.craft-result h3 {
  margin: 8px 0;
}

/* Result content styles */
.result-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.result-title {
  margin-top: 12px;
  font-family: 'anthropicSerif', 'Inter', sans-serif;
  color: #2d2d2d;
}

.result-text {
  font-family: 'anthropicSerif', 'Inter', sans-serif;
  font-size: 18px;
  color: #2d2d2d;
  margin: 0;
}

.result-container {
  font-family: 'anthropicSerif', 'Inter', sans-serif;
}

.result-heading {
  font-size: 20px;
  color: #2d2d2d;
  margin: 0 0 16px 0;
}

.result-item {
  font-size: 16px;
  color: #666;
  margin: 8px 0;
}

.error-message {
  font-family: 'anthropicSerif', 'Inter', sans-serif;
  color: #d32f2f;
  font-size: 16px;
}

/* Craft Item Overlay Effect */
.craft-item:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.craft-item:hover:before {
  opacity: 1;
}

/* Recent Activity Section */
.recent-activity {
  padding: 0;
  background-color: transparent;
  width: var(--about-photo-width, 300px);
  max-width: 100%;
}

/* Recent content styles are defined above */

.recent-title {
  font-family:
    'anthropicSerif',
    'Neue Haas Unica Pro Regular',
    -apple-system,
    BlinkMacSystemFont,
    serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  color: #2d2d2d;
  margin: 0 0 20px 0;
  text-align: left;
  letter-spacing: -0.01em;
}

.activity-timeline {
  max-width: 100%;
  margin: 0;
  width: 100%;
}

.activity-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: none;
}

.activity-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.activity-time {
  font-family: 'anthropicSerif', 'Inter', -apple-system, BlinkMacSystemFont, serif;
  font-size: 16px;
  font-weight: 400;
  color: #666;
  text-align: left;
}

.activity-content h3 {
  font-family:
    'anthropicSerif',
    'Neue Haas Unica Pro Medium',
    -apple-system,
    BlinkMacSystemFont,
    serif;
  font-size: 16px;
  font-weight: 400;
  color: #666;
  margin: 0;
}

.activity-content p {
  font-family: 'anthropicSerif', 'Inter', -apple-system, BlinkMacSystemFont, serif;
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin: 0 0 8px 0;
}

.activity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.activity-tags .tag {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  border: none;
}

.contact-description {
  font-family: 'anthropicSerif', 'Inter', -apple-system, BlinkMacSystemFont, serif;
  font-size: 18px;
  line-height: 1.7;
  color: #666;
  margin: 0 0 60px 0;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.contact-map {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.contact-map iframe,
.contact-map img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-map iframe {
  border: 0;
  min-height: 360px;
}
.contact-map-caption {
  font-family: 'anthropicSerif', 'Inter', -apple-system, BlinkMacSystemFont, serif;
  font-size: 14px;
  color: #666;
  text-align: center;
  padding: 12px 16px 16px;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'anthropicSerif', 'Inter', -apple-system, BlinkMacSystemFont, serif;
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.contact-link:hover {
  transform: translateY(-4px);
  border-color: #000000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.contact-link:hover::before {
  opacity: 1;
}

.contact-icon-wrapper {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.contact-link:hover .contact-icon-wrapper {
  background: #000000;
  transform: scale(1.05);
}

.contact-icon {
  width: 24px;
  height: 24px;
  stroke: #2d2d2d;
  transition: stroke 0.3s ease;
  position: relative;
  z-index: 1;
}

.contact-link:hover .contact-icon {
  stroke: #ffffff;
}

.contact-text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
  text-align: center;
}

.contact-label {
  font-family: 'anthropicSerif', 'Inter', -apple-system, BlinkMacSystemFont, serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: #2d2d2d;
  transition: color 0.3s ease;
  text-align: center;
}

.contact-link:hover .contact-label {
  color: #000000;
}

/* Specific link styles */
.contact-link-email:hover .contact-icon-wrapper {
  background: #007bff;
}

.contact-link-linkedin:hover .contact-icon-wrapper {
  background: #0077b5;
}

.contact-link-instagram:hover .contact-icon-wrapper {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.contact-link-resume:hover .contact-icon-wrapper {
  background: #6c757d;
}

.contact-location {
  font-family: 'anthropicSerif', 'Inter', -apple-system, BlinkMacSystemFont, serif;
  font-size: 16px;
  color: #999;
  text-align: center;
  margin: 0;
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: #ffffff;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0px;
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.about-text {
  flex: 1;
  max-width: 800px;
}

.about-title {
  font-family:
    'anthropicSerif',
    'Neue Haas Unica Pro Medium',
    -apple-system,
    BlinkMacSystemFont,
    serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  color: #2d2d2d;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}

.about-description {
  font-family: 'anthropicSerif', 'Inter', -apple-system, BlinkMacSystemFont, serif;
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}

.about-description p {
  margin-bottom: 20px;
}

.about-photo {
  --about-photo-width: 300px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin-right: 0;
  gap: 40px;
}

.photo-image {
  width: var(--about-photo-width);
  height: auto;
  border-radius: var(--design-border-radius);
  object-fit: cover;
}

/* Responsive Design for About Section */

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 0 20px;
  }

  .about-photo {
    --about-photo-width: 250px;
    justify-content: center;
  }

  .photo-image {
    width: var(--about-photo-width);
  }

  .about-title {
    font-size: 28px;
  }

  .about-description {
    font-size: 16px;
  }
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: #ffffff;
  text-align: center;
}

@media (max-width: 768px) {
  .contact {
    padding: 60px 0;
  }

  .contact-description {
    font-size: 16px;
    margin-bottom: 40px;
    padding: 0 20px;
  }

  .contact-links {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }

  .contact-link {
    padding: 24px 20px;
  }
}

/* Contact content styles are defined above */

.contact-title {
  font-family:
    'anthropicSerif',
    'Neue Haas Unica Pro Regular',
    -apple-system,
    BlinkMacSystemFont,
    serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: #2d2d2d;
  margin-bottom: 56px;
  letter-spacing: -0.01em;
}

/* Framer-specific styles */

.design-main-container {
  position: relative;
  overflow: hidden;
}

.design-fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.design-scale-in {
  opacity: 1;
  transform: scale(1);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.design-hover-lift {
  transform: translateY(-4px);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.design-slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.design-slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Framer style presets */
.nav-styles-preset-1nhsrw7 {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--token-4c03ec57-1526-4855-9bbe-39072bd57075);
  margin: 0;
  text-align: left;
}

.nav-styles-preset-16l3oqb {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #2d2d2d;
  margin: 0;
  text-align: center;
  font-family:
    'anthropicSerif',
    'Neue Haas Unica Pro Regular',
    -apple-system,
    BlinkMacSystemFont,
    serif;
}

/* Framer component styles */
[data-design-component-type="RichTextContainer"] {
  outline: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-shrink: 0;
  transform: none;
}

[data-design-component-type="SVG"] {
  outline: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-shrink: 0;
  transform: none;
}

/* XPath target styling */
.xpath-target {
  position: relative;
}

.xpath-target:after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: none;
  border-radius: 4px;
  pointer-events: none;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: none;
  z-index: 1001;
  padding: 16px 20px;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.mobile-nav-brand {
  font-family:
    'anthropicSerif',
    'Neue Haas Unica Pro Medium',
    -apple-system,
    BlinkMacSystemFont,
    serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--token-b3235550-3757-416d-b131-be21ea4d150a);
  text-decoration: none;
  text-transform: uppercase;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--design-transition);
}

.mobile-menu-btn:hover {
  background-color: transparent;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: transparent;
  position: relative;
  transition: var(--design-transition);
}

.mobile-menu-btn span:before,
.mobile-menu-btn span:after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: transparent;
  transition: var(--design-transition);
}

.mobile-menu-btn span:before {
  top: -6px;
}

.mobile-menu-btn span:after {
  top: 6px;
}

.mobile-menu-btn.active span {
  background-color: transparent;
}

.mobile-menu-btn.active span:before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-btn.active span:after {
  transform: rotate(-45deg);
  top: 0;
}

.mobile-nav-menu {
  position: fixed;
  top: var(--mobile-nav-height);
  left: 0;
  right: 0;
  background-color: var(--token-ffffff-ffffff-ffffff-ffffff-ffffff);
  border-bottom: none;
  padding: 20px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
}

.mobile-nav-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Mobile Navigation */

.mobile-nav-links {
  display: flex;
  flex-direction: row;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
}

.mobile-nav-link {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #999999;
  font-family:
    'anthropicSerif',
    'Neue Haas Unica Pro Regular',
    -apple-system,
    BlinkMacSystemFont,
    serif;
  font-size: 13px;
  font-weight: 400;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.mobile-nav-link:hover .nav-text {
  color: #666666;
}

.mobile-nav-link.active .nav-text {
  color: #000000;
  font-weight: 500;
}

.mobile-nav-link:hover {
  transform: translateX(4px);
}

.mobile-nav-link.active {
  color: #000000;
  font-weight: 500;
  transform: translateX(8px);
  position: relative;
}

.mobile-nav-link.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: #000000;
  border-radius: 1px;
  opacity: 0.8;
}

.mobile-nav-link:active {
  transform: translateX(12px);
  transition: transform 0.1s ease;
  color: #333333;
}

/* Responsive Navigation Enhancements */

@media (max-width: 1024px) {
  .nav-link {
    padding: 10px 0;
    font-size: 15px;
  }

  .nav-link:hover {
    transform: translateX(6px);
  }

  .nav-link.active {
    transform: translateX(10px);
  }

  .nav-link:active {
    transform: translateX(14px);
  }
}

@media (max-width: 768px) {
  .mobile-nav-link {
    padding: 10px 16px;
    font-size: 14px;
  }

  .mobile-nav-link:hover {
    transform: translateX(6px);
  }

  .mobile-nav-link.active {
    transform: translateX(10px);
  }

  .mobile-nav-link:active {
    transform: translateX(14px);
  }
}

@media (max-width: 480px) {
  .mobile-nav-link {
    padding: 12px 20px;
    font-size: 15px;
  }

  .mobile-nav-link:hover {
    transform: translateX(8px);
  }

  .mobile-nav-link.active {
    transform: translateX(12px);
  }

  .mobile-nav-link:active {
    transform: translateX(16px);
  }
}

@media (max-width: 1024px) {
  .sidebar {
    width: 180px;
  }

  .main-content {
    margin-left: 180px;
    padding: 30px;
  }
}

@media (max-width: 900px) {
  .sidebar {
    width: 160px;
  }

  .main-content {
    margin-left: 160px;
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 20px;
    padding-top: calc(60px + 20px);
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    padding: 40px 0 60px 0;
    min-height: calc(100vh - var(--mobile-nav-height));
  }

  .hero-title {
    font-size:
      clamp(
        24px,
        5vw,
        28px
      );
  }

  .contact-title {
    font-size:
      clamp(
        24px,
        5vw,
        28px
      );
  }

  .craft-text h2 {
    font-size:
      clamp(
        20px,
        4vw,
        24px
      );
  }

  .stories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
  }

  .craft-grid-1,
  .craft-grid-2,
  .craft-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .craft-result {
    margin-top: 30px;
    padding: 20px;
  }

  /* Responsive Design - Unified Mobile Alignment */

  @media (max-width: 800px) {
    .hero-content {
      max-width: 100%;
      margin: 0;
      padding: 0 20px;
    }

    .recent-content,
    .craft-content,
    .contact-content,
    .about-content {
      max-width: 100%;
      padding: 0 20px;
    }

    .stories-grid {
      max-width: 100%;
      padding: 0 20px;
    }

    .about-content {
      flex-direction: column;
      text-align: center;
      gap: 40px;
    }

    .about-photo {
      justify-content: center;
    }

    .about-text {
      max-width: 100%;
    }
  }

  /* About Page Styles */
  .page-header {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #eeeeee;
  }

  .main-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
  }

  .nav-home {
    font-family: 'Inter', sans-serif;
    color: #666666;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
  }

  .nav-home:hover {
    color: #000000;
  }

  .about-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
  }

  .about-hero {
    text-align: center;
    margin-bottom: 60px;
  }

  .about-hero h1 {
    font-size: 48px;
    color: #2d2d2d;
    margin-bottom: 16px;
  }

  .about-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    color: #666666;
    font-weight: 400;
  }

  .about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
  }

  .bio-section, .education-section, .skills-section, .achievements-section {
    margin-bottom: 40px;
  }

  .bio-section h2, .education-section h2, .skills-section h2, .achievements-section h2 {
    font-size: 32px;
    color: #2d2d2d;
    margin-bottom: 24px;
  }

  .bio-section p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #444444;
    margin-bottom: 20px;
  }

  .education-item {
    background-color: #f8f8f8;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
  }

  .education-item h3 {
    font-size: 24px;
    color: #2d2d2d;
    margin-bottom: 8px;
  }

  .education-item p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #666666;
    margin-bottom: 8px;
  }

  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }

  .skill-category {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    padding: 24px;
    border-radius: 12px;
  }

  .skill-category h3 {
    font-size: 20px;
    color: #2d2d2d;
    margin-bottom: 16px;
  }

  .skill-category ul {
    list-style: none;
    padding: 0;
  }

  .skill-category li {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #666666;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .skill-category li:last-child {
    border-bottom: none;
  }

  .achievements-list {
    list-style: none;
    padding: 0;
  }

  .achievements-list li {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #444444;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .achievements-list li:last-child {
    border-bottom: none;
  }

  .achievements-list mark {
    background-color: #fff3cd;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
  }

  .contact-sidebar {
    background-color: #f8f8f8;
    padding: 32px;
    border-radius: 12px;
    height: fit-content;
  }

  .contact-sidebar h3 {
    font-size: 24px;
    color: #2d2d2d;
    margin-bottom: 16px;
  }

  .contact-sidebar p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #666666;
    margin-bottom: 24px;
  }

  .page-footer {
    background-color: #f8f8f8;
    text-align: center;
    padding: 40px 0;
    margin-top: 80px;
    border-top: 1px solid #eeeeee;
  }

  .page-footer p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #999999;
  }

  /* Responsive Design for About Page */

  @media (max-width: 768px) {
    .about-content {
      grid-template-columns: 1fr;
      gap: 40px;
    }

    .about-hero h1 {
      font-size: 36px;
    }

    .skills-grid {
      grid-template-columns: 1fr;
    }
  }

  .activity-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .activity-time {
    text-align: left;
    font-size: 12px;
  }

  .contact-links {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-link {
    padding: 24px;
    gap: 16px;
  }

  .contact-icon-wrapper {
    width: 44px;
    height: 44px;
  }

  .contact-icon {
    width: 20px;
    height: 20px;
  }

  .contact-label {
    font-size: 15px;
  }

  .contact-value {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .craft-grid-1,
  .craft-grid-2,
  .craft-grid-3 {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .craft-content {
    padding: 0 15px;
  }

  .craft-text {
    margin-bottom: 40px;
  }

  .craft-result {
    margin-top: 20px;
    padding: 15px;
    min-height: 80px;
  }

  .craft-result h3 {
    font-size: 18px;
  }

  .craft-result p {
    font-size: 14px;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-link {
    width: 100%;
    max-width: 200px;
    text-align: center;
  }
}

/* Additional responsive adjustments for very small screens */

@media (max-width: 320px) {
  :root {
    --main-content-padding: 15px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .contact-title {
    font-size: 1.8rem;
  }
}

/* Print styles */

@media print {
  .sidebar,
  .mobile-nav,
  .mobile-nav-menu {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 0;
  }

  .project-card,
  .craft-item {
    break-inside: avoid;
  }
}

/* High contrast mode support */

@media (prefers-contrast: high) {
  :root {
    --token-b3235550-3757-416d-b131-be21ea4d150a: rgb(0, 0, 0);
    --token-7c8a8a8a-8a8a-8a8a-8a8a-8a8a8a8a8a8a: rgb(64, 64, 64);
    --token-ffffff-ffffff-ffffff-ffffff-ffffff: rgb(255, 255, 255);
  }
}

/* API Footer */
.api-footer {
  margin-top: 80px;
  padding: 40px 0;
  background-color: #f8f8f8;
  border-top: 1px solid #eeeeee;
}

.api-citations {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.api-citation-title {
  font-family: 'anthropicSerif', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.api-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.api-list li {
  margin: 0;
}

.api-list a {
  font-family: 'anthropicSerif', 'Inter', sans-serif;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.api-list a:hover {
  color: #2d2d2d;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .api-footer {
    margin-top: 60px;
    padding: 30px 0;
  }

  .api-citations {
    padding: 0 20px;
  }

  .api-list {
    flex-direction: column;
    gap: 12px;
  }
}

/* Reduced motion support */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }

  .design-fade-in,
  .design-scale-in,
  .design-slide-up {
    transition: none;
  }
}
