:root {
  --bg: #F8F6F1;
  --bg-card: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --accent: #C4785A;
  --accent-soft: #E8D5CC;
  --teal: #4A9B8C;
  --teal-soft: #D4E8E4;
  --charcoal: #2D2D2D;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --bg-card: #1E1E1E;
    --text: #F0EDE8;
    --text-muted: #9A9A9A;
    --accent: #D4927A;
    --accent-soft: #3D2E28;
    --teal: #6BB8A8;
    --teal-soft: #1E3330;
    --charcoal: #F0EDE8;
  }
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

.app {
  height: 100%;
  width: 100%;
  position: relative;
}

/* Navigation dots */
.nav-dots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.nav-dot:hover {
  opacity: 0.6;
  transform: scale(1.2);
}

.nav-dot.active {
  opacity: 1;
  background: var(--accent);
  transform: scale(1.3);
}

/* Header - fixed */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  mix-blend-mode: difference;
}

.logo {
  font-family: var(--serif);
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

/* Slides container */
.slides {
  height: 100%;
  width: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(30px);
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.slide.prev {
  transform: translateY(-30px);
}

/* Slide 0: Intro */
.intro-slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
}

.intro-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}

.intro-name {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.intro-name em {
  font-style: italic;
  color: var(--accent);
}

.intro-bio {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 32px;
}

.intro-cta {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--bg);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}

.btn-secondary:hover {
  background: var(--text);
  color: var(--bg);
}

.intro-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.avatar-container {
  position: relative;
}

.avatar-shape {
  width: 320px;
  height: 400px;
  background: linear-gradient(145deg, var(--accent-soft) 0%, var(--teal-soft) 100%);
  border-radius: 200px 200px 100px 100px;
  position: relative;
  overflow: hidden;
}

.avatar-placeholder {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 300px;
  background: var(--bg-card);
  border-radius: 120px 120px 0 0;
  opacity: 0.6;
}

.floating-tag {
  position: absolute;
  background: var(--bg-card);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  white-space: nowrap;
}

.tag-1 {
  top: 40px;
  right: -40px;
  animation: float 4s ease-in-out infinite;
}

.tag-2 {
  bottom: 80px;
  left: -50px;
  animation: float 4s ease-in-out infinite 1s;
}

.tag-3 {
  bottom: 20px;
  right: -20px;
  animation: float 4s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Project slides */
.project-slide {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
}

.project-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/3;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.project-image-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  transition: transform 0.4s ease;
}

.project-image:hover .project-image-inner {
  transform: scale(1.05);
}

.img-coral { background: linear-gradient(145deg, #FAECE7 0%, #F0997B 100%); }
.img-teal { background: linear-gradient(145deg, #E1F5EE 0%, #5DCAA5 100%); }
.img-amber { background: linear-gradient(145deg, #FAEEDA 0%, #FAC775 100%); }
.img-pink { background: linear-gradient(145deg, #FBEAF0 0%, #ED93B1 100%); }
.img-blue { background: linear-gradient(145deg, #E6F1FB 0%, #85B7EB 100%); }

.project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-category {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
  font-weight: 600;
}

.project-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.project-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 400px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.project-tag {
  padding: 8px 16px;
  background: var(--bg-card);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.project-tag.creative {
  background: var(--accent-soft);
  color: var(--accent);
}

.project-tag.management {
  background: var(--teal-soft);
  color: var(--teal);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.project-link:hover {
  gap: 12px;
}

.project-link svg {
  width: 18px;
  height: 18px;
}

/* Contact slide */
.contact-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 600px;
}

.contact-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  font-weight: 500;
}

.contact-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.contact-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.contact-links {
  display: flex;
  gap: 16px;
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-icon:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-4px);
}

/* Navigation hint */
.nav-hint {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.6;
}

.nav-hint kbd {
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 11px;
  border: 1px solid var(--text-muted);
  opacity: 0.5;
}

/* Slide counter */
.slide-counter {
  position: fixed;
  bottom: 24px;
  right: 60px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 2px;
}

.slide-counter .current {
  color: var(--text);
  font-size: 18px;
}

/* Mobile styles */
@media (max-width: 900px) {
  .nav-dots {
    right: 12px;
  }

  .header {
    padding: 16px 20px;
  }

  .nav-links {
    display: none;
  }

  .slide {
    padding: 80px 24px 80px;
  }

  .intro-slide,
  .project-slide {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .intro-visual {
    order: -1;
  }

  .avatar-shape {
    width: 200px;
    height: 250px;
  }

  .avatar-placeholder {
    width: 160px;
    height: 200px;
  }

  .floating-tag {
    font-size: 11px;
    padding: 8px 14px;
  }

  .tag-1 { right: -20px; top: 20px; }
  .tag-2 { left: -20px; bottom: 60px; }
  .tag-3 { right: -10px; bottom: 10px; }

  .intro-text {
    text-align: center;
    align-items: center;
  }

  .intro-bio {
    max-width: 100%;
  }

  .intro-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .project-visual {
    order: -1;
  }

  .project-image {
    max-width: 100%;
  }

  .project-info {
    text-align: center;
    align-items: center;
  }

  .project-desc {
    max-width: 100%;
  }

  .project-tags {
    justify-content: center;
  }

  .nav-hint {
    display: none;
  }

  .slide-counter {
    right: 48px;
  }
}

/* Touch swipe area */
.swipe-area {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}
